/* ============================================
   牧羊曲官网 - 牧场暖阳主题
   ============================================ */
:root {
    /* 纸感底色 */
    --paper: #FFFCF7;
    --cream: #F9F6F1;
    --latte: #EBE4D8;

    /* 草绿主色 */
    --grass: #4D7A49;
    --grass-dark: #3A5F37;
    --grass-light: #E8F2E7;
    --grass-rgb: 77, 122, 73;

    /* 太阳黄点缀 */
    --sun: #F2C14E;
    --sun-dark: #8A6200;
    --sun-light: #FFF4D9;

    /* 文字色 */
    --ink: #3D382F;
    --ink-light: #5A544B;
    --muted: #7A7267;
    --inverse: #FFFFFF;

    /* 字体 */
    --font-body: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;
    --font-display: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;

    /* 圆角 */
    --radius-sm: 16px;
    --radius-md: 28px;
    --radius-lg: 40px;
    --radius-xl: 56px;
    --radius-full: 9999px;

    /* 阴影（柔和、偏暖） */
    --shadow-sm: 0 2px 8px rgba(61, 56, 47, 0.06);
    --shadow-md: 0 8px 24px rgba(61, 56, 47, 0.08);
    --shadow-lg: 0 18px 48px rgba(61, 56, 47, 0.10);

    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   全局基础
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--paper);
    color: var(--ink-light);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 公共标题区 */
.section-header {
    margin-bottom: 52px;
    max-width: 640px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 2px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-header p {
    font-size: 17px;
    color: var(--muted);
}

/* ============================================
   按钮
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    min-height: 48px;
    min-width: 120px;
}

.btn-primary {
    background-color: var(--grass);
    color: var(--inverse);
    box-shadow: 0 6px 18px rgba(var(--grass-rgb), 0.28);
}

.btn-primary:hover {
    background-color: var(--grass-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(var(--grass-rgb), 0.34);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
}

.btn-secondary {
    background-color: var(--paper);
    color: var(--grass);
    border: 2px solid var(--grass-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--grass);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:focus-visible {
    outline: 3px solid var(--grass);
    outline-offset: 3px;
}

.btn-light {
    background-color: var(--sun);
    color: var(--ink);
    box-shadow: 0 6px 18px rgba(242, 193, 78, 0.35);
}

.btn-light:hover {
    background-color: var(--sun-dark);
    transform: translateY(-2px);
}

/* ============================================
   顶部导航
   ============================================ */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 252, 247, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(61, 56, 47, 0.06);
    transition: box-shadow var(--transition-fast);
}

.top-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1px;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-light);
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background-color: var(--grass);
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--grass);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-cta {
    padding: 9px 22px;
    border-radius: var(--radius-full);
    background-color: var(--grass-light);
    color: var(--grass-dark);
    font-size: 14px;
    font-weight: 600;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-cta:hover {
    background-color: var(--grass);
    color: var(--inverse);
}

.nav-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--ink);
    cursor: pointer;
    border-radius: 12px;
    transition: background-color var(--transition-fast);
}

.nav-menu-toggle:hover {
    background-color: var(--cream);
}

/* ============================================
   首屏 Hero（签名视觉：晨光太阳 + 分层草坡）
   ============================================ */
.hero-section {
    position: relative;
    padding: 140px 0 90px;
    background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
    overflow: hidden;
}

.hero-sun {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--sun-light) 0%, var(--sun) 55%, var(--sun-dark) 100%);
    opacity: 0.85;
    filter: blur(1px);
    animation: sun-pulse 6s ease-in-out infinite alternate;
}

.hero-hills {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 1;
}

.hero-hills svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-hills .hill-back {
    fill: rgba(var(--grass-rgb), 0.12);
}

.hero-hills .hill-front {
    fill: var(--grass-light);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-copy {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--sun-light);
    color: var(--sun-dark);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 6px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-lead {
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    background: var(--paper);
    border: 1px solid rgba(61, 56, 47, 0.08);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-figure {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.icon-bloom {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bloom::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
    background: linear-gradient(135deg, var(--sun-light) 0%, var(--sun) 100%);
    opacity: 0.35;
    animation: bloom-rotate 18s linear infinite;
}

.icon-bloom::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
    background: linear-gradient(135deg, var(--grass-light) 0%, rgba(var(--grass-rgb), 0.15) 100%);
    animation: bloom-rotate 14s linear infinite reverse;
}

.icon-bloom img {
    position: relative;
    z-index: 3;
    width: 180px;
    height: 180px;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
}

@keyframes sun-pulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.05); opacity: 0.95; }
}

@keyframes bloom-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   核心优势（牧场面板，非居中卡片栅格）
   ============================================ */
.features-section {
    position: relative;
    padding: 90px 0;
    background-color: var(--cream);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 36px 40px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(61, 56, 47, 0.06);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.feature-panel:nth-child(even) {
    background: linear-gradient(90deg, var(--paper) 0%, var(--grass-light) 100%);
}

.feature-panel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-panel::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: 160px;
    height: 100px;
    border-radius: 50%;
    background: rgba(var(--grass-rgb), 0.08);
    pointer-events: none;
}

.feature-marker {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sun-light);
    color: var(--sun-dark);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}

.feature-body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.feature-body p {
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.8;
    max-width: 620px;
}

.feature-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grass);
    color: var(--inverse);
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(var(--grass-rgb), 0.22);
}

/* ============================================
   关于我们
   ============================================ */
.company-section {
    padding: 90px 0;
    background-color: var(--paper);
}

.company-card {
    max-width: 820px;
    padding: 48px 52px;
    background: var(--cream);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(61, 56, 47, 0.06);
    position: relative;
    overflow: hidden;
}

.company-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--sun-light);
    opacity: 0.6;
    pointer-events: none;
}

.company-card h3 {
    position: relative;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.company-desc {
    position: relative;
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.9;
    margin-bottom: 26px;
}

.company-tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    list-style: none;
    padding: 0;
}

.company-tags li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--paper);
    color: var(--grass-dark);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--grass-light);
}

.company-tags li::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grass);
}

.company-mission {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--grass);
    color: var(--inverse);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.company-mission i {
    font-size: 13px;
    opacity: 0.7;
}

/* ============================================
   下载引导
   ============================================ */
.download-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--paper) 0%, var(--grass-light) 100%);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 193, 78, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.download-card {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 52px 56px;
    background: var(--paper);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(61, 56, 47, 0.06);
}

.download-card h2 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.download-card > p {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 34px;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ============================================
   页脚
   ============================================ */
.main-footer {
    background-color: #352F27;
    color: rgba(255, 252, 247, 0.65);
    padding: 52px 0 28px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--paper);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-logo img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 252, 247, 0.45);
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-bottom: 6px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 252, 247, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--sun);
}

.footer-links span {
    color: rgba(255, 252, 247, 0.2);
}

.footer-copyright {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 252, 247, 0.1);
}

.footer-copyright p {
    font-size: 12px;
    color: rgba(255, 252, 247, 0.4);
    margin-bottom: 4px;
    line-height: 1.7;
}

.footer-copyright a {
    color: var(--sun);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-copyright a:hover {
    opacity: 1;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-copy {
        margin: 0 auto;
    }

    .hero-meta,
    .hero-actions {
        justify-content: center;
    }

    .feature-panel {
        grid-template-columns: auto 1fr;
        text-align: left;
    }

    .feature-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .feature-marker {
        display: none;
    }

    .feature-panel::after {
        right: -30px;
        bottom: -40px;
    }
}

@media (max-width: 768px) {
    .nav-cta {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 252, 247, 0.98);
        backdrop-filter: blur(18px);
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 24px 20px;
        gap: 0;
        border-bottom: 1px solid rgba(61, 56, 47, 0.08);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(61, 56, 47, 0.06);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-menu-toggle {
        display: flex;
    }

    .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .hero-section {
        padding: 120px 0 70px;
    }

    .hero-sun {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }

    .hero-copy h1 {
        font-size: 46px;
        letter-spacing: 4px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .icon-bloom {
        width: 220px;
        height: 220px;
    }

    .icon-bloom img {
        width: 140px;
        height: 140px;
        border-radius: 28px;
    }

    .feature-panel {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 32px 28px;
        gap: 18px;
    }

    .feature-icon {
        grid-column: auto;
        grid-row: auto;
        margin: 0 auto;
    }

    .feature-marker {
        display: none;
    }

    .company-card {
        padding: 34px 28px;
    }

    .company-card h3 {
        font-size: 22px;
    }

    .download-card {
        padding: 38px 28px;
    }

    .download-card h2 {
        font-size: 26px;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 18px;
    }

    .hero-copy h1 {
        font-size: 38px;
        letter-spacing: 3px;
    }

    .hero-lead {
        font-size: 15px;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .download-actions,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .company-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-mission {
        flex-wrap: wrap;
        font-size: 14px;
    }

    .feature-body h3 {
        font-size: 20px;
    }
}
