/**
 * 首页样式 - Index Page Styles (高级版)
 * 视觉：全幅图片横幅、文字叠加、精致卡片
 */

/* ==================== CSS Variables ==================== */
:root {
    --green-dark: #1B5E20;
    --green-primary: #2E7D32;
    --green-accent: #43A047;
    --green-light: #81C784;
    --gold: #D4A84B;
    --gold-light: #F5E6C8;
    --text-dark: #1A1A1A;
    --text-body: #4A4A4A;
    --text-light: #888888;
    --text-white: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-cream: #FFFDF7;
    --bg-smoke: #F5F5F0;
    --bg-green-subtle: #F0F7F0;
    --border-subtle: rgba(0,0,0,0.06);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 8px 40px rgba(0,0,0,0.1);
    --shadow-image: 0 8px 32px rgba(0,0,0,0.12);
    --radius-card: 12px;
    --radius-image: 16px;
}

/* ==================== Global Reset ==================== */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-white);
    padding-top: 94px;
}

a { transition: color 0.3s ease; }

/* ==================== Header 透明渐变（仅首页） ==================== */
.header {
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ==================== Container ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ==================== Section Base ==================== */
.section {
    width: 100%;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.section__title {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 48px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.section__title--center { text-align: center; }

.section__subtitle {
    font-size: 17px;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.7;
    margin: -32px 0 48px;
    text-align: center;
}

/* ==================== Hero Section ==================== */
.hero {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* === 全屏顶部轮播图 === */
.hero__slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 94px);
    min-height: 500px;
    overflow: hidden;
    box-sizing: border-box;
}

.hero__slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

.hero__slide--active { position: relative; opacity: 1; }

.hero__image { width: 100%; height: 100%; object-fit: cover; max-width: 100%; }

.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; padding: 0; border: none; vertical-align: top; max-width: 100%; }

.hero__sound-toggle {
    position: absolute;
    bottom: 56px;
    right: 24px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    color: #FFFFFF;
}
.hero__sound-toggle:hover { background: rgba(0,0,0,0.6); }
.hero__sound-icon--off { display: none; }
.hero__sound-toggle.muted .hero__sound-icon--on { display: none; }
.hero__sound-toggle.muted .hero__sound-icon--off { display: block; }

.hero__slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero__dot {
    width: 10px; height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero__dot:hover { background: rgba(255,255,255,0.85); }

.hero__dot--active {
    width: 30px;
    height: 10px;
    border-radius: 5px;
    background: #FFFFFF;
}

/* === 下方 Logo + 文案 居中 === */
.hero__content {
    width: 100%;
    max-width: 100%;
    background: var(--bg-white);
    margin: 0;
    padding: 60px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    will-change: transform;
    box-sizing: border-box;
}

.hero__logo {
    width: 160px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroLogoFadeIn 0.8s ease-out forwards 0.3s;
}

@keyframes heroLogoFadeIn { to { opacity: 1; transform: translateY(0); } }

.hero__title {
    font-size: 44px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0;
}

.hero__tagline {
    font-size: 20px;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

/* ==================== Brand Claim Section (全幅图片横幅) ==================== */
.brand-claim-section {
    padding: 0;
    background: url('../images/index/1.png') center center / cover no-repeat fixed;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-claim-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
}

.brand-claim-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
}

.brand-claim-title {
    font-size: 44px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.brand-claim-title.animate-in { opacity: 1; transform: translateY(0); }

.brand-claim-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 20px auto 0;
    border-radius: 2px;
}

.brand-claim-row {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.brand-claim-row.animate-in { opacity: 1; transform: translateY(0); }

.brand-claim-text {
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    display: block;
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.brand-claim-text p { margin: 0; }

.brand-claim-right { display: none; }

/* ==================== Business Scale Section ==================== */
.business-scale-section {
    background: var(--bg-cream);
}

.business-scale-section .section__title { text-align: center; }

/* ==================== Statistics ==================== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    transition: all 0.35s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.stat-item:hover {
    border-color: transparent;
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
}

.stat-item:hover::before { transform: scaleX(1); }

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 8px;
    line-height: 1.1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* == 动画 == */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-item.animate { opacity: 1; transform: translateY(0); }

/* ==================== Social Responsibility Section (全幅图片横幅) ==================== */
.social-responsibility-section {
    padding: 0;
    background: url('../images/index/3.png') center center / cover no-repeat fixed;
    min-height: 460px;
    display: flex;
    align-items: center;
}

.social-responsibility-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
}

.social-responsibility-section .container {
    position: relative;
    z-index: 1;
}

.social-responsibility-section .section__title {
    color: var(--text-white);
    text-align: center;
}

.social-responsibility-section .section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 16px auto 0;
    border-radius: 2px;
}

.card {
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-card);
    padding: 48px 56px;
    border-left: 4px solid var(--gold);
    max-width: 720px;
    margin: 0 auto;
}

.card__content p {
    font-size: 17px;
    line-height: 2;
    color: rgba(255,255,255,0.95);
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ==================== Content Element Animations ==================== */
.section-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-content.animate { opacity: 1; transform: translateY(0); }

.section__title {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section__title.animate { opacity: 1; transform: translateY(0); }

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .hero__title { font-size: 38px; }
    .hero__tagline { font-size: 18px; }
    .hero__content { padding: 48px 24px 64px; }

    .brand-claim-title { font-size: 36px; }
    .brand-claim-text { font-size: 17px; }

    .stat-number { font-size: 36px; }
    .section__title { font-size: 32px; }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }

    .section { padding: 60px 0; }
    .section__title { font-size: 28px; margin-bottom: 32px; }
    .section__subtitle { font-size: 15px; margin: -20px 0 32px; }

    .hero__slider {
        height: 45vh;
        min-height: 280px;
        max-height: 420px;
    }

    .hero__slide img,
    .hero__slide video {
        object-position: center 30%;
    }

    .hero__slider-dots { bottom: 14px; gap: 6px; }
    .hero__dot { width: 8px; height: 8px; }
    .hero__dot--active { width: 24px; height: 8px; }

    .hero__content { padding: 36px 16px 48px; gap: 12px; }
    .hero__title { font-size: 28px; }
    .hero__tagline { font-size: 16px; }
    .hero__logo { width: 120px; }

    .brand-claim-section { min-height: 380px; background-attachment: scroll; }
    .brand-claim-title { font-size: 28px; }
    .brand-claim-text { font-size: 15px; line-height: 1.7; }
    .brand-claim-container { padding: 48px 20px; }

    .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-item { padding: 24px 16px; }
    .stat-number { font-size: 30px; }
    .stat-label { font-size: 12px; }

    .social-responsibility-section { min-height: 380px; background-attachment: scroll; }

    .card { padding: 32px 24px; }
    .card__content p { font-size: 15px; }

    .container { padding: 0 16px; }
}

@media (max-width: 480px) {
    .hero__slider { height: 40vh; min-height: 220px; max-height: 340px; }
    .hero__slide img,
    .hero__slide video {
        object-position: center 25%;
    }
    .hero__slider-dots { bottom: 10px; gap: 5px; }
    .hero__dot { width: 6px; height: 6px; }
    .hero__dot--active { width: 18px; height: 6px; }
    .hero__title { font-size: 24px; }
    .hero__tagline { font-size: 14px; }
    .hero__content { padding: 28px 16px 40px; }
    .hero__logo { width: 100px; }

    .section__title { font-size: 24px; }
    .section__subtitle { font-size: 14px; }

    .stats { grid-template-columns: 1fr; gap: 10px; }
    .stat-item { padding: 20px 12px; }
    .stat-number { font-size: 28px; }

    .brand-claim-title { font-size: 24px; }

    .card { padding: 24px 20px; }
}

/* ==================== Utility ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

::selection { background: var(--green-accent); color: white; }