/**
 * 主样式文件 - COC跑团骰子工具
 * 
 * 功能说明：
 * - 包含所有纯CSS样式和布局
 * - 页面基础样式、组件样式、响应式布局
 * - 模态框、Toast通知、数值条等组件样式
 * 
 * 作者：橙涵喵啾啾
 * 版本：1.0.1
 * 更新日期：2026-02-27
 * 
 * 依赖：
 * - tailwind-utilities.css (Tailwind工具类样式)
 * - Tailwind CSS CDN (可选)
 */

/* ==================== 公共基础样式 ==================== */
.btn-base {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    min-height: 44px;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: #e94560;
    color: #ffffff;
    border: 1px solid #e94560;
}
.btn-primary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}
.btn-secondary {
    background-color: #3498db;
    color: #ffffff;
    border: 1px solid #3498db;
}
.btn-secondary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}
.btn-success {
    background-color: #2ecc71;
    color: #ffffff;
    border: 1px solid #27ae60;
}
.btn-success:hover {
    background-color: #27ae60;
}
.btn-neutral {
    background-color: #95a5a6;
    color: #ffffff;
    border: 1px solid #7f8c8d;
}
.btn-neutral:hover {
    background-color: #7f8c8d;
}
.input-base {
    padding: 0.7rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(15, 52, 96, 0.85);
    color: #ffffff;
    min-height: 44px;
    font-size: 1rem;
}
.input-base:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}
.input-base::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.section-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 1px solid #333;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.section-title {
    color: #e94560;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
/* ==================== 页面样式 ==================== */
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #eee;
    font-family: 'Cinzel', serif;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid #333;
}
header h1 {
    font-size: 2rem;
    color: #e94560;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.8);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.header-title-text {
    display: inline-block;
    white-space: nowrap;
}
.header-btns-right {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}
/* 顶部功能按钮统一样式 */
.header-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    color: #ecf0f1;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.header-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 通知按钮特殊样式 */
.notification-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    position: relative;
}

.notification-btn:hover {
    background: linear-gradient(135deg, #a569bd, #9b59b6);
}

/* 反馈按钮特殊样式 */
.feedback-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
}

.feedback-btn:hover {
    background: linear-gradient(135deg, #5dade2, #3498db);
}

/* 关于按钮特殊样式 */
.about-btn {
    background: linear-gradient(135deg, #f39c12, #d68910);
    border: none;
}

.about-btn:hover {
    background: linear-gradient(135deg, #f5b041, #f39c12);
}

/* 设置按钮特殊样式 */
.settings-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
}

.settings-btn:hover {
    background: linear-gradient(135deg, #58d68d, #2ecc71);
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-overlay.show {
    display: flex;
}
.modal {
    background-color: #16213e;
    border: 2px solid #e94560;
    border-radius: 10px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
}
.modal h2 {
    color: #f39c12;
    margin-bottom: 1.5rem;
}
.modal-info {
    margin-bottom: 1rem;
    color: #eee;
    text-align: left;
}
.modal-info span {
    font-weight: bold;
    color: #f39c12;
}
.modal input {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: rgba(0, 0, 0, 0.5);
    color: #eee;
    width: 100%;
    margin-bottom: 1rem;
    box-sizing: border-box;
}
.modal-close-btn {
    background-color: #e94560;
    color: #eee;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}
.modal-cancel-btn {
    background-color: #95a5a6;
    color: #eee;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    margin-right: 0.5rem;
}
header p {
    font-size: 1rem;
    color: #eee;
}
.character-manager {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 1px solid #333;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.character-manager h2 {
    color: #e94560;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.character-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}
.character-controls input {
    padding: 0.7rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(15, 52, 96, 0.85);
    color: #ffffff;
    min-width: 200px;
    min-height: 44px;
    font-size: 1rem;
}
.character-controls input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}
.character-controls button {
    background-color: #e94560;
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #e94560;
    min-height: 44px;
    font-size: 1rem;
}
.character-select {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}
.character-select button {
    background-color: #0f3460;
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #3498db;
    min-height: 44px;
    font-size: 1rem;
}
.character-select button.active {
    background-color: #3498db;
}
.character-composite-section {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 1px solid #333;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.character-composite-section > h2 {
    color: #e94560;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.property-section, .skill-section {
    padding: 1rem;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-header h3 {
    color: #f39c12;
    font-size: 1.3rem;
    margin: 0;
}
.property-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.total-points-display {
    color: #eee;
    font-weight: bold;
}
.total-points-display span:last-child {
    color: #f39c12;
    font-size: 1.2rem;
}
.property-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.property-input-group input {
    padding: 0.7rem 0.5rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(15, 52, 96, 0.85);
    color: #ffffff;
    width: 120px;
    min-height: 44px;
    font-size: 1rem;
}
.property-input-group input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}
.random-btn {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #3498db;
    min-height: 44px;
    font-size: 1rem;
}
.reset-btn {
    background-color: #e94560;
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #e94560;
    min-height: 44px;
    font-size: 1rem;
}
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #333, transparent);
    margin: 1.5rem 0;
}
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.property-item {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.property-item-selectable {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}
.property-name {
    font-weight: bold;
    color: #f39c12;
    text-align: center;
}
.property-input {
    padding: 0.7rem 0.5rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(15, 52, 96, 0.85);
    color: #ffffff;
    text-align: center;
    min-height: 44px;
    font-size: 1rem;
}
.property-input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}
.property-dice-btn {
    background-color: #0f3460;
    color: #eee;
    border: none;
    border-radius: 5px;
    padding: 0.5rem;
    cursor: pointer;
    border: 1px solid #3498db;
    margin-top: 0.5rem;
}

.skill-check-input {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}
.skill-check-input select,
.skill-check-input input[type="number"] {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(15, 52, 96, 0.9);
    color: #ffffff;
    min-height: 44px;
    font-size: 1rem;
}
.skill-check-input select:focus,
.skill-check-input input[type="number"]:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}
.skill-check-input input[type="number"] {
    width: 120px;
    text-align: center;
}
.skill-check-input button {
    background-color: #e94560;
    color: #eee;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid #e94560;
    min-height: 44px;
}
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.skill-item {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 0.8rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.skill-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.skill-name {
    font-weight: bold;
    color: #f39c12;
    font-size: 0.9rem;
}
.skill-value {
    color: #eee;
    font-size: 0.8rem;
}
.skill-delete {
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.skill-item.delete-mode {
    background-color: rgba(233, 69, 96, 0.3);
    border-color: #e94560;
    cursor: pointer;
}
.skill-item.delete-mode:hover {
    background-color: rgba(233, 69, 96, 0.5);
    transform: scale(1.02);
}
.skill-item.delete-mode .skill-name {
    color: #fff;
}
.skill-delete-mode-btn {
    background-color: #3498db !important;
    border-color: #3498db !important;
    color: #fff !important;
}
.skill-delete-mode-btn.active {
    background-color: #e94560 !important;
    border-color: #e94560 !important;
}
.add-skill-section {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}
.add-skill-section input {
    padding: 0.7rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(15, 52, 96, 0.85);
    color: #ffffff;
    min-height: 44px;
    font-size: 1rem;
}
.add-skill-section input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}
.add-skill-section button {
    background-color: #2ecc71;
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    min-height: 44px;
    font-size: 1rem;
    border: 1px solid #27ae60;
}
.dice-tool {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 1px solid #333;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.dice-tool h2 {
    color: #e94560;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.dice-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.dice-buttons button {
    background-color: #0f3460;
    color: #eee;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    border: 1px solid #3498db;
    min-width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-dice-section {
    margin-top: 2rem;
}
.custom-dice-section h3 {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.custom-dice-input {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}
.custom-dice-input input {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(15, 52, 96, 0.85);
    color: #ffffff;
    min-width: 150px;
    min-height: 44px;
    font-size: 1rem;
}
.custom-dice-input input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}
.custom-dice-input button {
    background-color: #e94560;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid #e94560;
    min-height: 44px;
}
.custom-dice-input button.delete-mode-btn {
    background-color: #3498db;
    border-color: #3498db;
}
.custom-dice-input button.delete-mode-btn.active {
    background-color: #e94560;
    border-color: #e94560;
}
.dice-wrapper {
    position: relative;
    display: flex;
    align-items: start;
}
.result {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    margin-top: 1rem;
}
.history {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 1px solid #333;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.history h3 {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}
.history-list {
    max-height: 200px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}
.history-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-bottom: 1px solid #333;
}

.clear-history-btn {
    background: linear-gradient(135deg, #e94560, #c0392b);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    min-height: 44px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: bold;
}

.clear-history-btn:hover {
    background: linear-gradient(135deg, #c0392b, #922b21);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

.clear-history-btn i {
    font-size: 1.1rem;
}

.clear-history-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(192, 57, 43, 0.2));
    border: 3px solid #e94560;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.clear-history-icon i {
    font-size: 2.5rem;
    color: #e94560;
}

.clear-history-confirm-btn {
    background: linear-gradient(135deg, #e94560, #c0392b) !important;
}

.clear-history-confirm-btn:hover {
    background: linear-gradient(135deg, #c0392b, #922b21) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}
.rules {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 1px solid #333;
    padding: 1.5rem;
}
.rules h2 {
    color: #e94560;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.rule-section {
    margin-bottom: 1.5rem;
}
.rule-section h3 {
    color: #f39c12;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}
.rule-section ul {
    list-style: disc;
    margin-left: 1.5rem;
    color: #eee;
}
.rule-section ul li {
    margin-bottom: 0.5rem;
}
.rule-section ul li ul {
    list-style: circle;
    margin-left: 1.5rem;
}
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    header h1 {
        font-size: 1.8rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    .header-btns-right {
        display: inline-flex;
        gap: 0.5rem;
    }
    .property-grid, .skill-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }
    .dice-buttons {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.5rem;
    }
    .dice-buttons button {
        height: 50px;
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.6rem;
        padding: 0 0.5rem;
    }
    .header-title-text {
        order: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 0.3rem;
    }
    .header-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
        margin-left: 0;
    }
    .header-btns-right {
        display: inline-flex;
        gap: 0.4rem;
    }
    .settings-btn {
        margin-right: auto;
    }
    .property-grid, .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dice-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    .character-controls {
        flex-direction: column;
        align-items: center;
    }
    .character-controls input {
        min-width: 100%;
    }
    .add-skill-section {
        flex-direction: column;
        align-items: center;
    }
    .add-skill-section input {
        width: 100%;
    }
    .add-skill-section button {
        width: 100%;
        min-height: 48px;
    }
    .skill-check-input {
        flex-direction: column;
        align-items: stretch;
    }
    .skill-check-input select,
    .skill-check-input input[type="number"],
    .skill-check-input button {
        width: 100%;
        min-height: 48px;
        font-size: 1.1rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .property-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .property-input-group {
        width: 100%;
        flex-wrap: wrap;
    }
    .property-input-group input,
    .property-input-group button {
        flex: 1;
        min-width: 120px;
        min-height: 48px;
    }
    button, 
    input, 
    select {
        min-height: 48px;
        font-size: 1rem;
    }
    .dice-button {
        min-height: 56px;
        height: 56px;
    }
    .reset-btn,
    .random-btn {
        min-height: 48px;
        font-size: 1rem;
    }
}

.check-section {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.check-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.check-section-header h3 {
    color: #f39c12;
    font-size: 1.2rem;
    margin: 0;
}

.check-section-header h3 i {
    margin-right: 0.5rem;
}

.check-hint {
    color: #95a5a6;
    font-size: 0.85rem;
}

.saved-check-area {
    background-color: rgba(52, 152, 219, 0.15);
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 1rem;
}

.saved-items-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.saved-item-label {
    color: #95a5a6;
    font-size: 0.9rem;
}

.saved-item-name {
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
}

.saved-item-value {
    color: #f39c12;
    font-weight: bold;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.check-options-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.check-options-row select {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: #0a1628;
    color: #ffffff;
    min-height: 44px;
    font-size: 1rem;
    flex: 1;
    min-width: 150px;
}

.check-options-row input[type="number"] {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: #0a1628;
    color: #ffffff;
    min-height: 44px;
    font-size: 1rem;
    width: 120px;
    text-align: center;
}

.check-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    min-height: 44px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.check-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1a5276);
    transform: translateY(-2px);
}

.check-btn-primary i {
    margin-right: 0.5rem;
}

.check-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.check-divider::before,
.check-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #555, transparent);
}

.check-divider span {
    color: #95a5a6;
    padding: 0 1rem;
    font-size: 0.9rem;
}

.temp-check-area {
    background-color: rgba(233, 69, 96, 0.1);
    border: 2px dashed #e94560;
    border-radius: 8px;
    padding: 1rem;
}

.temp-check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.temp-check-header h4 {
    color: #e94560;
    font-size: 1rem;
    margin: 0;
}

.temp-check-header h4 i {
    margin-right: 0.5rem;
}

.temp-check-inputs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.temp-input {
    padding: 0.8rem;
    border-radius: 5px;
    border: 2px solid #e94560;
    background-color: #1a0a0f;
    color: #ffffff;
    min-height: 44px;
    font-size: 1rem;
    flex: 1;
    min-width: 150px;
}

.temp-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.temp-input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

.check-btn-secondary {
    background: linear-gradient(135deg, #e94560, #c0392b);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    min-height: 44px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.check-btn-secondary:hover {
    background: linear-gradient(135deg, #c0392b, #922b21);
    transform: translateY(-2px);
}

.check-btn-secondary i {
    margin-right: 0.5rem;
}

.check-btn-clear {
    background: linear-gradient(135deg, #7f8c8d, #6c7a7a);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    min-height: 44px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.check-btn-clear:hover {
    background: linear-gradient(135deg, #6c7a7a, #5a6a6a);
    transform: translateY(-2px);
}

.check-btn-clear i {
    margin-right: 0.5rem;
}

@media (max-width: 480px) {
    .check-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .check-options-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .check-options-row select,
    .check-options-row input[type="number"],
    .check-btn-primary {
        width: 100%;
    }
    
    .temp-check-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .temp-input,
    .check-btn-secondary {
        width: 100%;
    }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-left: 4px solid #2980b9;
}

.toast-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-left: 4px solid #27ae60;
}

.toast-warning {
    background: linear-gradient(135deg, #f39c12, #d68910);
    border-left: 4px solid #d68910;
    color: #1a1a2e;
}

.toast-error {
    background: linear-gradient(135deg, #e94560, #c0392b);
    border-left: 4px solid #c0392b;
}

.toast-confirm {
    background: linear-gradient(135deg, #16213e, #0f3460);
    border: 2px solid #3498db;
    flex-direction: column;
    align-items: stretch;
}

.toast-confirm-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.toast-confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.toast-confirm-btn {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.toast-confirm-yes {
    background: #e94560;
    color: #fff;
}

.toast-confirm-yes:hover {
    background: #c0392b;
}

.toast-confirm-no {
    background: #95a5a6;
    color: #fff;
}

.toast-confirm-no:hover {
    background: #7f8c8d;
}

.toast-icon {
    font-size: 18px;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .toast {
        padding: 10px 15px;
        font-size: 13px;
    }
}

.feedback-form {
    text-align: left;
}

.feedback-input-group {
    margin-bottom: 1rem;
}

.feedback-input-group label {
    display: block;
    color: #eee;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.feedback-input-group input,
.feedback-input-group select,
.feedback-input-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: rgba(0, 0, 0, 0.5);
    color: #eee;
    box-sizing: border-box;
    font-size: 1rem;
    min-height: 44px;
}

.feedback-input-group input:focus,
.feedback-input-group select:focus,
.feedback-input-group textarea:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

.feedback-input-group textarea {
    min-height: 120px;
    resize: vertical;
}

.feedback-input-group select {
    cursor: pointer;
}

@media (max-width: 480px) {
    .feedback-input-group input,
    .feedback-input-group select,
    .feedback-input-group textarea {
        min-height: 48px;
        font-size: 1rem;
    }
    
    .feedback-input-group textarea {
        min-height: 150px;
    }
}

/* ==================== 子栏目切换样式 ==================== */
.character-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.character-tab {
    background: transparent;
    border: none;
    color: #95a5a6;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    min-height: 44px;
}

.character-tab:hover {
    color: #f39c12;
}

.character-tab.active {
    color: #f39c12;
    border-bottom-color: #f39c12;
}

.character-tab-content {
    display: none;
}

.character-tab-content.active {
    display: block;
}

/* ==================== 名片式布局样式 ==================== */
.basic-info-card {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.9), rgba(22, 33, 62, 0.95));
    border: 2px solid #3498db;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.basic-info-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3498db;
}

.basic-info-header i {
    font-size: 1.5rem;
    color: #f39c12;
}

.basic-info-header span {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
}

.basic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.basic-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.basic-info-item.full-width {
    grid-column: 1 / -1;
}

.basic-info-item label {
    color: #f39c12;
    font-weight: bold;
    font-size: 0.9rem;
}

.basic-info-item input,
.basic-info-item textarea {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #3498db;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1rem;
    min-height: 44px;
}

.basic-info-item input:focus,
.basic-info-item textarea:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

.basic-info-item input::placeholder,
.basic-info-item textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.basic-info-item textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==================== HP/MP/SAN 数值条样式 ==================== */
.vitals-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.vital-item {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1rem;
}

.vital-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.vital-label {
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
}

.vital-label i {
    margin-right: 0.5rem;
}

.vital-text {
    color: #f39c12;
    font-weight: bold;
    font-size: 1.1rem;
}

.vital-bar-container {
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.vital-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.vital-bar-high {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.vital-bar-medium {
    background: linear-gradient(90deg, #f39c12, #d68910);
}

.vital-bar-low {
    background: linear-gradient(90deg, #e94560, #c0392b);
}

.vital-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vital-controls input {
    width: 60px;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    text-align: center;
    font-size: 0.9rem;
    min-height: 36px;
}

.vital-controls input:focus {
    outline: none;
    border-color: #f39c12;
}

.vital-controls span {
    color: #95a5a6;
    font-size: 1rem;
}

.vital-btn {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 36px;
    transition: all 0.3s ease;
}

.vital-btn:hover {
    background-color: #2980b9;
}

/* ==================== 角色导入导出按钮样式 ==================== */
.character-import-export {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.import-btn,
.export-btn {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-size: 1rem;
    min-height: 44px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.import-btn:hover,
.export-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* ==================== 创建角色时HP/MP/SAN上限设置样式 ==================== */
.character-vitals-setup {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.vital-setup-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vital-setup-item label {
    color: #f39c12;
    font-weight: bold;
    font-size: 0.9rem;
}

.vital-setup-item input {
    width: 80px;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(15, 52, 96, 0.85);
    color: #ffffff;
    text-align: center;
    font-size: 0.9rem;
    min-height: 36px;
}

.vital-setup-item input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .vitals-section {
        grid-template-columns: 1fr;
    }
    
    .basic-info-grid {
        grid-template-columns: 1fr;
    }
    
    .character-tabs {
        justify-content: center;
    }
    
    .character-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .character-vitals-setup {
        flex-direction: column;
        align-items: center;
    }
    
    .vital-setup-item {
        width: 100%;
        justify-content: space-between;
        max-width: 200px;
    }
    
    .character-import-export {
        flex-direction: column;
        align-items: center;
    }
    
    .import-btn,
    .export-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .vital-controls input {
        width: 50px;
    }
}

/* ==================== 左右两栏布局 ==================== */
.main-content-wrapper {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.left-column {
    flex: 1;
    min-width: 0;
}

.right-column {
    width: 380px;
    flex-shrink: 0;
}

/* ==================== 判定结果专用列样式 ==================== */
.check-result-section {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
}

.check-result-section h2 {
    color: #f39c12;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-result-section h2 i {
    color: #3498db;
}

.check-area {
    background-color: rgba(15, 52, 96, 0.5);
    border: 1px solid #3498db;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.check-area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.check-area-header h3 {
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-area-header h3 i {
    color: #f39c12;
}

.check-hint {
    color: #95a5a6;
    font-size: 0.8rem;
}

.saved-items-display {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.saved-item-label {
    color: #95a5a6;
}

.saved-item-name {
    font-weight: bold;
}

.saved-item-value {
    font-size: 0.9rem;
}

.check-options-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.check-options-row select {
    padding: 0.6rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    min-height: 44px;
    flex: 1;
    min-width: 120px;
}

.check-options-row input {
    padding: 0.6rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    min-height: 44px;
    width: 80px;
}

.check-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.check-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #333;
}

.check-divider span {
    background-color: #16213e;
    padding: 0 1rem;
    color: #95a5a6;
    position: relative;
}

.temp-check-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.temp-input {
    padding: 0.6rem;
    border-radius: 5px;
    border: 1px solid #3498db;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    min-height: 44px;
    width: 100%;
}

.temp-input:focus {
    outline: none;
    border-color: #f39c12;
}

.check-btn-primary,
.check-btn-secondary {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 44px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.check-btn-primary:hover,
.check-btn-secondary:hover {
    background-color: #2980b9;
}

.check-btn-clear {
    background-color: #e94560;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 44px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.check-btn-clear:hover {
    background-color: #c0392b;
}

.result-display-area {
    margin-top: 1rem;
}

.result-display-area h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-display-area h3 i {
    color: #9b59b6;
}

.result-display-area .result {
    min-height: 60px;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid #333;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==================== 角色卡片锁定样式 ==================== */
.basic-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3498db;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-left i {
    font-size: 1.5rem;
    color: #f39c12;
}

.header-left span {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
}

.lock-toggle-btn {
    background: transparent;
    border: 2px solid #95a5a6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lock-toggle-btn.locked {
    border-color: #e94560;
    background-color: rgba(233, 69, 96, 0.2);
}

.lock-toggle-btn.locked i {
    color: #e94560;
}

.lock-toggle-btn.unlocked {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.2);
}

.lock-toggle-btn.unlocked i {
    color: #2ecc71;
}

.lock-toggle-btn:hover {
    transform: scale(1.1);
}

.basic-info-grid.locked {
    opacity: 0.8;
}

.disabled-input {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #95a5a6 !important;
    cursor: not-allowed !important;
    border-style: dashed !important;
}

/* ==================== 规则设置样式 ==================== */
.rules-settings-card {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.9), rgba(22, 33, 62, 0.95));
    border: 2px solid #9b59b6;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rules-settings-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #9b59b6;
}

.rules-settings-header i {
    font-size: 1.3rem;
    color: #9b59b6;
}

.rules-settings-header span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}

.rules-settings-desc {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.rules-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rule-setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rule-setting-item label {
    color: #f39c12;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rule-setting-item input {
    padding: 0.7rem;
    border-radius: 8px;
    border: 1px solid #9b59b6;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1rem;
    min-height: 44px;
    text-align: center;
}

.rule-setting-item input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

.rule-hint {
    color: #95a5a6;
    font-size: 0.75rem;
}

.apply-rules-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    min-height: 44px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.apply-rules-btn:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
}

.reset-rules-btn {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    min-height: 44px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: bold;
    flex: 1;
}

.reset-rules-btn:hover {
    background: linear-gradient(135deg, #d68910, #b9770e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.apply-rules-btn {
    flex: 1;
}

/* ==================== 响应式调整 - 两栏布局 ==================== */
@media (max-width: 1024px) {
    .main-content-wrapper {
        flex-direction: column;
    }
    
    .right-column {
        width: 100%;
    }
    
    .check-result-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .rules-settings-grid {
        grid-template-columns: 1fr;
    }
    
    .check-options-row {
        flex-direction: column;
    }
    
    .check-options-row select,
    .check-options-row input,
    .check-btn-primary,
    .check-btn-secondary,
    .check-btn-clear {
        width: 100%;
    }
}

/* ==================== 系统通知样式 ==================== */
.notification-btn {
    position: relative;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.notification-btn:hover {
    background: linear-gradient(135deg, #a569bd, #9b59b6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #e94560, #c0392b);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(233, 69, 96, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-modal-content {
    max-width: 500px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 50vh;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 1rem 0;
}

.notification-item {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-item.success {
    border-left-color: #2ecc71;
}

.notification-item.error {
    border-left-color: #e94560;
}

.notification-item.warning {
    border-left-color: #f39c12;
}

.notification-item.info {
    border-left-color: #3498db;
}

.notification-item .notification-time {
    font-size: 0.75rem;
    color: #95a5a6;
    margin-bottom: 0.3rem;
}

.notification-item .notification-message {
    font-size: 0.9rem;
    color: #ecf0f1;
    line-height: 1.4;
}

.notification-item .notification-type {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    font-weight: bold;
}

.notification-item.success .notification-type {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.notification-item.error .notification-type {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

.notification-item.warning .notification-type {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.notification-item.info .notification-type {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.notification-empty {
    text-align: center;
    padding: 2rem;
    color: #95a5a6;
    font-style: italic;
}

.notification-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clear-notifications-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.clear-notifications-btn:hover {
    background: linear-gradient(135deg, #ec7063, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* ==================== 设置模态框样式 ==================== */
.settings-modal {
    max-width: 400px;
}

.settings-content {
    padding: 1rem 0;
}

.settings-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-action-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.settings-action-btn i {
    font-size: 1.2rem;
}

.check-update-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.check-update-btn:hover {
    background: linear-gradient(135deg, #5dade2, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.reset-factory-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.reset-factory-btn:hover {
    background: linear-gradient(135deg, #ec7063, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.settings-desc {
    color: #95a5a6;
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== 恢复出厂设置确认模态框样式 ==================== */
.factory-reset-modal {
    max-width: 450px;
    text-align: center;
}

.factory-reset-modal .warning-icon {
    font-size: 4rem;
    color: #f39c12;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.factory-reset-modal h2 {
    color: #e74c3c;
    margin-bottom: 1.5rem;
}

.warning-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.warning-message p {
    margin: 0.5rem 0;
    color: #ecf0f1;
}

.warning-message .highlight {
    color: #f39c12;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(243, 156, 18, 0.3);
}

.confirm-input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.confirm-input-group label {
    display: block;
    color: #ecf0f1;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.confirm-input-group input {
    width: 100%;
    box-sizing: border-box;
}

/* ==================== 版本更新弹窗样式 ==================== */
.update-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.update-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #e94560;
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(233, 69, 96, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.update-modal-header {
    background: linear-gradient(135deg, #e94560, #c0392b);
    padding: 1.2rem;
    text-align: center;
}

.update-modal-header i {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.update-modal-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.update-modal-body {
    padding: 1.5rem;
}

.version-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.version-info span {
    font-size: 0.9rem;
}

.current-ver {
    color: #95a5a6;
}

.latest-ver {
    color: #2ecc71;
    font-weight: bold;
}

.update-log {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.update-log h4 {
    color: #f39c12;
    margin: 0 0 0.8rem 0;
    font-size: 0.95rem;
}

.update-log ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #ecf0f1;
}

.update-log li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.update-note {
    color: #3498db;
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
    padding: 0.8rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
}

.update-note i {
    margin-right: 0.5rem;
}

.update-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.update-btn-later,
.update-btn-now {
    flex: 1;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.update-btn-later {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.update-btn-later:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.update-btn-now {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
}

.update-btn-now:hover {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

@media (max-width: 480px) {
    .update-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .update-modal-footer {
        flex-direction: column;
    }
    
    .update-btn-later,
    .update-btn-now {
        width: 100%;
    }
}

/* ==================== 更新日志模态框样式 ==================== */
.changelog-modal {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.changelog-content {
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.changelog-version {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.changelog-version:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.version-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e94560;
}

.version-date {
    font-size: 0.85rem;
    color: #95a5a6;
}

.version-changes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-changes li {
    padding: 0.5rem 0;
    color: #ecf0f1;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.version-changes li i {
    width: 16px;
    text-align: center;
}

.version-changes li i.fa-plus-circle {
    color: #2ecc71;
}

.version-changes li i.fa-wrench {
    color: #f39c12;
}

.version-changes li i.fa-broom {
    color: #3498db;
}

.version-changes li i.fa-rocket {
    color: #e94560;
}

.version-changes li i.fa-check-circle {
    color: #2ecc71;
}

.changelog-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
    border-color: #9b59b6 !important;
}

.changelog-btn:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98) !important;
}

@media (max-width: 480px) {
    .changelog-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .changelog-content {
        max-height: 65vh;
    }
    
    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}
