/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #0a1628;
    --accent: #00d4ff;
    --accent2: #7b61ff;
    --bg-dark: #0d1f3c;
    --bg-card: #111e36;
    --text: #e0e8f0;
    --text-dim: #8a9bb5;
    --border: rgba(0,212,255,0.15);
    --glow: rgba(0,212,255,0.3);
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--primary); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color .3s; }
a:hover { color: #fff; }

/* ===== NAV ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10,22,40,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: background .3s; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: #fff; }
.logo img { height: 36px; }
.logo span { font-family: '等线', DengXian, sans-serif; font-style: italic; }
.logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: #fff; }
.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a { padding: 8px 16px; border-radius: 8px; color: var(--text-dim); font-size: 14px; font-weight: 500; transition: all .3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(0,212,255,0.1); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ===== HERO / CAROUSEL ===== */
.hero { margin-top: 64px; position: relative; height: 560px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide:nth-child(1) .slide-bg { background: linear-gradient(135deg, #0a1628 0%, #0d3b66 40%, #00d4ff 100%); }
.slide:nth-child(2) .slide-bg { background: linear-gradient(135deg, #0a1628 0%, #1a0a3e 40%, #7b61ff 100%); }
.slide:nth-child(3) .slide-bg { background: linear-gradient(135deg, #0a1628 0%, #0a3d2e 40%, #00e68a 100%); }
.slide-content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 24px; }
.slide-content h1 { font-size: 48px; font-weight: 800; margin-bottom: 16px; background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.slide-content p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.btn-primary { display: inline-block; padding: 14px 36px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-radius: 12px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: transform .3s, box-shadow .3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow); color: #fff; }
.dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all .3s; }
.dot.active { background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .3s; }
.carousel-nav:hover { background: rgba(0,212,255,0.2); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* particles */
.particles { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.particle { position: absolute; width: 4px; height: 4px; background: rgba(0,212,255,0.4); border-radius: 50%; animation: float linear infinite; }
@keyframes float { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-10vh) scale(1); opacity: 0; } }

/* ===== SECTIONS ===== */
section { padding: 100px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label { display: inline-block; padding: 6px 16px; background: rgba(0,212,255,0.08); border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: 1px; margin-bottom: 16px; }
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--text-dim); max-width: 600px; margin: 0 auto 60px; text-align: center; }

/* ===== PAGE HERO ===== */
.page-hero { margin-top: 64px; padding: 80px 24px; text-align: center; background: linear-gradient(135deg, var(--bg-dark), var(--primary)); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--text-dim); font-size: 16px; }

/* ===== WHY US ===== */
.why-section { background: var(--bg-dark); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.why-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; transition: all .4s; position: relative; overflow: hidden; }
.why-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: 0; transition: opacity .4s; }
.why-card:hover::before { opacity: 1; }
.why-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; background: rgba(0,212,255,0.08); }
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-dim); line-height: 1.8; }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; padding: 40px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; }
.stat-num { font-size: 42px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 14px; color: var(--text-dim); margin-top: 8px; }

/* ===== PRODUCTS (HOME GRID) ===== */
.products-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card-home { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all .4s; cursor: pointer; display: block; color: var(--text); }
.product-card-home:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.product-img { height: 180px; overflow: hidden; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 20px; }
.product-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.product-info p { font-size: 13px; color: var(--text-dim); }

/* ===== PRODUCTS (DETAIL PAGE) ===== */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card { display: flex; gap: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all .4s; }
.product-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.product-visual { width: 200px; flex-shrink: 0; overflow: hidden; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-detail { padding: 28px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.product-detail h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.product-detail p { font-size: 14px; color: var(--text-dim); line-height: 1.8; margin-bottom: 12px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product-tag { padding: 4px 10px; background: rgba(0,212,255,0.06); border: 1px solid var(--border); border-radius: 6px; font-size: 12px; color: var(--accent); }

/* ===== PLATFORM ===== */
.platform-section { background: var(--bg-dark); text-align: center; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.platform-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; text-align: center; transition: .3s; }
.platform-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.platform-icon { font-size: 40px; margin-bottom: 16px; }
.platform-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.platform-card p { font-size: 14px; color: var(--text-dim); }

/* ===== CASES (HOME) ===== */
.cases-section { background: var(--bg-dark); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all .4s; }
.case-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.case-img { height: 200px; position: relative; overflow: hidden; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-tag-home { position: absolute; top: 12px; left: 12px; padding: 4px 12px; background: rgba(0,212,255,0.15); border: 1px solid rgba(0,212,255,0.3); border-radius: 6px; font-size: 12px; color: var(--accent); z-index: 2; }
.case-info { padding: 24px; }
.case-info h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.case-info p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* ===== CASES (DETAIL PAGE) ===== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.filter-btn { padding: 8px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text-dim); font-size: 14px; cursor: pointer; transition: all .3s; }
.filter-btn:hover, .filter-btn.active { background: rgba(0,212,255,0.1); border-color: var(--accent); color: var(--accent); }
.case-visual { height: 200px; position: relative; overflow: hidden; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; }
.case-visual img { width: 100%; height: 100%; object-fit: cover; }
.case-tag { display: inline-block; margin-bottom: 10px; padding: 4px 12px; background: rgba(0,212,255,0.15); border: 1px solid rgba(0,212,255,0.3); border-radius: 6px; font-size: 12px; color: var(--accent); }
.case-info .client { font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.case-features { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.case-features span { padding: 3px 10px; background: rgba(123,97,255,0.08); border: 1px solid rgba(123,97,255,0.2); border-radius: 4px; font-size: 11px; color: var(--accent2); }

/* ===== CLIENTS ===== */
.clients-section { background: var(--bg-dark); text-align: center; }
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.client-item { padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; font-size: 15px; font-weight: 600; transition: .3s; }
.client-item:hover { border-color: var(--accent); }

/* ===== NEWS (HOME) ===== */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.news-card { display: flex; gap: 20px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; transition: all .3s; }
.news-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.news-date { flex-shrink: 0; width: 60px; text-align: center; }
.news-date .day { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; }
.news-date .ym { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.news-text h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.5; }
.news-text p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* ===== NEWS (DETAIL PAGE) ===== */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-card-full { display: flex; gap: 24px; padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; transition: all .3s; }
.news-card-full:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.news-date-full { flex-shrink: 0; width: 72px; text-align: center; padding: 12px; background: rgba(0,212,255,0.06); border: 1px solid var(--border); border-radius: 12px; }
.news-date-full .day { font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1; }
.news-date-full .ym { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.news-body { flex: 1; }
.news-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.news-body p { font-size: 14px; color: var(--text-dim); line-height: 1.8; }
.news-meta { display: flex; gap: 16px; margin-top: 12px; }
.news-meta span { font-size: 12px; color: var(--text-dim); }
.news-tag { padding: 3px 10px; background: rgba(0,212,255,0.08); border: 1px solid var(--border); border-radius: 4px; font-size: 11px; color: var(--accent); }

/* news detail page */
.news-detail { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 48px; }
.news-detail h1 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.news-detail-meta { display: flex; gap: 16px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.news-detail-meta span { font-size: 14px; color: var(--text-dim); }
.news-detail-content { font-size: 15px; line-height: 2; }
.news-detail-content p { margin-bottom: 16px; }

/* ===== HOT NEWS ===== */
.hot-section { background: var(--bg-dark); }
.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.hot-card { padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; transition: .3s; }
.hot-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.hot-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.5; }
.hot-card p { font-size: 13px; color: var(--text-dim); }

/* ===== ABOUT ===== */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.about-text p { color: var(--text-dim); margin-bottom: 16px; font-size: 15px; }
.about-visual { display: flex; align-items: center; justify-content: center; }
.visual-box { width: 100%; max-width: 400px; aspect-ratio: 1; background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(123,97,255,0.1)); border: 1px solid var(--border); border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.visual-box .big-num { font-size: 64px; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.visual-box .label { font-size: 16px; color: var(--text-dim); margin-top: 8px; }

/* values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.value-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; text-align: center; transition: .3s; }
.value-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.value-icon { font-size: 36px; margin-bottom: 16px; }
.value-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--text-dim); }

/* timeline */
.timeline { position: relative; max-width: 800px; margin: 60px auto 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.tl-item { display: flex; margin-bottom: 40px; position: relative; }
.tl-item:nth-child(odd) { flex-direction: row-reverse; text-align: right; }
.tl-content { width: 45%; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.tl-dot { position: absolute; left: 50%; top: 24px; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 12px var(--glow); }
.tl-year { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.tl-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tl-content p { font-size: 13px; color: var(--text-dim); }

/* contact */
.contact-section { background: var(--bg-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(0,212,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--text-dim); }
.map-placeholder { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; height: 300px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 14px; }

/* recruit */
.recruit-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; margin-top: 60px; }
.recruit-section h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.recruit-section p { color: var(--text-dim); font-size: 15px; line-height: 1.9; }

/* ===== FOOTER ===== */
footer { border-top: 1px solid var(--border); padding: 60px 24px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 12px; line-height: 1.8; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: #fff; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 13px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span.current { padding: 8px 14px; border-radius: 8px; font-size: 14px; border: 1px solid var(--border); }
.pagination a { color: var(--text-dim); background: var(--bg-card); }
.pagination a:hover { color: var(--accent); border-color: var(--accent); }
.pagination span.current { color: #fff; background: rgba(0,212,255,0.15); border-color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10,22,40,0.98); padding: 16px; border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .menu-toggle { display: block; }
    .hero { height: 440px; }
    .slide-content h1 { font-size: 30px; }
    .why-grid, .products-grid-4, .cases-grid, .products-grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-intro, .contact-grid { grid-template-columns: 1fr; }
    .values { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .tl-item, .tl-item:nth-child(odd) { flex-direction: row; text-align: left; }
    .tl-content { width: calc(100% - 50px); margin-left: 50px; }
    .tl-dot { left: 20px; }
    .news-card-full { flex-direction: column; }
    .hot-grid { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: 1fr 1fr; }
    .product-visual { width: 140px; }
    .platform-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .why-grid, .products-grid-4, .cases-grid, .stats, .products-grid, .clients-grid { grid-template-columns: 1fr; }
    .slide-content h1 { font-size: 24px; }
    .hero { height: 400px; }
    .footer-grid { grid-template-columns: 1fr; }
}
