@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;600;700&display=swap');

/* ================================================================
   CSS 变量：PC / 移动端差异化
   ================================================================ */
:root {
    /* 卡片 — 白色磨砂玻璃（浅蓝背景上更实） */
    --card-bg: rgba(255, 255, 255, 0.35);
    --card-border: rgba(255, 255, 255, 0.45);
    --card-blur: blur(18px);

    /* 输入框 — 白底 + 浅蓝边框 */
    --input-bg: rgba(255, 255, 255, 0.50);
    --input-border: rgba(140, 180, 210, 0.40);
    --input-border-focus: rgba(80, 140, 200, 0.65);
    --input-blur: blur(8px);

    /* 标题 — 深蓝灰 */
    --title-color: rgba(30, 50, 80, 0.92);
    --title-accent: rgba(30, 50, 80, 0.5);

    /* 标签文字 — 中蓝灰 */
    --label-color: rgba(20, 50, 90, 0.75);

    /* 正文 */
    --text-color: rgba(15, 35, 65, 0.92);
    --text-dim: rgba(30, 55, 95, 0.50);

    /* 按钮 — 冰蓝渐变 */
    --btn-primary: linear-gradient(135deg, rgba(80, 150, 210, 0.50), rgba(50, 110, 170, 0.50));
    --btn-primary-hover: linear-gradient(135deg, rgba(100, 170, 225, 0.60), rgba(70, 130, 190, 0.60));
    --btn-primary-text: rgba(20, 40, 70, 0.95);
    --btn-glow: rgba(80, 140, 200, 0.20);

    /* 表头 */
    --th-bg: rgba(140, 180, 210, 0.12);
    --th-color: rgba(40, 70, 110, 0.80);

    /* 高亮数值 */
    --highlight: rgba(30, 60, 100, 0.95);

}

/* ================================================================
   移动端：深色底 + 更实的卡片，确保白色组件清晰可辨
   ================================================================ */
@media (max-width: 768px) {
    :root {
        --card-bg: rgba(255, 255, 255, 0.40);
        --card-border: rgba(255, 255, 255, 0.40);
        --card-blur: blur(12px);

        --input-bg: rgba(255, 255, 255, 0.55);
        --input-border: rgba(140, 180, 210, 0.38);
        --input-border-focus: rgba(80, 140, 200, 0.60);
        --input-blur: blur(4px);

        --label-color: rgba(40, 70, 110, 0.70);
        --btn-primary: linear-gradient(135deg, rgba(80, 150, 210, 0.55), rgba(50, 110, 170, 0.55));
        --btn-primary-hover: linear-gradient(135deg, rgba(100, 170, 225, 0.65), rgba(70, 130, 190, 0.65));
    }
}

/* ================================================================
   基础重置
   ================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ================================================================
   背景 — 冰蓝玻璃质感多层叠加
   ================================================================ */

/* 底层层 — 浅蓝基底 */
.bg-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -5;
    background:
        linear-gradient(165deg,
            #c8dce8 0%,
            #b8d4e4 20%,
            #a8c8dc 40%,
            #bcd6e6 60%,
            #c0d8e8 80%,
            #b4d0e2 100%
        );
}

/* 冰蓝色调大光晕 — 模拟玻璃背后的冷光 */
.bg-layer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        /* 主光源 — 左上明亮冰蓝光 */
        radial-gradient(ellipse 55% 50% at 25% 30%, rgba(160, 210, 240, 0.35) 0%, transparent 60%),
        /* 副光源 — 右下冷白光 */
        radial-gradient(ellipse 45% 38% at 70% 60%, rgba(190, 225, 248, 0.22) 0%, transparent 55%),
        /* 顶部天光 */
        radial-gradient(ellipse 65% 28% at 50% 0%, rgba(210, 235, 250, 0.18) 0%, transparent 50%),
        /* 底部冰面反射 */
        radial-gradient(ellipse 75% 22% at 50% 100%, rgba(170, 215, 240, 0.20) 0%, transparent 50%);
    pointer-events: none;
}

/* 玻璃折射光斑 — 大块不规则光斑，模拟厚玻璃透光 */
.bg-layer::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        /* 左上大光斑 */
        radial-gradient(ellipse 32% 28% at 20% 25%, rgba(220, 240, 255, 0.28) 0%, transparent 70%),
        /* 中部横条折射 */
        radial-gradient(ellipse 50% 8% at 45% 35%, rgba(200, 230, 250, 0.22) 0%, transparent 70%),
        /* 右侧竖条折射 */
        radial-gradient(ellipse 6% 30% at 75% 40%, rgba(210, 235, 255, 0.20) 0%, transparent 70%),
        /* 底部大块散光 */
        radial-gradient(ellipse 55% 20% at 50% 85%, rgba(180, 220, 245, 0.20) 0%, transparent 60%),
        /* 小亮点 */
        radial-gradient(ellipse 8% 5% at 35% 20%, rgba(230, 245, 255, 0.28) 0%, transparent 60%),
        radial-gradient(ellipse 5% 4% at 60% 28%, rgba(220, 240, 255, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 7% 3% at 80% 55%, rgba(200, 235, 255, 0.20) 0%, transparent 60%),
        radial-gradient(ellipse 6% 4% at 25% 65%, rgba(210, 235, 255, 0.20) 0%, transparent 60%);
    pointer-events: none;
    filter: blur(3px);
}

/* 冰晶裂纹纹理层 — SVG 噪点模拟冰面细微纹理 */
.bg-texture {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -3;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* 冰晶光点 — 散布的小型冰晶闪烁（浅蓝背景上需要更深色的点缀） */
.bg-sparkles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
    background:
        /* 星形光点 */
        radial-gradient(2px 1px at 12% 18%, rgba(80,140,200,0.45), transparent),
        radial-gradient(1px 2px at 12% 18%, rgba(80,140,200,0.45), transparent),
        radial-gradient(2px 1px at 28% 42%, rgba(70,130,190,0.38), transparent),
        radial-gradient(1px 2px at 28% 42%, rgba(70,130,190,0.38), transparent),
        radial-gradient(2px 1px at 8% 58%, rgba(60,120,180,0.35), transparent),
        radial-gradient(1px 2px at 8% 58%, rgba(60,120,180,0.35), transparent),
        radial-gradient(1.5px 1px at 38% 12%, rgba(90,150,210,0.3), transparent),
        radial-gradient(1px 1.5px at 38% 12%, rgba(90,150,210,0.3), transparent),
        radial-gradient(2px 1px at 55% 22%, rgba(70,130,190,0.38), transparent),
        radial-gradient(1px 2px at 55% 22%, rgba(70,130,190,0.38), transparent),
        radial-gradient(1.5px 1px at 65% 48%, rgba(80,140,200,0.3), transparent),
        radial-gradient(1px 1.5px at 65% 48%, rgba(80,140,200,0.3), transparent),
        radial-gradient(2px 1px at 78% 18%, rgba(60,120,180,0.42), transparent),
        radial-gradient(1px 2px at 78% 18%, rgba(60,120,180,0.42), transparent),
        radial-gradient(1.5px 1px at 88% 42%, rgba(70,130,190,0.3), transparent),
        radial-gradient(1px 1.5px at 88% 42%, rgba(70,130,190,0.3), transparent),
        radial-gradient(2px 1px at 42% 72%, rgba(60,120,180,0.35), transparent),
        radial-gradient(1px 2px at 42% 72%, rgba(60,120,180,0.35), transparent),
        radial-gradient(1.5px 1px at 18% 82%, rgba(50,110,170,0.28), transparent),
        radial-gradient(1px 1.5px at 18% 82%, rgba(50,110,170,0.28), transparent),
        radial-gradient(2px 1px at 72% 78%, rgba(70,130,190,0.3), transparent),
        radial-gradient(1px 2px at 72% 78%, rgba(70,130,190,0.3), transparent),
        /* 普通点缀 */
        radial-gradient(1px 1px at 22% 30%, rgba(80,140,200,0.38), transparent),
        radial-gradient(1px 1px at 45% 15%, rgba(90,150,210,0.3), transparent),
        radial-gradient(1px 1px at 68% 32%, rgba(70,130,190,0.35), transparent),
        radial-gradient(1px 1px at 82% 52%, rgba(60,120,180,0.28), transparent),
        radial-gradient(1px 1px at 33% 55%, rgba(80,140,200,0.3), transparent),
        radial-gradient(1px 1px at 58% 68%, rgba(70,130,190,0.28), transparent),
        radial-gradient(1px 1px at 15% 45%, rgba(60,120,180,0.35), transparent),
        radial-gradient(1px 1px at 48% 38%, rgba(80,140,200,0.38), transparent),
        radial-gradient(1px 1px at 75% 65%, rgba(60,120,180,0.28), transparent),
        radial-gradient(1px 1px at 90% 72%, rgba(50,110,170,0.22), transparent),
        radial-gradient(1px 1px at 5% 72%, rgba(50,110,170,0.22), transparent),
        radial-gradient(1px 1px at 52% 88%, rgba(70,130,190,0.28), transparent),
        radial-gradient(1px 1px at 30% 10%, rgba(90,150,210,0.3), transparent);
}

/* 暗角 — 边缘轻微压暗（浅色背景暗角要轻） */
.bg-vignette {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(60, 100, 140, 0.25) 100%);
}

/* 顶部冷白渐变覆盖 */
.bg-tint {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(230, 242, 255, 0.10) 0%,
        rgba(200, 225, 245, 0.05) 40%,
        rgba(140, 185, 220, 0.08) 100%
    );
}

/* 移动端 — 降低复杂度 */
@media (max-width: 768px) {
    .bg-sparkles { opacity: 0.5; }
    .bg-texture { opacity: 0.03; }
}

/* ================================================================
   顶部标题栏 — 毛玻璃
   ================================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 22px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(140, 180, 210, 0.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.header-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(60, 120, 180, 0.6);
    box-shadow: 0 0 14px rgba(60, 120, 180, 0.35);
    flex-shrink: 0;
}
.header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    color: rgba(15, 35, 70, 0.94);
    text-shadow: 0 0 30px rgba(80, 150, 210, 0.20);
}
.header-sub {
    font-size: 13px;
    color: rgba(30, 65, 115, 0.55);
    letter-spacing: 4px;
    margin-top: 2px;
    text-transform: uppercase;
}

/* ================================================================
   主容器
   ================================================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 24px 48px;
    position: relative;
    z-index: 1;
}

/* ================================================================
   区块卡片 — 磨砂玻璃
   ================================================================ */
.section {
    background: var(--card-bg);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    border-radius: 18px;
    margin-bottom: 22px;
    padding: 28px 30px;
    border: 1px solid var(--card-border);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.section:hover {
    border-color: rgba(140, 180, 210, 0.50);
    box-shadow:
        0 8px 40px rgba(40, 70, 110, 0.15),
        0 0 0 1px rgba(140, 180, 210, 0.10);
}

/* ================================================================
   区块标题
   ================================================================ */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(100, 150, 200, 0.18);
    letter-spacing: 3px;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, rgba(60, 130, 200, 0.60), rgba(40, 100, 170, 0.30));
    border-radius: 2px;
    flex-shrink: 0;
}

/* ================================================================
   网格
   ================================================================ */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .result-table { table-layout: fixed; }
    .result-table th:nth-child(1) { width: 42%; }
    .result-table th:nth-child(2) { width: 0; }
    .result-table th:nth-child(3) { width: 18%; }
    .result-table th:nth-child(4) { width: 18%; }
    .result-table th:nth-child(5) { width: 22%; }
    /* 伤害列标题：居中 */
    .result-table thead th:nth-child(3),
    .result-table thead th:nth-child(4) { font-size: 12px; white-space: nowrap; letter-spacing: 0; text-align: center; padding-left: 0; padding-right: 4px; }
    .result-table tbody td { padding: 7px 3px; font-size: 11px; }
    .result-table tbody td:nth-child(1) { font-size: 11px; line-height: 1.45; vertical-align: middle; }
    /* 伤害数字：居中，缩小字号 */
    .result-table tbody td:nth-child(3),
    .result-table tbody td:nth-child(4) { white-space: nowrap; font-size: 13px; font-weight: 700; text-align: center; padding-left: 0; padding-right: 4px; }
    .btn-pin, .btn-del, .btn-unpin {
        display: block;
        width: 100%;
        margin: 2px 0;
        padding: 3px 0;
        text-align: center;
        font-size: 10px;
        letter-spacing: 0;
    }
    .action-cell { white-space: normal; padding: 4px 2px !important; }
}
@media (max-width: 500px) {
    .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 20px 16px; }
    .header h1 { font-size: 24px; letter-spacing: 4px; }
    .result-table { table-layout: fixed; }
    .result-table th:nth-child(1) { width: 40%; }
    .result-table th:nth-child(2) { width: 0; }
    .result-table th:nth-child(3) { width: 18%; }
    .result-table th:nth-child(4) { width: 18%; }
    .result-table th:nth-child(5) { width: 24%; }
    /* 伤害列标题 */
    .result-table thead th:nth-child(3),
    .result-table thead th:nth-child(4) { font-size: 11px; white-space: nowrap; letter-spacing: 0; text-align: center; padding-left: 0; padding-right: 3px; }
    .result-table tbody td { padding: 6px 2px; font-size: 11px; }
    .result-table tbody td:nth-child(1) { font-size: 10px; line-height: 1.40; vertical-align: middle; }
    /* 伤害数字：缩小字号，居中 */
    .result-table tbody td:nth-child(3),
    .result-table tbody td:nth-child(4) { white-space: nowrap; font-size: 12px; font-weight: 700; text-align: center; padding-left: 0; padding-right: 3px; }
    .btn-pin, .btn-del, .btn-unpin {
        font-size: 9px;
        padding: 2px 0;
        margin: 1px 0;
    }
    .action-cell { white-space: normal; padding: 3px 1px !important; }
}

/* ================================================================
   表单字段 — 幽灵组件
   ================================================================ */
.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--label-color);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.field input,
.field select {
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    backdrop-filter: var(--input-blur);
    -webkit-backdrop-filter: var(--input-blur);
    color: rgba(15, 35, 65, 0.92);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234080b0' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.field select option {
    background: #e8f0f8;
    color: rgba(20, 45, 80, 0.90);
}
.field input:focus,
.field select:focus {
    border-color: var(--input-border-focus);
    box-shadow:
        0 0 0 3px rgba(80, 140, 200, 0.10),
        0 0 20px rgba(80, 140, 200, 0.08);
    background: rgba(255, 255, 255, 0.65);
}
.field input::placeholder {
    color: rgba(60, 100, 150, 0.25);
}
.field input[type="number"] {
    font-variant-numeric: tabular-nums;
}

/* ================================================================
   按钮
   ================================================================ */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 3px;
}

/* 主按钮 — 冰蓝渐变 */
.btn-calc {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 5px;
    background: var(--btn-primary);
    color: var(--btn-primary-text);
    border: 1px solid rgba(80, 140, 200, 0.35);
    box-shadow: 0 4px 22px rgba(80, 140, 200, 0.12);
    margin-top: 6px;
}
.btn-calc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(80, 140, 200, 0.22);
    background: var(--btn-primary-hover);
    border-color: rgba(80, 140, 200, 0.50);
}
.btn-calc:active {
    transform: translateY(0);
    box-shadow: 0 2px 14px rgba(80, 140, 200, 0.15);
}

/* 清空按钮 */
.btn-clear {
    background: rgba(100, 150, 200, 0.08);
    color: rgba(30, 65, 115, 0.55);
    border: 1px solid rgba(100, 150, 200, 0.18);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}
.btn-clear:hover {
    background: rgba(100, 150, 200, 0.15);
    color: rgba(20, 50, 100, 0.70);
    border-color: rgba(100, 150, 200, 0.30);
}

/* ================================================================
   模式切换 — 冰蓝分段按钮
   ================================================================ */
.mode-switch {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(100, 150, 200, 0.25);
    background: rgba(255, 255, 255, 0.20);
}
.mode-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: rgba(30, 65, 115, 0.50);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 4px;
    transition: all 0.35s ease;
}
.mode-btn:first-child {
    border-right: 1px solid rgba(100, 150, 200, 0.20);
}
.mode-btn:hover {
    color: rgba(20, 50, 100, 0.75);
    background: rgba(100, 150, 200, 0.08);
}
.mode-btn.active {
    color: rgba(15, 35, 70, 0.95);
    background: rgba(100, 150, 200, 0.30);
    box-shadow: 0 0 20px rgba(80, 140, 200, 0.15);
}

/* ================================================================
   结果表格
   ================================================================ */
.result-area {
    margin-top: 20px;
}
.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(100, 150, 200, 0.15);
}
.result-table thead th {
    background: var(--th-bg);
    padding: 12px 16px;
    text-align: left;
    color: var(--th-color);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(100, 150, 200, 0.15);
}
.result-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(100, 150, 200, 0.08);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.result-table tbody tr {
    cursor: pointer;
    transition: all 0.2s;
}
.result-table tbody tr:last-child td {
    border-bottom: none;
}
.result-table tbody tr:hover td {
    background: rgba(100, 150, 200, 0.08);
}
.result-table th:nth-child(1) { width: 48%; }
.result-table th:nth-child(2) { width: 18%; }
.result-table th:nth-child(3) { width: 18%; }
.result-table th:nth-child(4) { width: 16%; }
.result-table tbody td:nth-child(2),
.result-table tbody td:nth-child(3) {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--highlight);
}

/* 操作按钮 */
.action-cell {
    white-space: nowrap;
}
.btn-pin, .btn-del {
    padding: 4px 10px;
    border: 1px solid rgba(100, 150, 200, 0.25);
    border-radius: 6px;
    background: rgba(100, 150, 200, 0.08);
    color: rgba(30, 65, 115, 0.50);
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    margin-left: 4px;
}
.btn-pin:hover, .btn-del:hover {
    background: rgba(100, 150, 200, 0.18);
    color: rgba(20, 50, 100, 0.75);
    border-color: rgba(100, 150, 200, 0.40);
}
.btn-del:hover {
    background: rgba(200, 80, 80, 0.12);
    border-color: rgba(200, 80, 80, 0.30);
    color: rgba(160, 40, 40, 0.75);
}
.btn-unpin {
    padding: 4px 10px;
    border: 1px solid rgba(140, 180, 210, 0.35);
    border-radius: 6px;
    background: rgba(100, 150, 200, 0.18);
    color: rgba(20, 50, 100, 0.70);
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    margin-left: 4px;
}
.btn-unpin:hover {
    background: rgba(100, 150, 200, 0.28);
    border-color: rgba(100, 150, 200, 0.50);
    color: rgba(15, 35, 70, 0.85);
}

.empty-hint {
    text-align: center;
    padding: 40px;
    color: rgba(40, 80, 130, 0.35);
    font-size: 14px;
    letter-spacing: 2px;
    cursor: default !important;
}

/* ================================================================
   操作行
   ================================================================ */
.action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 14px;
}

/* ================================================================
   详情弹窗
   ================================================================ */
.detail-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}
.detail-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(140, 180, 210, 0.35);
    border-radius: 16px;
    padding: 28px;
    max-width: 460px;
    width: 90%;
    box-shadow:
        0 8px 50px rgba(40, 70, 110, 0.20),
        0 0 0 1px rgba(140, 180, 210, 0.08);
    animation: slideUp 0.3s ease;
}
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.detail-header span {
    color: rgba(15, 35, 70, 0.94);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}
.detail-close {
    background: none;
    border: none;
    color: rgba(60, 100, 150, 0.45);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 4px;
}
.detail-close:hover { color: rgba(30, 60, 110, 0.70); }
.detail-desc {
    color: rgba(30, 65, 115, 0.55);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(100, 150, 200, 0.15);
    line-height: 1.7;
    letter-spacing: 1px;
}
.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.detail-table tr {
    border-bottom: 1px solid rgba(100, 150, 200, 0.10);
}
.detail-table tr:last-child { border-bottom: none; }
.detail-table td {
    padding: 10px 0;
}
.detail-table td:first-child {
    color: rgba(30, 65, 115, 0.60);
    font-size: 14px;
    letter-spacing: 1px;
}
.detail-table td:last-child {
    text-align: right;
    color: rgba(15, 35, 65, 0.92);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.detail-table tr:last-child td:last-child {
    color: rgba(20, 50, 90, 0.95);
}

/* ================================================================
   动画
   ================================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   滚动条
   ================================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: rgba(100, 150, 200, 0.08); }
::-webkit-scrollbar-thumb {
    background: rgba(80, 130, 180, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(60, 110, 160, 0.40);
}

/* ================================================================
   v1.2 PC 双行布局（>900px）
   表格列：搭配方案 | 模式标签(窄) | 期望伤害 | 暴击伤害 | 操作
   ================================================================ */

/* 模式标签列 — 默认隐藏（手机端不显示） */
.mode-col-head,
.mode-tag-col,
.mode-tag,
.btn-base {
    display: none;
}

/* PC 端：显示模式标签列 */
@media (min-width: 901px) {
    /* PC 双行模式无需破势/非破势切换按钮 */
    .mode-switch { display: none !important; }
    .mode-col-head {
        display: table-cell;
        width: 70px;
    }
    .mode-tag {
        display: table-cell;
        text-align: center;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 1px;
        color: rgba(30, 65, 115, 0.75);
        cursor: pointer;
        padding: 8px 4px;
        white-space: nowrap;
        transition: color 0.2s, background 0.2s;
    }
    .mode-tag:hover {
        color: rgba(15, 35, 70, 0.95);
        background: rgba(100, 150, 200, 0.10);
    }
    .mode-poshi { color: rgba(180, 60, 60, 0.80); }
    .mode-nonposhi { color: rgba(60, 100, 180, 0.80); }

    /* PC 端数字单元格可点击 */
    .dmg-cell {
        cursor: pointer;
        transition: background 0.15s;
    }
    .dmg-cell:hover {
        background: rgba(100, 150, 200, 0.12);
    }

    /* PC 双行中第二行无下边框（视觉合并） */
    .pc-pair-first td {
        border-bottom: none !important;
    }
    .pc-pair-second td {
        padding-top: 4px;
    }
    /* 搭配方案单元格垂直居中 */
    .pc-pair-first .desc-cell {
        vertical-align: middle;
    }

    /* PC 端表格列宽 */
    .result-table th:nth-child(1),
    .result-table td.desc-cell { width: 38%; }
    .result-table th:nth-child(2) { width: 8%; }
    .result-table th:nth-child(3),
    .result-table th:nth-child(4) { width: 20%; }
    .result-table th:nth-child(5) { width: 14%; }

    /* v1.3 基准按钮 — PC 端显示 */
    .btn-base {
        display: inline-block;
        padding: 4px 10px;
        border: 1px solid rgba(180, 140, 60, 0.30);
        border-radius: 6px;
        background: rgba(180, 140, 60, 0.08);
        color: rgba(120, 90, 30, 0.60);
        cursor: pointer;
        font-size: 12px;
        font-family: inherit;
        font-weight: 600;
        letter-spacing: 1px;
        transition: all 0.2s ease;
        margin-left: 4px;
    }
    .btn-base:hover {
        background: rgba(180, 140, 60, 0.18);
        color: rgba(100, 75, 20, 0.80);
        border-color: rgba(180, 140, 60, 0.45);
    }
    .btn-base.active {
        background: rgba(200, 160, 50, 0.25);
        color: rgba(100, 70, 10, 0.90);
        border-color: rgba(200, 160, 50, 0.55);
    }

    /* v1.3 基准行标记 — 仅左侧金色竖线，不改底色 */
    .pc-pair-first[data-is-base="1"] .desc-cell {
        position: relative;
    }
    .pc-pair-first[data-is-base="1"] .desc-cell::before {
        content: '';
        position: absolute;
        left: 0; top: 0; bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, rgba(200, 160, 50, 0.70), rgba(180, 140, 40, 0.40));
        border-radius: 2px;
    }

    /* v1.3 百分比文字 */
    .dmg-pct {
        font-size: 11px;
        font-weight: 500;
        color: rgba(120, 90, 30, 0.60);
        margin-left: 2px;
    }
}

/* ================================================================
   v1.2 公式弹窗样式
   ================================================================ */
.formula-card {
    max-width: 520px;
}
.formula-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.formula-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(100, 150, 200, 0.10);
}
.formula-row:last-child {
    border-bottom: none;
}
.formula-label {
    color: rgba(30, 65, 115, 0.65);
    font-size: 13px;
    letter-spacing: 1px;
    flex-shrink: 0;
    margin-right: 12px;
}
.formula-value {
    color: rgba(15, 35, 65, 0.92);
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    word-break: break-all;
}
.formula-op {
    text-align: center;
    color: rgba(60, 100, 150, 0.45);
    font-size: 16px;
    font-weight: 600;
    padding: 4px 0;
}
.formula-eq {
    color: rgba(30, 60, 100, 0.70);
    font-size: 18px;
    padding: 6px 0;
}
.formula-result .formula-label {
    color: rgba(20, 50, 90, 0.95);
    font-size: 15px;
    font-weight: 700;
}
.formula-result .formula-value {
    color: rgba(20, 50, 90, 0.95);
    font-size: 18px;
}

/* ================================================================
   v1.3 可折叠区块（防御参数等）
   ================================================================ */
.collapse-section {
    margin-top: 20px;
    border-top: 1px solid rgba(100, 150, 200, 0.18);
    padding-top: 16px;
}
.collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: var(--title-color);
    letter-spacing: 2px;
    padding: 6px 0;
    user-select: none;
    transition: color 0.2s;
}
.collapse-header:hover {
    color: rgba(15, 35, 70, 1);
}
.collapse-arrow {
    font-size: 14px;
    color: rgba(60, 100, 150, 0.55);
    transition: transform 0.25s ease;
    display: inline-block;
}
.collapse-arrow.open {
    transform: rotate(90deg);
}
.collapse-body {
    animation: slideDown 0.25s ease;
}

/* ================================================================
   v1.3 铭文选择按钮 + 弹窗
   ================================================================ */
.rune-btn {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-backdrop-filter: var(--input-blur);
    backdrop-filter: var(--input-blur);
}
.rune-btn:hover {
    border-color: var(--input-border-focus);
    background: rgba(255, 255, 255, 0.65);
}

/* 铭文弹窗 */
.rune-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(20, 40, 70, 0.35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}
.rune-card {
    background: rgba(245, 250, 255, 0.96);
    border: 1px solid rgba(140, 180, 210, 0.40);
    border-radius: 16px;
    padding: 28px 32px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 12px 40px rgba(20, 50, 90, 0.18);
    animation: slideUp 0.25s ease;
}
.rune-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.rune-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--title-color);
    letter-spacing: 2px;
}
.rune-card-close {
    background: none;
    border: none;
    font-size: 18px;
    color: rgba(60, 100, 150, 0.50);
    cursor: pointer;
    padding: 4px 8px;
}
.rune-card-close:hover { color: rgba(60, 100, 150, 0.80); }

.rune-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(100, 150, 200, 0.12);
}
.rune-input-row:last-of-type { border-bottom: none; }
.rune-input-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--label-color);
    letter-spacing: 1px;
}
.rune-input-label small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-dim);
    margin-top: 2px;
    letter-spacing: 0;
}
.rune-input-num {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: var(--text-color);
}
.rune-input-num:focus {
    outline: none;
    border-color: var(--input-border-focus);
}

.rune-total {
    text-align: center;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 1px;
}
.rune-total span {
    font-weight: 700;
    color: var(--text-color);
}
.rune-total .ok { color: rgba(40, 120, 80, 0.85); }
.rune-total .err { color: rgba(180, 60, 60, 0.85); }

.rune-confirm-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: var(--btn-primary);
    color: var(--btn-primary-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
}
.rune-confirm-btn:hover { background: var(--btn-primary-hover); }
.rune-confirm-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ================================================================
   模拟对比（v1.5 新增）
   ================================================================ */
.btn-set {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid rgba(80, 140, 200, 0.4);
    background: transparent;
    color: rgba(30, 60, 100, 0.85);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    letter-spacing: 1px;
    margin: 0 2px;
}
.btn-set:hover { background: rgba(80, 140, 200, 0.15); }
.btn-set.active-s1 { background: rgba(60, 140, 220, 0.25); border-color: rgba(60, 140, 220, 0.7); color: #fff; }
.btn-set.active-s2 { background: rgba(200, 100, 60, 0.25); border-color: rgba(200, 100, 60, 0.7); color: #fff; }

.btn-sim {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 24px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid rgba(80, 140, 200, 0.5);
    background: linear-gradient(135deg, rgba(80, 150, 210, 0.45), rgba(50, 110, 170, 0.45));
    color: rgba(20, 40, 70, 0.95);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.2s;
}
.btn-sim:hover { background: linear-gradient(135deg, rgba(100, 170, 225, 0.55), rgba(70, 130, 190, 0.55)); }
.btn-sim.ready { border-color: #4a9; background: linear-gradient(135deg, rgba(60, 180, 140, 0.45), rgba(40, 140, 100, 0.45)); }
.btn-sim.ready:hover { background: linear-gradient(135deg, rgba(70, 200, 160, 0.55), rgba(50, 160, 120, 0.55)); }

/* 模拟弹窗 */
.sim-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.sim-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 780px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(140, 180, 210, 0.4);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    color: rgba(15, 35, 65, 0.92);
    line-height: 1.7;
}
.sim-card h3 { font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }
.sim-card .sim-set-info { margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; }
.sim-card .sim-set1 { background: rgba(60, 140, 220, 0.08); border-left: 3px solid rgba(60, 140, 220, 0.5); }
.sim-card .sim-set2 { background: rgba(200, 100, 60, 0.08); border-left: 3px solid rgba(200, 100, 60, 0.5); }
.sim-card .sim-actions { margin: 16px 0 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.sim-card .sim-actions button {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid rgba(80, 140, 200, 0.4);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.sim-card .sim-log { margin-top: 12px; padding: 12px; background: rgba(0,0,0,0.03); border-radius: 8px; max-height: 400px; overflow-y: auto; font-family: 'Courier New', monospace; font-size: 12px; white-space: pre-wrap; }