/* ===== 品牌色板 ===== */
:root {
    --primary: #f97316;
    --primary-dark: #d97706;
    --primary-light: #fb923c;
    --secondary: #fef3c7;
    --secondary-dark: #fde68a;
    --accent: #eab308;
    --text-dark: #333333;
    --text-mid: #666666;
    --text-light: #999999;
    --border: #e5e5e5;
    --bg-light: #fdf8f0;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(249, 115, 22, 0.1);
    --shadow-hover: 0 8px 40px rgba(249, 115, 22, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--bg-light);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-sub {
    font-size: 16px;
    color: var(--text-mid);
    text-align: center;
    margin-bottom: 40px;
}

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

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

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

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

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

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

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

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

.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: 8px;
}

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

/* ===== Hero区 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-light) 50%, var(--secondary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 200px;
    margin: 0 auto 24px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-mid);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

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

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

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

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

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

/* ===== 特色卡片 ===== */
.features-grid,
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card,
.support-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.feature-icon,
.support-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3,
.support-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p,
.support-card p {
    font-size: 14px;
    color: var(--text-mid);
}

/* ===== 产品卡片 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.product-img {
    height: 200px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.product-body {
    padding: 20px;
}

.product-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-body p {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 12px;
}

.product-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== 数据统计 ===== */
.stats {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--bg-light), var(--secondary));
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-mid);
    margin-bottom: 32px;
}

/* ===== 页脚 ===== */
.footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

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

.footer-logo {
    height: 36px;
    margin-bottom: 16px;
}

.footer-logo-link {
    display: inline-block;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.6);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: rgba(255,255,255,0.6);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links li,
.footer-contact li,
.footer-hours li {
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-links a {
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ===== 页面Hero ===== */
.page-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--secondary), var(--bg-light));
    text-align: center;
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.page-hero p {
    font-size: 18px;
    color: var(--text-mid);
}

/* ===== 关于页 ===== */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.story-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.story-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.story-text p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mv-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.mv-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary);
}

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

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}

.team-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-card .role {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.team-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* 时间轴 */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
}

.timeline-item {
    position: relative;
    padding: 16px 0 16px 32px;
    margin-bottom: 16px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-item .year {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-item .event {
    font-size: 15px;
    color: var(--text-mid);
}

/* ===== 联系页 ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

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

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 14px;
    color: var(--text-mid);
}

.contact-social {
    margin-top: 32px;
}

.contact-social h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--secondary);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

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

.contact-form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

.form-success {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-success span {
    font-size: 48px;
    color: #10b981;
    display: block;
    margin-bottom: 16px;
}

.form-success p {
    font-size: 16px;
    color: var(--text-mid);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ===== 加盟页 ===== */
.franchise-intro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.franchise-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.franchise-card.highlight {
    border: 2px solid var(--primary);
    position: relative;
}

.franchise-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.franchise-card .price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
}

.franchise-card .price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
}

.franchise-card ul {
    text-align: left;
    margin-bottom: 24px;
    padding: 0 16px;
}

.franchise-card ul li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-mid);
    position: relative;
    padding-left: 20px;
}

.franchise-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr 1fr;
    }
    
    .franchise-intro {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-story {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-sub {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .franchise-intro {
        grid-template-columns: 1fr;
    }
    
    .page-hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-logo {
        width: 160px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .features-grid,
    .products-grid,
    .support-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .contact-form {
        padding: 20px;
    }
}