/* 前端样式 - 账号注销申请系统 */
:root {
    --primary-color: #2c7da0;
    --primary-dark: #1f5e7a;
    --secondary-color: #f0f9ff;
    --text-color: #1e293b;
    --border-color: #cbd5e1;
    --error-color: #dc2626;
    --success-color: #10b981;
    --required-color: #ef4444;
    --important-bg: #e6f7ff;
}

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

body {
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #d9eef7 0%, #b8d9e8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 680px;
    overflow: hidden;
    transition: transform 0.2s;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), #1e4a6b);
    color: white;
    padding: 32px 28px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.header .subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

.form-container {
    padding: 32px 28px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

.form-group label .required {
    color: var(--required-color);
    font-size: 16px;
    margin-left: 2px;
}

.form-group label .optional {
    color: #94a3b8;
    font-size: 12px;
    font-weight: normal;
    margin-left: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fff;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.15);
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
}

.important-notice {
    background: var(--important-bg);
    border-radius: 18px;
    padding: 18px 22px;
    margin: 24px 0 16px;
    border-left: 5px solid var(--primary-color);
}

.important-notice h3 {
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 700;
}

.important-notice ul {
    list-style: none;
    padding: 0;
}

.important-notice li {
    padding: 6px 0 6px 26px;
    position: relative;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.45;
}

.important-notice li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(95deg, var(--primary-color), #1f5e7a);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: linear-gradient(95deg, #236b8e, #144d66);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(44, 125, 160, 0.4);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn.loading {
    color: transparent;
    position: relative;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 50%;
    margin-left: -11px;
    margin-top: -11px;
    border: 3px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 16px;
    display: none;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.footer {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.footer .copyright {
    color: #6c757d;
    font-size: 12px;
}

.customer-service-link {
    color: white !important;
    background-color: #f97316;
    padding: 3px 10px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-left: 6px;
    display: inline-block;
    transition: 0.2s;
}

.customer-service-link:hover {
    background-color: #ea580c;
    text-decoration: none;
}

@media (max-width: 560px) {
    .container {
        border-radius: 24px;
    }
    .form-container {
        padding: 24px 20px;
    }
    .header h1 {
        font-size: 24px;
    }
}

/* 弹窗样式 - 必须存在 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    animation: slideDown 0.3s;
}

.modal-header {
    background: #e67e22;
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-header .close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-body {
    padding: 25px 20px;
    text-align: center;
}

.modal-desc {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.rule-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0 20px;
    border-left: 4px solid #e67e22;
    text-align: left;
}

.rule-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #e67e22;
    font-size: 14px;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
}

.rule-list li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #e67e22;
    font-weight: bold;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.yes-btn {
    background: #27ae60;
    color: white;
}

.yes-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.no-btn {
    background: #e74c3c;
    color: white;
}

.no-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}