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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 0;
    color: #333;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: #1890ff;
    padding: 25px 20px;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: 0 2px 10px rgba(24, 144, 255, 0.2);
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 8px;
    
}

.header h1 {
    font-size: 22px;
    font-weight: 500;
    margin-top: 10px;
    letter-spacing: 1px;
}

.form-container {
    padding: 30px 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
    background: #fafafa;
}

.form-group input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.submit-btn:hover {
    background: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 结果页面样式 */
.result-container {
    padding: 40px 25px;
    text-align: center;
    min-height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-box {
    padding: 35px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.result-box.success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.result-box.error {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.result-box h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.result-box p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.application-id {
    font-size: 14px;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin: 10px 0;
    color: #666;
}

.error-code {
    font-size: 14px;
    background: rgba(255, 77, 79, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
    margin: 10px 0;
    color: #ff4d4f;
    font-weight: 500;
}

.success-message, .error-message {
    font-size: 15px;
    font-weight: 500;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary, .btn-admin {
    padding: 12px 25px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.btn-secondary {
    background: white;
    color: #666;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #bfbfbf;
    transform: translateY(-1px);
}

.btn-admin {
    background: #1890ff;
    color: white;
    border: 1px solid #1890ff;
}

.btn-admin:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    transform: translateY(-1px);
}

/*后台登录页面样式 */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    text-align: center;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-container h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 22px;
    font-weight: 500;
}

.login-form {
    text-align: left;
}

.admin-btn {
    background: #1890ff;
    color: white;
    border: 1px solid #1890ff;
}

.admin-btn:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

/*后台管理页面样式 */
.admin-header {
    background: #1890ff;
    padding: 20px 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(24, 144, 255, 0.2);
}

.admin-header h1 {
    font-size: 20px;
    font-weight: 500;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.applications-table th,
.applications-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.applications-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.applications-table tr:hover {
    background: #f8f9fa;
}

.status-approved {
    background: #d4edda;
    color: #155724;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/*响应式设计 */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .form-container, .result-container {
        padding: 25px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-secondary, .btn-admin {
        width: 100%;
    }
    
    .login-container {
        margin: 0;
        padding: 30px 20px;
        min-height: 100vh;
        border-radius: 0;
    }
    
    .admin-header {
        padding: 15px 20px;
    }
    
    .admin-header h1 {
        font-size: 18px;
    }
}

/* 9:16优化 */
@media (max-width: 480px) and (max-height: 854px) {
    .header {
        padding: 18px 15px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .form-container, .result-container {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .result-box {
        padding: 25px 20px;
    }
    
    .result-box h2 {
        font-size: 22px;
    }
    
    .result-box p {
        font-size: 15px;
    }
}