/* Homepage visual system. Loaded after the original styles to preserve templates. */
:root {
  --bg: #080e1a;
  --bg-card: #101a2a;
  --bg-card2: #142036;
  --bg-nav: rgba(10, 18, 31, .88);
  --text-primary: #f2f5fb;
  --text-secondary: #aebbd0;
  --text-muted: #8192ac;
  --neon-blue: #75b9ff;
  --neon-purple: #8d9cfa;
  --border-subtle: rgba(161, 188, 230, .14);
  --border-medium: rgba(161, 188, 230, .25);
  --card-hover-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}
html.light {
  --bg: #f6f8fc;
  --bg-card: #fff;
  --bg-card2: #eef3fa;
  --bg-nav: rgba(255, 255, 255, .9);
  --text-primary: #172b46;
  --text-secondary: #52647d;
  --text-muted: #657790;
  --neon-blue: #286bd6;
  --neon-purple: #5779c8;
  --border-subtle: rgba(34, 69, 119, .12);
  --border-medium: rgba(34, 69, 119, .24);
}
body { -webkit-font-smoothing: antialiased; }
html { scroll-padding-top: 110px; }
::selection { background: #326ac2; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--neon-blue); outline-offset: 5px;
}
#mainNav {
  top: 20px; left: 4%; right: 4%; max-width: 1320px; margin: 0 auto;
  height: 76px; padding: 0 28px; border: 1px solid var(--border-subtle);
  border-radius: 16px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
}
.logo-cn { font-size: 21px; letter-spacing: 3px; }
.logo-en { font-size: 8px; letter-spacing: 2px; margin-top: 6px; }
.nav-links { gap: 27px; }
.nav-links a { font-size: 13px; letter-spacing: .5px; }
.nav-links .nav-cta, html.light .nav-links .nav-cta {
  background: var(--text-primary); color: var(--bg); border: 0;
  border-radius: 8px; padding: 11px 19px; animation: none; box-shadow: none;
}
.lang-switcher { border-radius: 7px; box-shadow: none; }
#hero {
  min-height: 840px; height: min(980px, 100svh); padding: 190px max(7%, calc((100vw - 1200px) / 2)) 120px;
  align-items: flex-start; text-align: left; justify-content: center; isolation: isolate;
}
#hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 14, 28, .93), rgba(6, 14, 28, .65) 42%, rgba(6, 14, 28, .08) 80%), linear-gradient(0deg, #080e1a, transparent 23%);
}
html.light #hero::before {
  background: linear-gradient(90deg, rgba(241, 246, 253, .96), rgba(241, 246, 253, .76) 42%, rgba(241, 246, 253, .05) 85%), linear-gradient(0deg, #f6f8fc, transparent 23%);
}
.hero-badge, html.light .hero-badge {
  font-family: inherit; font-size: 10px; letter-spacing: 2.1px; padding: 9px 13px;
  color: var(--text-secondary); border-color: var(--border-medium); background: var(--bg-nav); margin-bottom: 30px;
}
.badge-dot { background: #7ddbb7; box-shadow: none; animation: none; }
.hero-title { font-size: clamp(56px, 6.4vw, 88px); line-height: 1.2; letter-spacing: 3px; margin-bottom: 24px; }
.title-line1, html.light .title-line1 { background: none; -webkit-text-fill-color: var(--text-primary); color: var(--text-primary); filter: none; }
.title-line2, html.light .title-line2 {
  background: linear-gradient(110deg, #71baff, #a8bbff); -webkit-background-clip: text; background-clip: text; filter: none;
}
html.light .title-line2 { background-image: linear-gradient(110deg, #2362be, #547abd); }
.glitch::before, .glitch::after { display: none; }
.hero-en, html.light .hero-en { font-family: inherit; font-size: 10px; letter-spacing: 2.7px; color: var(--text-muted); margin-bottom: 24px; }
.hero-tagline, html.light .hero-tagline { font-size: 17px; font-weight: 400; line-height: 1.95; color: var(--text-secondary); margin-bottom: 32px; }
.hero-tagline strong { font-weight: 500; color: var(--text-primary); }
.hero-actions { justify-content: flex-start; gap: 12px; }
.btn-primary, html.light .btn-primary {
  background: #3679e6; border-radius: 9px; box-shadow: 0 8px 25px rgba(31, 90, 180, .2);
  font-family: inherit; font-size: 14px; letter-spacing: .5px; padding: 15px 28px; font-weight: 600;
}
.btn-primary:hover, html.light .btn-primary:hover { background: #2467d2; box-shadow: 0 12px 30px rgba(31, 90, 180, .25); }
.btn-secondary, html.light .btn-secondary { border-radius: 9px; background: var(--bg-nav); border-color: var(--border-medium); color: var(--text-primary); font-family: inherit; font-size: 14px; letter-spacing: .5px; padding: 15px 28px; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 24px 0 0; padding: 0;
  list-style: none; color: var(--text-muted); font-size: 11px; letter-spacing: .5px;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof b { font: inherit; font-weight: 500; }
.hero-proof li > span {
  width: 5px; height: 5px; border-radius: 50%; background: #79d8ff;
  box-shadow: 0 0 0 4px rgba(121, 216, 255, .09);
}
.scroll-hint { left: auto; right: 7%; bottom: 48px; transform: none; align-items: center; }
.hero-location { position: absolute; right: 7%; bottom: 125px; color: var(--text-secondary); font-size: 11px; letter-spacing: 3px; writing-mode: vertical-rl; }
.ticker-wrap { background: var(--bg); border-color: var(--border-subtle); padding: 18px 0; }
.ticker-item { font-family: inherit; font-size: 12px; color: var(--text-muted); letter-spacing: 2px; }
.ticker-sep { color: var(--neon-blue); opacity: .5; }
.stats-bar { background: var(--bg); padding: 44px max(7%, calc((100vw - 1200px) / 2)); border-bottom: 1px solid var(--border-subtle); }
.stat-num { font-size: 34px; filter: none; background: none; -webkit-text-fill-color: var(--text-primary); color: var(--text-primary); }
.stat-label { font-size: 12px; letter-spacing: 2px; margin-top: 10px; }
html:not(.light) :is(#news, #services, #templates, #about, #tech, #contact, footer),
html.light :is(#news, #services, #templates, #about, #tech, #contact, footer) { background: var(--bg) !important; }
section:not(#hero) { padding: 96px max(7%, calc((100vw - 1200px) / 2)); }
.section-header { text-align: left; margin: 0 auto 40px; max-width: 1200px; }
.section-tag, html.light .section-tag { font-family: inherit; font-size: 10px; letter-spacing: 3px; text-shadow: none; color: var(--text-muted); margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: 0; }
.section-icon { display: none; }
.section-title .highlight { background: none; -webkit-text-fill-color: var(--text-primary); }
.divider-line { display: none; }
.section-sub { line-height: 1.9; font-size: 14px; margin-top: 16px; color: var(--text-secondary); }
.services-grid { gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: service; }
.service-card, .news-card, .template-card, html.light .service-card, html.light .news-card, html.light .template-card {
  background: linear-gradient(145deg, color-mix(in srgb, var(--bg-card) 96%, white 4%), var(--bg-card));
  border: 1px solid var(--border-subtle); box-shadow: 0 1px 0 rgba(255,255,255,.025) inset; border-radius: 14px;
}
.service-card { padding: 30px; counter-increment: service; }
.service-card::after { content: '0' counter(service); position: absolute; top: 30px; right: 26px; font-size: 12px; letter-spacing: 2px; color: var(--text-muted); opacity: .6; }
.service-card:hover, html.light .service-card:hover { transform: translateY(-5px); background: var(--bg-card2); box-shadow: var(--card-hover-shadow); border-color: var(--border-medium); }
.service-card, .news-card, .template-card { overflow: hidden; }
.service-card::before, .news-card::before, .template-card::before {
  content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117,185,255,.5), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.service-card:hover::before, .news-card:hover::before, .template-card:hover::before { opacity: 1; }
.service-card :is(.card-scanline, .corner-tl, .corner-tr, .corner-bl, .corner-br) { display: none; }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-card2); font-size: 25px; box-shadow: none; margin-bottom: 25px; }
.service-name { font-size: 19px; letter-spacing: 0; }
.service-desc { font-size: 13px; line-height: 1.95; color: var(--text-secondary); }
.tag { border-radius: 5px; padding: 5px 8px; font-size: 10px; }
.templates-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.template-info { padding: 24px; }
#news { border-bottom: 1px solid var(--border-subtle); }
.news-status { max-width: 1200px; margin: 0 auto; border: 1px dashed var(--border-medium); border-radius: 12px; padding: 28px; background: var(--bg-card); }
.news-card, .template-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.news-card:hover, .template-card:hover {
  transform: translateY(-4px); border-color: var(--border-medium);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
}
.about-inner { gap: 80px; }
.about-title { font-size: 36px; letter-spacing: 0; line-height: 1.5; }
.about-body { line-height: 2; }
.tech-chip, html.light .tech-chip { background: var(--bg-card); border-radius: 12px; border-color: var(--border-subtle); box-shadow: none; }
.cta-card, html.light .cta-card { border-radius: 24px; padding: 72px 48px; border: 1px solid var(--border-medium); background: radial-gradient(ellipse at 50% 0%, rgba(68, 117, 207, .16), transparent 70%), var(--bg-card); box-shadow: none; }
.cta-card::after { display: none; }
.contact-item, html.light .contact-item { background: var(--bg); border: 1px solid var(--border-subtle); border-radius: 12px; }
.contact-item { transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.contact-item:hover { transform: translateY(-2px); border-color: var(--border-medium); background: var(--bg-card2); }
footer { padding: 40px max(7%, calc((100vw - 1200px) / 2)); border-top: 1px solid var(--border-subtle); }
.footer-company { text-shadow: none; }
.theme-toggle, html.light .theme-toggle { background: var(--bg-card); border-color: var(--border-medium); box-shadow: 0 5px 20px rgba(0, 0, 0, .12); width: 44px; height: 44px; }
.visitor-card-toggle { border-radius: 9px; font-size: 10px; opacity: .8; }
.msg-modal { border-radius: 20px; }
.msg-input, .msg-dropdown-btn { border-radius: 8px; }
html[data-lang='en'] .hero-title { font-size: clamp(42px, 5.2vw, 72px); letter-spacing: 0; }
@media (max-width: 1100px) {
  .nav-links { gap: 15px; }
  #mainNav { padding: 0 20px; }
  .services-grid, .templates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  #mainNav { top: 12px; left: 16px; right: 16px; height: 68px; border-radius: 12px; }
  .nav-links { top: 75px; border-radius: 12px; }
  .nav-links a { padding: 16px 24px; }
  #hero { min-height: 780px; padding-top: 155px; }
  .about-inner { gap: 40px; }
  .stats-bar { padding: 32px 6%; }
  .stat-item { padding: 20px 8px; border: 0; }
}
@media (max-width: 600px) {
  #mainNav { padding: 0 14px; }
  .logo-cn { font-size: 18px; }
  .logo-en { font-size: 7px; }
  .nav-logo { gap: 8px; }
  .logo-icon { width: 32px; height: 32px; }
  #hero { min-height: 770px; height: auto; padding: 154px 24px 140px; justify-content: flex-start; }
  #hero::before { background: linear-gradient(90deg, rgba(6,14,28,.91), rgba(6,14,28,.4)), linear-gradient(0deg, #080e1a, transparent 40%); }
  html.light #hero::before { background: linear-gradient(90deg, rgba(241,246,253,.95), rgba(241,246,253,.55)), linear-gradient(0deg, #f6f8fc, transparent 40%); }
  .hero-title { font-size: 56px; margin-bottom: 22px; }
  .hero-badge { font-size: 8px; letter-spacing: 1px; padding: 8px 10px; }
  .hero-en { font-size: 9px; letter-spacing: 1.3px; max-width: 100%; }
  .hero-tagline { font-size: 15px; }
  .hero-actions { flex-direction: row; max-width: none; width: 100%; }
  .hero-actions a { padding: 14px 18px; font-size: 13px; }
  .hero-proof { max-width: 330px; gap: 9px 14px; margin-top: 20px; font-size: 10px; }
  .hero-location { display: none; }
  section:not(#hero) { padding: 64px 20px; }
  .services-grid, .templates-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { padding: 28px; }
  .section-header { margin-bottom: 28px; }
  .section-sub { font-size: 13px; }
  .about-title { font-size: 28px; }
  .cta-card, html.light .cta-card { padding: 44px 20px; border-radius: 18px; }
  .contact-val { overflow-wrap: anywhere; }
  footer { padding: 32px 20px; }
  html[data-lang='en'] .hero-title { font-size: 39px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-inner { animation: none !important; }
  .reveal-up, .reveal-left, .reveal-right, .hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4, .hero-anim-5, .hero-anim-6 { opacity: 1; transform: none; }
}
/* Override legacy high-specificity navigation colors. */
#mainNav .nav-links .nav-cta { color: var(--bg) !important; font-family: inherit !important; font-size: 13px !important; letter-spacing: .5px !important; }
#mainNav .nav-links .nav-cta:hover { background: var(--neon-blue) !important; color: #080e1a !important; box-shadow: none !important; }
.section-header .section-sub { margin-left: 0; margin-right: 0; max-width: 680px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; }
.service-tags { margin-top: auto; padding-top: 20px; }

/* Animated technology rings in the open right half of the hero. */
.hero-orbit {
  position: absolute; width: min(40vw, 520px); aspect-ratio: 1;
  right: max(6%, calc((100vw - 1320px) / 2)); top: 50%;
  transform: translateY(-40%); color: #83b6fb; pointer-events: none;
}
.hero-orbit svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.hero-orbit-halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(88,133,244,.18), rgba(74,134,242,.07) 48%, transparent 70%); box-shadow: 0 0 90px rgba(84,121,255,.05); }
.hero-orbit-guide { opacity: .22; }
.hero-orbit-spin { transform-origin: 250px 250px; animation: heroOrbitSpin 48s linear infinite; }
.hero-orbit-middle { animation-duration: 36s; animation-direction: reverse; opacity: .65; }
.hero-orbit-inner { animation-duration: 24s; }
.hero-orbit-core { pointer-events: none; }
.hero-orbit-core-title { font-family: 'Orbitron', sans-serif; font-size: 40px; font-weight: 600; fill: #d4e8ff; }
.hero-orbit-core-label { font-family: sans-serif; font-size: 8px; letter-spacing: 1px; fill: #9cb8dc; }
.hero-orbit-caption { display: block; text-align: center; font-size: 8px; letter-spacing: 2px; color: var(--text-muted); margin-top: 12px; }
html.light .hero-orbit { color: #477ec0; }
html.light .hero-orbit-core-title { fill: #27569a; }
html.light .hero-orbit-core-label { fill: #526e96; }
html.light .hero-orbit-middle { opacity: .85; }
@keyframes heroOrbitSpin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-orbit { width: 36vw; right: 4%; }
}
@media (max-width: 900px) {
  .hero-orbit { width: 33vw; right: 4%; opacity: .7; }
  .hero-orbit-caption { display: none; }
}
@media (max-width: 600px) {
  #hero { padding-bottom: 52px; }
  .hero-orbit { position: relative; top: auto; right: auto; transform: none; width: min(78vw, 310px); align-self: center; margin-top: 40px; opacity: .9; flex-shrink: 0; }
  #hero .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-orbit-spin { animation: none !important; } }
/* The orbital caption replaces the old vertical decoration. */
#hero .hero-location { display: none; }

/* Bring both hero columns closer to the center on horizontal layouts. */
@media (min-width: 601px) {
  #hero { padding-left: max(10%, calc((100vw - 1120px) / 2)); }
  .hero-orbit { right: max(9%, calc((100vw - 1200px) / 2)); }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .hero-orbit { right: 7%; }
}
