/* 通用重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #fff;
    height: 100vh;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

h1 {
    text-align: center;
    padding: 15px;
    color: #333;
    font-size: 1.8em;
    margin: 0;
    background: #fff;
}


.top-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
    background: #fff;
}

.stats-section {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #4d96ff;
}


.control-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a90d9;
}


.table-checkbox-label {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    vertical-align: middle;
}

.table-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4a90d9;
    margin: 0;
    vertical-align: middle;
}


.table-search-input {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    width: 180px;
    outline: none;
    transition: all 0.3s;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
}

.table-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.table-search-input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    width: 220px;
}


.table-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
    border: 1px solid #ddd;
}

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

th {
    background: #4a90d9;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    position: sticky;
    top: 0;
}

tr:hover {
    background: #f0f7ff;
}

.name {
    color: #333;
    font-weight: bold;
}

.hp {
    color: #ff6b6b;
}

.fire {
    color: #ff6b6b;
}

.ice {
    color: #00d2d3;
}

.light {
    color: #ffd93d;
}

.poison {
    color: #26de81;
}

.drops {
    color: #555;
    text-align: left;
    max-width: 400px;
    font-size: 12px;
    line-height: 1.6;
}

.drop-item {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    margin: 2px;
    border-radius: 10px;
    color: #333;
}


.highlight {
    background-color: #ffeb3b;
    color: #d32f2f;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(255, 235, 59, 0.5);
}


.ad-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border: 2px solid #4a90d9;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 10000;
    overflow: hidden;
    transform: translateX(120%);
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    visibility: hidden;
    opacity: 0;
}

.ad-popup.show {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.ad-popup-header {
    background: #4a90d9;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 3px solid #3a7bc8;
}

.ad-popup-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.ad-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-popup-close:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.ad-popup-content {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100px;
}

.ad-popup-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid #4a90d9;
    border-radius: 8px;
    background: white;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ad-popup-item:hover {
    border-color: #4a90d9;
    box-shadow: 0 2px 8px rgba(74,144,217,0.1);
}

.ad-popup-item-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.ad-popup-item-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ad-popup-item-link {
    display: inline-block;
    background: #4a90d9;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    transition: background 0.2s;
}

.ad-popup-item-link:hover {
    background: #3a7bc8;
}