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

body {
	background: linear-gradient(135deg, rgba(14, 247, 255, 0.4), rgba(137, 240, 185, 0.4), rgba(123, 233, 116, 0.4));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(90deg, #1a2a6c, #2a3a8c);
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.header p {
    font-size: 14px;
    opacity: 0.8;
}

.content {
    padding: 25px 20px;
}

/* 密码验证部分 */
.auth-section {
    text-align: center;
}

.auth-section h2 {
    color: #1a2a6c;
    margin-bottom: 20px;
    font-size: 20px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: #1a2a6c;
    outline: none;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #1a2a6c, #2a3a8c);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.error-message {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

/* 功能入口部分 */
.dashboard {
    display: none;
}

.dashboard h2 {
    color: #1a2a6c;
    text-align: center;
    margin-bottom: 25px;
    font-size: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.grid-item {
    background-color: white;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #1a2a6c;
}

.grid-item i {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1a2a6c;
}

.grid-item span {
    display: block;
    font-weight: 600;
    color: #333;
}

.footer {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #eee;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 15px;
}

.loading-spinner {
    border: 3px solid rgba(26, 42, 108, 0.3);
    border-radius: 50%;
    border-top: 3px solid #1a2a6c;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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


/* 密码验证覆盖层样式 */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 247, 255, 0.9), rgba(137, 240, 185, 0.9), rgba(123, 233, 116, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.auth-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.auth-header {
    background: linear-gradient(90deg, #1a2a6c, #2a3a8c);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    margin: -30px -30px 25px -30px;
}

.auth-header h2 {
    margin: 0;
    font-size: 24px;
}

.auth-input-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.auth-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.auth-input-group input:focus {
    border-color: #1a2a6c;
    outline: none;
}

.auth-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #1a2a6c, #2a3a8c);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.auth-error {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.auth-loading {
    display: none;
    text-align: center;
    margin-top: 15px;
}

.auth-loading-spinner {
    border: 3px solid rgba(26, 42, 108, 0.3);
    border-radius: 50%;
    border-top: 3px solid #1a2a6c;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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