/* 表单页面样式 */

.form-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.form-hero .page-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.form-hero .page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

.form-section {
    padding: 80px 0;
    min-height: 60vh;
}

.form-container {
    max-width: 600px;
    margin: 0 auto 60px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.modern-form h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 40px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-block {
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 留言列表 */
.messages-list {
    max-width: 900px;
    margin: 0 auto;
}

.message-item {
    background: var(--white);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    animation: fadeIn 0.5s ease;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.message-author {
    font-weight: bold;
    color: var(--primary-color);
}

.message-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.message-content {
    line-height: 1.8;
    color: var(--text-color);
}

.no-messages {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 认证页面 */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05), rgba(244, 164, 96, 0.05));
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background: var(--bg-color);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--white);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 成功/错误消息 */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .form-hero .page-title {
        font-size: 2rem;
    }
    
    .form-hero .page-subtitle {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .auth-container {
        margin: 0 20px;
    }
    
    .tab-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .form-hero {
        padding: 60px 0;
    }
    
    .form-hero .page-title {
        font-size: 1.8rem;
    }
    
    .form-section {
        padding: 40px 0;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

