* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(90deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header h1 i {
    font-size: 2.2rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.disclaimer {
    background: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: left;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.disclaimer i {
    color: #ffc107;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.disclaimer strong {
    color: #e74c3c;
}

.control-panel {
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label i {
    color: #3498db;
    font-size: 1.1em;
}

.filter-group select {
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
    color: #495057;
}

.filter-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-buttons button {
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    min-width: 160px;
}

.btn-generate {
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-refresh {
    background: #3498db;
    color: white;
}

.btn-refresh:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-copy {
    background: #9b59b6;
    color: white;
}

.btn-copy:hover {
    background: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

.btn-export {
    background: #e67e22;
    color: white;
}

.btn-export:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.results-container {
    padding: 30px 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h2 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}

.results-header h2 i {
    color: #3498db;
    font-size: 1.6rem;
}

.stats {
    background: #e8f4fc;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    border: 2px solid #3498db;
}

.results-table {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

thead {
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid #3a506b;
    font-size: 1rem;
    white-space: nowrap;
}

th:last-child {
    border-right: none;
}

tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s;
}

tbody tr:hover {
    background: #f8f9fa;
}

td {
    padding: 15px;
    color: #495057;
    font-size: 0.95rem;
    vertical-align: middle;
}

td strong {
    color: #2c3e50;
}

.actions-cell button {
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions-cell button:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.loading, .no-data {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-data i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-data p {
    color: #7f8c8d;
    font-size: 1.2rem;
}

.details-panel {
    background: #f8f9fa;
    margin: 0 40px 30px;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.details-panel h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.details-panel h3 i {
    color: #3498db;
    font-size: 1.3rem;
}

.details-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.detail-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.detail-item h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.detail-item h4 i {
    font-size: 1.1em;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-grid div {
    padding: 10px 0;
    border-bottom: 1px dashed #e9ecef;
    display: flex;
    align-items: flex-start;
}

.detail-grid div:last-child {
    border-bottom: none;
}

.detail-grid strong {
    color: #495057;
    display: inline-block;
    min-width: 120px;
    font-weight: 600;
    flex-shrink: 0;
}

.detail-grid span {
    color: #2c3e50;
    word-break: break-word;
    padding-left: 10px;
    flex-grow: 1;
}

footer {
    background: #2c3e50;
    color: white;
    padding: 25px 40px;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s;
}

.close:hover {
    color: #e74c3c;
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content h3 i {
    color: #3498db;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #495057;
}

.toast-success {
    background: #2ecc71 !important;
}

.toast-error {
    background: #e74c3c !important;
}

.toast-info {
    background: #3498db !important;
}

.toast-warning {
    background: #f39c12 !important;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .details-content {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid div {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-grid strong {
        min-width: auto;
    }
    
    .detail-grid span {
        padding-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        border-radius: 0;
        margin: 0;
    }
    
    header, .control-panel, .results-container {
        padding: 20px;
    }
    
    .details-panel {
        margin: 0 20px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
        min-width: auto;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-header h2 {
        text-align: center;
        justify-content: center;
    }
    
    .stats {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    th, td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    header h1 i {
        font-size: 1.8rem;
    }
}