/* ============ 全局变量（中国红色调） ============ */
:root {
    --primary: #E60012;           /* 标准中国红 */
    --primary-light: #FF4D4F;    /* 浅红色 */
    --primary-dark: #A8071A;     /* 深红色 */
    --primary-gradient: linear-gradient(135deg, #E60012, #B00020); /* 红色渐变 */
    --secondary: #FF5722;        /* 辅助橙红 */
    --success: #D32F2F;          /* 成功态红色 */
    --success-light: #FF6659;    /* 浅成功红 */
    --accent: #FF9800;           /* 强调暖橙 */
    --danger: #C62828;           /* 危险深红 */
    --danger-light: #FF5252;     /* 浅危险红 */
    --tip-red: #B71C1C;          /* 提示深红 */
    --text: #1A1A1A;             /* 主文字深灰黑（偏暖） */
    --text-light: #666666;       /* 次要文字灰 */
    --text-white: #FFF8F8;       /* 暖白色 */
    --bg: #FFF8F8;               /* 页面背景暖白 */
    --card-bg: rgba(255, 250, 250, 0.82); /* 卡片半透明暖白 */
    --glass-border: rgba(255, 255, 255, 0.4); /* 玻璃边框 */
    --shadow: 0 8px 32px -12px rgba(230, 0, 18, 0.1);
    --shadow-hover: 0 14px 40px -16px rgba(230, 0, 18, 0.18);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 12px;
    position: relative;
    overflow-x: hidden;

    /* 多层红色渐变光斑背景 */
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 87, 34, 0.28), transparent 55%),
        radial-gradient(circle at 85% 65%, rgba(230, 0, 18, 0.25), transparent 60%),
        radial-gradient(circle at 50% 90%, rgba(183, 28, 28, 0.12), transparent 50%),
        linear-gradient(135deg, #FFF0F0 0%, #FFE8E8 40%, #FFF5F5 100%);
}

/* 背景装饰光斑 */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: -1;
    animation: float 8s ease-in-out infinite alternate;
}
body::before {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(230, 0, 18, 0.5), transparent 70%);
    top: -100px; left: -80px;
}
body::after {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.45), transparent 70%);
    bottom: -60px; right: -60px;
    animation-delay: -4s;
}
@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}

a { text-decoration: none; color: inherit; }

/* ============ 容器：居中核心 ============ */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: center;
}

/* ============ 主卡片 ============ */
.card {
    width: 100%;
    max-width: 860px;
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow:
        0 12px 48px -14px rgba(230, 0, 18, 0.12),
        0 0 0 1px rgba(255,255,255,0.5) inset;
    padding: 56px 48px 48px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: left;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 56px -16px rgba(230, 0, 18, 0.18),
        0 0 0 1px rgba(255,255,255,0.6) inset;
}

/* 卡片顶部装饰线 */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 28px 28px 0 0;
}

@media (max-width: 600px) {
    .card {
        padding: 36px 22px 30px;
        border-radius: 22px;
    }
}

/* ============ 头部成功区域 ============ */
.header {
    margin-bottom: 42px;
}

.success-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.95),
        rgba(255,240,240,0.88)
    );
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow:
        0 20px 56px -16px rgba(230, 0, 18, 0.2),
        inset 0 0 0 1px rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
}

/* 头部卡片背景装饰光斑（红色系） */
.success-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(230, 0, 18, 0.12), transparent 70%);
    border-radius: 50%;
}
.success-card::after {
    content: '';
    position: absolute;
    bottom: -30px; left: 30%;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.1), transparent 70%);
    border-radius: 50%;
}

.success-icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--primary-gradient);
    border-radius: 20px;
    font-size: 34px;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow:
        0 12px 32px rgba(230, 0, 18, 0.4),
        0 0 0 4px rgba(230, 0, 18, 0.15);
    position: relative;
    z-index: 1;
    animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes iconPop {
    0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 图标外圈光晕 */
.success-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 26px;
    background: var(--primary-gradient);
    opacity: 0.15;
    animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50%      { transform: scale(1.12); opacity: 0.08; }
}

.success-text {
    position: relative;
    z-index: 1;
}

.success-text h1 {
    font-size: 30px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.2;
    animation: fadeUp 0.5s ease both;
    animation-delay: 0.15s;
}
.success-text .sub {
    margin-top: 8px;
    font-size: 15.5px;
    color: var(--text-light);
    animation: fadeUp 0.5s ease both;
    animation-delay: 0.3s;
}
@keyframes fadeUp {
    0%   { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.status-badge {
    margin-left: auto;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #E60012, #FF4D4F);
    color: #fff;
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.35);
    white-space: nowrap;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeUp 0.5s ease both;
    animation-delay: 0.45s;
}
.status-badge .pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    animation: badgePulse 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

@media (max-width: 600px) {
    .success-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 18px;
    }
    .success-text h1 { font-size: 24px; }
    .success-text .sub { font-size: 14px; }
    .status-badge { margin-left: 0; }
    .success-icon { width: 60px; height: 60px; font-size: 28px; border-radius: 16px; }
}

/* ============ 内容区 ============ */
.content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--primary-gradient);
}

/* ============ 提示框 ============ */
.notice-box {
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.06), rgba(183, 28, 28, 0.05));
    border-radius: 14px;
    padding: 20px 24px;
    font-size: 15px;
    border: 1px solid rgba(230, 0, 18, 0.1);
}
.notice-box strong { color: var(--primary-dark); }

/* ============ 目录树 ============ */
.tree {
    background: rgba(255,255,255,0.78);
    border-radius: 16px;
    padding: 22px 26px 20px;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 14px;
    line-height: 2.2;
    border: 1px solid rgba(230, 0, 18, 0.1);
    overflow-x: auto;
    box-shadow: inset 0 2px 8px rgba(230, 0, 18, 0.04);
}
.tree .root {
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
}
.tree .dir {
    color: var(--primary);
    font-weight: 600;
}
.tree .desc {
    color: var(--text-light);
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    padding-left: 6px;
}
.tree .indent { padding-left: 26px; display: block; }
.tree .indent-2 { padding-left: 50px; display: block; }

@media (max-width: 480px) {
    .tree { font-size: 13px; padding: 16px 16px 14px; }
    .tree .indent { padding-left: 18px; }
    .tree .indent-2 { padding-left: 34px; }
}

/* ============ 首页优先级 ============ */
.priority {
    background: rgba(255,255,255,0.78);
    border-radius: 16px;
    padding: 18px 26px;
    border: 1px solid rgba(230, 0, 18, 0.1);
    font-size: 14.5px;
}
.priority code {
    background: rgba(230, 0, 18, 0.1);
    padding: 3px 11px;
    border-radius: 7px;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 13px;
    color: var(--primary-dark);
    display: inline-block;
    margin: 3px 2px;
}
.priority .highlight {
    background: rgba(230, 0, 18, 0.14);
    padding: 3px 11px;
    border-radius: 7px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ============ FTP工具 ============ */
.tool-tip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    background: rgba(255,255,255,0.78);
    border-radius: 16px;
    padding: 18px 26px;
    border: 1px solid rgba(230, 0, 18, 0.1);
    font-size: 14.5px;
    align-items: center;
}
.tool-tip .tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    padding: 6px 18px 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(230, 0, 18, 0.15);
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.06);
}
.tool-tip .tag:hover {
    background: rgba(230, 0, 18, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(230, 0, 18, 0.12);
}
.tool-tip .tag .dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--primary);
}
.tool-tip .tag .dot.orange { background: var(--accent); }

.ftp-tutorial-btn {
    margin-left: auto;
    padding: 8px 18px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(230, 0, 18, 0.25);
}
.ftp-tutorial-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(230, 0, 18, 0.35);
}
@media (max-width:720px){
    .ftp-tutorial-btn {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
}

/* ============ 警告框 ============ */
.warning {
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.06), rgba(230, 0, 18, 0.03));
    border-radius: 16px;
    padding: 18px 26px;
    font-size: 14.5px;
    color: #A8071A;
    border: 1px solid rgba(230, 0, 18, 0.12);
}
.warning strong { color: var(--danger); }

/* ============ 套餐推荐 ============ */
.package-box {
    background: rgba(255,255,255,0.78);
    border-radius: 16px;
    padding: 22px 26px;
    border: 1px solid rgba(230, 0, 18, 0.1);
}
.package-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
.package-item {
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(230, 0, 18, 0.1);
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(230, 0, 18, 0.04);
}
.package-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(230, 0, 18, 0.14);
    border-color: var(--primary-light);
}
.package-item::before {
    content: "小美好";
    position: absolute;
    top: 0; right: 0;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-bottom-left-radius: 12px;
    font-weight: 600;
}
.package-item:nth-child(1)::before { content:"宪"; background: var(--primary); }
.package-item:nth-child(2)::before { content:"家"; background: var(--secondary); }
.package-item:nth-child(3)::before { content:"王"; background: var(--danger-light); }
.package-item:nth-child(4)::before { content:"者"; background: linear-gradient(135deg, #B00020, #7B0012); }

.package-item h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--primary-dark);
}
.package-item h4 a:hover { text-decoration: underline; }
.package-item p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.65;
}
.package-item .price-tag {
    display: inline-block;
    margin: 8px 0 4px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}
.package-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 7px 16px;
    border-radius: 10px;
    background: rgba(230, 0, 18, 0.08);
    transition: var(--transition);
}
.package-link:hover {
    background: var(--primary);
    color: #fff;
}
@media (max-width:600px) {
    .package-list { grid-template-columns: 1fr; }
}

/* ============ ICP说明 ============ */
.icp {
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.06), rgba(230, 0, 18, 0.02));
    border-radius: 16px;
    padding: 22px 26px;
    border: 1px solid rgba(230, 0, 18, 0.15);
    font-size: 14.5px;
}
.icp strong { color: var(--tip-red); }
.icp .highlight {
    background: #fff;
    padding: 3px 14px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(230, 0, 18, 0.2);
    display: inline-block;
    margin: 3px 0;
}

/* ============ 操作引导栏 ============ */
.action-box {
    background: var(--primary-gradient);
    border-radius: 18px;
    padding: 24px 30px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 10px 36px -10px rgba(230, 0, 18, 0.35);
    position: relative;
    overflow: hidden;
}
.action-box::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
    border-radius: 50%;
}
.action-box .text h3 { font-size: 18px; margin-bottom: 6px; position: relative; }
.action-box .text p  { font-size: 14px; opacity: 0.92; position: relative; }
.action-btn {
    padding: 11px 26px;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.action-btn:hover {
    background: #FFF0F0;
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ============ 页脚 ============ */
.footer {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid #F0D9D9;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    letter-spacing: 0.3px;
}
.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.footer a:hover { text-decoration: underline; }

/* ============ 工具类 ============ */
.inline-code {
    background: rgba(230, 0, 18, 0.1);
    padding: 2px 9px;
    border-radius: 5px;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 13px;
    color: var(--primary-dark);
}
