:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333;
    --border-radius: 8px;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 顶部链接区域样式 */
.header-links {
    text-align: center;
    margin: 0 auto 25px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: fit-content;
    max-width: 90%;
}

.header-link {
    color: #3498db;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95em;
}

.header-link:hover {
    color: #2980b9;
    background: #e3f2fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.link-icon {
    vertical-align: middle;
}

.link-separator {
    margin: 0 4px;
    color: #d0d0d0;
    font-weight: 300;
    font-size: 1.1em;
    user-select: none;
}

.disclaimer-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.95em;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
}

.disclaimer-btn:hover {
    background: #ffebee;
    color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

/* 标签页样式 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    background: #fff;
    color: #666;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #3498db;
    color: #fff;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.tab-content {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 布局卡片 */
.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 120px;
}

label {
    font-weight: bold;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
}

/* 稀有度标签样式 */
.rarity-tag {
    padding: 4px 8px;
    border-radius: 4px;
    color: #000;
    font-weight: bold;
    font-size: 0.85em;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.milestone-item {
    padding: 10px;
    border-left: 4px solid #3498db;
    background: #f9f9f9;
    margin-bottom: 8px;
}

.atk-val {
    font-family: monospace;
    font-weight: bold;
    color: #e67e22;
    font-size: 1.1em;
}

.empty-hint {
    color: #999;
    font-style: italic;
}

/* 筛选区域样式 */
.filter-section {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rarity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.rarity-filter-btn {
    padding: 6px 12px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.2s;
    color: #000;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

.rarity-filter-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.rarity-filter-btn.active {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.search-box {
    margin-top: 10px;
}

.search-box input {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
}

/* 彩色怪物名称样式 */
.mob-name {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #999;
    font-size: 0.85em;
    border-top: 1px solid #eee;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #000;
    transform: scale(1.2);
}

.modal-header {
    padding: 25px 30px 15px;
    border-bottom: 2px solid #3498db;
    flex-shrink: 0;
}

.modal-content h2 {
    color: #2c3e50;
    margin: 0;
}

.disclaimer-text {
    line-height: 1.8;
    color: #555;
    padding: 20px 30px 30px;
    overflow-y: auto;
    flex: 1;
}

.disclaimer-text::-webkit-scrollbar {
    width: 8px;
}

.disclaimer-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.disclaimer-text::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.disclaimer-text::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.disclaimer-text p {
    margin: 15px 0;
}

.disclaimer-text strong {
    color: #2c3e50;
    font-size: 1.05em;
}

.disclaimer-text ul {
    margin: 10px 0;
    padding-left: 25px;
}

.disclaimer-text li {
    margin: 8px 0;
}

.disclaimer-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9em;
    text-align: right;
