/* ==========================================================================
   安世加 (www.anshijia.net.cn) — V1.0 品牌重塑正式版样式表
   定位：中国出海企业全球数字信任安全合规先行者与深耕者
   核心产品：1+N 控制项映射引擎（一次证据采集、多标并行取证）
   ========================================================================== */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --navy: #0f2952;
  --navy-light: #1e4280;
  --primary: #1a56db;
  --primary-soft: rgba(26, 86, 219, 0.08);
  --teal: #0d9488;
  --gold: #c9a227;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 18px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.65rem; color: var(--navy); line-height: 1.28; }
p { margin: 0; color: var(--muted); }

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

/* Top announcement bar */
.asj-topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.asj-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.asj-topbar a {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: underline;
}

/* Header & Navigation */
.asj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  min-height: 72px;
}
.asj-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.asj-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.asj-brand-logo {
  height: 32px;
  width: auto;
  display: block;
  border-radius: 6px;
  background: #000;
  padding: 4px 8px;
  object-fit: contain;
}
.asj-brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(26, 86, 219, 0.22);
}
.asj-brand-text strong {
  display: block;
  font-size: 1.12rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.asj-brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}
.asj-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: #334155;
  flex-wrap: wrap;
}
.asj-nav a:hover { color: var(--primary); }
.asj-nav .nav-highlight {
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  background: rgba(26, 86, 219, 0.1);
  color: var(--primary);
  font-weight: 700;
}

/* Buttons */
.btn-asj {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.3rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(120deg, var(--navy), var(--primary));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 41, 82, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-asj:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(26, 86, 219, 0.26);
}
.btn-asj-gold {
  background: linear-gradient(120deg, #b88e14, #d9b234);
  color: #fff;
}
.btn-asj-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid #cbd5e1;
  box-shadow: none;
}

/* Hero Section + Whitepaper Lead Magnet */
.asj-hero {
  padding: 3.2rem 0 2.8rem;
  background:
    radial-gradient(circle at 12% 15%, rgba(26, 86, 219, 0.09), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(201, 162, 39, 0.10), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f0f5fc 100%);
  border-bottom: 1px solid var(--line);
}
.asj-hero-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.98fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 980px) {
  .asj-hero-grid { grid-template-columns: 1fr; }
}
.asj-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 41, 82, 0.08);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.asj-hero h1 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  margin-bottom: 0.8rem;
}
.asj-hero h1 span {
  color: var(--primary);
}
.asj-lead {
  font-size: 0.98rem;
  color: #475569;
  margin-bottom: 1.2rem;
}

/* 1+N Visual Architecture Card in Hero */
.engine-arch-box {
  background: #ffffff;
  border: 1.5px solid rgba(26, 86, 219, 0.22);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  margin: 1.15rem 0 1.35rem;
  box-shadow: 0 8px 24px rgba(15, 41, 82, 0.06);
}
.engine-arch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--line);
}
.engine-arch-header strong {
  color: var(--navy);
  font-size: 0.94rem;
}
.engine-arch-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.engine-flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.35fr;
  gap: 0.75rem;
  align-items: center;
}
@media (max-width: 640px) {
  .engine-flow-grid { grid-template-columns: 1fr; }
}
.engine-source-node {
  background: linear-gradient(135deg, #0f2952, #1e4280);
  color: #fff;
  padding: 0.85rem;
  border-radius: 12px;
  font-size: 0.8rem;
}
.engine-source-node strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: #fbbf24;
}
.engine-arrow {
  font-weight: 900;
  color: var(--primary);
  font-size: 1.25rem;
  text-align: center;
}
.engine-targets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}
.engine-target-pill {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.42rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.16s ease;
}
.engine-target-pill:hover, .engine-target-pill.is-active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}
.engine-mapping-detail {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: #f0f7ff;
  border-radius: 8px;
  font-size: 0.79rem;
  color: #1e3a8a;
  font-weight: 600;
}

.asj-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
@media (max-width: 640px) {
  .asj-stats-bar { grid-template-columns: repeat(2, 1fr); }
}
.asj-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 4px 12px rgba(15, 41, 82, 0.04);
}
.asj-stat-card strong {
  display: block;
  font-size: 1.28rem;
  color: var(--primary);
}
.asj-stat-card span {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Whitepaper Lead Magnet Card */
.wp-magnet-card {
  background: #fff;
  border: 2px solid rgba(26, 86, 219, 0.24);
  border-radius: 22px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 22px 50px rgba(15, 41, 82, 0.10);
  position: relative;
}
.wp-badge-gold {
  display: inline-block;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.16);
  color: #8a6a0a;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.wp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
@media (max-width: 580px) {
  .wp-form-grid { grid-template-columns: 1fr; }
}
.wp-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
}
.wp-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}
.wp-field input, .wp-field select, .wp-field textarea {
  padding: 0.58rem 0.74rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.86rem;
  font-family: inherit;
  background: #f8fafc;
}
.wp-field input:focus, .wp-field select:focus, .wp-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

/* Sections */
.asj-section {
  padding: 3.8rem 0;
}
.asj-section-alt {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.asj-sec-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.2rem;
}
.asj-sec-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
@media (max-width: 980px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Cards & Cases */
.case-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.case-filter-btn {
  padding: 0.46rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.case-filter-btn.is-active, .case-filter-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
@media (max-width: 980px) {
  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cases-grid { grid-template-columns: 1fr; }
}
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(15, 41, 82, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px rgba(26, 86, 219, 0.12);
}
.case-card.is-hidden { display: none; }
.case-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  gap: 0.4rem;
}
.case-num-badge {
  padding: 0.22rem 0.65rem;
  border-radius: 8px;
  background: rgba(15, 41, 82, 0.08);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.75rem;
}
.case-industry-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}
.case-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}
.case-profile {
  font-size: 0.82rem;
  color: #475569;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px dashed var(--line);
}
.case-block-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 0.45rem;
  margin-bottom: 0.18rem;
}
.case-text {
  font-size: 0.83rem;
  color: #334155;
  line-height: 1.55;
}
.case-outcome-box {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f7ff, #e6f0fd);
  border-left: 4px solid var(--primary);
}
.case-outcome-box strong {
  display: block;
  font-size: 0.79rem;
  color: var(--navy);
  margin-bottom: 0.16rem;
}
.case-outcome-box p {
  font-size: 0.81rem;
  color: #1e3a8a;
  font-weight: 600;
}
.case-std-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}
.case-std-tags span {
  padding: 0.18rem 0.52rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Table / Matrix Styles */
.asj-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 41, 82, 0.04);
}
.asj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.asj-table th, .asj-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.asj-table th {
  background: #f8fafc;
  color: var(--navy);
  font-weight: 800;
}
.asj-table tr:last-child td { border-bottom: none; }

/* Status Banner */
.asj-status-banner {
  margin-top: 0.8rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.asj-status-banner.is-loading {
  background: rgba(26, 86, 219, 0.08);
  border: 1px solid rgba(26, 86, 219, 0.25);
  color: var(--navy);
}
.asj-status-banner.is-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065f46;
}
.asj-status-banner.is-warning {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #92400e;
}

/* Subsidy & Dual-Track Advantage */
.subsidy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
@media (max-width: 900px) {
  .subsidy-grid { grid-template-columns: 1fr; }
}
.subsidy-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.45rem;
}
.subsidy-card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.asj-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.2rem 0 2.2rem;
  font-size: 0.85rem;
}
.asj-footer p {
  color: rgba(255, 255, 255, 0.72);
}
.asj-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 1.8rem;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .asj-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .asj-footer-grid { grid-template-columns: 1fr; }
}
.asj-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.asj-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.asj-footer ul li {
  margin-bottom: 0.45rem;
}
.asj-footer ul li a {
  color: rgba(255, 255, 255, 0.75);
}
.asj-footer ul li a:hover {
  color: #fbbf24;
}

/* V1.1 local preview: accessible optional fields and long unified CTAs. */
.btn-asj { white-space: normal; text-align: center; overflow-wrap: anywhere; }
.privacy-consent { display:block; font-size:.82rem; line-height:1.6; margin:1rem 0; }
.privacy-consent input { width:auto; margin-right:.4rem; }
#roadmap-status { border-left:4px solid #b45309; background:#fffbeb; padding:1rem; }
.wp-field select { max-width:100%; }
@media (max-width: 800px) { .asj-nav-wrap {flex-wrap:wrap;} .asj-nav {flex-wrap:wrap;} }


/* --------------------------------------------------------------------------
   2026-11-27 local draft additions (Leo feedback). Not on the live site.
   -------------------------------------------------------------------------- */

/* Item 5: clicked + scroll-spy nav highlight. Replaces the always-on whitepaper pill. */
.asj-nav a {
  position: relative;
  padding: 0.22rem 0.15rem 0.36rem;
  color: #334155;
  border-radius: 0;
}
.asj-nav a:hover { color: var(--primary); }
.asj-nav a.is-active,
.asj-nav a[aria-current="page"],
.asj-nav a.nav-highlight {
  color: var(--primary);
  font-weight: 800;
}
.asj-nav a.is-active::after,
.asj-nav a[aria-current="page"]::after,
.asj-nav a.nav-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.wp-field-hint {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}
.asj-other-input {
  margin-top: 0.4rem;
}
.asj-other-input[hidden] {
  display: none !important;
}

.summit-archive-list {
  list-style: none;
  margin: 0.85rem 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.summit-archive-list li {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.summit-archive-list strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.summit-archive-list span,
.summit-link-note {
  font-size: 0.82rem;
  color: var(--muted);
}
.summit-link-note {
  margin-top: 0.85rem;
}

.asj-wechat-sync {
  padding: 2.4rem 0 0.4rem;
}
.wechat-sync-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.wechat-sync-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
}
.wechat-sync-filter.is-active {
  background: var(--primary-soft);
  border-color: rgba(26, 86, 219, 0.35);
  color: var(--primary);
  font-weight: 800;
}
.wechat-sync-list {
  display: grid;
  gap: 0.7rem;
}
.wechat-sync-empty,
.wechat-sync-item {
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
}
.wechat-sync-item a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}
.wechat-sync-item .sync-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

.asj-contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 10px 24px rgba(15, 41, 82, 0.05);
}
.asj-contact-phone {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 0.55rem;
}
.asj-contact-phone a {
  color: var(--primary);
  text-decoration: underline;
}
.asj-contact-card p + p { margin-top: 0.35rem; }
.asj-contact-card a { color: var(--primary); font-weight: 700; }

.summit-news-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.summit-news-list a {
  color: var(--primary);
  font-weight: 650;
  font-size: 0.86rem;
  text-decoration: underline;
  line-height: 1.45;
}
.summit-news-list a:hover { color: var(--navy); }
