:root{
  color-scheme: light;
  --bg:#fbfbfb;
  --panel:#ffffff;
  --panel-soft:#f4f4f2;
  --ink:#101214;
  --muted:#5a5d62;
  --line:rgba(16,18,20,.14);
  --line-strong:rgba(16,18,20,.28);
  --accent:#c12828;
  --accent-2:#111111;
  --accent-3:#667085;
  --shadow:0 14px 32px rgba(17, 20, 25, .08);
  --shadow-soft:0 8px 18px rgba(17, 20, 25, .06);
  --radius-xl:12px;
  --radius-lg:10px;
  --radius-md:8px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-width:320px;
  color:var(--ink);
  font-family:"Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  line-height:1.78;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f7f6 100%);
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(193,40,40,.06) 0 0) top / 100% 8px no-repeat,
    linear-gradient(90deg, rgba(16,18,20,.04) 1px, transparent 1px) top left / 40px 40px;
  opacity:.2;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.14), transparent 82%);
}
a{color:inherit;text-decoration:none}
p,ul,ol,table{margin:0}
strong{font-weight:800}

.skip-link{
  position:absolute;
  left:14px;
  top:10px;
  z-index:50;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow-soft);
  transform:translateY(-160%);
  transition:transform .2s ease;
}
.skip-link:focus{transform:translateY(0)}

.page-shell{
  width:min(var(--max), calc(100vw - 24px));
  margin:0 auto;
  padding:14px 0 42px;
}

.notice-head{
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 18px;
  border:1px solid var(--line-strong);
  border-left:6px solid var(--accent);
  border-radius:var(--radius-xl);
  background:linear-gradient(180deg, #fff, #fafafa);
  box-shadow:var(--shadow-soft);
}
.brand-line{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mark{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:10px;
  background:#fff2f2;
  border:1px solid rgba(193,40,40,.28);
  color:var(--accent);
  font:900 18px/1 "Noto Sans SC","PingFang SC",sans-serif;
}
.brand-line strong{display:block;font-size:18px;line-height:1.08}
.brand-line p{margin-top:3px;color:var(--muted);font-size:12px}
.topnav{
  margin-left:auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.topnav a{
  padding:8px 12px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
}
.topnav a:hover,
.topnav a:focus-visible{
  border-color:rgba(193,40,40,.38);
  background:#fff5f5;
  outline:none;
}

.reference-layout{
  margin-top:16px;
  display:grid;
  gap:16px;
}

.alert-panel,
.section,
.about-card{
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  background:var(--panel);
  box-shadow:var(--shadow);
}
.alert-panel{
  padding:28px;
  border-left:6px solid var(--accent);
  background:
    linear-gradient(180deg, rgba(193,40,40,.04), transparent 28%),
    #fff;
}
.eyebrow,
.section-kicker{
  display:inline-flex;
  width:fit-content;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(193,40,40,.18);
  background:rgba(193,40,40,.06);
  color:var(--accent);
  font-size:13px;
  font-weight:800;
  letter-spacing:.03em;
}
h1,h2,h3{margin:0}
.alert-panel h1{
  margin-top:14px;
  font-size:clamp(34px,4.8vw,62px);
  line-height:1.04;
  letter-spacing:-.05em;
  max-width:15ch;
}
.lead{
  margin-top:14px;
  max-width:64ch;
  color:var(--muted);
  font-size:1.04rem;
  line-height:1.9;
}

.section{
  padding:24px;
}
.section-heading{
  display:grid;
  gap:10px;
  margin-bottom:14px;
}
.section h2{
  font-size:clamp(22px,2.7vw,34px);
  line-height:1.1;
  letter-spacing:-.04em;
}

.risk-table{
  width:100%;
  border-collapse:collapse;
  border:1px solid var(--line-strong);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.risk-table th,
.risk-table td{
  text-align:left;
  vertical-align:top;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.risk-table thead th{
  background:#f5f5f4;
  color:var(--accent-2);
  font-size:.92rem;
  letter-spacing:.01em;
}
.risk-table tbody th{
  width:18%;
  background:#fffdfd;
}
.risk-table tbody tr:last-child th,
.risk-table tbody tr:last-child td{border-bottom:0}

.risk-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.risk-card{
  padding:18px;
  border:1px solid var(--line-strong);
  border-top:4px solid var(--accent);
  border-radius:var(--radius-lg);
  background:
    linear-gradient(180deg, #fff, #fcfcfb);
}
.risk-card h3{
  margin-bottom:8px;
}
.risk-card p{
  color:var(--muted);
  line-height:1.9;
}

.replace-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.replace-grid article{
  padding:18px;
  border-radius:var(--radius-lg);
  border:1px solid var(--line-strong);
  background:linear-gradient(180deg, #fff, #f8f8f7);
}
.replace-grid h3{
  margin-bottom:8px;
}
.replace-grid p{
  color:var(--muted);
  line-height:1.9;
}

.about-card{
  max-width:760px;
  margin:18px auto 0;
  padding:28px;
  border-left:6px solid var(--accent);
}
.about-card h1{
  margin-top:14px;
  font-size:clamp(32px,4.2vw,54px);
  line-height:1.04;
  letter-spacing:-.05em;
}
.about-card p{
  margin-top:14px;
  color:var(--muted);
  line-height:1.92;
}
.about-card--alert{
  background:
    linear-gradient(180deg, rgba(193,40,40,.04), transparent 24%),
    #fff;
}
.home-link-row{margin-top:18px}
.home-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(193,40,40,.2);
  background:var(--accent);
  color:#fff;
  font-weight:800;
}

.footer{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-top:18px;
  padding:12px 4px 0;
  color:var(--muted);
  font-size:.95rem;
}

@media (max-width: 980px){
  .risk-grid,
  .replace-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  .page-shell{
    width:min(var(--max), calc(100vw - 18px));
    padding-top:10px;
  }
  .notice-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .topnav{
    margin-left:0;
    justify-content:flex-start;
  }
  .alert-panel,
  .section,
  .about-card{
    padding:18px;
  }
  .alert-panel h1,
  .about-card h1{
    font-size:clamp(28px,8vw,38px);
    max-width:none;
  }
  .risk-table thead{
    display:none;
  }
  .risk-table,
  .risk-table tbody,
  .risk-table tr,
  .risk-table th,
  .risk-table td{
    display:block;
    width:100%;
  }
  .risk-table tr{
    border-bottom:1px solid var(--line);
  }
  .risk-table th,
  .risk-table td{
    border-bottom:0;
    padding:12px 12px 0;
  }
  .risk-table td{
    padding-bottom:12px;
    color:var(--muted);
  }
  .risk-table tbody th{
    background:transparent;
  }
  .footer{
    flex-direction:column;
    align-items:flex-start;
  }
}
