/* ================= 基础样式 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.box {
    max-width: 560px;
    width: 100%;
    margin: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 35px 30px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 18px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    border: 3px solid white;
}

h2 {
    text-align: center;
    margin-bottom: 28px;
    color: #2d3748;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ================= 表单样式 ================= */
label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    color: #4a5568;
}

.req {
    color: #ef476f;
    font-size: 16px;
    margin-left: 2px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #667eea;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

input:hover,
select:hover,
textarea:hover {
    border-color: #a0aec0;
}

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

/* ================= 按钮样式 ================= */
button {
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ================= 维护模式遮罩 ================= */
.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.maintenance-box {
    background: white;
    padding: 45px 35px;
    border-radius: 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.maintenance-box h2 {
    font-size: 28px;
    color: #ef476f;
    margin-bottom: 15px;
}

.maintenance-box p {
    margin: 12px 0;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

.maintenance-box .small {
    margin-top: 25px;
    font-size: 13px;
    color: #94a3b8;
}

/* ================= 后台入口按钮 ================= */
.admin-link {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    font-size: 22px;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.admin-link:hover {
    transform: scale(1.15) rotate(5deg);
    background: #667eea;
    color: white;
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5);
}

/* ================= 版权信息 ================= */
.copyright {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.copyright-link {
    color: inherit;
    text-decoration: none;
    cursor: default;
}

/* ================= 响应式设计 ================= */
@media (max-width: 640px) {
    body {
        padding: 15px;
    }
    
    .box {
        padding: 25px 20px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    input,
    select,
    textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .admin-link {
        width: 42px;
        height: 42px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
    
    .maintenance-box {
        padding: 30px 20px;
    }
    
    .maintenance-box h2 {
        font-size: 24px;
    }
}

/* ================= 输入框占位符样式 ================= */
::placeholder {
    color: #a0aec0;
    opacity: 0.7;
    font-size: 14px;
}

/* ================= 选择框样式 ================= */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ================= 数字输入框样式 ================= */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}