/* ============================================
   萌火星 - 企业官网共享样式系统
   暖橙色调 · 简约大气
   ============================================ */

/* ---- CSS 变量 ---- */
:root {
    /* 主色调 */
    --orange-primary: #FF7A1A;
    --orange-deep: #E8650F;
    --orange-light: #FFB366;
    --orange-pale: #FFF1E6;
    --orange-glow: rgba(255, 122, 26, 0.15);

    /* 中性色 */
    --bg-warm: #FFF8F3;
    --bg-white: #FFFFFF;
    --text-dark: #2D2A26;
    --text-body: #5A5550;
    --text-light: #9A948E;
    --border-soft: #F0E8E0;

    /* 功能色 */
    --shadow-soft: 0 2px 12px rgba(232, 101, 15, 0.08);
    --shadow-card: 0 4px 24px rgba(232, 101, 15, 0.10);
    --shadow-hover: 0 8px 36px rgba(232, 101, 15, 0.18);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    /* 过渡 */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* 布局 */
    --max-width: 1200px;
    --header-height: 72px;
}

/* ---- 全局重置 ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-body);
    background: var(--bg-warm);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

ul {
    list-style: none;
}

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

/* ---- 排版 ---- */
h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--orange-pale);
    color: var(--orange-deep);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 56px;
}

/* ---- 导航栏 ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 248, 243, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 1000;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
}

.logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: none;
}

.logo span {
    color: var(--orange-primary);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    transition: all var(--transition);
}

.nav-links a:hover {
    background: var(--orange-pale);
    color: var(--orange-deep);
}

.nav-links a.active {
    background: var(--orange-primary);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---- 按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-deep));
    color: white;
    box-shadow: 0 4px 16px var(--orange-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232, 101, 15, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--orange-deep);
    border: 2px solid var(--orange-primary);
}

.btn-outline:hover {
    background: var(--orange-pale);
}

.btn-white {
    background: white;
    color: var(--orange-deep);
    box-shadow: var(--shadow-soft);
}

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

/* ---- Hero 区域 ---- */
.hero {
    padding: calc(var(--header-height) + 60px) 0 80px;
    background: linear-gradient(170deg, var(--orange-pale) 0%, var(--bg-warm) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--orange-glow), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* ---- 页面横幅 (子页面通用) ---- */
.page-banner {
    padding: calc(var(--header-height) + 60px) 0 60px;
    background: linear-gradient(135deg, var(--orange-pale), var(--bg-warm));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--orange-glow), transparent 70%);
    border-radius: 50%;
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    margin-bottom: 16px;
}

.page-banner p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 20px;
}

.breadcrumb a:hover {
    color: var(--orange-deep);
}

/* ---- 通用区块 ---- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-white);
}

/* ---- 特性卡片 ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

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

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

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--orange-pale), var(--orange-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-deep));
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---- 产品卡片 ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-visual {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.product-visual::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.06), transparent);
}

.product-card:nth-child(4n+1) .product-visual { background: linear-gradient(135deg, #FFF1E6, #FFD9B8); }
.product-card:nth-child(4n+2) .product-visual { background: linear-gradient(135deg, #FFE8E0, #FFCCB3); }
.product-card:nth-child(4n+3) .product-visual { background: linear-gradient(135deg, #FFF4E0, #FFE0B8); }
.product-card:nth-child(4n+4) .product-visual { background: linear-gradient(135deg, #FFEDD9, #FFD0A8); }

.product-info {
    padding: 28px 24px;
}

.product-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--orange-pale);
    color: var(--orange-deep);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-info h3 {
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-tags span {
    padding: 4px 12px;
    background: var(--bg-warm);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ---- 统计数字 ---- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-item .stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* ---- 时间线 ---- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--orange-light), var(--orange-pale));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 48px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--orange-primary);
    border: 3px solid var(--bg-warm);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--orange-pale);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    border: 1px solid var(--border-soft);
    transition: all var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--orange-light);
}

.timeline-year {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--orange-deep);
    margin-bottom: 6px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ---- 价值观卡片 ---- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.value-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--orange-primary);
    transition: all var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.value-card .value-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.value-card h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ---- 联系页面 ---- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-deep));
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    color: white;
}

.contact-info-card h3 {
    color: white;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-item .ci-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item .ci-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 2px;
}

.contact-item .ci-value {
    font-size: 1rem;
    font-weight: 500;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition);
}

.contact-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    border: 1px solid var(--border-soft);
}

.contact-form h3 {
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-warm);
    color: var(--text-dark);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange-primary);
    background: white;
    box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 16px;
    text-align: center;
}

/* ---- CTA 区域 ---- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-deep));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: 5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

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

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ---- 页脚 ---- */
.footer {
    background: #1F1B17;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-col ul li a:hover {
    color: var(--orange-light);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.85rem;
}

.footer-bottom a:hover {
    color: var(--orange-light);
}

/* ---- 动画 ---- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-up {
    animation: fadeUp 0.7s ease-out both;
}

.fade-up-delay-1 { animation-delay: 0.15s; }
.fade-up-delay-2 { animation-delay: 0.3s; }
.fade-up-delay-3 { animation-delay: 0.45s; }

.float-anim {
    animation: floatY 3s ease-in-out infinite;
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        box-shadow: var(--shadow-card);
        transform: translateY(-150%);
        transition: transform var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 60px;
        text-align: left;
    }

    .timeline-dot {
        left: 24px;
    }
}

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

    h1 { font-size: 1.9rem; }

    .section {
        padding: 56px 0;
    }

    .hero {
        padding: calc(var(--header-height) + 40px) 0 56px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
}
