/* 初雨海盗王查询工具样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    border: none;
    background-color: #ecf0f1;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.tab.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

main {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#searchInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 300px;
}

#searchBtn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
}

.results-section {
    min-height: 200px;
}

.welcome {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.welcome h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.welcome ul {
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
}

.welcome li {
    margin-bottom: 10px;
    padding-left: 10px;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.result-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

.result-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.info-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 2px 0;
    gap: 8px;
}

.info-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.9em;
}

.info-value {
    color: #2c3e50;
    font-weight: 500;
}

.drops-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.drop-item {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid;
}

.drops-list .drop-item.normal-drop {
    background: linear-gradient(45deg, #e8f5e8, #d4edda) !important;
    color: #155724 !important;
    border-color: #c3e6cb !important;
}

.drops-list .drop-item.quest-drop {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7) !important;
    color: #856404 !important;
    border-color: #ffeaa7 !important;
}

.monsters-section {
    margin-top: 20px;
}

.monster-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.monster-name {
    font-weight: 600;
    color: #2c3e50;
    min-width: 120px;
}

.monster-level {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.drop-rate {
    background: #fff3e0;
    color: #e65100;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.monster-location {
    color: #7f8c8d;
    font-size: 12px;
    margin-left: auto;
}

.monster-attributes {
    margin: 10px 0;
}

.attributes-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.attr-item {
    color: #2c3e50;
    font-size: 0.9em;
    font-weight: 500;
}

.attr-separator {
    color: #bdc3c7;
    font-size: 0.9em;
}

.job-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-item {
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.attributes-list {
    display: block;
}

.attribute-item {
    display: block;
    padding: 4px 8px;
    margin-bottom: 2px;
    background: rgba(0, 128, 255, 0.1);
    border-radius: 4px;
    width: fit-content;
}

.attr-name {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.9em;
}

.attr-value {
    color: #2c3e50;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.error {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    color: #7f8c8d;
}

.quick-links {
    margin-bottom: 20px;
}

.quick-links h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.link-icon {
    font-size: 1.2em;
    margin-right: 10px;
    min-width: 24px;
}

.link-text {
    font-weight: 500;
    font-size: 0.95em;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .search-section {
        flex-direction: column;
    }
    
    #searchInput {
        min-width: auto;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quick-link {
        padding: 10px 12px;
    }
    
    .link-text {
        font-size: 0.9em;
    }
}