/* Yulian Group — Overseas English Homepage */
:root {
  --navy: #0B1220;
  --navy-2: #111A2E;
  --ink: #0F172A;
  --slate: #475569;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --blue: #1A56DB;
  --blue-d: #1341A8;
  --blue-s: #EFF4FF;
  --accent: #0EA5E9;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: 0.01em; }
.brand-text span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--slate); }
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff !important; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--blue-d); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 9px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: 0.2s ease; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #000; }

/* Hero */
.hero {
  position: relative; color: #fff;
  min-height: clamp(520px, 78vh, 720px);
  display: grid; align-items: end;
  background: var(--navy) center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,12,24,0.88) 0%, rgba(8,12,24,0.62) 48%, rgba(8,12,24,0.35) 100%),
    linear-gradient(0deg, rgba(8,12,24,0.75) 0%, transparent 45%);
}
.hero-inner { position: relative; z-index: 1; padding: 100px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  padding: 6px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: #CBD5E1; margin-bottom: 18px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #38BDF8; display: inline-block; }
.hero h1 {
  margin: 0 0 16px; max-width: 14ch;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em;
}
.hero-lead { max-width: 560px; color: #CBD5E1; font-size: 18px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 140px)); gap: 18px;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); max-width: 520px;
}
.hero-stats strong { display: block; font-size: 28px; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: #94A3B8; }

/* Sections */
section { padding: 80px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-tag {
  color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.15; }
.section-head p { margin: 0; color: var(--slate); font-size: 16px; }

/* Entry points */
.entries { background: var(--bg); }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.entry-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.entry-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,23,42,0.12); }
.entry-card img { width: 100%; height: 180px; object-fit: cover; }
.entry-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.entry-body h3 { margin: 0; font-size: 20px; }
.entry-body p { margin: 0; color: var(--slate); font-size: 14px; flex: 1; }
.entry-body .link { color: var(--blue); font-weight: 600; font-size: 14px; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.product-card img { width: 100%; height: 200px; object-fit: cover; background: #EEF2FF; }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { margin: 0; font-size: 18px; }
.product-body p { margin: 0; color: var(--slate); font-size: 14px; flex: 1; }
.product-links { display: flex; gap: 14px; font-size: 13px; font-weight: 600; }
.product-links a { color: var(--blue); }
.product-links a.muted { color: var(--muted); }
.product-card-link { display: block; }
.product-body h3 a { color: inherit; }
.product-body h3 a:hover { color: var(--blue); }


/* Trust */
.trust { background: var(--navy); color: #fff; }
.trust .section-tag { color: #7DD3FC; }
.trust .section-head p { color: #94A3B8; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 24px;
}
.trust-card h3 { margin: 0 0 8px; font-size: 18px; }
.trust-card p { margin: 0; color: #94A3B8; font-size: 14px; }
.note {
  margin-top: 22px; font-size: 13px; color: #64748B;
  border-left: 3px solid rgba(125,211,252,0.5); padding-left: 12px;
}

/* Why */
.why-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.why-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.why-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.why-list .num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue-s); color: var(--blue);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.why-list h4 { margin: 0 0 4px; font-size: 15px; }
.why-list p { margin: 0; font-size: 13px; color: var(--slate); }
.why-visual {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.why-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

/* Quote */
.quote { background: var(--bg); }
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.quote-panel, .form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { font-size: 14px; color: var(--slate); }
.contact-list strong { display: block; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.contact-list a { color: var(--blue); font-weight: 600; }
.unverified { color: var(--muted); font-size: 12px; font-style: italic; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(26,86,219,0.25); border-color: var(--blue); }
textarea { min-height: 120px; resize: vertical; }
.form-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* Footer */
.site-footer { background: #070B14; color: #94A3B8; padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 28px; margin-bottom: 36px; }
.site-footer h4 { margin: 0 0 14px; color: #F8FAFC; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand strong { display: block; color: #fff; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; height: 32px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12); font-size: 11px; color: #CBD5E1;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px;
}

@media (max-width: 960px) {
  .entry-grid, .product-grid, .trust-grid, .why-grid, .quote-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .quote-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; align-items: flex-start;
  }
  .nav { position: relative; }
}
@media (max-width: 640px) {
  .entry-grid, .product-grid, .trust-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-stats strong { font-size: 22px; }
  section { padding: 56px 0; }
}

/* Product detail pages */
.detail-hero {
  background: var(--bg);
  padding: 36px 0 56px;
  border-bottom: 1px solid var(--line);
}
.detail-hero-inner { padding-top: 8px; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 28px;
}
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center;
}
.detail-hero-copy h1 {
  margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em; line-height: 1.12;
}
.detail-lead { margin: 0 0 24px; color: var(--slate); font-size: 17px; max-width: 540px; }
.detail-hero-media {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: #EEF2FF;
}
.detail-hero-media img { width: 100%; height: min(420px, 55vw); object-fit: cover; }

.detail-overview { background: #fff; }
.detail-layout {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start;
}
.detail-layout h2 {
  margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em;
}
.detail-layout > div > p { color: var(--slate); margin: 0 0 14px; }
.check-list {
  list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px;
}
.check-list li {
  position: relative; padding: 12px 14px 12px 40px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  font-size: 14px; color: var(--slate);
}
.check-list li::before {
  content: ""; position: absolute; left: 14px; top: 16px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue-s); box-shadow: inset 0 0 0 4px var(--blue);
}
.detail-aside {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); position: sticky; top: 88px;
}
.detail-aside h3 { margin: 0 0 14px; font-size: 16px; }
.spec-dl { margin: 0; display: grid; gap: 12px; }
.spec-dl > div {
  border-top: 1px solid var(--line); padding-top: 10px;
}
.spec-dl > div:first-child { border-top: 0; padding-top: 0; }
.spec-dl dt {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); font-weight: 700; margin: 0 0 2px;
}
.spec-dl dd { margin: 0; font-size: 14px; color: var(--ink); }
.spec-dl a { color: var(--blue); font-weight: 600; }
.detail-cta { width: 100%; margin-top: 18px; }

.detail-gallery { background: var(--bg); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.gallery-grid figure {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; background: #EEF2FF; }
.gallery-grid figcaption {
  padding: 12px 14px; font-size: 13px; color: var(--slate);
}

.detail-specs { background: #fff; }
.spec-table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.spec-table {
  width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px;
}
.spec-table th, .spec-table td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  background: var(--navy); color: #fff; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child {
  font-weight: 600; color: var(--ink); width: 32%; background: var(--bg);
}
.spec-table td:last-child { color: var(--slate); }
.spec-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.spec-note a { color: var(--blue); font-weight: 600; }

.detail-docs { background: var(--bg); }
.docs-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.docs-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.docs-item h3 { margin: 0 0 10px; font-size: 17px; }
.docs-item p, .docs-item li { color: var(--slate); font-size: 14px; }
.docs-item ul { margin: 0 0 0 18px; padding: 0; display: grid; gap: 8px; }
.docs-item a:not(.btn) { color: var(--blue); font-weight: 600; }
.docs-item .btn { margin-top: 14px; }

.detail-cta-band {
  background: var(--navy); color: #fff; padding: 56px 0;
}
.detail-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.detail-cta-band h2 {
  margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em;
}
.detail-cta-band p { margin: 0; color: #94A3B8; max-width: 640px; }
.detail-cta-band .btn-primary { flex-shrink: 0; }

@media (max-width: 960px) {
  .detail-hero-grid, .detail-layout, .gallery-grid, .docs-panel {
    grid-template-columns: 1fr;
  }
  .detail-aside { position: static; }
  .detail-hero-media img { height: 280px; }
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #fff;
}
.lang-switch a {
  color: var(--slate);
  padding: 2px 4px;
  border-radius: 4px;
}
.lang-switch a:hover { color: var(--blue); }
.lang-switch a.lang-active {
  color: var(--blue);
  background: var(--blue-s);
}
.lang-switch span[aria-hidden="true"] { color: var(--line); }
@media (max-width: 960px) {
  .lang-switch { margin-left: 0; }
}
