/* ===== 全局重置 & 变量 ===== */
:root {
    --primary: #f97316;
    --primary-dark: #d97706;
    --primary-light: #ffedd5;
    --secondary: #92400e;
    --accent: #f59e0b;
    --bg-light: #fff7ed;
    --bg-white: #ffffff;
    --text-dark: #1c1917;
    --text-medium: #44403c;
    --text-light: #78716c;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

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

/* ===== 导航 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

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

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 1.8rem;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 4px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stats span {
    font-size: 0.95rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-stats strong {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    max-height: 520px;
}

/* ===== Section 通用 ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 18px;
    border-radius: 40px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

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

/* ===== 产品网格 ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: default;
    border: 1px solid rgba(0,0,0,0.04);
}

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

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    background: #fef3c7;
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-card .category {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.product-card .desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

/* ===== 优势 ===== */
.advantages {
    background: var(--bg-white);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.advantage-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

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

.advantage-card i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.advantage-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ===== 流程 ===== */
.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 8px;
}

.step {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    flex: 1 1 180px;
    max-width: 220px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 12px;
}

.step h3 {
    font-weight: 700;
    margin-bottom: 4px;
}

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

.step-arrow {
    font-size: 1.6rem;
    color: var(--primary);
    opacity: 0.5;
}

/* ===== FAQ ===== */
.faq {
    background: var(--bg-white);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.faq-question i {
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-light);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    color: var(--text-medium);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 18px;
}

/* ===== 联系表单 ===== */
.contact {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.contact-form {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e7e5e4;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--bg-light);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

/* ===== 页脚 ===== */
.footer {
    background: #1c1917;
    color: #d6d3d1;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 10px;
}

.footer-brand p {
    margin-bottom: 18px;
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #d6d3d1;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-links a {
    display: block;
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    width: 20px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.9rem;
    color: #78716c;
}

/* ===== 回到顶部 ===== */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

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

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

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto 32px;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image {
        order: -1;
    }
    .hero-image img {
        max-height: 400px;
        width: 80%;
        margin: 0 auto;
    }
    .hero-text h1 {
        font-size: 2.6rem;
    }
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    .step-arrow {
        transform: rotate(90deg);
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        box-shadow: -8px 0 30px rgba(0,0,0,0.1);
        transition: right 0.35s ease;
        z-index: 1000;
    }
    .nav-links.open {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .advantage-grid {
        grid-template-columns: 1fr 1fr;
    }
    .step {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero {
        padding: 100px 0 60px;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-btns .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .hero-stats {
        gap: 16px;
    }
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 24px 20px;
    }
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}