/* 全局重置与暗色模式支持 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bg: #f8f9fa; --text: #222; --card-bg: rgba(255,255,255,0.75); --glass-bg: rgba(255,255,255,0.2); --glass-border: rgba(255,255,255,0.3); --shadow: 0 8px 32px rgba(0,0,0,0.1); --accent: #6c63ff; --accent-hover: #5a52e0; --header-bg: rgba(255,255,255,0.9); --nav-link: #333; --footer-bg: #1a1a2e; --footer-text: #ccc; --border: #e0e0e0; --gradient-start: #6c63ff; --gradient-end: #ff6b9d; }
body.dark { --bg: #121212; --text: #eee; --card-bg: rgba(30,30,30,0.85); --glass-bg: rgba(255,255,255,0.05); --glass-border: rgba(255,255,255,0.1); --shadow: 0 8px 32px rgba(0,0,0,0.5); --header-bg: rgba(18,18,18,0.9); --nav-link: #ccc; --footer-bg: #0a0a1a; --footer-text: #aaa; --border: #333; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; transition: background 0.3s, color 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* 渐变Banner */
.hero { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: #fff; padding: 80px 0; text-align: center; border-radius: 0 0 30px 30px; position: relative; overflow: hidden; }
.hero h1 { font-size: 2.8rem; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.9; }
.hero .btn { display: inline-block; padding: 14px 40px; background: #fff; color: var(--accent); border-radius: 50px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.3s, box-shadow 0.3s; }
.hero .btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
/* 导航 */
header { background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); }
nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 1.6rem; font-weight: 800; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--nav-link); text-decoration: none; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.search-box { display: flex; align-items: center; background: var(--card-bg); border-radius: 30px; padding: 4px 12px; border: 1px solid var(--border); }
.search-box input { border: none; background: transparent; padding: 6px 8px; outline: none; color: var(--text); width: 120px; }
.search-box button { background: none; border: none; cursor: pointer; color: var(--text); }
.theme-toggle, .menu-toggle { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); }
.menu-toggle { display: none; }
/* 卡片与毛玻璃 */
.card { background: var(--card-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--glass-border); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.glass-card { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
/* 网格 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* 通用间距 */
section { padding: 60px 0; }
h2 { font-size: 2rem; margin-bottom: 30px; position: relative; display: inline-block; }
h2::after { content: ''; display: block; width: 60px; height: 4px; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); border-radius: 4px; margin-top: 8px; }
h3 { font-size: 1.4rem; margin-bottom: 16px; }
img { max-width: 100%; height: auto; display: block; border-radius: 16px; }
.lazy { opacity: 0; transition: opacity 0.5s; }
.lazy.loaded { opacity: 1; }
/* 面包屑 */
.breadcrumb { padding: 12px 20px; max-width: 1200px; margin: 0 auto; font-size: 0.9rem; color: #888; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
/* 案例展示 */
.case-item { border-radius: 20px; overflow: hidden; background: var(--card-bg); box-shadow: var(--shadow); }
.case-item img { width: 100%; height: 200px; object-fit: cover; }
.case-item .info { padding: 20px; }
/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; cursor: pointer; }
.faq-question { font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: #666; }
.faq-item.active .faq-answer { max-height: 200px; padding-top: 12px; }
/* 底部 */
footer { background: var(--footer-bg); color: var(--footer-text); padding: 40px 0 20px; }
footer a { color: var(--footer-text); text-decoration: none; }
footer .grid-4 { gap: 30px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 30px; text-align: center; font-size: 0.85rem; }
.qr-code svg { width: 100px; height: 100px; border-radius: 12px; background: #fff; padding: 8px; }
/* 滚动动画 */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
/* 返回顶部 */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--accent); color: #fff; border: none; border-radius: 50%; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: none; align-items: center; justify-content: center; z-index: 999; transition: background 0.3s; }
.back-to-top:hover { background: var(--accent-hover); }
/* 轮播 */
.carousel { position: relative; overflow: hidden; border-radius: 24px; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-slide { min-width: 100%; padding: 40px; text-align: center; background: var(--card-bg); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); color: #fff; border: none; padding: 12px 16px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
/* 响应式 */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--header-bg); backdrop-filter: blur(12px); padding: 20px; border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .search-box input { width: 80px; }
    .hero { padding: 50px 0; }
    .hero p { font-size: 1rem; }
    .card, .glass-card { padding: 20px; }
    h2 { font-size: 1.6rem; }
    .back-to-top { width: 40px; height: 40px; font-size: 1.2rem; bottom: 20px; right: 20px; }
    .qr-code svg { width: 80px; height: 80px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.4rem; }
}