/* ============================================================
 * 耕耘化工 · 首页专属样式 (index.css)
 * 苹果风：大量留白 / 克制阴影 / 深沉质感
 * 主基调：深绿（#006c3b）+ 春芽绿（#2eaa53）+ 苹果黑白灰
 * ============================================================ */

/* ====================== Hero 区 ====================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(46, 170, 83, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(0, 113, 227, 0.10) 0%, transparent 55%),
        linear-gradient(180deg, #f5f7f4 0%, #ffffff 60%, #f5f5f7 100%);
}
/* Hero 背景纹理（细颗粒，营造质感） */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(0, 108, 59, 0.025) 0 1px, transparent 1px 90px),
        repeating-linear-gradient(-45deg, rgba(0, 108, 59, 0.025) 0 1px, transparent 1px 90px);
    pointer-events: none;
    mix-blend-mode: multiply;
}
/* Hero 飘浮装饰圆 */
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
    will-change: transform;
}
.hero__orb--a {
    width: 520px; height: 520px;
    top: -160px; left: -120px;
    background: radial-gradient(circle, #2eaa53 0%, transparent 70%);
}
.hero__orb--b {
    width: 460px; height: 460px;
    bottom: -180px; right: -120px;
    background: radial-gradient(circle, #0071e3 0%, transparent 70%);
    opacity: 0.35;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    text-align: center;
}
.hero__eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #006c3b;
    background: rgba(46, 170, 83, 0.12);
    padding: 6px 14px;
    border-radius: 980px;
    margin-bottom: 28px;
    font-weight: 600;
}
.hero-title {
    font-size: var(--fs-hero);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1d1d1f 0%, #006c3b 60%, #2eaa53 110%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(17px, 1.6vw, 22px);
    color: var(--apple-text-secondary);
    max-width: 680px;
    margin: 0 auto 44px;
    line-height: 1.55;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: var(--apple-text);
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: all 0.25s var(--ease-apple, cubic-bezier(0.4, 0, 0.2, 1));
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}
.hero-cta:hover {
    background: #006c3b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    filter: brightness(1.05);
}
.hero-cta__arrow {
    display: inline-block;
    transition: transform 0.3s var(--ease-back);
}
.hero-cta:hover .hero-cta__arrow { transform: translateX(4px); }

/* 滚动提示 */
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 1.5px solid rgba(29, 29, 31, 0.30);
    border-radius: 14px;
    z-index: 2;
}
.hero__scroll::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    border-radius: 2px;
    background: rgba(29, 29, 31, 0.55);
    animation: heroScroll 1.8s ease-in-out infinite;
}
@keyframes heroScroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ====================== 节标题 ====================== */
.section-head {
    text-align: center;
    margin-bottom: 64px;
}
.section-head__eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #006c3b;
    margin-bottom: 14px;
    font-weight: 600;
}
.section-head__title {
    font-size: var(--fs-h1);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--apple-text);
    margin-bottom: 14px;
}
.section-head__subtitle {
    font-size: 19px;
    color: var(--apple-text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ====================== Swiper 轮播区 ====================== */
.carousel-section {
    padding: 80px 24px;
    background: #fff;
}
.carousel-section .container { max-width: 1320px; }
.carousel-shell {
    position: relative;
    border-radius: var(--radius-card-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--apple-bg-soft);
}
.carousel-shell .swiper { width: 100%; }
.carousel-shell .swiper-slide {
    position: relative;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}
.carousel-shell .swiper-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s linear;
}
.carousel-shell .swiper-slide-active img { transform: scale(1.06); }
.slide-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 36px 56px 56px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 100%);
    color: #fff;
}
.slide-title {
    font-size: clamp(20px, 2.2vw, 32px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    max-width: 720px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
/* Swiper 控件定制 */
.carousel-shell .swiper-pagination {
    bottom: 22px !important;
}
.carousel-shell .swiper-pagination-bullet {
    width: 28px; height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.45);
    opacity: 1;
    transition: background 0.3s var(--ease-apple), width 0.3s var(--ease-apple);
}
.carousel-shell .swiper-pagination-bullet-active {
    background: #fff;
    width: 44px;
}
.carousel-shell .swiper-button-next,
.carousel-shell .swiper-button-prev {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    color: #fff;
    transition: background 0.3s var(--ease-apple);
}
.carousel-shell .swiper-button-next:hover,
.carousel-shell .swiper-button-prev:hover {
    background: rgba(255,255,255,0.30);
}
.carousel-shell .swiper-button-next::after,
.carousel-shell .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}
.carousel-empty {
    aspect-ratio: 21 / 9;
    display: flex; align-items: center; justify-content: center;
    color: var(--apple-text-secondary);
    background: linear-gradient(135deg, #f5f5f7 0%, #e8efe9 100%);
}

/* ====================== Bento Grid 产品区 ====================== */
.bento-section {
    padding: var(--gap-section) 24px;
    background: var(--apple-bg-soft);
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
}
.bento-card {
    position: relative;
    border-radius: var(--radius-card-lg);
    overflow: hidden;
    padding: 32px;
    color: var(--apple-text);
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    isolation: isolate;
    transition: transform 0.5s var(--ease-back), box-shadow 0.4s var(--ease-apple);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(100,130,70,0.12);
}
/* 顶部渐变条装饰 */
.bento-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: linear-gradient(90deg, #7fb073, #c0dfa3, #4e8d3e);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}
.bento-card:hover::after { opacity: 1; }
.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 32, 0, 0.10);
    border-color: rgba(100,150,60,0.35);
}
.bento-card__icon {
    width: 60px; height: 60px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    background: linear-gradient(135deg, #eef5e8, #e2f0da);
    color: #3c7335;
    box-shadow: 0 6px 14px -6px rgba(0,80,0,0.08);
    transition: background 0.3s, transform 0.3s;
}
.bento-card__icon svg {
    width: 28px; height: 28px;
    fill: currentColor;
}
.bento-card:hover .bento-card__icon {
    background: linear-gradient(135deg, #d9efcd, #c0e4b0);
    transform: scale(1.05);
}
.bento-card__body { margin-top: auto; }
.bento-card__name {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 8px;
}
.bento-card__desc {
    font-size: 14px;
    color: var(--apple-text-secondary);
    line-height: 1.6;
    max-width: 360px;
    border-left: 3px solid #b8d9a6;
    padding-left: 10px;
    background: rgba(240,248,235,0.5);
    border-radius: 0 8px 8px 0;
    padding: 6px 10px 6px 10px;
}
.bento-card__more {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #4a8c3f;
    display: inline-flex; align-items: center; gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(180,210,160,0.4);
    opacity: 1;
    transition: gap 0.2s ease;
}
.bento-card:hover .bento-card__more { gap: 10px; }

/* 不等分布局：用 grid-column / grid-row 控制 */
.bento-card--feature {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #006c3b 0%, #2eaa53 100%);
    color: #fff;
    border-color: transparent;
}
.bento-card--feature .bento-card__desc { color: rgba(255,255,255,0.85); max-width: 480px; background: rgba(255,255,255,0.08); border-left-color: rgba(255,255,255,0.4); }
.bento-card--feature .bento-card__name { font-size: 38px; }
.bento-card--feature .bento-card__more { color: #fff; border-top-color: rgba(255,255,255,0.2); }
.bento-card--feature .bento-card__icon { background: rgba(255,255,255,0.18); color: #fff; }
.bento-card--feature::after { background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2), rgba(255,255,255,0.6)); }

.bento-card--wide { grid-column: span 2; }
.bento-card--accent {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}
.bento-card--soil {
    background: linear-gradient(135deg, #fff8eb 0%, #fff1d6 100%);
}
.bento-card--soil .bento-card__desc { border-left-color: #e6c97a; background: rgba(255,240,200,0.4); }
.bento-card--leaf {
    background: linear-gradient(135deg, #ecf7ee 0%, #d8eede 100%);
}
.bento-card--ink {
    background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
    color: #fff;
    border-color: transparent;
}
.bento-card--ink .bento-card__desc { color: rgba(255,255,255,0.70); background: rgba(255,255,255,0.05); border-left-color: rgba(255,255,255,0.25); }
.bento-card--ink .bento-card__icon { background: rgba(255,255,255,0.12); color: #fff; }
.bento-card--ink .bento-card__more { color: #7fb073; border-top-color: rgba(255,255,255,0.1); }
.bento-card--ink::after { background: linear-gradient(90deg, #7fb073, #2eaa53, #7fb073); }

/* 水印装饰 SVG */
.bento-card__watermark {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: 80%;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bento-card__watermark svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.bento-card--feature .bento-card__watermark {
    opacity: 0.08;
    color: #fff;
    right: 20px;
    width: 45%;
}
.bento-card--ink .bento-card__watermark {
    opacity: 0.08;
    color: #fff;
}

/* ====================== 公司简介区 ====================== */
.about-section {
    padding: var(--gap-section) 24px;
    background: #fff;
    overflow: hidden;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.about-text__eyebrow {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #006c3b;
    font-weight: 600;
    margin-bottom: 16px;
}
.about-text__title {
    font-size: var(--fs-h1);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 16px;
    color: var(--apple-text);
}
.about-text__subtitle {
    font-size: 19px;
    color: var(--apple-text-secondary);
    line-height: 1.5;
    margin-bottom: 28px;
}
.about-text__body {
    font-size: 17px;
    color: var(--apple-text);
    line-height: 1.75;
    margin-bottom: 36px;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
    padding: 28px 0;
    border-top: 1px solid var(--apple-divider);
    border-bottom: 1px solid var(--apple-divider);
}
.about-stat__num {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #006c3b;
    line-height: 1;
    margin-bottom: 6px;
}
.about-stat__label {
    font-size: 13px;
    color: var(--apple-text-secondary);
    letter-spacing: 0.04em;
}
.about-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 28px;
    color: var(--apple-blue);
    border: 1.5px solid var(--apple-blue);
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-size: 15px; font-weight: 500;
    transition: all 0.3s var(--ease-apple);
}
.about-cta:hover {
    background: var(--apple-blue);
    color: #fff;
    transform: translateY(-2px);
}

.about-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-card-lg);
    overflow: hidden;
    background:
        radial-gradient(ellipse at top left, rgba(46, 170, 83, 0.30) 0%, transparent 60%),
        linear-gradient(135deg, #006c3b 0%, #1d1d1f 100%);
    box-shadow: 0 24px 60px rgba(0, 108, 59, 0.18);
}
.about-visual__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.about-visual__badge {
    position: absolute;
    top: 32px; left: 32px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 980px;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.about-visual__caption {
    position: absolute;
    bottom: 32px;
    left: 32px; right: 32px;
    color: #fff;
}
.about-visual__caption strong {
    display: block;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.about-visual__caption span {
    font-size: 14px;
    color: rgba(255,255,255,0.70);
}
.about-visual__leaf {
    position: absolute;
    right: -40px; top: 30%;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 170, 83, 0.55) 0%, transparent 70%);
    filter: blur(20px);
}

/* ====================== 新闻预览区 ====================== */
.news-section {
    padding: var(--gap-section) 24px;
    background: var(--apple-bg-soft);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}
.news-card {
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s var(--ease-back), box-shadow 0.4s var(--ease-apple);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}
.news-card__cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e8efe9 0%, #f5f5f7 100%);
}
.news-card__cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-back);
}
.news-card:hover .news-card__cover img { transform: scale(1.06); }
.news-card__cover--placeholder {
    display: flex; align-items: center; justify-content: center;
    color: rgba(0, 108, 59, 0.45);
    font-size: 60px;
    font-weight: 700;
    letter-spacing: -0.05em;
}
.news-card__body {
    padding: 24px 28px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card__date {
    font-size: 12px;
    color: var(--apple-text-secondary);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px;
}
.news-card__date::before {
    content: "";
    display: inline-block;
    width: 18px; height: 1px;
    background: var(--apple-text-secondary);
    opacity: 0.5;
}
.news-card__title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--apple-text);
    /* 两行截断 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__summary {
    font-size: 14px;
    color: var(--apple-text-secondary);
    line-height: 1.6;
    flex: 1;
    /* 三行截断 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__more {
    margin-top: 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--apple-blue);
    display: inline-flex; align-items: center; gap: 4px;
    transition: gap 0.3s var(--ease-back);
}
.news-card:hover .news-card__more { gap: 8px; }

.news-footer {
    text-align: center;
}
.news-more-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 28px;
    color: var(--apple-text);
    border: 1.5px solid var(--apple-text);
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-size: 15px; font-weight: 500;
    transition: all 0.3s var(--ease-apple);
}
.news-more-btn:hover {
    background: var(--apple-text);
    color: #fff;
    transform: translateY(-2px);
}

.news-empty {
    grid-column: 1 / -1;
    padding: 80px 0;
    text-align: center;
    color: var(--apple-text-secondary);
    font-size: 16px;
}

/* ====================== 响应式 ====================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .bento-card--feature { grid-column: span 2; grid-row: span 2; }
    .bento-card--wide { grid-column: span 2; }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .about-visual { aspect-ratio: 16 / 10; }
}

@media (max-width: 768px) {
    .hero { min-height: 86vh; }
    .hero__orb--a { width: 320px; height: 320px; }
    .hero__orb--b { width: 280px; height: 280px; }
    .hero-subtitle { font-size: 17px; margin-bottom: 36px; }
    .section-head { margin-bottom: 48px; }
    .section-head__subtitle { font-size: 16px; }
    .carousel-shell .swiper-slide { aspect-ratio: 4 / 3; }
    .slide-overlay { padding: 24px 24px 40px; }
    .carousel-shell .swiper-button-next,
    .carousel-shell .swiper-button-prev { display: none; }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .about-stat__num { font-size: 30px; }
    .bento-section,
    .about-section,
    .news-section { padding: 80px 20px; }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(180px, auto);
    }
    .bento-card--feature,
    .bento-card--wide { grid-column: span 1; grid-row: auto; }
    .bento-card--feature .bento-card__name { font-size: 28px; }
    .bento-card { padding: 24px; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .about-stats > :last-child { grid-column: span 2; }
}
