/* 前端样式 - 账号解冻申请系统 */
:root {
    --primary-color: #e67e22;
    --primary-dark: #d35400;
    --secondary-color: #fff5eb;
    --text-color: #2c3e50;
    --border-color: #e2e8f0;
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --required-color: #e74c3c;
    --important-bg: #fff5eb;
}

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

body {
    font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
    background: linear-gradient(135deg, #fef5e7 0%, #fde6cf 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;
}

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

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

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

.header .badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 13px;
    margin-top: 12px;
}

.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);
    margin-left: 2px;
}

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

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

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 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;
}

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

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

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

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

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(230, 126, 34, 0.4);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: 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;
}

.message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
}

.message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

.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;
}

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

/* 弹窗样式 */
.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: 15% auto;
    width: 90%;
    max-width: 480px;
    border-radius: 20px;
    overflow: hidden;
    animation: slideDown 0.3s;
}

.modal-header {
    background: var(--primary-color);
    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;
    transition: 0.2s;
}

.modal-header .close:hover {
    opacity: 0.8;
}

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

.modal-desc {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-color);
}

/* 规则说明框 */
.rule-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0 20px;
    border-left: 4px solid var(--primary-color);
    text-align: left;
}

.rule-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    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: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

/* 弹窗按钮 - 水平排列 */
.modal-buttons {
    display: flex;
    flex-direction: row;
    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: var(--success-color);
    color: white;
}

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

.no-btn {
    background: var(--error-color);
    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;
    }
}