@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --night: #0B0F19;
  --night-2: #111827;
  --indigo: #6366F1;
  --mystic: #A855F7;
  --moon: #22D3EE;
  --text: #E2E8F0;
  --muted: #94A3B8;
  --card: rgba(30, 41, 59, 0.6);
  --border: rgba(99, 102, 241, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--night);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Ma Shan Zheng', cursive; margin: 0 0 .5em; line-height: 1.2; }
a { color: inherit; text-decoration: none; }

.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.section { padding: 4rem 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; text-align: center; margin-bottom: .25em; }
.section-title span { color: var(--moon); }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 9999px;
  font-weight: 700; transition: all .25s ease; cursor: pointer; border: 0;
}
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--mystic)); color: #fff; box-shadow: 0 8px 24px rgba(99,102,241,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(168,85,247,.45); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--moon); }
.btn-outline:hover { background: rgba(34,211,238,.1); border-color: var(--moon); }
.glass-card { background: var(--card); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 1rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; background: rgba(11,15,25,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-family: 'Ma Shan Zheng', cursive; font-size: 1.4rem; color: #fff; line-height: 1; }
.brand-sub { font-size: .7rem; color: var(--muted); letter-spacing: .05em; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav li a { display: flex; align-items: center; gap: .4rem; padding: .5rem .85rem; color: var(--text); font-size: .95rem; border-radius: .5rem; transition: .2s; position: relative; }
.main-nav li a:hover { color: var(--moon); background: rgba(99,102,241,.1); }
.main-nav li.active a { color: var(--moon); }
.main-nav li.active a::after { content:''; position:absolute; bottom:0; left:20%; width:60%; height:2px; background: var(--moon); border-radius:2px; box-shadow:0 0 8px var(--moon); }
.nav-download { padding: .55rem 1rem; font-size: .9rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: .25rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: .3s; border-radius: 2px; }
.hamburger.open span:nth-child(1){ transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 767px) {
  .hamburger { display: flex; }
  .main-nav { position: fixed; top: 70px; right: -100%; width: 70%; max-width: 280px; height: calc(100vh - 70px); flex-direction: column; align-items: stretch; padding: 1.5rem; background: rgba(11,15,25,.96); border-left: 1px solid var(--border); transition: right .3s ease; }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: .5rem; }
  .main-nav li a { padding: .85rem 1rem; }
  .main-nav li.active a::after { left: 0; width: 100%; }
  .nav-download { margin-top: 1rem; justify-content: center; }
}

/* Footer */
.site-footer { background: linear-gradient(180deg, rgba(17,24,39,0), rgba(17,24,39,1)); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-logo { width: 64px; height: 64px; border-radius: 12px; margin-bottom: .75rem; border: 1px solid var(--border); }
.footer-brand h3 { font-size: 1.6rem; color: #fff; }
.footer-brand p { color: var(--muted); }
.footer-contact h4, .footer-links h4 { font-size: 1.1rem; color: var(--moon); margin-bottom: 1rem; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.contact-card { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: .75rem; padding: .5rem; }
.contact-card img { width: 100%; border-radius: .5rem; margin-bottom: .35rem; }
.contact-card p { font-size: .75rem; color: var(--text); }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: var(--muted); transition: .2s; }
.footer-links a:hover { color: var(--moon); }
.footer-bottom { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(99,102,241,.15); }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Floating contact bubble */
.contact-bubble { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; }
.bubble-toggle { width: 56px; height: 56px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--indigo), var(--mystic)); color: #fff; font-size: 1.4rem; box-shadow: 0 8px 24px rgba(99,102,241,.45); cursor: pointer; transition: transform .25s; }
.bubble-toggle:hover { transform: scale(1.08); }
.bubble-panel { position: absolute; right: 0; bottom: 70px; width: 260px; background: rgba(17,24,39,.95); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; opacity: 0; transform: translateY(12px) scale(.95); pointer-events: none; transition: .25s; }
.bubble-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.bubble-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; color: #fff; font-weight: 700; }
.bubble-close { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
.bubble-item { display: flex; align-items: center; gap: .5rem; padding: .6rem; border-radius: .5rem; background: rgba(99,102,241,.12); color: var(--moon); margin-bottom: .5rem; transition: .2s; }
.bubble-item:hover { background: rgba(99,102,241,.22); }
.bubble-qr { text-align: center; margin-bottom: .5rem; }
.bubble-qr img { width: 100%; border-radius: .5rem; border: 1px solid var(--border); }
.bubble-qr p { font-size: .75rem; color: var(--text); margin: .25rem 0 0; }

/* Page hero */
.page-hero { position: relative; padding: 9rem 0 4rem; text-align: center; background: radial-gradient(circle at 50% 30%, rgba(168,85,247,.15), transparent 50%), linear-gradient(180deg, var(--night), #0f172a); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; }
.page-hero p { color: var(--muted); max-width: 640px; margin: .75rem auto 0; }

/* Timeline */
.timeline-wrap { position: relative; max-width: 900px; margin: 0 auto; padding-left: 2rem; }
.timeline-line { position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(180deg, var(--indigo), var(--mystic), var(--moon)); }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot { position: absolute; left: -1.85rem; top: .25rem; width: 20px; height: 20px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 14px var(--moon); border: 3px solid var(--night); z-index: 1; }
.timeline-content { padding: 1.5rem; }
.timeline-content h3 { font-size: 1.4rem; color: #fff; margin-bottom: .5rem; }
.timeline-content h3 span { color: var(--moon); margin-right: .5rem; }
.timeline-content p, .timeline-content ul { color: var(--muted); }
.timeline-content ul { padding-left: 1.25rem; margin: .75rem 0; }
.timeline-content li { margin-bottom: .4rem; }
.timeline-media { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.timeline-media img { width: 100%; height: 160px; object-fit: cover; border: 1px solid var(--border); }
.tip-box { background: rgba(34,211,238,.1); border-left: 3px solid var(--moon); padding: .75rem 1rem; border-radius: 0 .5rem .5rem 0; margin-top: 1rem; color: var(--text); }
@media (max-width: 767px) {
  .timeline-wrap { padding-left: 1.5rem; }
  .timeline-line { left: .3rem; }
  .timeline-dot { left: -1.55rem; }
  .timeline-media { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.faq-item { padding: 1.25rem; }
.faq-item h4 { color: var(--moon); font-size: 1.1rem; margin-bottom: .4rem; }
.faq-item p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 767px) { .faq-grid { grid-template-columns: 1fr; } }

/* Position-specific image sizing */

.brand-logo { width: 42px; height: 42px; object-fit: cover; }
.footer-logo { width: 64px; height: 64px; object-fit: cover; }
.hero-logo { width: clamp(220px, 30vw, 380px); height: auto; }
.feature-cell img { width: 100%; height: 100%; object-fit: cover; }
.download-card img { width: 140px; height: 140px; object-fit: cover; }
.timeline-media img { width: 100%; height: 160px; object-fit: cover; }
.article-thumb { width: 100%; height: 120px; object-fit: cover; }
.article-body img { width: 100%; max-height: 320px; object-fit: cover; }
.contact-card img { width: 100%; height: auto; }
.bubble-qr img { width: 100%; height: auto; }

/* Friendly links block */

.friendly-links.lycs { padding: 3rem 0; background: linear-gradient(180deg, #0B0F19, #111827); border-top: 1px solid rgba(99,102,241,.25); }
.friendly-links.lycs .friendly-links-inner { width: 92%; max-width: 1200px; margin: 0 auto; text-align: center; }
.friendly-links.lycs h2 { font-family: 'Ma Shan Zheng', cursive; font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; margin-bottom: .25rem; }
.friendly-links.lycs h2 i { color: #22D3EE; margin-right: .5rem; }
.friendly-links.lycs p { color: #94A3B8; margin-bottom: 1.5rem; }
.friendly-links.lycs ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.friendly-links.lycs li a { display: block; padding: .6rem .8rem; border-radius: .6rem; background: rgba(30,41,59,.6); border: 1px solid rgba(99,102,241,.35); color: #E2E8F0; font-size: .9rem; transition: .2s; }
.friendly-links.lycs li a:hover { background: rgba(99,102,241,.2); border-color: #22D3EE; color: #22D3EE; transform: translateY(-2px); }
@media (max-width: 375px) { .friendly-links.lycs ul { grid-template-columns: repeat(2, 1fr); } }

