/* E03 catalog pages (products / plugins / services). All selectors scoped with e03- prefix. */
/* Loaded after styles.css and editorial.css; reuses --blue/--ink/--muted/--pale/--line. */

/* ---------- Intro ---------- */
.e03-intro{max-width:860px}
.e03-kicker{color:var(--blue);font-weight:600;letter-spacing:.06em;margin:0 0 16px}
.e03-lead{font-size:17px;line-height:1.9;color:var(--muted);margin:22px 0 0;max-width:780px;overflow-wrap:anywhere}
.e03-section-head{max-width:860px;margin-bottom:26px}
.e03-section-head .e03-kicker{margin-bottom:12px}
.e03-section-head h2{margin:0}
.e03-section-head>p:not(.e03-kicker){font-size:16px;line-height:1.9;color:var(--muted);margin:14px 0 0;overflow-wrap:anywhere}

/* ---------- Notice / status callout ---------- */
.e03-notice{border:1px solid var(--line);border-left:4px solid var(--blue);background:#f7faff;padding:22px 26px;margin:30px 0 0;border-radius:3px}
.e03-notice--warn{border-left-color:#c9821a;background:#fffaf0}
.e03-notice__title{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:17px;font-weight:700;letter-spacing:0;line-height:1.5;margin:0 0 10px;color:var(--ink);overflow-wrap:anywhere}
.e03-notice p{font-size:15px;line-height:1.9;color:#3c4d66;margin:0;overflow-wrap:anywhere}
.e03-notice p+p{margin-top:10px}

/* ---------- Function groups / cards ---------- */
.e03-group{margin-top:38px}
.e03-group:first-of-type{margin-top:0}
.e03-group__title{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:20px;font-weight:700;letter-spacing:0;line-height:1.5;margin:0;color:var(--ink)}
.e03-group__title span{font-size:13px;font-weight:400;color:var(--muted);margin-left:12px;letter-spacing:0}
.e03-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:3px;overflow:hidden;margin-top:18px}
.e03-card{background:#fff;padding:24px 22px;min-width:0;display:flex;flex-direction:column;gap:10px}
.e03-card h4{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:17px;font-weight:700;line-height:1.5;letter-spacing:0;margin:0;color:var(--ink);overflow-wrap:anywhere}
.e03-card p{font-size:14px;line-height:1.85;color:var(--muted);margin:0;flex:1 1 auto;overflow-wrap:anywhere}
.e03-state{display:inline-block;align-self:flex-start;font-size:12px;font-weight:600;padding:4px 10px;border-radius:3px;background:var(--pale);color:#0b4bb8;border:1px solid #cfe0f7;letter-spacing:.2px;line-height:1.5}
.e03-state--planning{background:#fff5e3;color:#8a5a00;border-color:#f0d9ab}
.e03-subhead{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:21px;font-weight:700;letter-spacing:0;line-height:1.5;margin:38px 0 16px;color:var(--ink)}

/* ---------- Tables (responsive, no horizontal scrolling) ---------- */
.e03-table{width:100%;border-collapse:collapse;border:1px solid var(--line);font-size:15px;table-layout:auto}
.e03-table th,.e03-table td{text-align:left;vertical-align:top;padding:15px 18px;border-bottom:1px solid var(--line);line-height:1.8;overflow-wrap:anywhere;word-break:break-word;min-width:0}
.e03-table thead th{background:#f2f7fe;font-size:13px;font-weight:700;color:#28466b;border-bottom:2px solid #bcd2ef}
.e03-table tbody tr:nth-child(even){background:#fbfdff}
.e03-table tbody tr:last-child td{border-bottom:0}
.e03-table td a{color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.e03-role{font-weight:700;color:var(--ink)}
.e03-code{font-variant-numeric:tabular-nums;font-weight:700;color:var(--blue);letter-spacing:.5px;white-space:nowrap}
.e03-table--catalog td:first-child,.e03-table--catalog th:first-child{width:80px}
.e03-cell-label{display:none}
.e03-footnote{font-size:13px;line-height:1.9;color:var(--muted);margin:18px 0 0;overflow-wrap:anywhere}

/* ---------- Plugin detail cards ---------- */
.e03-plugin-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}
.e03-plugin{border:1px solid var(--line);border-radius:3px;padding:22px;min-width:0;background:#fff;scroll-margin-top:20px}
.e03-plugin__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:12px}
.e03-plugin__code{font-size:12px;font-weight:700;color:#fff;background:var(--blue);padding:3px 9px;border-radius:3px;letter-spacing:.5px;white-space:nowrap}
.e03-plugin__title{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:19px;font-weight:700;letter-spacing:0;line-height:1.5;margin:0;flex:1 1 auto;min-width:0;color:var(--ink);overflow-wrap:anywhere}
.e03-plugin__head .e03-state{flex:0 0 auto}
.e03-facts{margin:0}
.e03-facts>div{display:grid;grid-template-columns:118px minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px dashed #e5ecf6}
.e03-facts>div:last-child{border-bottom:0}
.e03-facts dt{font-size:13px;font-weight:700;color:#28466b;line-height:1.8;overflow-wrap:anywhere}
.e03-facts dd{margin:0;font-size:14px;line-height:1.85;color:#3f5170;min-width:0;overflow-wrap:anywhere}
.e03-consult-link{color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.e03-consult-link::after{content:" \2197"}

/* ---------- Capability lists / split / pricing ---------- */
.e03-list{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 34px}
.e03-list li{border-top:1px solid var(--line);padding:16px 0;font-size:15px;line-height:1.85;color:var(--muted);min-width:0;overflow-wrap:anywhere}
.e03-list li strong{display:block;color:var(--ink);font-size:16px;font-weight:700;margin-bottom:4px}
.e03-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:3px;overflow:hidden;margin:0 0 26px}
.e03-split>div{background:#fff;padding:24px 22px;min-width:0}
.e03-split__tag{display:inline-block;font-size:12px;font-weight:700;color:var(--blue);border:1px solid #cfe0f7;background:var(--pale);padding:3px 9px;border-radius:3px;margin-bottom:14px;line-height:1.6}
.e03-split h4{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:16px;font-weight:700;letter-spacing:0;line-height:1.5;margin:0 0 10px;color:var(--ink);overflow-wrap:anywhere}
.e03-split p{font-size:14px;line-height:1.85;color:var(--muted);margin:0;overflow-wrap:anywhere}
.e03-price-list{list-style:none;margin:22px 0 0;padding:0;counter-reset:e03price}
.e03-price-list li{position:relative;border-top:1px solid var(--line);padding:16px 0 16px 52px;font-size:15px;line-height:1.85;color:var(--muted);min-width:0;overflow-wrap:anywhere}
.e03-price-list li::before{counter-increment:e03price;content:counter(e03price,decimal-leading-zero);position:absolute;left:0;top:15px;font-family:Georgia,serif;font-size:20px;color:var(--blue);font-weight:600}
.e03-price-list li strong{display:block;color:var(--ink);font-size:16px;font-weight:700;margin-bottom:2px}

/* ---------- CTA ---------- */
.e03-cta{margin-top:38px;padding:26px 0 0;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;gap:16px;justify-content:space-between}
.e03-cta p{font-size:17px;font-weight:600;color:var(--ink);margin:0;flex:1 1 260px;line-height:1.6;overflow-wrap:anywhere}
.e03-cta .e03-cta__button{flex:0 0 auto}

/* ---------- Optional-extension capability cards (plugins.html) ---------- */
/* Namespaced e03- classes only; design language mirrors the plan-A ecosystem cards. */
.e03-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:8px}
.e03-ext-card{display:flex;flex-direction:column;gap:14px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:26px 24px;min-width:0;transition:box-shadow .2s,transform .2s}
.e03-ext-card:hover{box-shadow:0 18px 40px rgba(10,45,110,.12);transform:translateY(-4px)}
.e03-ext-card__icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;flex:0 0 auto;border-radius:14px;background:var(--pale);color:var(--blue)}
.e03-ext-card__icon svg{width:28px;height:28px;display:block}
.e03-ext-card h3{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:19px;font-weight:700;letter-spacing:0;line-height:1.5;margin:2px 0 0;color:var(--ink);overflow-wrap:anywhere}
.e03-ext-card p{font-size:14px;line-height:1.85;color:var(--muted);margin:0;flex:1 1 auto;overflow-wrap:anywhere}
.e03-ext-card__link{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;margin-top:2px;font-size:14px;font-weight:600;color:var(--blue);text-decoration:none;border-bottom:1px solid transparent}
.e03-ext-card__link:hover{border-bottom-color:var(--blue)}
.e03-ext-card__link span{transition:transform .2s}
.e03-ext-card__link:hover span{transform:translate(2px,-2px)}
@media(prefers-reduced-motion:reduce){.e03-ext-card,.e03-ext-card__link span{transition:none}.e03-ext-card:hover{transform:none}}

/* ---------- Responsive ---------- */
@media(max-width:1050px){
  .e03-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .e03-facts>div{grid-template-columns:108px minmax(0,1fr)}
  .e03-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .e03-lead{font-size:16px;margin-top:18px}
  .e03-section-head>p:not(.e03-kicker){font-size:15px}
  .e03-notice{padding:20px 20px;margin-top:24px}
  .e03-notice p{font-size:14px}
  .e03-group{margin-top:30px}
  .e03-group__title{font-size:19px}
  .e03-group__title span{display:block;margin:4px 0 0}
  .e03-grid{grid-template-columns:1fr}
  .e03-card{padding:20px}
  .e03-card h4{font-size:17px}
  .e03-card p{font-size:14px}
  .e03-subhead{font-size:19px;margin-top:30px}
  .e03-list{grid-template-columns:1fr}
  .e03-split{grid-template-columns:1fr}
  .e03-plugin-list{grid-template-columns:1fr;gap:16px}
  .e03-card-grid{grid-template-columns:1fr;gap:16px}
  .e03-ext-card{padding:22px 20px}
  .e03-plugin{padding:20px}
  .e03-plugin__title{font-size:18px}
  .e03-facts>div{grid-template-columns:1fr;gap:2px;padding:10px 0}
  .e03-facts dt{font-size:12px}
  .e03-facts dd{font-size:14px}
  .e03-price-list li{padding-left:44px;font-size:14px}
  .e03-cta p{font-size:16px;flex-basis:100%}
}
@media(max-width:720px){
  .e03-table,.e03-table tbody,.e03-table tr,.e03-table td{display:block;width:100%}
  .e03-table{border:0;font-size:15px}
  .e03-table thead{display:none}
  .e03-table tbody tr{border:1px solid var(--line);border-radius:3px;margin-bottom:14px;padding:2px 0;background:#fff}
  .e03-table tbody tr:nth-child(even){background:#fff}
  .e03-table tbody tr:last-child{margin-bottom:0}
  .e03-table td,.e03-table tbody tr:last-child td{border-bottom:1px solid #e8eef7;padding:11px 16px}
  .e03-table tbody tr td:last-child{border-bottom:0}
  .e03-cell-label{display:block;font-size:12px;font-weight:700;color:#5a6780;margin-bottom:3px;letter-spacing:.2px}
  .e03-table--catalog tbody tr{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}
  .e03-table--catalog td:first-child{grid-column:1;grid-row:1;border-bottom:0;padding-right:6px}
  .e03-table--catalog td:nth-child(2){grid-column:2;grid-row:1;border-bottom:0;padding-left:6px;font-weight:600}
  .e03-table--catalog td:nth-child(3){grid-column:1/-1;grid-row:2;border-top:1px dashed #e8eef7}
  .e03-table--catalog td:first-child,.e03-table--catalog th:first-child{width:auto}
}
@media(max-width:400px){
  .e03-notice{padding:18px 16px}
  .e03-card,.e03-plugin,.e03-split>div{padding:18px 16px}
  .e03-group__title{font-size:18px}
  .e03-price-list li{padding-left:38px}
  .e03-cta .e03-cta__button{width:100%}
}

/* Keep the extension introduction and capability list visually connected. */
.extensions-page #main > section:first-child { padding-bottom: 20px; }
.extensions-page #e03-cards { padding-top: 20px; }

/* Remove the coloured fill behind unused grid cells. */
.e03-grid { background: #fff; }
.e03-grid > .e03-card { box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 761px) { #e03-interactive .e03-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.services-page #main > section:first-child { padding-bottom: 20px; }
.services-page #e03-textbooks { padding-top: 20px; }

/* Reduce the space between product page sections. */
.products-page #main > section:not(.contact) { padding-block: 28px; }
.products-page #main > section:first-child { padding-top: 56px; }
@media (max-width: 760px) { .products-page #main > section:not(.contact) { padding-block: 20px; } .products-page #main > section:first-child { padding-top: 42px; } }

/* Product capabilities use the same separate-card pattern as extensions. */
.products-page #e03-scope .e03-grid { gap: 18px; background: transparent; border: 0; overflow: visible; }
.products-page #e03-scope .e03-card { border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; box-shadow: none; gap: 14px; }
.e03-product-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--pale); color: var(--blue); flex: 0 0 auto; }
.e03-product-icon svg { width: 28px; height: 28px; display: block; }
