/*
   心灵宝 —— 心理咨询师工具平台
   全局样式文件 styles.css
*/

/* SVG Icon Base Styles */
.icon {
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
}

.icon-eye {
    color: #999;
}

.security-icon .icon {
    color: #fff;
}

.success-icon .icon {
    color: #fff;
}

.remove-file-btn .icon {
    color: #fff;
}

:root {
    --primary-color: #4FA3A5;
    --secondary-color: #8BC7B1;
    --accent-color: #5B8DEF;
    --bg-white: #FFFFFF;
    --bg-light: #F4F7F8;
    --text-main: #333333;
    --text-secondary: #666666;
    --border-radius: 12px;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #eef6f7 100%);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 24px;
    color: var(--text-main);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px rgba(91, 141, 239, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 141, 239, 0.45);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-4 .card {
    padding: 32px 24px;
}

.grid-4 .card h3 {
    font-size: 1.2rem;
}

.card {
    background: var(--bg-white);
    padding: 48px 32px;
    border-radius: var(--border-radius);
    border: 1px solid #edf2f4;
}

.card h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Footer */
footer {
    background-color: #2d3436;
    color: #dfe6e9;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-section p, .footer-section li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #b2bec3;
}

.footer-section p a:hover {
    color: var(--secondary-color) !important;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #636e72;
}

/* Compliance Banner */
.compliance-banner {
    background-color: #fff9db;
    border-left: 4px solid #fab005;
    padding: 20px;
    margin: 40px 0;
    border-radius: 4px;
}

.compliance-banner p {
    margin: 0;
    color: #862e00;
    font-size: 0.95rem;
}

/* Form Styles (for Application Page) */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 163, 165, 0.1);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M36 18L24 30L12 18' stroke='%23666' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 40px;
}


/* Why Choose Section */
.why-choose-section {
    background-color: var(--bg-white);
}

.why-choose-card {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: var(--border-radius);
    border: 1px solid #edf2f4;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-choose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(79, 163, 165, 0.1);
}

.why-choose-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.why-choose-card h3 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.why-choose-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* Security Section */
.security-section {
    background: linear-gradient(135deg, #f8fbfc 0%, #eef6f7 100%);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.security-card {
    background: var(--bg-white);
    padding: 28px 24px;
    border-radius: var(--border-radius);
    border: 1px solid #e8f4f5;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.security-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.security-card-content h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.security-card-content .tech-tag {
    display: inline-block;
    background: #e8f4f5;
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 500;
}

.security-card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Cloud Infrastructure Section */
.cloud-section {
    background: var(--bg-white);
}

.cloud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.cloud-card {
    background: linear-gradient(135deg, #fafbfc 0%, #f4f7f8 100%);
    padding: 32px 28px;
    border-radius: var(--border-radius);
    border: 1px solid #edf2f4;
}

.cloud-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cloud-card-header .cloud-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
}

.cloud-logo .icon {
    color: #fff;
}

.cloud-card-header h4 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin: 0;
}

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

.cloud-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid #edf2f4;
}

.cloud-features li:last-child {
    border-bottom: none;
}

.cloud-features li::before {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M43 11L16.875 37L5 25.1818' stroke='%234FA3A5' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 20px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 750px;
    margin: -40px auto 50px;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        height: 70px;
    }

    .nav-links {
        display: none; /* In a real project, we'd add a hamburger menu */
    }

    .hero {
        padding: 80px 0 60px;
    }

    section {
        padding: 60px 0;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .cloud-grid {
        grid-template-columns: 1fr;
    }

    .section-subtitle {
        margin: -30px auto 40px;
    }
}

/* ============================================
   入驻申请表单样式
   ============================================ */

.apply-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.form-section {
    margin-bottom: 40px;
    border-bottom: 1px solid #edf2f4;
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-header {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 10px;
    padding-left: 16px;
    border-left: 4px solid var(--primary-color);
}

/* 提示条样式 */
.alert-box {
    display: flex;
    align-items: flex-start;
    padding: 0 20px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert-info {
    color: #004085;
}

/* 表单元素样式 */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-label.required::before {
    content: "* ";
    color: #dc3545;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 密码输入框容器 */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.password-toggle-btn:hover {
    opacity: 1;
}

/* 短信验证码 */
.sms-code-wrapper {
    display: flex;
    gap: 12px;
}

.sms-code-wrapper .form-control {
    flex: 1;
}

.btn-send-code {
    flex-shrink: 0;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-send-code:hover:not(:disabled) {
    background: #3d8a8c;
}

.btn-send-code:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 卡片式单选 */
.qualification-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.qualification-card {
    cursor: pointer;
}

.qualification-card input {
    display: none;
}

.qualification-card .card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.qualification-card:hover .card-radio {
    border-color: var(--primary-color);
}

.card-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.qualification-card input:checked + .card-content .card-radio {
    border-color: var(--primary-color);
}

.qualification-card input:checked + .card-content .card-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* 卡片式复选框（与单选框风格统一） */
.checkbox-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.checkbox-card {
    cursor: pointer;
}

.checkbox-card input {
    display: none;
}

.checkbox-card .card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.checkbox-card:hover .card-checkbox {
    border-color: var(--primary-color);
}

.card-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.checkbox-card input:checked + .card-content .card-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-card input:checked + .card-content .card-checkbox::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.other-input-wrapper {
    margin-top: 12px;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #d0d0d0;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f5fbfb;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #e8f5f5;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.upload-preview {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.upload-preview img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.remove-file-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #dc3545;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.remove-file-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.upload-requirements {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.upload-requirements p {
    margin-bottom: 8px;
}

.upload-requirements ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 8px;
}

.upload-requirements li {
    margin-bottom: 4px;
}

/* 复选框样式 */
.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-item input {
    display: none;
}

.checkbox-mark {
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    box-sizing: border-box;
    margin-top: 2px;
}

.checkbox-item:hover .checkbox-mark {
    border-color: var(--primary-color);
}

.checkbox-item input:checked + .checkbox-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item input:checked + .checkbox-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* 擅长领域标签云 */
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.expertise-tag {
    padding: 10px 18px;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.expertise-tag:hover {
    background: #e8f5f5;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.expertise-tag.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.expertise-tag.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-expertise-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.custom-expertise-wrapper label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.custom-expertise-wrapper .form-control {
    flex: 1;
    max-width: 300px;
}

/* 协议区域 */
.agreement-box {
    margin: 20px 0 15px 0;
}

.agreement-item, .commitment-item {
    font-size: 0.9rem;
}

.commitment-box{
    margin-bottom: 32px;
}

.commitment-text {
    line-height: 1.7;
}

.link {
    color: var(--accent-color);
    text-decoration: underline;
}

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

/* 重要规则告知 */
.important-notice {
    background: linear-gradient(135deg, #fef9e7 0%, #fef5e7 100%);
    border: 2px solid #f39c12;
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 32px;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.notice-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c0392b;
}

.notice-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-main);
}

.notice-list li {
    margin-bottom: 6px;
}

.notice-list .sub-list {
    list-style: circle;
    padding-left: 20px;
    margin-top: 6px;
}

/* 提交按钮 */
.submit-wrapper {
    text-align: center;
}

.btn-submit {
    width: 100%;
    max-width: 320px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

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

.btn-submit:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-color) 0%, #4a7dd8 100%);
}

.btn-submit:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 141, 239, 0.4);
}

/* 成功弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-modal .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

.success-modal h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.success-modal p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 表单错误样式 */
.form-group.has-error .form-control,
.form-group.has-error .upload-area {
    border-color: #e74c3c;
}

.form-group.has-error .form-control:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form-group.has-error .form-label {
    color: #e74c3c;
}

.form-group.has-error .qualification-cards .qualification-card .card-content,
.form-group.has-error .checkbox-cards .checkbox-card .card-content {
    border-color: #e74c3c;
}

.agreement-box.has-error .checkbox-item,
.commitment-box.has-error .checkbox-item {
    color: #e74c3c;
}

.agreement-box.has-error .checkbox-mark,
.commitment-box.has-error .checkbox-mark {
    border-color: #e74c3c;
}

.form-error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .apply-form-wrapper {
        padding: 24px;
        margin: 0 -12px;
        border-radius: 0;
    }

    .qualification-cards {
        flex-direction: column;
    }

    .checkbox-list {
        flex-direction: column;
        gap: 12px;
    }

    .sms-code-wrapper {
        flex-direction: column;
    }

    .sms-code-wrapper .btn-send-code {
        width: 100%;
    }
}
