/*
Theme Name: 科技风企业官网 (Tech Portal)
Description: 深色科技风格企业/行业解决方案 Typecho 主题，含首页轮播、核心能力、产品服务、行业方案、关于我们、合作伙伴、新闻资讯等模块。
Author: Claude
Version: 1.0.0
*/

:root {
  --bg-0: #05081a;
  --bg-1: #0a0e27;
  --bg-2: #0f1540;
  --bg-3: #141b52;
  --surface: rgba(20, 28, 70, 0.55);
  --surface-line: rgba(0, 212, 255, 0.18);
  --text: #e6ecff;
  --text-dim: #9aa7d6;
  --text-mute: #6b78a8;
  --brand: #7c4dff;
  --brand-2: #ff4081;
  --cyan: #00d4ff;
  --cyan-2: #00a8ff;
  --blue: #0066ff;
  --violet: #7c4dff;
  --grad-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
  --grad-accent: linear-gradient(135deg, #ff4081 0%, #7c4dff 100%);
  --grad-text: linear-gradient(90deg, #00d4ff 0%, #7c4dff 60%, #ff4081 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 40px rgba(0, 102, 255, .15), 0 1px 0 rgba(255,255,255,.04) inset;
  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC","Microsoft YaHei","Source Han Sans SC","Noto Sans SC","Inter",system-ui,-apple-system,sans-serif;
  font-size: 16px; line-height: 1.7; color: var(--text);
  background: var(--bg-0); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: .3px; }
p { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.sr-only { position:absolute; width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap; }

.site-grid-bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(0,102,255,.35), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(124,77,255,.25), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(227,0,17,.12), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(5,8,26,.65);
  border-bottom: 1px solid rgba(0,212,255,.12);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; height:76px; }
.site-brand { display:inline-flex; align-items:center; gap:12px; }
.brand-logo { height: 36px; width:auto; }
.brand-text { font-size: 18px; font-weight:700; letter-spacing: 1px; }
.site-nav .nav-menu { display:flex; gap: 32px; }
.site-nav a { font-size:15px; color: var(--text-dim); position:relative; padding: 8px 0; transition: color .2s var(--ease); }
.site-nav a:hover, .site-nav a.current { color: var(--cyan); }
.header-actions { display:flex; align-items:center; gap:12px; }
.nav-toggle { display:none; flex-direction:column; gap:5px; padding:8px; }
.nav-toggle span { width:24px; height:2px; background: var(--cyan); border-radius:2px; }

.btn { display:inline-flex; align-items:center; justify-content:center; padding:12px 24px; border-radius:999px; font-weight:600; letter-spacing:.5px; white-space:nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-lg { padding:16px 34px; font-size:15px; }
.btn-primary { background: var(--grad-primary); color:#fff; box-shadow: 0 10px 30px rgba(0,102,255,.35); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border:1px solid rgba(0,212,255,.35); color: var(--cyan); background: rgba(0,212,255,.05); }

/* ===== Hero Carousel ===== */
.hero-carousel { position:relative; min-height: 760px; overflow:hidden; isolation:isolate; }
.hero-track { position:relative; width:100%; min-height:760px; }
.hero-slide { position:absolute; inset:0; display:flex; align-items:center; background-size:cover; background-position:center; opacity:0; transform:scale(1.04); pointer-events:none; margin:0; transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.hero-slide.is-active { opacity:1; transform:scale(1); pointer-events:auto; z-index:1; }
.hero-overlay { position:absolute; inset:0; background:
    radial-gradient(800px 400px at 20% 40%, rgba(0,102,255,.45), transparent 60%),
    linear-gradient(180deg, rgba(5,8,26,.55) 0%, rgba(5,8,26,.85) 60%, var(--bg-0) 100%); }
.hero-inner { position:relative; z-index:3; padding:120px 32px 180px; max-width: var(--container); width:100%; margin:0 auto; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:10px; padding:8px 16px; border:1px solid rgba(0,212,255,.3); border-radius:999px; background: rgba(0,212,255,.06); color: var(--cyan); font-size:12px; letter-spacing:3px; margin-bottom:28px; }
.hero-eyebrow .dot { width:8px; height:8px; border-radius:50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero-title { font-size: clamp(32px, 5vw, 64px); line-height:1.2; margin-bottom:24px; }
.hero-title .accent { color: var(--cyan); }
.gradient-text { background: var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-desc { max-width:680px; font-size:18px; color: var(--text-dim); margin-bottom:40px; }
.hero-actions { display:flex; gap:16px; flex-wrap:wrap; }

.hero-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:5; width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); color:#fff; }
.hero-arrow svg { width:20px; height:20px; }
.hero-prev { left:24px; } .hero-next { right:24px; }
.hero-pagination { position:absolute; bottom:120px; left:0; right:0; display:flex; justify-content:center; gap:10px; z-index:5; }
.hero-dot { display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:6px 10px; color: var(--text-mute); }
.hero-dot.is-active { color:#fff; }
.dot-num { font-size:12px; }
.dot-bar { width:40px; height:2px; background: rgba(255,255,255,.2); position:relative; overflow:hidden; }
.dot-fill { position:absolute; inset:0; background: var(--cyan); width:0; }
.hero-dot.is-active .dot-fill { width:100%; transition: width 5s linear; }

.hero-stats-bar { position:absolute; left:0; right:0; bottom:0; z-index:4; padding: 28px 32px; border-top:1px solid rgba(255,255,255,.08); background: rgba(5,8,26,.55); }
.hero-stats { display:flex; gap:48px; flex-wrap:wrap; }
.hero-stats li { display:flex; flex-direction:column; }
.hero-stats strong { font-size:28px; color:#fff; }
.hero-stats sup { font-size:14px; color: var(--cyan); }
.hero-stats span { font-size:13px; color: var(--text-mute); }

/* ===== Sections common ===== */
.section { padding: 96px 0; }
.section-head { text-align:center; max-width:760px; margin:0 auto 56px; }
.section-eyebrow { font-size:12px; letter-spacing:3px; color: var(--cyan); margin-bottom:12px; }
.section-title { font-size: clamp(24px, 3vw, 36px); margin-bottom:16px; }
.section-sub { color: var(--text-dim); font-size:15px; }
.section-head-row { display:flex; align-items:flex-end; justify-content:space-between; text-align:left; max-width:none; }
.more-link { color: var(--cyan); font-size:14px; white-space:nowrap; }

/* Core capabilities */
.cap-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:24px; }
.cap-card { background: var(--surface); border:1px solid var(--surface-line); border-radius: var(--radius-lg); padding:32px 24px; box-shadow: var(--shadow-card); transition: transform .25s var(--ease); }
.cap-card:hover { transform: translateY(-6px); }
.cap-icon { width:52px; height:52px; border-radius:14px; background: var(--grad-primary); display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.cap-icon svg { width:26px; height:26px; color:#fff; }
.cap-card h3 { font-size:18px; margin-bottom:8px; }
.cap-card p { color: var(--text-dim); font-size:14px; margin-bottom:16px; }
.cap-link { color: var(--cyan); font-size:13px; }

/* Products */
.products-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:24px; }
.product-card { display:grid; grid-template-columns: 1fr 1fr; background: var(--surface); border:1px solid var(--surface-line); border-radius: var(--radius-lg); overflow:hidden; }
.product-media { min-height: 220px; }
.product-media img { width:100%; height:100%; object-fit:cover; }
.product-body { padding: 28px; display:flex; flex-direction:column; justify-content:center; gap:10px; }
.product-body h3 { font-size:20px; }
.product-body p { color: var(--text-dim); font-size:14px; }

/* Industry solutions */
.industry-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:24px; }
.industry-card { background: var(--surface); border:1px solid var(--surface-line); border-radius: var(--radius-lg); overflow:hidden; transition: transform .25s var(--ease); }
.industry-card:hover { transform: translateY(-6px); }
.industry-pic { position:relative; height:200px; }
.industry-pic img { width:100%; height:100%; object-fit:cover; }
.industry-pic-mask { position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(5,8,26,.9)); }
.industry-icon { position:absolute; left:20px; bottom:-20px; width:44px; height:44px; border-radius:12px; background: var(--grad-primary); display:flex; align-items:center; justify-content:center; box-shadow: 0 8px 20px rgba(0,102,255,.4); }
.industry-icon img { width:22px; height:22px; }
.industry-body { padding: 32px 24px 24px; }
.industry-title { font-size:20px; margin-bottom:6px; }
.industry-tagline { color: var(--cyan); font-size:14px; margin-bottom:12px; }
.industry-describe { color: var(--text-dim); font-size:14px; margin-bottom:16px; }
.scenario-chips { display:flex; flex-wrap:wrap; gap:8px 14px; margin-bottom:20px; }
.scenario-chips li { display:flex; align-items:center; gap:6px; font-size:13px; color: var(--text-dim); }
.chip-dot { width:6px; height:6px; border-radius:50%; background: var(--cyan); }
.industry-more { color: var(--cyan); font-size:13px; }

/* About */
.about-grid { display:grid; grid-template-columns: 380px 1fr; gap:24px; margin-bottom:64px; }
.about-mission { background: linear-gradient(160deg, rgba(0,102,255,.18), rgba(124,77,255,.1)); border:1px solid var(--surface-line); border-radius: var(--radius-lg); padding:36px; }
.about-mission h3 { font-size:20px; margin-bottom:16px; }
.mission-text { font-size:22px; font-weight:700; margin-bottom:24px; }
.mission-text span { display:block; font-size:14px; font-weight:400; color: var(--text-dim); margin-top:8px; }
.mission-points li { display:flex; gap:10px; font-size:13px; color: var(--text-dim); margin-bottom:14px; }
.point-ico { color: var(--brand-2); }
.about-counters { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; }
.counter-card { background: var(--surface); border:1px solid var(--surface-line); border-radius: var(--radius-md); padding:24px; }
.counter-value { display:flex; align-items:baseline; gap:2px; }
.counter-num { font-size:32px; font-weight:800; background: var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.counter-suffix { font-size:18px; color: var(--brand-2); }
.counter-label { color: var(--text-dim); font-size:13px; margin-top:6px; }

.about-timeline-head { text-align:center; margin-bottom:48px; }
.timeline-title { font-size: clamp(22px,2.6vw,30px); margin-top:8px; }
.timeline { position:relative; display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 20px; }
.timeline::before { content:""; position:absolute; top:6px; left:0; right:0; height:1px; background: rgba(0,212,255,.2); }
.timeline-item { position:relative; padding-top: 30px; }
.timeline-item:nth-child(even) { margin-top: 220px; }
.tl-dot { position:absolute; top:0; left:0; width:12px; height:12px; border-radius:50%; background: var(--brand-2); box-shadow: 0 0 12px var(--brand-2); }
.tl-year { color: var(--brand-2); font-size:22px; font-weight:800; margin-bottom:10px; }
.tl-body { background: var(--surface); border:1px solid var(--surface-line); border-radius: var(--radius-md); padding:20px; }
.tl-body h4 { font-size:15px; margin-bottom:8px; }
.tl-body p { color: var(--text-dim); font-size:13px; }

/* Partners marquee */
.section-partners .section-head { margin-bottom: 40px; }
.partners-marquee { display:flex; flex-direction:column; gap:20px; }
.marquee-row { overflow:hidden; }
.marquee-track { display:flex; gap:20px; width:max-content; animation: marquee-left 40s linear infinite; }
.marquee-row[data-dir="right"] .marquee-track { animation-name: marquee-right; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.logo-box { flex: 0 0 auto; width:200px; height:88px; background:#fff; border-radius: var(--radius-sm); display:flex; align-items:center; justify-content:center; padding: 16px 24px; font-weight:700; color:#222; letter-spacing:.5px; text-align:center; }

/* News */
.news-slider-wrap { position:relative; padding: 0 32px; }
.news-track { max-width: var(--container); margin:0 auto; display:grid; grid-auto-flow:column; grid-auto-columns: calc(25% - 18px); gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom: 8px; scrollbar-width:none; }
.news-track::-webkit-scrollbar { display:none; }
.news-card { scroll-snap-align:start; }
.news-link { display:block; background: var(--surface); border:1px solid var(--surface-line); border-radius: var(--radius-md); overflow:hidden; height:100%; transition: transform .25s var(--ease); }
.news-link:hover { transform: translateY(-6px); }
.news-pic { position:relative; aspect-ratio: 16/10; }
.news-pic img { width:100%; height:100%; object-fit:cover; }
.news-pic-mask { position:absolute; inset:0; background: linear-gradient(180deg, transparent 60%, rgba(5,8,26,.7)); }
.news-body { padding:18px; }
.news-title { font-size:15px; line-height:1.5; height:3.2em; overflow:hidden; margin-bottom:14px; }
.news-meta { display:flex; align-items:center; justify-content:space-between; }
.news-date .day { font-size:20px; font-weight:800; color: var(--cyan); }
.news-date .month-year { font-size:12px; color: var(--text-mute); margin-left:4px; }
.news-arrow-btn { position:absolute; top:40%; width:44px; height:44px; border-radius:50%; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; z-index:5; }
.news-arrow-btn svg { width:18px; height:18px; }
.news-prev { left: 0; } .news-next { right: 0; }

/* CTA */
.section-cta { position:relative; padding: 90px 0; text-align:center; background: linear-gradient(135deg, rgba(0,102,255,.18), rgba(124,77,255,.14)); overflow:hidden; }
.cta-inner h2 { font-size: clamp(24px,3vw,34px); margin-bottom:14px; }
.cta-inner p { color: var(--text-dim); margin-bottom: 28px; }

/* Footer */
.site-footer { position:relative; background-size: cover; background-position:center; padding-top: 72px; }
.footer-overlay { position:absolute; inset:0; background: rgba(5,8,26,.92); }
.footer-inner { position:relative; z-index:2; display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { height:32px; margin-bottom:16px; }
.footer-slogan { color: var(--text-dim); margin-bottom:16px; }
.footer-contact { font-size:14px; color: var(--text-dim); line-height:2; }
.footer-col h4 { font-size:15px; margin-bottom:18px; }
.footer-menu li { margin-bottom:10px; }
.footer-menu a { color: var(--text-dim); font-size:14px; }
.footer-menu a:hover { color: var(--cyan); }
.qr-list { display:flex; gap:16px; flex-wrap:wrap; }
.qr-list figure { text-align:center; }
.qr-list img { width:72px; height:72px; border-radius:8px; background:#fff; padding:4px; }
.qr-list figcaption { font-size:12px; color: var(--text-mute); margin-top:6px; }
.footer-copyright { position:relative; z-index:2; border-top:1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-copyright .container { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:13px; color: var(--text-mute); }

/* Cookie banner */
.dcai-cookie { position:fixed; left:20px; right:20px; bottom:20px; z-index:100; background: rgba(10,14,39,.96); border:1px solid var(--surface-line); border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.dcai-cookie__inner { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:20px 24px; flex-wrap:wrap; }
.dcai-cookie__text { max-width: 640px; font-size:13px; color: var(--text-dim); }
.dcai-cookie__text strong { display:block; color:#fff; margin-bottom:4px; }
.dcai-cookie__text a { color: var(--cyan); text-decoration:underline; }
.dcai-cookie__actions { display:flex; gap:10px; }

/* Placeholder image tint (used when no custom image supplied) */
.ph-fallback { background: linear-gradient(135deg, rgba(0,102,255,.35), rgba(124,77,255,.35)); display:flex; align-items:center; justify-content:center; color: rgba(255,255,255,.6); font-size:13px; }

/* Responsive */
@media (max-width: 1024px) {
  .cap-grid, .products-grid, .industry-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2,1fr); }
  .timeline-item:nth-child(even) { margin-top: 0; }
  .news-track { grid-auto-columns: calc(50% - 12px); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .site-nav { display:none; }
  .nav-toggle { display:flex; }
  .hero-carousel, .hero-track { min-height: 560px; }
  .hero-inner { padding: 80px 20px 200px; }
  .cap-grid, .products-grid, .industry-grid, .about-counters, .timeline { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .news-track { grid-auto-columns: 85%; }
  .section-head-row { flex-direction:column; align-items:flex-start; gap:12px; }
}

/* Mobile nav dropdown */
.site-nav.is-open { display:block; position:absolute; top:76px; left:0; right:0; background: rgba(5,8,26,.98); padding: 16px 20px; border-bottom:1px solid var(--surface-line); }
.site-nav.is-open .nav-menu { flex-direction:column; gap: 4px; }
.site-nav.is-open a { display:block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
