/* Qiandianxue Corporate Website - global styles */
:root {
  --bg: #071428;
  --bg-soft: #0b1f3b;
  --bg-panel: rgba(8, 22, 43, 0.75);
  --ink: #f2f6ff;
  --muted: #b6c4de;
  --line: rgba(137, 170, 222, 0.28);
  --accent: #00c2ff;
  --accent-2: #17e7b8;
  --warm: #ff9f43;
  --danger: #ff6f61;
  --max: 1240px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 194, 255, 0.18), transparent 34%),
    radial-gradient(circle at 86% 6%, rgba(23, 231, 184, 0.15), transparent 36%),
    linear-gradient(135deg, #040d1d 0%, #071428 45%, #041022 100%);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.page-bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 194, 255, 0.24), rgba(0, 194, 255, 0));
  filter: blur(24px);
  pointer-events: none;
  z-index: -1;
  transform: translate3d(0, 0, 0);
}

.page-bg-orb.orb-a {
  top: -180px;
  left: -80px;
  animation: floatA 14s ease-in-out infinite;
}

.page-bg-orb.orb-b {
  bottom: -180px;
  right: -80px;
  animation: floatB 16s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 26px); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-36px, -18px); }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(4, 16, 34, 0.72);
  border-bottom: 1px solid rgba(108, 151, 219, 0.24);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand small {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  background: rgba(0, 194, 255, 0.15);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
}

.hero {
  padding: 88px 0 72px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.55rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

.hero p {
  max-width: 60ch;
}

.button-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(100deg, var(--accent) 0%, #38b3ff 30%, var(--accent-2) 100%);
  color: #06223b;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 194, 255, 0.3);
}

.btn-secondary {
  border-color: rgba(0, 194, 255, 0.5);
  color: var(--ink);
  background: rgba(0, 194, 255, 0.08);
}

.btn-secondary:hover {
  border-color: rgba(23, 231, 184, 0.85);
  background: rgba(23, 231, 184, 0.14);
}

.hero-card {
  background: linear-gradient(160deg, rgba(7, 27, 53, 0.95), rgba(4, 18, 36, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  min-height: 350px;
  object-fit: cover;
}

.hero-card .meta {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.section {
  padding: 72px 0;
}

.section-compact-bottom {
  padding-bottom: 34px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(7, 25, 48, 0.48), rgba(8, 20, 40, 0));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 194, 255, 0.55);
  box-shadow: 0 16px 28px rgba(4, 14, 30, 0.5);
}

.card .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}

.feature-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.feature-list li {
  margin: 6px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  background: rgba(11, 27, 54, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--accent-2);
}

.timeline {
  position: relative;
  margin-top: 12px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
}

.time-item {
  position: relative;
  padding-left: 52px;
  margin-bottom: 20px;
}

.time-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  position: absolute;
  left: 10px;
  top: 8px;
  box-shadow: 0 0 0 5px rgba(23, 231, 184, 0.18);
}

.news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: stretch;
}

.news-item img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.info-box {
  border: 1px solid var(--line);
  background: rgba(8, 25, 47, 0.72);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-line {
  display: flex;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.contact-line img {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.map-frame {
  width: 100%;
  border: 0;
  border-radius: 12px;
  min-height: 320px;
  filter: grayscale(0.1) saturate(1.1);
}

.legal-wrap {
  max-width: 960px;
}

.legal-wrap h2,
.legal-wrap h3 {
  margin-top: 28px;
}

.legal-wrap ul {
  padding-left: 20px;
  color: var(--muted);
}

footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(4, 14, 29, 0.8);
}

.footer-main {
  padding: 26px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 22px;
}

.footer-nav {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.footer-legal {
  border-top: 1px solid rgba(137, 170, 222, 0.2);
  padding: 14px 0 24px;
  color: #9fb4d8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
}

.stagger.show > * {
  animation: itemUp 0.5s ease forwards;
}

.stagger.show > *:nth-child(2) { animation-delay: 0.07s; }
.stagger.show > *:nth-child(3) { animation-delay: 0.14s; }
.stagger.show > *:nth-child(4) { animation-delay: 0.21s; }
.stagger.show > *:nth-child(5) { animation-delay: 0.28s; }
.stagger.show > *:nth-child(6) { animation-delay: 0.35s; }

@keyframes itemUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .hero-grid,
  .grid.cards-3,
  .stats,
  .footer-main,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    right: 18px;
    left: 18px;
    background: rgba(6, 20, 39, 0.96);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero,
  .section {
    padding: 58px 0;
  }

  .section-compact-bottom {
    padding-bottom: 22px;
  }

  .hero-grid,
  .grid.cards-2,
  .grid.cards-3,
  .stats,
  .footer-main,
  .contact-grid,
  .news-item {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
