/* 前端样式 */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f7fa;
    --text-color: #333;
    --border-color: #e1e8ed;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --required-color: #ff4444;
    --notice-bg: #fff3cd;
    --notice-color: #856404;
    --important-bg: #e7f3ff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 650px;
    overflow: hidden;
}

.header {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.header .subtitle {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.header .notice {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
}

.header .notice-icon {
    font-size: 20px;
}

.form-container {
    padding: 30px;
}

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

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

/* 必填项红色星号 */
.form-group label .required {
    color: var(--required-color);
    font-size: 16px;
    font-weight: bold;
    margin-left: 2px;
}

/* 选填项灰色文字 */
.form-group label .optional {
    color: #999;
    font-size: 12px;
    font-weight: normal;
    margin-left: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    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(74, 144, 226, 0.1);
}

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

/* 输入框提示文字 */
.input-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* 必填项输入框边框加亮 */
.form-group input:required {
    border-left: 4px solid var(--required-color);
}

/* 重要提示区域 */
.important-notice {
    background: var(--important-bg);
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0 15px;
    border-left: 4px solid var(--primary-color);
}

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

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

.important-notice li {
    padding: 6px 0 6px 25px;
    position: relative;
    color: #555;
    font-size: 14px;
}

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

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

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

/* 加载动画 */
.submit-btn.loading {
    color: transparent;
}

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

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

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
    animation: slideDown 0.3s ease;
}

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

.message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.footer {
    text-align: center;
    padding: 25px;
    background: var(--secondary-color);
    border-top: 1px solid var(--border-color);
}

.footer .processing-time {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.footer .result-check {
    color: #28a745;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 15px;
    padding: 8px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 5px;
    display: inline-block;
}

.footer .admin-link {
    margin: 15px 0 8px;
}

.footer .admin-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer .admin-link a:hover {
    color: #357abd;
    text-decoration: underline;
}

.footer .copyright {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 20px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .header .subtitle {
        font-size: 16px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .important-notice {
        padding: 15px;
    }
}

/* 增强版客服链接样式 - 带背景色 */
.customer-service-link-prominent {
    color: white !important;
    font-weight: bold !important;
    text-decoration: none !important;
    background-color: #ff4444;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.customer-service-link-prominent:hover {
    background-color: #ff6666;
    color: white !important;
    text-decoration: none !important;
}