/* ============================================================
   中电华联 · 云虚拟主机 默认/错误页样式
   主题：红白（品牌红 #D32F2F）
   作者：vhost.css  v2.0
   ============================================================ */

/* ---------- 设计 Token ---------- */
:root {
    --brand-700: #B71C1C;
    --brand-600: #D32F2F;
    --brand-500: #E53935;
    --brand-50:  #FFF5F5;
    --brand-100: #FFE3E3;

    --ink-900: #1F2328;
    --ink-700: #3A424C;
    --ink-600: #5A6472;
    --ink-400: #8A94A3;

    --line: #ECEEF1;
    --bg:   #F7F8FA;
    --white:#FFFFFF;

    --amber:   #E8A33D;
    --amber-50:#FFF9EF;
    --amber-line:#F6DDB8;
    --amber-ink:#8A5A00;

    --deep-700:#8E1B1B;

    --radius:    16px;
    --radius-sm: 10px;

    --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
    --shadow-md: 0 6px 20px rgba(16,24,40,.08);
    --shadow-lg: 0 18px 44px rgba(16,24,40,.12);
    --shadow-red:0 10px 24px rgba(211,47,47,.28);

    --font: 'Microsoft YaHei', 'Segoe UI', 'PingFang SC',
            'Hiragino Sans GB', 'WenQuanYi Micro Hei',
            system-ui, -apple-system, sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    line-height: 1.65;
    color: var(--ink-900);
    background:
        radial-gradient(1100px 480px at 50% -12%, #FFEDED 0%, rgba(255,237,237,0) 70%),
        var(--bg);
    min-height: 100vh;
    padding: 32px 20px 48px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

a {
    color: var(--brand-700);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover {
    color: var(--brand-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 无障碍：键盘焦点 */
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(211,47,47,.45);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ---------- 内联 SVG 图标 ---------- */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ico {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

/* ---------- 容器 ---------- */
.container {
    max-width: 1080px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* ---------- 头部 ---------- */
.header {
    position: relative;
    padding: 24px 40px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFCFC 100%);
}

.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-700), var(--brand-500) 45%, #FFC9C9);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    box-shadow: var(--shadow-red);
}
.brand-mark .ico {
    width: 26px;
    height: 26px;
    stroke-width: 1.7;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.3;
}
.brand-text .dot {
    color: var(--brand-600);
    margin: 0 2px;
}
.tagline {
    margin-top: 2px;
    font-size: .88rem;
    color: var(--ink-600);
}

.brand-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: .85rem;
    color: var(--ink-700);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 999px;
}
.brand-badge code {
    font-family: inherit;
    font-weight: 700;
    color: var(--brand-700);
    word-break: break-all;
}

/* ---------- 主体 ---------- */
.main {
    padding: 36px 40px 44px;
}

/* ---------- 状态区 ---------- */
.status {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.status--warn {
    background: linear-gradient(135deg, #FFFBF3 0%, var(--amber-50) 100%);
    border: 1px solid var(--amber-line);
}
.status--danger {
    background: linear-gradient(135deg, #FFF6F6 0%, var(--brand-50) 100%);
    border: 1px solid var(--brand-100);
}

.status-mark {
    flex: none;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
}
.status--warn .status-mark {
    background: linear-gradient(135deg, #F2BB67, var(--amber));
    box-shadow: 0 10px 22px rgba(232,163,61,.30);
}
.status--danger .status-mark {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    box-shadow: var(--shadow-red);
}
.status-mark .ico {
    width: 36px;
    height: 36px;
    stroke-width: 1.7;
}

.status-code {
    flex: none;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    color: var(--brand-600);
    align-self: center;
}
.status--blocked .status-code {
    color: var(--deep-700);
}

.status-body {
    flex: 1;
    min-width: 0;
}
.status-body h2 {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.35;
}
.status-body > p {
    margin-top: 8px;
    font-size: .98rem;
    color: var(--ink-600);
}
.status--warn .status-body h2 { color: var(--amber-ink); }

.visit-host {
    margin-top: 12px !important;
    font-size: .88rem !important;
}
.visit-host code {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 4px;
    font-family: inherit;
    font-weight: 700;
    color: var(--brand-700);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    word-break: break-all;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease,
                background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .ico {
    width: 18px;
    height: 18px;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: var(--brand-600);
    box-shadow: var(--shadow-red);
}
.btn-primary:hover {
    color: #fff;
    background: var(--brand-700);
    box-shadow: 0 12px 26px rgba(211,47,47,.34);
}

.btn-ghost {
    color: var(--ink-700);
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
    color: var(--brand-700);
    border-color: var(--brand-600);
}

/* ---------- 区块 ---------- */
.block {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ink-900);
}
h3 .ico {
    width: 20px;
    height: 20px;
    color: var(--brand-600);
    stroke-width: 2;
}
h3.h3-sm {
    font-size: 1rem;
    margin-bottom: 14px;
}
h3.h3-sm .ico {
    width: 17px;
    height: 17px;
}

/* ---------- 原因卡片 ---------- */
.cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    padding: 22px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-2px);
    border-color: #F3B9B9;
    box-shadow: 0 10px 24px rgba(211,47,47,.09);
}
.card-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    color: var(--brand-600);
    background: var(--brand-50);
    border-radius: 12px;
}
.card-ico .ico {
    width: 22px;
    height: 22px;
}
.card h4 {
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 700;
}
.card p {
    font-size: .9rem;
    color: var(--ink-600);
}

/* ---------- 解决步骤 ---------- */
.steps {
    list-style: none;
    display: grid;
    gap: 18px;
}
.steps li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.step-no {
    flex: none;
    width: 30px;
    height: 30px;
    margin-top: 2px;
    display: grid;
    place-items: center;
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(211,47,47,.24);
}
.step-body {
    flex: 1;
    min-width: 0;
}
.step-body strong {
    display: block;
    margin-bottom: 3px;
    font-size: 1rem;
    font-weight: 700;
}
.step-body p {
    font-size: .92rem;
    color: var(--ink-600);
}

/* ---------- 提示条 ---------- */
.note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 16px 18px;
    background: var(--brand-50);
    border-left: 4px solid var(--brand-600);
    border-radius: var(--radius-sm);
}
.note .ico {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--brand-600);
}
.note p {
    font-size: .92rem;
    color: var(--ink-700);
}

/* ---------- 优势横带 ---------- */
.perks {
    list-style: none;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-700);
    background: linear-gradient(180deg, #FFFDFD, #FFF7F7);
    border: 1px solid #F7E2E2;
    border-radius: var(--radius-sm);
}
.perks .ico {
    width: 20px;
    height: 20px;
    color: var(--brand-600);
}
.perks span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}
.perks small {
    font-size: .76rem;
    font-weight: 400;
    color: var(--ink-400);
}

/* ---------- 产品标签带 ---------- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-700);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: transform .15s ease, border-color .15s ease,
                background-color .15s ease, color .15s ease;
}
.tag .ico {
    width: 16px;
    height: 16px;
    color: var(--brand-600);
}
.tag:hover {
    color: var(--brand-700);
    background: var(--brand-50);
    border-color: var(--brand-600);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ---------- 页脚 ---------- */
.footer {
    position: relative;
    padding: 28px 40px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--deep-700) 0%, #4A0A0A 100%);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-700), var(--brand-500), #FFB3B3);
}
.footer p {
    font-size: .95rem;
    opacity: .94;
}
.footer .copyright {
    margin-top: 8px;
    font-size: .84rem;
    opacity: .66;
    letter-spacing: .5px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    body { padding: 20px 14px 32px; }

    .container { border-radius: 16px; }
    .header    { padding: 20px 22px; }
    .main      { padding: 26px 22px 34px; }
    .footer    { padding: 24px 22px; }

    .brand-text h1 { font-size: 1.28rem; }

    .status {
        flex-direction: column;
        gap: 18px;
        padding: 24px;
    }
    .status-code { font-size: 4rem; align-self: flex-start; }

    .brand-badge {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .brand { gap: 12px; }
    .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .brand-mark .ico { width: 22px; height: 22px; }

    .brand-text h1 { font-size: 1.1rem; }
    .tagline { font-size: .8rem; }

    .status { padding: 20px; }
    .status-mark {
        width: 58px;
        height: 58px;
        border-radius: 15px;
    }
    .status-mark .ico { width: 28px; height: 28px; }
    .status-body h2 { font-size: 1.28rem; }
    .status-code { font-size: 3.4rem; }

    .status-actions { flex-direction: column; }
    .status-actions .btn { width: 100%; }

    h3 { font-size: 1.05rem; }
    .card { padding: 18px 16px; }
    .note { padding: 14px 15px; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 打印 ---------- */
@media print {
    body {
        padding: 0;
        color: #000;
        background: #fff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .container {
        max-width: none;
        border: 1px solid #ccc;
        border-radius: 0;
        box-shadow: none;
    }
    .header,
    .footer {
        color: #000 !important;
        background: #fff !important;
        border-color: #ccc !important;
    }
    .header::after,
    .footer::before { display: none !important; }

    .brand-mark,
    .status-mark,
    .step-no {
        color: #000 !important;
        background: #fff !important;
        border: 1px solid #bbb;
        box-shadow: none !important;
    }
    .status,
    .card,
    .note,
    .perks li,
    .tag,
    .btn {
        background: #fff !important;
        border-color: #ccc !important;
        box-shadow: none !important;
    }
    .status-code,
    .status--blocked .status-code,
    .card-ico,
    .step-no,
    .note .ico,
    .perks .ico,
    .tag .ico { color: #000 !important; }

    a { color: #000 !important; text-decoration: underline; }

    .card,
    .steps li,
    .perks li,
    .tag { break-inside: avoid; }

    .main { padding: 0 12px; }
}