@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Comic Sans MS', 'Segoe UI', 'Noto Color Emoji', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #e0f7fa 0%, #bbdefb 50%, #ffcc80 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid #4fc3f7;
}

header {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    padding: 15px 0;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(41, 182, 246, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 25px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-right: 20px;
    gap: 8px; 
}

.logo::before {
    content: "";
    display: inline-block;
    width: 32px;  
    height: 32px; 
    background: url('/logo.png') no-repeat center/contain;
    flex-shrink: 0; 
}

.welcome-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.welcome-text, .time-display {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.separator {
    height: 24px;
    width: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.time-display {
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: #e0f7fa;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.func-title {
    font-size: 22px;
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    border-radius: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

nav ul li a.active {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    border-color: #e65100;
    box-shadow: 0 6px 18px rgba(255, 87, 34, 0.3);
}

.page {
    display: none;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    border: 2px solid #4fc3f7;
}

.active {
    display: block;
}

h2 {
    color: #29b6f6;
    margin-bottom: 25px;
    text-align: center;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(41, 182, 246, 0.2);
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    padding: 15px;
    border-radius: 12px;
    border: 3px solid #4fc3f7;
}

h3 {
    color: #0288d1;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #0288d1;
    font-size: 16px;
}

input[type="text"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 3px solid #4fc3f7;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.2);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
    border-color: #ff9800;
    outline: none;
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.3);
    transform: translateY(-2px);
}

input::placeholder {
    color: #90a4ae;
    font-style: italic;
}

button {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(41, 182, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 22px rgba(41, 182, 246, 0.4);
    background: linear-gradient(135deg, #29b6f6 0%, #039be5 100%);
}

button:active {
    transform: translateY(0);
}

.btn-center {
    text-align: center;
    margin-top: 30px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(187, 222, 251, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid #4fc3f7;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 28px rgba(187, 222, 251, 0.4);
    border-color: #ff9800;
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border-color: #ef5350;
}

.success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-color: #66bb6a;
}

.warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ef6c00;
    border-color: #ff9800;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #78909c;
    font-size: 14px;
    padding: 20px 0;
    border-top: 3px solid #e3f2fd;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4fc3f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

/* 通用对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dialog-box {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 3px solid #4fc3f7;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-header {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.dialog-close {
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.2s;
}

.dialog-close:hover {
    transform: rotate(90deg);
}

.dialog-content {
    padding: 25px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    min-height: 60px;
}

.dialog-content input[type="text"],
.dialog-content input[type="password"],
.dialog-content textarea {
    width: 100%;
    padding: 12px;
    border: 3px solid #4fc3f7;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.2);
    margin-top: 10px;
}

.dialog-content input[type="text"]:focus,
.dialog-content input[type="password"]:focus,
.dialog-content textarea:focus {
    border-color: #ff9800;
    outline: none;
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.3);
    transform: translateY(-2px);
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    gap: 10px;
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    border-top: 2px solid #4fc3f7;
}

.dialog-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    font-family: 'Comic Sans MS', 'Segoe UI', 'Noto Color Emoji', cursive;
}

.dialog-btn.confirm-btn {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.3);
}

.dialog-btn.confirm-btn:hover {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 187, 106, 0.4);
}

.dialog-btn.cancel-btn {
    background: linear-gradient(135deg, #ef5350 0%, #d32f2f 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.3);
}

.dialog-btn.cancel-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 83, 80, 0.4);
}

.dialog-btn.neutral-btn {
    background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(171, 71, 188, 0.3);
}

.dialog-btn.neutral-btn:hover {
    background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(171, 71, 188, 0.4);
}

.dialog-btn.warning-btn {
    background: linear-gradient(135deg, #ffa726 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
}

.dialog-btn.warning-btn:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 167, 38, 0.4);
}