/* ============================================
   绿茵说 - 企业官网样式表
   ============================================ */

/* ===== CSS 变量 ===== */
:root {
    --color-primary: #0B8B5C;
    --color-primary-dark: #076B47;
    --color-primary-light: #16C27F;
    --color-accent: #FFD43B;
    --color-dark: #0A1F15;
    --color-dark-2: #0D2A1C;
    --color-dark-3: #112E20;
    --color-light: #F5F9F7;
    --color-text: #1A2E22;
    --color-text-muted: #5C7268;
    --color-white: #FFFFFF;
    --color-border: #E1EAE4;

    --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(11, 139, 92, 0.08);
    --shadow-md: 0 8px 24px rgba(11, 139, 92, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 31, 21, 0.15);
    --shadow-xl: 0 30px 80px rgba(10, 31, 21, 0.25);

    --container-max: 1200px;
    --header-height: 72px;

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 基础重置 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

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

/* ===== 布局容器 ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 文本高亮 ===== */
.text-accent {
    color: var(--color-primary-light);
    font-weight: 800;
}

/* ===== 导航栏 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--color-border);
}

.nav-container {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.nav-btn::after {
    display: none;
}

.nav-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 31, 21, 0.85) 0%, rgba(11, 139, 92, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

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

.hero-badge {
    display: inline-block;
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    line-height: 1.8;
    max-width: 480px;
}

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

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 139, 92, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--color-white);
    color: var(--color-text);
    border-color: var(--color-white);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-text-small {
    font-size: 11px;
    opacity: 0.8;
}

.btn-text-large {
    font-size: 16px;
    font-weight: 700;
}

/* ===== Hero 手机展示 ===== */
.hero-visual {
    flex-shrink: 0;
    position: relative;
}

/* ===== 手机 Mockup ===== */
.phone-mockup {
    display: inline-block;
}

.phone-frame {
    position: relative;
    width: 280px;
    background: #1a1a1a;
    border-radius: 42px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    z-index: 3;
}

.phone-screen {
    border-radius: 32px;
    overflow: hidden;
    background: #000;
}

.phone-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero 区手机动画 */
.phone-hero .phone-frame {
    animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.scroll-hint svg {
    width: 24px;
    height: 24px;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ===== 功能区通用 ===== */
.feature-section {
    padding: 120px 0;
    background: var(--color-light);
}

.feature-section-dark {
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.feature-section-dark::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 194, 127, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.feature-section-dark::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11, 139, 92, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-row-reverse {
    flex-direction: row-reverse;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.feature-text {
    flex: 1;
}

.feature-text-light {
    color: rgba(255, 255, 255, 0.9);
}

.feature-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.feature-tag-light {
    color: var(--color-primary-light);
}

.feature-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.3;
}

.feature-title-light {
    color: var(--color-white);
}

.feature-desc {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    line-height: 1.8;
}

.feature-desc-light {
    color: rgba(255, 255, 255, 0.7);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text-muted);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.check-icon-light {
    background: var(--color-primary-light);
}

/* 装饰元素 */
.visual-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.visual-decoration-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    opacity: 0.12;
    top: -30px;
    right: -30px;
}

.visual-decoration-2 {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    opacity: 0.15;
    bottom: -20px;
    left: -20px;
}

/* ===== 产品介绍区 ===== */
.product-section {
    padding: 120px 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(11, 139, 92, 0.1), rgba(22, 194, 127, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all var(--transition);
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card:hover .card-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    transform: scale(1.1);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.card-text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===== 手机展示区 ===== */
.showcase-section {
    padding: 120px 0;
    background: var(--color-light);
    overflow: hidden;
}

.showcase-phones {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    perspective: 1000px;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all var(--transition);
}

.showcase-item:hover {
    transform: translateY(-12px);
}

.showcase-item-left .phone-mockup {
    transform: rotate(8deg) translateY(20px);
}

.showcase-item-left:hover .phone-mockup {
    transform: rotate(8deg) translateY(0);
}

.showcase-item-right .phone-mockup {
    transform: rotate(-8deg) translateY(20px);
}

.showcase-item-right:hover .phone-mockup {
    transform: rotate(-8deg) translateY(0);
}

.phone-small .phone-frame {
    width: 240px;
}

.phone-small .phone-notch {
    width: 100px;
    height: 24px;
}

.phone-large .phone-frame {
    width: 300px;
}

.phone-large .phone-notch {
    width: 130px;
    height: 30px;
}

.showcase-caption {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

/* ===== 下载区 ===== */
.download-section {
    position: relative;
    padding: 120px 0;
    background: var(--color-dark);
    overflow: hidden;
}

.download-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(22, 194, 127, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(11, 139, 92, 0.12) 0%, transparent 50%);
}

.download-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 16px;
}

.download-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
    line-height: 1.8;
}

.download-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-code {
    width: 180px;
    height: 180px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.qr-code canvas {
    width: 100% !important;
    height: 100% !important;
}

.qr-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--color-dark-2);
    padding: 64px 0 32px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 0 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-white);
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--color-primary-light);
}

.footer-contact {
    text-align: right;
}

.footer-contact-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-email {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary-light);
    transition: opacity var(--transition);
}

.footer-email:hover {
    opacity: 0.8;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-license {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-email-link {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-email-link:hover {
    color: var(--color-primary-light);
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===== 滚动动画 ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

.showcase-item[data-animate] {
    transform: translateY(60px);
}

.showcase-item[data-animate].animated {
    transform: translateY(0);
}

.showcase-item-left[data-animate] {
    transform: translateY(60px) rotate(8deg);
}

.showcase-item-left[data-animate].animated {
    transform: translateY(20px) rotate(8deg);
}

.showcase-item-right[data-animate] {
    transform: translateY(60px) rotate(-8deg);
}

.showcase-item-right[data-animate].animated {
    transform: translateY(20px) rotate(-8deg);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .feature-row,
    .feature-row-reverse {
        flex-direction: column;
        gap: 48px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        margin: 0 auto;
    }

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

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-platforms {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 24px;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        transition: right var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 18px;
    }

    .menu-toggle {
        display: flex;
    }

    .feature-section,
    .product-section,
    .showcase-section,
    .download-section {
        padding: 80px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .phone-frame {
        width: 240px !important;
    }

    .phone-notch {
        width: 100px !important;
        height: 24px !important;
    }

    .showcase-phones {
        flex-direction: column;
        gap: 48px;
    }

    .showcase-item-left .phone-mockup,
    .showcase-item-right .phone-mockup {
        transform: none;
    }

    .showcase-item-left:hover .phone-mockup,
    .showcase-item-right:hover .phone-mockup {
        transform: translateY(-12px);
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-contact {
        text-align: left;
    }

    .download-platforms {
        flex-direction: column;
    }

    .download-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .scroll-hint {
        display: none;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        justify-content: center;
    }

    .footer-links {
        gap: 16px;
    }

    .footer-license {
        font-size: 12px;
    }
}
