:root {
  --bg: #f2efe8;
  --bg-deep: #10151b;
  --panel: rgba(255, 255, 255, 0.82);
  --text: #11151a;
  --muted: #5e6773;
  --line: rgba(17, 21, 26, 0.1);
  --brand: #18a7d8;
  --brand-deep: #0f5c82;
  --accent: #d7b97a;
  --shadow: 0 18px 60px rgba(10, 18, 27, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  color: var(--text);
  background: #f4f2ed;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
/* Bootstrap 3 injects clearfix pseudo-elements into every .container.
   They become real grid items when a container is also a CSS grid. */
.container::before,
.container::after { display: none; content: none; }

.hero-grid > *,
.oem-grid > *,
.two-column > *,
.category-grid > *,
.feature-grid > *,
.news-grid > *,
.footer-grid > * { min-width: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 245, 239, 0.86);
  border-bottom: 1px solid rgba(17, 21, 26, 0.06);
}

.header-shell {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.brand img { display: block; width: 166px; height: 48px; object-fit: contain; }
.footer-logo { display: block; width: 230px; height: auto; max-width: 100%; margin-bottom: 18px; }
.main-nav { display: flex; gap: 24px; justify-content: center; }
.main-nav a {
  position: relative;
  padding: 10px 0;
  font-size: 15px;
  color: var(--muted);
}
.main-nav a.is-active,
.main-nav a:hover { color: var(--text); }
.main-nav a.is-active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.hero-block { padding: 56px 0 44px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.hero-copy,
.hero-panel,
.article-panel,
.info-panel,
.feature-card,
.category-card,
.news-card,
.service-list article {
  border: 1px solid rgba(255,255,255,0.45);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-copy {
  padding: 42px 34px 42px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero-copy h1,
.inner-hero h1 {
  margin: 12px 0 18px;
  line-height: 1.08;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
}
.hero-copy p,
.section-head p,
.news-card p,
.article-panel,
.info-panel,
.service-list article p {
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.hero-actions,
.hero-points,
.section-head,
.footer-grid,
.feature-grid,
.category-grid,
.oem-grid,
.service-list,
.news-grid,
.two-column {
  display: grid;
}

.hero-actions {
  grid-template-columns: repeat(2, max-content);
  gap: 14px;
  margin: 28px 0;
}
.btn-primary,
.btn-secondary {
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
}
.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
}

.hero-points {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-points li,
.hero-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(17, 21, 26, 0.05);
}

.hero-points li {
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(10px);
}

.hero-panel {
  position: relative;
  min-height: 520px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 18, 27, 0.02) 28%, rgba(7, 18, 27, 0.82) 100%),
    url("../images/dioline-2026/hero-lab-hair.webp") center / cover no-repeat;
  color: #fff;
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}
.hero-card {
  position: relative;
  z-index: 1;
  min-height: 126px;
  color: #fff;
  background: rgba(10, 27, 38, 0.72);
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(14px);
}
.hero-card p { margin: 8px 0 0; color: rgba(255,255,255,0.78); line-height: 1.65; }

.section-block { padding: 20px 0 52px; }
.section-head {
  gap: 8px;
  margin-bottom: 28px;
}
.section-head h2,
.article-panel h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.category-card {
  position: relative;
  overflow: hidden;
  padding: 102px 22px 22px;
  min-height: 208px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.category-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 80px;
  background: url("../images/dioline-2026/ingredient-matrix.webp") center 24% / 220% auto no-repeat;
}
.category-card:nth-child(3n+2)::before { background-position: 75% 22%; }
.category-card:nth-child(3n)::before { background-position: 92% 72%; }
.category-card strong,
.feature-card h3,
.news-card h3,
.service-list article strong {
  display: block;
  font-size: 20px;
  margin-bottom: 12px;
}
.category-card span { color: var(--muted); line-height: 1.7; }
.category-card:hover,
.feature-card:hover,
.news-card:hover {
  transform: translateY(-4px);
}

.accent-block {
  position: relative;
  background:
    linear-gradient(90deg, rgba(6,18,28,0.92) 0%, rgba(6,18,28,0.7) 44%, rgba(6,18,28,0.28) 100%),
    url("../images/dioline-2026/oem-production.webp") center / cover no-repeat;
  color: #fff;
}
.oem-grid { min-height: 500px; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: center; }
.oem-grid > div:first-child { padding: 32px; border-radius: var(--radius); background: rgba(7,20,30,0.5); backdrop-filter: blur(10px); }
.oem-grid > div:first-child p { color: rgba(255,255,255,0.8); line-height: 1.8; }
.service-list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-list article { min-height: 160px; padding: 24px; background: rgba(7,20,30,0.68); backdrop-filter: blur(12px); }
.service-list article p { color: rgba(255,255,255,0.75); }

.feature-grid,
.news-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card,
.news-card { padding: 26px; }
.feature-card {
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7,18,28,0.06) 20%, rgba(7,18,28,0.9) 100%),
    url("../images/dioline-2026/ingredient-matrix.webp") 10% center / 230% auto no-repeat;
}
.feature-card:nth-child(2) { background-position: center, 42% center; }
.feature-card:nth-child(3) { background-position: center, 76% center; }
.feature-card:nth-child(4) { background-position: center, 96% center; }
.feature-card p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,0.82); line-height: 1.7; }
.feature-card h3 { position: relative; z-index: 1; }
.news-grid--listing { grid-template-columns: repeat(3, 1fr); }

.product-visual {
  min-height: 320px;
  margin: 0 0 22px;
  padding: 34px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,18,28,0.88) 0%, rgba(7,18,28,0.42) 55%, rgba(7,18,28,0.06) 100%),
    url("../images/dioline-2026/ingredient-matrix.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
}
.product-visual > div { max-width: 480px; }
.product-visual span { font-size: 11px; letter-spacing: .22em; color: #8fdcf3; }
.product-visual strong { display: block; margin: 8px 0 10px; font-size: clamp(24px, 3vw, 38px); }
.product-visual p { margin: 0; color: rgba(255,255,255,0.78); line-height: 1.75; }

.page-shell { padding-bottom: 64px; }
.inner-hero {
  padding: 68px 0 54px;
  margin-bottom: 30px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6,18,28,0.92) 0%, rgba(6,18,28,0.68) 48%, rgba(6,18,28,0.24) 100%),
    url("../images/dioline-2026/ingredient-matrix.webp") center / cover no-repeat;
}
.inner-hero .eyebrow { color: #8fdcf3; }
.inner-hero p { max-width: 760px; color: rgba(255,255,255,0.82); }
.inner-hero--compact { padding-bottom: 16px; }
.two-column { grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.article-panel,
.info-panel { padding: 32px; }
.article-panel--wide { max-width: 920px; margin: 0 auto; }
.rich-text,
.article-wrap { line-height: 1.9; }
.rich-text img,
.article-wrap img,
.rich-text video,
.article-wrap video {
  display: block;
  max-width: 100%;
  height: auto !important;
}
.rich-text table,
.article-wrap table { width: 100% !important; max-width: 100%; }
.product-center-grid { margin-top: 28px; }
.product-center-intro { max-width: 760px; }

.product-list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-list-card { position: relative; min-height: 240px; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.86); border: 1px solid var(--line); box-shadow: var(--shadow); }
.product-list-index { color: var(--brand); font-size: 12px; letter-spacing: .15em; }
.product-list-card h2 { margin: 18px 0 14px; font-size: 22px; }
.product-list-card p { color: var(--muted); line-height: 1.75; }
.product-list-link { position: absolute; left: 28px; bottom: 24px; color: var(--brand-deep); font-weight: 600; }
.product-category-line { margin-bottom: 24px; color: var(--brand-deep); font-weight: 700; }
.product-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 34px; }
.product-spec { padding: 20px; border-radius: 18px; background: #f3f7f8; border: 1px solid rgba(15,92,130,.1); }
.product-spec span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.product-spec strong { display: block; line-height: 1.65; }
.product-feature, .product-applications { padding: 26px 0; border-top: 1px solid var(--line); }
.product-feature h2, .product-applications h2, .product-inquiry h2 { margin: 10px 0 14px; }
.product-feature p { color: var(--muted); line-height: 1.9; }
.product-applications ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.product-applications li { padding: 9px 14px; border-radius: 999px; background: rgba(24,167,216,.1); color: var(--brand-deep); }
.product-source { padding: 16px 18px; border-left: 3px solid var(--accent); background: #faf8f2; color: var(--muted); font-size: 13px; }
.product-inquiry { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 30px; padding: 26px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #0f3346, #0f5c82); }
.product-inquiry .eyebrow, .product-inquiry p { color: rgba(255,255,255,.78); }
.product-inquiry .btn-primary { flex: none; background: #fff; color: var(--brand-deep); }

.site-footer {
  color: rgba(255,255,255,0.82);
  background: #0f141a;
}
.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 24px;
  padding: 56px 0 40px;
}
.footer-grid h4 { margin: 0 0 16px; color: #fff; }
.footer-grid a,
.footer-grid p { display: block; margin: 0 0 10px; color: rgba(255,255,255,0.7); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .header-shell,
  .hero-grid,
  .oem-grid,
  .two-column,
  .footer-grid { grid-template-columns: 1fr; }
  .header-meta { align-items: flex-start; }
  .main-nav { flex-wrap: wrap; justify-content: flex-start; }
  .category-grid,
  .feature-grid,
  .news-grid,
  .news-grid--listing,
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .product-list-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1200px); }
  .hero-copy,
  .feature-card,
  .category-card,
  .news-card,
  .article-panel,
  .info-panel,
  .service-list article { padding: 22px; }
  .hero-copy { padding-left: 0; padding-right: 0; }
  .hero-panel { min-height: 440px; grid-template-columns: 1fr; }
  .product-visual { min-height: 260px; padding: 24px; }
  .hero-actions,
  .hero-points,
  .feature-grid,
  .news-grid,
  .news-grid--listing,
  .service-list { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 180px; padding: 92px 14px 16px; }
  .category-card::before { height: 78px; background-size: 250% auto; }
  .category-card strong { margin-bottom: 7px; font-size: 16px; line-height: 1.35; }
  .category-card span { font-size: 12px; line-height: 1.55; }
  .product-list-grid, .product-spec-grid { grid-template-columns: 1fr; }
  .product-inquiry { align-items: flex-start; flex-direction: column; }
  .footer-bottom .container { flex-direction: column; }
}
