/* ============================================================
   NitriCeram — Silicon Nitride Ceramics
   Shared stylesheet (bilingual EN / ZH)
   Replace "NitriCeram" and "[yourbrand.com]" with your real
   brand name and domain before going live.
   ============================================================ */

:root {
  --c-ink: #0a1a24;
  --c-navy: #0b3d5c;
  --c-navy-2: #0e5577;
  --c-teal: #0e7c86;
  --c-teal-bright: #16c2a3;
  --c-accent: #e8753a;
  --c-bg: #f5f8fa;
  --c-bg-soft: #eaf1f5;
  --c-surface: #ffffff;
  --c-text: #1a2b36;
  --c-text-soft: #4a5f6c;
  --c-border: #d9e3ea;
  --c-line: #e6edf1;
  --shadow-sm: 0 1px 3px rgba(10, 26, 36, .08);
  --shadow-md: 0 6px 24px rgba(10, 26, 36, .10);
  --shadow-lg: 0 18px 48px rgba(10, 26, 36, .16);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-teal); text-decoration: none; }
a:hover { color: var(--c-navy-2); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--c-text-soft); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-teal); margin-bottom: .6rem; }
.muted { color: var(--c-text-soft); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600;
  font-size: .95rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--c-teal-bright); color: #04241d; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #04241d; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: #fff; color: var(--c-navy); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-teal); color: var(--c-teal); transform: translateY(-2px); }
.btn-dark { background: var(--c-navy); color: #fff; }
.btn-dark:hover { background: var(--c-navy-2); color: #fff; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--c-ink); font-size: 1.15rem; letter-spacing: -.02em; }
.brand .logo { width: 34px; height: 34px; flex: 0 0 34px; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--c-text-soft); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--c-text); padding: .55rem .85rem; border-radius: 999px; font-weight: 600; font-size: .93rem; }
.nav-links a:hover, .nav-links a.active { color: var(--c-navy); background: var(--c-bg-soft); }
.lang-switch { display: flex; gap: .25rem; align-items: center; margin-left: .5rem; }
.lang-switch a { font-size: .82rem; font-weight: 700; padding: .35rem .6rem; border-radius: 8px; color: var(--c-text-soft); }
.lang-switch a.active { background: var(--c-navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-ink); margin: 4px auto; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(22,194,163,.28), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(14,124,134,.35), transparent 55%),
    linear-gradient(135deg, #06222f 0%, #0b3d5c 55%, #0e5577 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 26px 26px;
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0 88px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lead { font-size: 1.15rem; max-width: 60ch; color: rgba(255,255,255,.86); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-badges { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.4rem; }
.hero-badges .b { font-size: .9rem; color: rgba(255,255,255,.8); }
.hero-badges .b strong { display: block; font-size: 1.6rem; color: #fff; }

/* ---------- Section ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--c-bg-soft); }
.section-head { max-width: 70ch; margin: 0 auto 2.6rem; text-align: center; }
.section-head p { font-size: 1.05rem; }
.breadcrumb { font-size: .82rem; color: var(--c-text-soft); padding: 14px 0 0; }
.breadcrumb a { color: var(--c-text-soft); }
.breadcrumb a:hover { color: var(--c-teal); }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--c-border); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--c-bg-soft); display: grid; place-items: center; margin-bottom: 14px; color: var(--c-teal); }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .95rem; margin: 0; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .9rem; }

/* feature row */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media {
  background: linear-gradient(135deg, #0b3d5c, #0e7c86);
  border-radius: var(--radius); min-height: 280px; position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md);
}
.feature-media svg { width: 70%; height: auto; }
.media-figure { margin: 0; }
.media-figure figcaption { margin-top: 10px; font-size: .9rem; color: var(--c-muted); }
.app-media { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); min-height: 210px; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-sm); }
.app-media img { width: 100%; height: 220px; object-fit: cover; display: block; }
.price-line { margin-top: 12px; font-size: .95rem; color: var(--c-text); }
.price-line .ph-price { color: var(--c-muted); border-bottom: 1px dashed currentColor; }
.price-line a { font-weight: 600; }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--c-border); }
.kv li span:last-child { font-weight: 700; color: var(--c-ink); text-align: right; }

/* ---------- Carousel ---------- */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform .45s ease; height: 100%; }
.carousel-slide { min-width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: var(--radius); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(8,40,55,.55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; z-index: 2; }
.carousel-btn:hover { background: rgba(8,40,55,.85); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: background .2s, transform .2s; }
.carousel-dot.active { background: var(--c-teal-bright, #16c2a3); transform: scale(1.25); }
.gallery-carousel .carousel-slide img { height: 380px; }
.app-media.carousel { background: none; border: 0; min-height: 0; padding: 0; display: block; }
.btn-price { display: inline-block; margin-top: 4px; padding: .45rem .9rem; border-radius: 999px; background: var(--c-teal, #16c2a3); color: #04241d; font-weight: 700; font-size: .9rem; }
.btn-price:hover { background: var(--c-teal-bright, #16c2a3); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--c-navy); line-height: 1; }
.stat .lbl { color: var(--c-text-soft); font-size: .9rem; margin-top: .4rem; }

/* ---------- Tables (specs) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-line); }
table.spec { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
table.spec th, table.spec td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--c-line); }
table.spec thead th { background: var(--c-navy); color: #fff; font-weight: 600; }
table.spec tbody tr:nth-child(even) { background: var(--c-bg-soft); }
table.spec tbody tr:hover { background: #e3f3ef; }

/* ---------- Applications ---------- */
.app-card { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: start; }
.app-card .badge { width: 84px; height: 84px; border-radius: 16px; background: var(--c-bg-soft); display: grid; place-items: center; color: var(--c-teal); }
.tag { display: inline-block; font-size: .76rem; font-weight: 600; color: var(--c-teal); background: #e3f3ef; padding: .25rem .6rem; border-radius: 999px; margin: 2px 4px 2px 0; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--c-teal-bright); color: #04241d; font-weight: 800; display: grid; place-items: center; }
.step h3 { margin-top: 12px; font-size: 1.05rem; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 4px; bottom: 4px; width: 2px; background: var(--c-border); }
.timeline li { position: relative; padding: 0 0 24px 44px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-teal); border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.timeline .yr { font-weight: 800; color: var(--c-navy); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #0b3d5c, #0e5577); color: #fff; border-radius: var(--radius); padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--c-border); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--c-text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-teal); box-shadow: 0 0 0 3px rgba(14,124,134,.15); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.info-list .ic { color: var(--c-teal); flex: 0 0 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: rgba(255,255,255,.78); padding: 56px 0 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--c-teal-bright); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 5px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-note { font-size: .85rem; color: rgba(255,255,255,.6); max-width: 40ch; }

/* ---------- Breadcrumb / page hero (inner) ---------- */
.page-hero { background: linear-gradient(135deg, #06222f, #0b3d5c); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 64ch; }

/* ---------- FAQs ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--c-ink); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--c-teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .feature, .contact-grid { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 18px 22px; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .25s ease; gap: 4px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .8rem 1rem; }
  .nav-toggle { display: block; }
  .lang-switch { margin: 8px 0 0; }
  .grid-2, .grid-3, .grid-4, .stats, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  section { padding: 54px 0; }
}
