* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.query-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.query-form .form-group {
    margin-bottom: 20px;
}

.query-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.query-form input,
.query-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.query-form input:focus,
.query-form select:focus {
    border-color: #667eea;
    outline: none;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    text-align: center;
    padding: 20px;
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.result-container h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.summary-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-info p {
    margin: 5px 0;
    color: #666;
}

.result-list {
    margin-top: 20px;
}

.result-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.result-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.result-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.data-type {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.match-ratio {
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.result-item-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.result-item-body {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.result-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 14px;
}

.detail-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.detail-btn:hover {
    background: #5a67d8;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 20px;
}

.detail-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-section h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    width: 150px;
    font-weight: bold;
    color: #555;
}

.detail-value {
    flex: 1;
    color: #333;
    word-break: break-word;
}

.partys-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.partys-table th {
    background: #667eea;
    color: white;
    padding: 12px;
    text-align: left;
}

.partys-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.partys-table tr:nth-child(even) {
    background: #f8f9fa;
}

.error-box {
    background: #fee;
    border: 1px solid #f99;
    color: #c00;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.success-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.empty-result {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-result i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        width: 100%;
        margin-bottom: 5px;
    }
}
/* 原有样式内容保持不变，这里只展示新增部分 */

/* 密码验证页面样式 */
.password-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.password-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.password-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.password-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.password-form {
    margin-bottom: 20px;
}

.password-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 8px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.password-input:focus {
    border-color: #667eea;
    outline: none;
}

.password-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.password-error {
    background: #fee;
    border: 1px solid #f99;
    color: #c00;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
    display: none;
}

.password-error.show {
    display: block;
}

.password-footer {
    margin-top: 30px;
    color: #888;
    font-size: 0.9rem;
}

.password-hint {
    color: #667eea;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* 会话超时提醒样式 */
#timeoutModal .modal-content {
    max-width: 500px;
}

#timeoutModal .modal-body {
    text-align: center;
    padding: 30px;
}

#timeoutModal p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

#timeoutCountdown {
    font-weight: bold;
    color: #dc3545;
    font-size: 1.2em;
}

/* 会话计时器样式 */
#sessionTimer {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: normal;
    transition: all 0.3s;
}