/* ===== Article Page — Hancore Crystal Acrylic Design =====
   Scoped to .art-page so it does not affect the four existing article pages. */

/* --- Language system fix: table cells must stay table-cell in CN mode --- */
body.lang-cn .art-spec-table th[data-lang="cn"],
body.lang-cn .art-spec-table td[data-lang="cn"] {
  display: table-cell;
}

/* ===== Hero ===== */
.art-hero {
  position: relative;
  padding: 132px 0 64px;
  background: linear-gradient(145deg, #F7FAFF 0%, #EAF4FF 40%, #F0F7FF 70%, #F7FAFF 100%);
  overflow: hidden;
}

.art-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 620px 320px at 76% 30%, rgba(36,87,197,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 480px 300px at 18% 62%, rgba(168,221,245,0.16) 0%, transparent 62%);
  z-index: 1;
}

.art-hero::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 60px at 50% 100%, rgba(255,255,255,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 520px 44px at 44% 78%, rgba(234,244,255,0.5) 0%, transparent 60%);
  z-index: 1;
}

.art-hero .container {
  position: relative;
  z-index: 2;
}

.art-hero .breadcrumb {
  justify-content: flex-start;
  color: rgba(10,36,99,0.45);
}

.art-hero .breadcrumb a {
  color: rgba(10,36,99,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.art-hero .breadcrumb a:hover {
  color: #2457C5;
}

.art-hero .breadcrumb .sep {
  color: rgba(10,36,99,0.3);
}

.art-cat-badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #2457C5;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(36,87,197,0.16);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.art-title {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #0A2463;
}

.art-meta {
  margin-bottom: 22px;
  font-size: 0.9rem;
  color: #4A5568;
}

.art-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.art-keywords li {
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #1B3FA0;
  background: rgba(234,244,255,0.85);
  border: 1px solid rgba(36,87,197,0.12);
  border-radius: 6px;
}

/* ===== Lead figure ===== */
.art-lead-figure {
  padding: 48px 0 8px;
  background: #F7FAFF;
}

/* ===== Body sections ===== */
.art-section {
  padding: 48px 0 8px;
  background: #F7FAFF;
}

.art-section--related {
  padding: 24px 0 72px;
}

.art-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.art-body h2 {
  margin: 52px 0 18px;
  padding-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2457C5;
  border-bottom: 1px solid rgba(36,87,197,0.12);
}

.art-body h2:first-child {
  margin-top: 0;
}

.art-body h3 {
  margin: 36px 0 14px;
  padding-left: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0A2463;
  border-left: 3px solid #56BFA9;
}

.art-body p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.85;
  color: #2c3e50;
}

.art-body ul {
  margin: 18px 0 26px;
  padding-left: 4px;
}

.art-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #2c3e50;
  list-style: none;
}

.art-body ul li::before {
  content: '\2014';
  flex-shrink: 0;
  color: #56BFA9;
  font-weight: 700;
}

/* The bold lead is a flex item; without this CJK labels squeeze to one character wide. */
.art-body ul li > strong {
  flex-shrink: 0;
}

/* Standards line that sits directly under each test heading */
/* .art-body p (0,2,1) would otherwise win on color and margin */
.art-body .art-std {
  margin: -10px 0 22px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: #3FA98E;
}

/* Numbered evaluation-programme steps */
.art-steps {
  counter-reset: artstep;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.art-steps li {
  counter-increment: artstep;
  position: relative;
  margin-bottom: 10px;
  padding: 14px 18px 14px 54px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #2c3e50;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(36,87,197,0.11);
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(10,36,99,0.035);
}

.art-steps li::before {
  content: counter(artstep);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  color: #FFFFFF;
  background: linear-gradient(145deg, #2457C5, #1B3FA0);
  border-radius: 50%;
}

/* ===== Figures ===== */
.art-figure {
  margin: 32px 0;
  padding: 0;
}

.art-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(36,87,197,0.1);
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(10,36,99,0.10);
}

.art-figure--lead img {
  max-height: 420px;
}

/* Vector diagrams must never be cropped or letterboxed by object-fit: cover */
.art-figure--schematic img {
  max-height: none;
  object-fit: contain;
  background: #F7FAFF;
}

.art-figure figcaption {
  margin-top: 14px;
  padding: 0 4px;
  font-size: 0.82rem;
  line-height: 1.65;
  font-style: italic;
  color: #5a6a7e;
}

/* Powder-dish visual is illustrative, so it sits smaller and centred */
.art-section .art-figure img {
  max-width: 560px;
  margin: 0 auto;
  object-fit: contain;
  background: #FFFFFF;
}

/* ===== HM003 spec table ===== */
.art-table-wrap {
  margin: 28px 0 24px;
  overflow: visible;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(36,87,197,0.12);
  border-radius: 16px;
  box-shadow:
    0 6px 24px rgba(36,87,197,0.06),
    inset 0 1px 0 rgba(255,255,255,0.85);
}

.art-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.art-spec-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #0A2463;
  background: linear-gradient(180deg, #EAF4FF 0%, #F0F7FF 100%);
  border-bottom: 1px solid rgba(36,87,197,0.16);
}

.art-spec-table thead tr th:first-child {
  border-top-left-radius: 15px;
}

.art-spec-table thead tr th:last-child {
  border-top-right-radius: 15px;
}

.art-spec-table tbody th {
  padding: 13px 20px;
  width: 46%;
  text-align: left;
  font-weight: 600;
  color: #1B3FA0;
  border-bottom: 1px solid rgba(36,87,197,0.07);
}

.art-spec-table tbody td {
  padding: 13px 20px;
  color: #2c3e50;
  border-bottom: 1px solid rgba(36,87,197,0.07);
}

.art-spec-table tbody tr:nth-child(even) th,
.art-spec-table tbody tr:nth-child(even) td {
  background: rgba(234,244,255,0.42);
}

.art-spec-table tbody tr:last-child th,
.art-spec-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== Callout and note blocks ===== */
.art-callout {
  margin: 26px 0;
  padding: 18px 22px;
  font-size: 0.96rem;
  line-height: 1.75;
  color: #0A2463;
  background: rgba(86,191,169,0.09);
  border: 1px solid rgba(86,191,169,0.28);
  border-left: 4px solid #56BFA9;
  border-radius: 10px;
}

.art-note {
  margin: 22px 0;
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #4A5568;
  background: rgba(234,244,255,0.7);
  border: 1px solid rgba(36,87,197,0.12);
  border-radius: 10px;
}

.art-note strong {
  color: #1B3FA0;
}

.art-signature {
  font-size: 0.9rem;
  color: #5a6a7e;
}

/* ===== CTA ===== */
.art-cta {
  margin: 48px 0 40px;
  padding: 40px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 420px 200px at 82% 12%, rgba(168,221,245,0.28) 0%, transparent 70%),
    linear-gradient(145deg, #FFFFFF 0%, #F0F7FF 100%);
  border: 1px solid rgba(36,87,197,0.14);
  border-radius: 18px;
  box-shadow:
    0 10px 36px rgba(36,87,197,0.09),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.art-cta h3 {
  margin: 0 0 12px;
  padding-left: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0A2463;
  border-left: none;
}

.art-cta p {
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4A5568;
}

.art-cta .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.art-cta .art-signature {
  max-width: none;
  margin: 22px 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #5a6a7e;
}

.art-cta .btn {
  text-decoration: none;
}

/* The global .btn-outline is built for dark hero backgrounds (white text on
   transparent). On this light CTA panel that renders white-on-white. */
.art-cta .btn-outline {
  color: #1B3FA0;
  background: #FFFFFF;
  border: 1.5px solid rgba(36,87,197,0.38);
}

.art-cta .btn-outline:hover {
  color: #2457C5;
  background: #F0F7FF;
  border-color: rgba(36,87,197,0.65);
}

/* ===== Editorial notes ===== */
.art-editorial {
  margin: 40px 0 56px;
  padding: 26px 28px;
  background: rgba(247,250,255,0.9);
  border: 1px solid rgba(36,87,197,0.1);
  border-radius: 14px;
}

.art-editorial h3 {
  margin: 0 0 16px;
  padding-left: 12px;
  font-size: 1.02rem;
  color: #0A2463;
  border-left: 3px solid #2457C5;
}

.art-editorial p {
  margin-bottom: 14px;
  font-size: 0.86rem;
  line-height: 1.75;
  color: #5a6a7e;
}

.art-editorial p:last-child {
  margin-bottom: 0;
}

/* ===== Related ===== */
.art-section .related-articles h3 {
  color: #0A2463;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .art-hero {
    padding: 112px 0 48px;
  }

  .art-title {
    font-size: 1.75rem;
  }

  .art-body h2 {
    margin-top: 40px;
    font-size: 1.3rem;
  }

  .art-body h3 {
    font-size: 1.05rem;
  }

  .art-figure--lead img {
    max-height: none;
  }

  .art-section .art-figure img {
    max-width: 100%;
  }

  .art-cta {
    padding: 32px 20px;
  }

  .art-cta .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .art-cta .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* The bold lead inside a flex li cannot shrink below its single-line width,
     which widened the mobile layout viewport. Flow the lead as normal text. */
  .art-body ul li {
    display: block;
    position: relative;
    padding: 7px 0 7px 22px;
  }

  .art-body ul li::before {
    position: absolute;
    left: 0;
  }
}

/* Stacked spec table on narrow screens */
@media (max-width: 640px) {
  .art-spec-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
  }

  .art-spec-table,
  .art-spec-table tbody {
    display: block;
    width: 100%;
  }

  .art-spec-table tbody tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(36,87,197,0.1);
  }

  .art-spec-table tbody tr:nth-child(even) th,
  .art-spec-table tbody tr:nth-child(even) td {
    background: transparent;
  }

  .art-spec-table tbody tr:last-child {
    border-bottom: none;
  }

  body.lang-cn .art-spec-table th[data-lang="cn"],
  body.lang-cn .art-spec-table td[data-lang="cn"],
  .art-spec-table tbody th,
  .art-spec-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    width: auto;
    padding: 4px 18px;
    border-bottom: none;
    text-align: left;
  }

  .art-spec-table tbody th {
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: #5a6a7e;
  }

  .art-spec-table tbody td {
    font-size: 0.98rem;
    font-weight: 600;
    color: #0A2463;
  }
}
