/* ===== 光固科技 / Photocure — Global Styles ===== */
:root {
  --brand: #014DB2;
  --brand-dark: #013a86;
  --brand-light: #e7eefb;
  --accent: #00A6A6;          /* UV teal glow */
  --accent-2: #FF7A1A;        /* amber */
  --bg: #F9F9F9;              /* warm white */
  --surface: #ffffff;
  --ink: #16243a;
  --ink-soft: #54637a;
  --line: #e4e9f1;
  --radius: 11px;
  --shadow: 0 8px 24px rgba(1, 77, 178, 0.08);
  --shadow-lg: 0 16px 40px rgba(1, 77, 178, 0.14);
  --maxw: 1180px;
  --nav-h: 54px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.32;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.grid-child { min-width: 0; word-break: break-word; }  /* prevent grid overflow */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===== Language toggle ===== */
html[data-lang="zh"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-zh { display: none !important; }
.lang-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  font-weight: 600;
  width: 46px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: .2s;
}
.lang-toggle:hover { background: var(--brand-light); border-color: var(--brand); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand .logo {
  width: 27px; height: 27px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 900;
}
.brand small { color: var(--ink-soft); font-weight: 600; font-size: 11px; letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-links a {
  padding: 7px 12px; border-radius: 7px; color: var(--ink-soft);
  font-weight: 600; font-size: 16px; transition: .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); background: var(--brand-light); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--brand); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 9px; font-weight: 700; font-size: 14px;
  cursor: pointer; border: 2px solid transparent; transition: .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-light); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(0,166,166,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(1,77,178,.16), transparent 55%),
    linear-gradient(180deg, #ffffff, #f1f6fd);
  padding: 62px 0 51px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-light); color: var(--brand);
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 12px;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.15; margin: 0 0 13px; letter-spacing: -.5px; }
.hero h1 .hl { color: var(--brand); }
.hero p.lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 22px; max-width: 560px; }
.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 22px; margin-top: 29px; flex-wrap: wrap; }
.hero-stats div { }
.hero-stats .num { font-size: 28px; font-weight: 900; color: var(--brand); }
.hero-stats .lbl { font-size: 12px; color: var(--ink-soft); }

/* Hero visual card */
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 21px;
}
.hero-card h3 { margin: 0 0 11px; font-size: 15px; color: var(--ink-soft); }
.uv-ring {
  height: 104px; border-radius: 11px; margin-bottom: 13px;
  background:
    repeating-conic-gradient(from 0deg, rgba(0,166,166,.18) 0 10deg, transparent 10deg 20deg),
    linear-gradient(135deg, #022b5e, #00A6A6);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px;
  letter-spacing: 1px;
}
.mini-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row span:last-child { font-weight: 700; color: var(--brand); }

/* ===== Section ===== */
.section { padding: 58px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 35px; }
.section-head .eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(24px, 3vw, 36px); margin: 8px 0 10px; }
.section-head p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ===== Feature / Product cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 21px 18px; transition: .22s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.card .ic {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 13px;
  background: var(--brand-light); color: var(--brand);
  display: grid; place-items: center; font-size: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { color: var(--ink-soft); font-size: 14px; margin: 0 0 11px; }
.card .tag { font-size: 11px; color: var(--accent); font-weight: 700; }

/* ===== Split feature ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; }
.split .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; box-shadow: var(--shadow);
}
.split ul { margin: 0; padding-left: 0; list-style: none; }
.split li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.split li:last-child { border-bottom: 0; }
.split li .k { color: var(--brand); font-weight: 800; min-width: 26px; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 8px; }

/* ===== Solution rows ===== */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sol {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 21px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.sol::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--brand);
}
.sol h3 { margin: 0 0 5px; font-size: 18px; }
.sol .challenge { color: var(--accent-2); font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.sol p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ===== CTA ===== */
.cta-band {
  background: linear-gradient(135deg, var(--brand), #0267c9);
  color: #fff; border-radius: 16px; padding: 38px 32px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin: 0 0 8px; font-size: 28px; }
.cta-band p { margin: 0 0 19px; opacity: .92; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: #eaf1fb; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ===== Page hero (inner pages) ===== */
.page-hero { padding: 45px 0 32px; background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 8px; }
.page-hero p { color: var(--ink-soft); font-size: 16px; margin: 0; max-width: 640px; }
.breadcrumb { font-size: 12px; color: var(--ink-soft); margin-bottom: 11px; }
.breadcrumb a:hover { color: var(--brand); }

/* ===== Product grid (detailed) ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: .22s;
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prod .thumb { height: 120px; background: linear-gradient(135deg, var(--brand-light), #d4e6fb); display: grid; place-items: center; font-size: 36px; }
.prod .body { padding: 16px 18px 19px; flex: 1; }
.prod .cat { font-size: 11px; color: var(--accent); font-weight: 800; letter-spacing: 1px; }
.prod h3 { margin: 5px 0 6px; font-size: 18px; }
.prod p { color: var(--ink-soft); font-size: 14px; margin: 0 0 11px; }
.prod .spec { font-size: 12px; color: var(--brand); font-weight: 700; }

/* ===== Timeline / About ===== */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.values { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; }
.value h4 { margin: 0 0 5px; color: var(--brand); }
.value p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 32px; }
.stat { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 19px 12px; box-shadow: var(--shadow); }
.stat .n { font-size: 30px; font-weight: 900; color: var(--brand); }
.stat .t { font-size: 12px; color: var(--ink-soft); }
.milestones { list-style: none; margin: 0; padding: 0; }
.milestones li { position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--line); }
.milestones li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.milestones .yr { font-weight: 800; color: var(--brand); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 13px; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font); font-size: 14px; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.info-card .row { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.info-card .row:last-child { border-bottom: 0; }
.info-card .row .ic { width: 36px; height: 36px; border-radius: 8px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-size: 17px; flex: none; }
.info-card .row .v { font-size: 14px; }
.info-card .row .v b { display: block; color: var(--ink); }
.info-card .row .v span { color: var(--ink-soft); }
.map {
  margin-top: 13px; height: 144px; border-radius: 10px; border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #eef3fa, #eef3fa 12px, #e6edf7 12px, #e6edf7 24px);
  display: grid; place-items: center; color: var(--ink-soft); font-size: 13px;
}

/* contact: centered info + QR image slots */
.contact-center { display: flex; flex-direction: column; align-items: center; }
.contact-info { width: 100%; max-width: 720px; padding: 38px 30px; text-align: center; }
.contact-info h2 { font-size: 26px; font-weight: 900; margin-bottom: 28px; color: var(--ink); }
.contact-lines { display: inline-flex; flex-direction: column; align-items: flex-start; }
.contact-line { display: flex; justify-content: flex-start; align-items: center; gap: 44px; flex-wrap: wrap; }
.contact-line + .contact-line { margin-top: 22px; }
.ci { display: inline-flex; align-items: center; gap: 16px; }
.ci-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-size: 24px; flex: none; }
.ci-body { text-align: left; }
.ci-lab { display: block; font-size: 12px; color: var(--ink-soft); letter-spacing: .06em; }
.ci-val { display: block; font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.qr-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.qr-box { text-align: center; }
.qr-ph {
  width: 150px; height: 150px; border: 2px dashed var(--line); border-radius: 12px;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  padding: 10px; color: var(--ink-soft); font-size: 13px; text-align: center;
}
.qr-ph img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.qr-cap { margin-top: 11px; font-weight: 700; color: var(--brand); font-size: 14px; }

/* ===== Footer ===== */
.site-footer { background: #0c1c33; color: #c7d3e6; padding: 43px 0 21px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #8fa3c0; }
.site-footer p { font-size: 13px; color: #9fb0cb; line-height: 1.06; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 11px; line-height: 1.06; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 5px 0; font-size: 13px; line-height: 1.06; }
.site-footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 27px; padding-top: 14px; font-size: 12px; color: #8094b3; text-align: center; line-height: 1.06; }
.footer-icp { text-align: center; padding-top: 5px; font-size: 11px; line-height: 1.06; }
.footer-icp a { color: #8094b3; text-decoration: none; }
.footer-icp a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .sol-grid, .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 14px; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line); padding: 6px 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 11px 18px; border-radius: 0; }
  .nav-toggle { display: block; }
  .cards, .sol-grid, .prod-grid, .values { grid-template-columns: 1fr; gap: 13px; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 19px; }
  .hero { padding: 29px 0 29px; }
  .hero h1 { font-size: 26px; line-height: 1.25; }
  .hero p.lead { font-size: 14px; }
  .hero-stats { gap: 13px; margin-top: 19px; }
  .hero-stats .num { font-size: 22px; }
  .hero-stats .lbl { font-size: 11px; }
  .hero-card { padding: 14px; }
  .uv-ring { height: 80px; font-size: 12px; }
  .mini-row { font-size: 12px; padding: 6px 0; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; justify-content: center; }
  .section { padding: 32px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: 22px; }
  .section-head p { font-size: 14px; }
  .split { gap: 19px; }
  .split .panel { padding: 16px; }
  .cta-band { padding: 26px 16px; border-radius: 11px; }
  .cta-band h2 { font-size: 22px; }
  .cta-band p { font-size: 13px; }
  .card { padding: 16px 13px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 13px; }
  .sol { padding: 14px 13px; }
  .sol h3 { font-size: 16px; }
  .prod .thumb { height: 96px; font-size: 30px; }
  .prod .body { padding: 13px; }
  .prod h3 { font-size: 16px; }
  .page-hero { padding: 29px 0 22px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: 14px; }
  .btn { padding: 10px 18px; font-size: 13px; }
  .about-grid { gap: 19px; }
  .contact-grid { gap: 19px; }
  .form-card, .info-card { padding: 16px; }
  .field input, .field textarea, .field select { font-size: 16px; /* prevent iOS zoom */ }
  .site-footer { padding: 32px 0 16px; }
  .stat { padding: 14px 10px; }
  .stat .n { font-size: 24px; }
}
@media (max-width: 400px) {
  .container { padding: 0 10px; }
  .hero { padding: 22px 0 22px; }
  .hero h1 { font-size: 22px; }
  .hero p.lead { font-size: 13px; }
  .hero-stats { gap: 8px; }
  .hero-stats .num { font-size: 20px; }
  .hero-stats .lbl { font-size: 10px; }
  .section-head h2 { font-size: 20px; }
  .cta-band { padding: 19px 11px; }
  .cta-band h2 { font-size: 19px; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 6px; }
}

/* ===== SEO 关键词（搜索引擎可读，用户不可见）===== */
.seo-keywords {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
