/* 重置与基础 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; line-height: 1.6; color: #1a1a2e; background: #f8f9fa; transition: background 0.3s, color 0.3s; }
body.dark { background: #0f0f1a; color: #e0e0e0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* 玻璃拟态 & 品牌色 */
:root { --primary: #6c63ff; --primary-light: #8b83ff; --primary-dark: #4a42d4; --accent: #ff6f61; --bg-card: rgba(255,255,255,0.7); --bg-glass: rgba(255,255,255,0.15); --shadow: 0 8px 32px rgba(0,0,0,0.08); --radius: 16px; --transition: 0.3s ease; }
body.dark { --bg-card: rgba(30,30,50,0.8); --bg-glass: rgba(255,255,255,0.05); --shadow: 0 8px 32px rgba(0,0,0,0.4); }
/* 通用组件 */
.btn { display: inline-block; padding: 12px 32px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all var(--transition); border: none; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: 0 4px 15px rgba(108,99,255,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(108,99,255,0.4); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 3rem; }
body.dark .section-subtitle { color: #aaa; }
.card { background: var(--bg-card); backdrop-filter: blur(10px); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
/* 导航 */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.05); transition: background 0.3s; }
body.dark header { background: rgba(15,15,26,0.85); border-bottom-color: rgba(255,255,255,0.05); }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; }
.logo { font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; position: relative; padding: 0.3rem 0; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.nav-toggle span { width: 28px; height: 3px; background: var(--primary); border-radius: 2px; transition: all var(--transition); }
/* 移动菜单 */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: inherit; padding: 1rem 2rem; flex-direction: column; gap: 1rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
}
/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; position: relative; overflow: hidden; padding: 6rem 0 4rem; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(108,99,255,0.15) 0%, transparent 60%); animation: heroGlow 8s ease-in-out infinite alternate; }
@keyframes heroGlow { 0% { transform: translate(0,0); } 100% { transform: translate(10%,10%); } }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; opacity: 0.9; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn { font-size: 1.1rem; }
/* 轮播 */
.carousel { position: relative; width: 100%; height: 500px; overflow: hidden; border-radius: var(--radius); }
.carousel-inner { display: flex; transition: transform 0.6s ease; height: 100%; }
.carousel-item { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; font-size: 2rem; font-weight: 700; }
.carousel-controls { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); padding: 0 1rem; }
.carousel-btn { background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); border: none; color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; transition: background var(--transition); }
.carousel-btn:hover { background: rgba(255,255,255,0.4); }
.carousel-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background var(--transition); }
.carousel-dot.active { background: #fff; }
/* 数字动画 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin: 3rem 0; }
.stat-item { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: #666; margin-top: 0.5rem; }
body.dark .stat-label { color: #aaa; }
/* 通用section */
section { padding: 5rem 0; }
/* 品牌故事等 */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .brand-grid { grid-template-columns: 1fr; } }
/* 产品卡片网格 */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
/* FAQ */
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); padding: 1rem 0; }
body.dark .faq-item { border-bottom-color: rgba(255,255,255,0.1); }
.faq-question { display: flex; justify-content: space-between; cursor: pointer; font-weight: 600; padding: 0.5rem 0; }
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding-left: 1rem; color: #555; }
body.dark .faq-answer { color: #bbb; }
.faq-item.open .faq-answer { max-height: 300px; padding-top: 0.5rem; }
/* 如何做 */
.howto-steps { counter-reset: step; }
.howto-step { display: flex; gap: 1.5rem; margin-bottom: 2rem; align-items: flex-start; }
.howto-step::before { counter-increment: step; content: counter(step); background: var(--primary); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
/* 文章卡片 */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.article-card .article-meta { font-size: 0.85rem; color: #888; margin: 0.5rem 0; }
.article-card h3 { margin: 0.5rem 0; }
/* 页脚 */
footer { background: #1a1a2e; color: #ccc; padding: 3rem 0; }
footer a { color: #aaa; }
footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 2rem; text-align: center; font-size: 0.9rem; }
/* 返回顶部 */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all var(--transition); z-index: 999; border: none; font-size: 1.5rem; }
.back-to-top.show { opacity: 1; visibility: visible; }
/* 暗黑模式切换 */
.theme-toggle { position: fixed; bottom: 2rem; left: 2rem; width: 50px; height: 50px; border-radius: 50%; background: var(--bg-card); backdrop-filter: blur(10px); border: 1px solid rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 999; font-size: 1.5rem; transition: background 0.3s; }
body.dark .theme-toggle { border-color: rgba(255,255,255,0.2); }
/* 搜索模拟 */
.search-box { display: flex; max-width: 500px; margin: 2rem auto; }
.search-box input { flex: 1; padding: 12px 20px; border: 2px solid #ddd; border-radius: 50px 0 0 50px; outline: none; font-size: 1rem; background: var(--bg-card); }
body.dark .search-box input { border-color: #444; }
.search-box button { padding: 12px 24px; border: none; background: var(--primary); color: #fff; border-radius: 0 50px 50px 0; cursor: pointer; font-weight: 600; }
/* 滚动动画 */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
/* EEAT */
.eeat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.eeat-item { background: var(--bg-card); backdrop-filter: blur(10px); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
/* 合作伙伴logo */
.partner-logos { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; align-items: center; }
.partner-logos svg { width: 120px; height: 60px; opacity: 0.6; transition: opacity var(--transition); }
.partner-logos svg:hover { opacity: 1; }
/* 响应式 */
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
}