/* ====== 品牌色板 ====== */
:root {
    --primary: #ff7a45;
    --primary-dark: #e8622e;
    --primary-light: #fff2e8;
    --secondary: #ffb088;
    --accent: #ffd4b8;
    --bg-light: #fdf6f0;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #e5e5e5;
    --shadow: 0 4px 20px rgba(255, 122, 69, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --max-width: 450px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
}

/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); background: var(--bg-light); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ====== 主容器 ====== */
.app-container { max-width: var(--max-width); margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg-light); }

/* ====== 顶部导航 ====== */
.app-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 0.5px; }
.menu-toggle { background: none; border: none; cursor: pointer; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }

/* 导航覆盖层 */
.nav-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 99; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay .nav-list { position: absolute; top: 0; right: 0; width: 260px; height: 100%; background: #fff; padding: 80px 24px 24px; list-style: none; transform: translateX(100%); transition: transform 0.3s; }
.nav-overlay.open .nav-list { transform: translateX(0); }
.nav-list li { margin-bottom: 8px; }
.nav-list a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 500; color: var(--text-primary); text-decoration: none; transition: background 0.2s; }
.nav-list a:hover, .nav-list a.active { background: var(--primary-light); color: var(--primary); }

/* ====== 主内容区 ====== */
.main-content { padding-bottom: 80px; }

/* ====== Hero 区域 ====== */
.hero-section { position: relative; padding: 60px 20px 48px; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary-light) 0%, #ffe8d6 100%); z-index: 0; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff7a45' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.5; }
.hero-content { position: relative; z-index: 1; }
.hero-logo { width: 160px; height: auto; margin-bottom: 16px; }
.hero-slogan { font-size: 32px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.hero-desc { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; max-width: 320px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ====== 按钮 ====== */
.btn-primary, .btn-secondary, .btn-outline { display: inline-block; padding: 12px 28px; border-radius: 30px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all 0.25s; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(255, 122, 69, 0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 122, 69, 0.45); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 10px 24px; font-size: 14px; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ====== 章节标题 ====== */
.section-title { text-align: center; padding: 32px 16px 16px; }
.section-title h2 { font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.section-title p { font-size: 14px; color: var(--text-muted); }

/* ====== 特色网格 ====== */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.feature-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px 16px; text-align: center; box-shadow: var(--shadow); transition: all 0.3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(255, 122, 69, 0.18); }
.feature-card .icon { width: 48px; height: 48px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); border-radius: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ====== 商品网格 ====== */
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.product-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(255, 122, 69, 0.18); }
.product-card .img-wrap { height: 140px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.product-card .info { padding: 12px 14px 16px; }
.product-card .info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.product-card .info .category { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.product-card .info .desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .info .price-row { display: flex; align-items: center; justify-content: space-between; }
.product-card .info .price { font-size: 18px; font-weight: 700; color: var(--primary); }
.product-card .info .buy-btn { padding: 6px 14px; border-radius: 20px; background: var(--primary); color: #fff; border: none; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.product-card .info .buy-btn:hover { background: var(--primary-dark); }

/* ====== 品牌承诺 ====== */
.promise-section { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 24px 16px; }
.promise-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px 14px; text-align: center; box-shadow: var(--shadow); }
.promise-icon { margin-bottom: 12px; }
.promise-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.promise-card p { font-size: 12px; color: var(--text-secondary); }

/* ====== 数据统计 ====== */
.stats-section { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; padding: 24px 16px 32px; }
.stat-item { text-align: center; background: var(--bg-card); border-radius: var(--radius); padding: 16px 8px; box-shadow: var(--shadow); }
.stat-number { display: block; font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* ====== 页脚 ====== */
.app-footer { background: #1a1a2e; color: #ccc; padding: 32px 16px 24px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-brand { margin-bottom: 20px; }
.footer-logo { width: 120px; height: auto; margin-bottom: 8px; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-desc { font-size: 13px; line-height: 1.6; color: #999; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: #aaa; text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copyright { border-top: 1px solid #333; padding-top: 16px; }
.footer-copyright p { font-size: 12px; color: #777; text-align: center; }

/* ====== 底部导航栏（移动端） ====== */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; max-width: var(--max-width); margin: 0 auto; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); display: flex; z-index: 50; padding-bottom: env(safe-area-inset-bottom, 0); }
.bottom-nav .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px; text-decoration: none; color: var(--text-muted); font-size: 11px; transition: color 0.2s; min-height: 56px; justify-content: flex-end; gap: 2px; }
.bottom-nav .nav-item svg { width: 24px; height: 24px; }
.bottom-nav .nav-item span { font-size: 11px; }
.bottom-nav .nav-item.active { color: var(--primary); }
.bottom-nav .nav-item:active { transform: scale(0.95); }

/* ====== 通用容器 ====== */
.container { padding: 0 16px; }
.text-center { text-align: center; }

/* ====== 页面横幅 ====== */
.page-banner { background: linear-gradient(135deg, var(--primary-light), #ffe8d6); padding: 40px 20px; text-align: center; }
.page-banner h1 { font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.page-banner p { font-size: 14px; color: var(--text-secondary); }

/* ====== 筛选栏 ====== */
.filter-bar { display: flex; gap: 8px; padding: 16px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn { flex-shrink: 0; padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border); background: #fff; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-btn:active { transform: scale(0.96); }

/* ====== 品牌故事页 ====== */
.story-section { padding: 24px 0; }
.story-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.story-card h2 { font-size: 22px; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; }
.story-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.timeline { list-style: none; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 28px; font-size: 14px; color: var(--text-secondary); border-left: 2px solid var(--primary); margin-left: 8px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .year { display: inline-block; background: var(--primary); color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; margin-right: 8px; }

/* ====== 团队网格 ====== */
.team-section { padding: 24px 0; }
.team-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.team-card .avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-light); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary); overflow: hidden; }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.team-card .role { font-size: 12px; color: var(--primary); font-weight: 500; margin-bottom: 6px; }
.team-card p { font-size: 12px; color: var(--text-muted); }

/* ====== 联系页 ====== */
.contact-grid { display: grid; gap: 24px; padding: 24px 0; }
.contact-info { display: grid; gap: 16px; }
.info-item { display: flex; align-items: flex-start; gap: 12px; background: var(--bg-card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.info-item svg { flex-shrink: 0; margin-top: 2px; }
.info-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.info-item p { font-size: 13px; color: var(--text-secondary); }
.contact-form-wrap { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.contact-form-wrap h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.contact-form .form-group { margin-bottom: 12px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; transition: border-color 0.2s; box-sizing: border-box; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { resize: vertical; }
.form-success { text-align: center; padding: 24px; }
.form-success svg { margin-bottom: 12px; }
.form-success p { font-size: 15px; color: var(--text-primary); }

/* ====== 响应式 ====== */
@media (min-width: 768px) {
    .features-grid, .products-grid { grid-template-columns: 1fr 1fr 1fr; }
    .promise-section { grid-template-columns: 1fr 1fr 1fr; }
    .stats-section { grid-template-columns: 1fr 1fr 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .hero-slogan { font-size: 40px; }
}

@media (min-width: 1200px) {
    .app-container { max-width: 800px; }
    .bottom-nav { max-width: 800px; }
}

/* ====== 辅助类 ====== */
@media (max-width: 374px) {
    .features-grid, .products-grid { grid-template-columns: 1fr; }
    .promise-section { grid-template-columns: 1fr; }
    .stats-section { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr; }
}