* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #3f51b5;
    --secondary-color: #f50057;
    --bg-color: #f5f8fa;
    --text-color: #2c3e50;
    --light-gray: #ecf0f1;
    --border-color: #dfe6e9;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box, .query-box {
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    transition: all 0.3s ease;
}

.login-box:hover, .query-box:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.9rem;
    font-weight: 600;
}

h2 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

h3 {
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
}

input[type="password"], 
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: var(--light-gray);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="password"]:focus, 
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
    background-color: white;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: #303f9f;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

#logout-btn {
    background-color: var(--secondary-color);
}

#logout-btn:hover {
    background-color: #c51162;
}

.error {
    color: var(--error-color);
    margin-top: 15px;
    font-size: 14px;
}

.loading {
    margin: 30px auto;
    text-align: center;
}

.loader {
    display: inline-block;
    width: 35px;
    height: 35px;
    border: 3px solid rgba(63, 81, 181, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none;
}

.result-container {
    margin-top: 15px;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#result-content {
    white-space: pre-line;
    line-height: 1.1;
    font-size: 14px;
}

.tags-container {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tag-item {
    padding: 3px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.tag-item:last-child {
    border-bottom: none;
}

.tag-name {
    font-weight: 500;
    font-size: 13px;
}

.tag-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
}

.highlight {
    background-color: #e3f2fd;
    font-weight: 600;
}

hr {
    margin: 2px 0 !important;
    border-top: 1px solid #eee !important;
    border-bottom: none !important;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .login-box, .query-box {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
    }
} 