/* =========================================================
   Plan Man — product detail pages (products/*.html)
   Loaded after styles.css and apple.css. Pages are generated by tools/seo-build.js.
   ========================================================= */

/* ---------- Hero ---------- */
.pd-hero { padding: calc(var(--nav-h) + 56px) 0 72px; background: var(--bg); }
.pd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.pd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
.pd-crumbs a { color: var(--text-2); }
.pd-crumbs a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.pd-crumbs i { font-size: 11px; }
.pd-crumbs [aria-current] { color: var(--text-3); }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.pd-meta .tag { position: static; }
.pd-meta .badge-new { position: static; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 4px 9px; }
.pd-cat { font-size: 13px; font-weight: 600; color: var(--text-3); }
.pd-hero h1 { margin-bottom: 14px; overflow-wrap: anywhere; }
.pd-model { font-size: 15px; color: var(--text-3); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.pd-model strong { color: var(--text); font-weight: 600; }
.pd-hero .lead { margin-bottom: 32px; }
.pd-keyspecs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 36px; }
.pd-keyspecs li { background: var(--surface); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pd-keyspecs span { font-size: 12px; font-weight: 600; color: var(--text-3); }
.pd-keyspecs strong { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-art {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 32px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 55%, var(--glow, var(--accent-soft)), transparent 65%),
        var(--media-bg);
}
.pd-hero[data-brand="nvidia"] { --glow: rgba(118, 185, 0, .18); }
.pd-hero[data-brand="supermicro"] { --glow: rgba(77, 163, 255, .18); }
.pd-hero[data-brand="asus"] { --glow: rgba(200, 162, 255, .18); }
.pd-art img { width: 78%; height: auto; }
.pd-art.has-photo img { position: absolute; inset: 0; margin: auto; width: 84%; height: 80%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.pd-art.has-photo .ph { display: none; }
.pd-art .ph { position: absolute; right: 24px; bottom: 20px; font-size: 40px; color: rgba(255, 255, 255, .5); }

/* ---------- In-page navigation ---------- */
.pd-subnav { position: sticky; top: var(--nav-h); z-index: 50; background: var(--nav-bg-solid); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border); }
.pd-subnav .container { display: flex; align-items: center; gap: 24px; min-height: 52px; }
.pd-subnav-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.pd-subnav ul { list-style: none; display: flex; gap: 20px; }
.pd-subnav ul a { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.pd-subnav ul a:hover { color: var(--text); }
.pd-subnav .btn { flex-shrink: 0; }
#overview, #specs, #use-cases, #related { scroll-margin-top: calc(var(--nav-h) + 60px); }

/* ---------- Overview ---------- */
.pd-overview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; margin-bottom: 72px; }
.pd-overview .h2 { font-size: clamp(28px, 3.2vw, 40px); overflow-wrap: anywhere; }
.pd-prose p { font-size: 19px; line-height: 1.55; color: var(--text-2); }
.pd-prose p + p { margin-top: 18px; }
.pd-highlights .card { padding: 32px; }
.pd-highlights .card-icon { font-size: 30px; margin-bottom: 16px; }
.pd-highlights .card h3 { font-size: 20px; margin-bottom: 8px; }
.pd-highlights .card p { font-size: 15px; color: var(--text-2); }

/* ---------- Specifications ---------- */
.pd-specs { columns: 2; column-gap: 48px; }
.pd-spec-group { break-inside: avoid; margin-bottom: 40px; }
.pd-spec-group h3 { font-size: 21px; margin-bottom: 8px; }
.pd-spec-group .spec-table { margin-bottom: 0; font-size: 15px; }
.pd-spec-group .spec-table th { width: 42%; }
.pd-models { margin-top: 8px; }
.pd-models h3 { font-size: 21px; margin-bottom: 8px; }
.pd-models .spec-table th { width: 32%; color: var(--text); font-variant-numeric: tabular-nums; }
.pd-note { font-size: 14px; color: var(--text-3); margin-top: 8px; }
.pd-source { margin-top: 40px; padding: 24px 28px; border-radius: 20px; background: var(--surface); font-size: 14px; color: var(--text-2); display: flex; gap: 14px; align-items: flex-start; }
.pd-source > i { font-size: 22px; color: var(--accent-text); flex-shrink: 0; margin-top: 1px; }
.pd-source ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0; }
.pd-source a { color: var(--accent-text); }
.pd-source a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Use cases & services ---------- */
.pd-use { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pd-use .card { padding: 40px; }
.pd-use .card h2 { font-size: 28px; margin-bottom: 20px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.pd-chips li { background: var(--bg); color: var(--text); border-radius: 980px; padding: 9px 16px; font-size: 15px; font-weight: 500; }
html[data-theme="light"] .pd-chips li { background: var(--surface-2); }
.pd-use ul.ticks li { font-size: 16px; }

/* ---------- Related ---------- */
.pd-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pd-related .product-card { text-decoration: none; }
.pd-related .product-body h3 { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .pd-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .pd-art { aspect-ratio: 16 / 10; max-width: 640px; }
    .pd-overview { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
    .pd-specs { columns: 1; }
    .pd-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-subnav ul { display: none; }
}
@media (max-width: 640px) {
    .pd-hero { padding: calc(var(--nav-h) + 32px) 0 48px; }
    .pd-keyspecs { grid-template-columns: 1fr; }
    .pd-actions .btn { flex: 1 1 100%; justify-content: center; }
    .pd-use { grid-template-columns: 1fr; }
    .pd-use .card { padding: 28px 22px; }
    .pd-related { grid-template-columns: 1fr; }
    .pd-spec-group .spec-table th { width: 44%; }
    .pd-subnav .btn { display: none; }
    .pd-source { padding: 20px; }
}
