:root {
    --detail-ink: #182230;
    --detail-heading: #101828;
    --detail-muted: #667085;
    --detail-blue: #2563eb;
    --detail-blue-dark: #1947b8;
    --detail-cyan: #0ea5e9;
    --detail-border: #e6eaf0;
    --detail-surface: #ffffff;
    --detail-background: #f4f7fb;
    --detail-shadow: 0 24px 70px rgba(15, 35, 75, .12);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body.site-detail-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 2%, rgba(147, 197, 253, .35), transparent 28%),
        radial-gradient(circle at 96% 14%, rgba(186, 230, 253, .4), transparent 25%),
        var(--detail-background);
    color: var(--detail-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-detail-shell {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.site-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin-bottom: 26px;
}

.site-detail-brand,
.site-detail-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}

.site-detail-brand { gap: 11px; color: var(--detail-heading); }
.site-detail-brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--detail-blue), var(--detail-cyan)); border-radius: 11px; box-shadow: 0 8px 18px rgba(37, 99, 235, .25); font-size: 16px; font-weight: 800; }
.site-detail-brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.site-detail-brand-caption { color: var(--detail-muted); font-size: 12px; font-weight: 500; }
.site-detail-back { gap: 7px; padding: 0 13px; color: var(--detail-muted); border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 700; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.site-detail-back:hover, .site-detail-back:focus { color: var(--detail-blue); background: rgba(255, 255, 255, .78); border-color: var(--detail-border); text-decoration: none; }

.site-detail-card { overflow: hidden; background: var(--detail-surface); border: 1px solid rgba(214, 222, 235, .9); border-radius: 24px; box-shadow: var(--detail-shadow); }

.site-detail-hero { position: relative; display: flex; align-items: center; gap: 30px; min-height: 280px; padding: 52px 64px; overflow: hidden; background: linear-gradient(120deg, #112a67 0%, #1d4ed8 56%, #0ea5e9 100%); color: #fff; }
.site-detail-hero::before, .site-detail-hero::after { position: absolute; content: ""; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; pointer-events: none; }
.site-detail-hero::before { width: 420px; height: 420px; right: -100px; top: -260px; }
.site-detail-hero::after { width: 300px; height: 300px; right: 120px; bottom: -240px; }

.site-detail-icon { position: relative; z-index: 1; width: 112px; height: 112px; flex: 0 0 112px; padding: 16px; object-fit: contain; background: rgba(255, 255, 255, .98); border: 8px solid rgba(255, 255, 255, .15); border-radius: 30px; box-shadow: 0 16px 34px rgba(5, 20, 60, .24); }
.site-detail-hero > div { position: relative; z-index: 1; min-width: 0; }
.site-detail-kicker { margin: 0 0 13px; color: #bfdbfe; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-detail-title { margin: 0 0 13px; color: #fff; font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.055em; line-height: 1.08; }
.site-detail-url { display: inline-flex; max-width: 100%; padding: 7px 11px; overflow: hidden; color: #dbeafe; background: rgba(5, 25, 75, .25); border: 1px solid rgba(255, 255, 255, .16); border-radius: 7px; font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }

.site-detail-body { padding: 44px 64px 50px; }
.site-detail-label { margin: 0 0 12px; color: var(--detail-blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-detail-description { max-width: 760px; margin: 0 0 32px; color: #475467; font-size: 18px; line-height: 1.85; }
.site-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-detail-action { display: inline-flex; align-items: center; justify-content: center; min-width: 146px; min-height: 48px; padding: 12px 21px; border-radius: 10px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.site-detail-action:hover, .site-detail-action:focus { text-decoration: none; transform: translateY(-2px); }
.site-detail-action-primary { color: #fff; background: var(--detail-blue); box-shadow: 0 10px 20px rgba(37, 99, 235, .2); }
.site-detail-action-primary:hover, .site-detail-action-primary:focus { color: #fff; background: var(--detail-blue-dark); box-shadow: 0 13px 24px rgba(37, 99, 235, .28); }
.site-detail-action-secondary { color: #344054; background: #f2f4f7; }
.site-detail-action-secondary:hover, .site-detail-action-secondary:focus { color: #182230; background: #e4e7ec; }

.site-detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 32px; }
.site-detail-meta-item { min-width: 0; padding: 15px 16px; background: #f8fafc; border: 1px solid #edf0f5; border-radius: 12px; }
.site-detail-meta-label { display: block; margin-bottom: 6px; color: #98a2b3; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-detail-meta-value { display: block; overflow: hidden; color: #344054; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.site-detail-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 30px; padding: 15px 17px; color: #667085; background: #f8fafc; border: 1px solid #edf0f5; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.site-detail-note-icon { color: #12b76a; font-size: 17px; line-height: 1.3; }
.site-detail-footer { margin-top: 22px; color: #98a2b3; font-size: 12px; text-align: center; }

@media (max-width: 680px) {
    .site-detail-shell { width: min(100% - 24px, 1080px); padding: 16px 0 36px; }
    .site-detail-topbar { margin-bottom: 16px; }
    .site-detail-brand-caption { display: none; }
    .site-detail-hero { align-items: flex-start; flex-direction: column; gap: 22px; min-height: 0; padding: 32px 24px 38px; }
    .site-detail-icon { width: 84px; height: 84px; flex-basis: 84px; padding: 12px; border-width: 5px; border-radius: 22px; }
    .site-detail-title { font-size: 36px; }
    .site-detail-url { max-width: calc(100vw - 72px); }
    .site-detail-body { padding: 30px 24px 32px; }
    .site-detail-description { font-size: 16px; line-height: 1.75; }
    .site-detail-meta { grid-template-columns: 1fr; }
    .site-detail-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
