/* ȫ����ʽ - �޸��﷨����汾 */
:root {
    --primary-color: #185FA5;
    --primary-dark: #0d3d6b;
    --primary-light: #e8f0fb;
    --accent-color: #c8102e;
    --secondary-color: #6c757d;
    --success-color: #07c160;
    --background-color: #fafafa;
    --surface-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e8e8e8;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html {
    scroll-padding-top: 68px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ������ - ���ӿƼ���� */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    display: block;
}

.logo-fallback {
    display: flex;
    align-items: center;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 16px;
    gap: clamp(4px, 2.5vw, 28px);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    padding: 6px 16px;
    border-radius: 20px;
    position: relative;
    white-space: nowrap;
    background: #f5f7fa;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(24,95,165,0.1);
    color: var(--primary-color);
    border-color: rgba(24,95,165,0.15);
}

.nav-link.active {
    background: var(--primary-color);
    color: #fff;
}

.nav-link.active:hover {
    background: #124a8c;
    color: #fff;
}

/* ����ָʾ�� - ���أ�����̬����pill������ */
.nav-indicator {
    display: none;
}

/* SPA ҳ���л� + �������� */
.page-section {
    display: none;
    opacity: 0;
}
.page-section.active {
    display: block;
    animation: slideIn 0.4s ease forwards;
    padding-top: 0;
    flex: 1;
}
/* hero-section �� flex �����ӿ�ʣ��ռ� */
.hero-section.active {
    display: flex !important;
    flex: 1;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* �����˵���ť */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

/* �Ҳ���ϣ���¼ + �����л� */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 1cm;
    flex-shrink: 0;
}

/* �˻������˵� */
.user-info {
    position: relative;
}
.account-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
    white-space: nowrap;
}
.account-dropdown-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.account-dropdown-btn .account-avatar {
    font-size: 16px;
    line-height: 1;
}
.account-dropdown-btn .account-name {
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-dropdown-btn .account-arrow {
    font-size: 10px;
    color: var(--text-tertiary);
    transition: transform 0.2s;
}
.account-dropdown-btn.active .account-arrow {
    transform: rotate(180deg);
}
.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 1000;
    min-width: 150px;
    overflow: hidden;
}
.account-dropdown.hidden { display: none; }
.account-dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
}
.account-dropdown-item:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}
.account-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}
.account-logout {
    color: var(--danger-color, #e74c3c) !important;
}
.account-logout:hover {
    background: #fef2f2 !important;
}

/* �����л���ť������ͼ�� + ������ */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}
.globe-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 8px;
    line-height: 1;
    transition: border-color 0.2s;
}
.globe-btn:hover { border-color: var(--primary-color); }
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 110px;
    overflow: hidden;
}
.lang-dropdown.hidden { display: none; }
.lang-option {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
    transition: background 0.15s;
}
.lang-option:hover { background: #f0f4ff; color: var(--primary-color); }
.lang-option.active { background: #e8f0ff; color: var(--primary-color); font-weight: 500; }

/* �ɰ����԰�ť�������ݣ��ƶ��˿����ã� */
.lang-btn {
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-secondary);
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ��ҳ��� - ���ӿƼ���� */
.hero-section {
    background: var(--surface-color);
    color: var(--text-primary);
    padding: 116px 20px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(24, 95, 165, 0.05) 0%, transparent 50%);
}
.hero-section::after {
    content: '';
    position: absolute;
    top: -18%;
    right: -6%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 95, 165, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

/* ����װ�ο�Ƭ */
.hero-card {
    background: #fff;
    border: 1px solid rgba(24,95,165,0.15);
    border-radius: 16px;
    padding: 28px 36px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(24,95,165,0.06);
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: 16px 16px 0 0;
}

/* Hero ��Ƭ�ڶ���Ű� */
.hero-tagline {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-tertiary, #999);
    letter-spacing: 0.2px;
    margin-bottom: 8px;
    line-height: 1.5;
    white-space: normal;
}
.hero-tagline.zh-tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.4rem);
    color: #888;
    letter-spacing: 0.3px;
    white-space: normal;
    margin-bottom: 6px;
}
.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary-color);
}
.brand-accent {
    color: var(--primary-color);
}
.hero-title-sub {
    display: block;
    font-size: clamp(1.05rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
    margin-top: 6px;
}
.hero-subtitle {
    font-size: 18px;
    margin-bottom: 0;
    opacity: 0.85;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
}
.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: 14px auto;
    border-radius: 1px;
}
.hero-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.6;
}
.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hero-benefits li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
    line-height: 1.7;
    margin-bottom: 2px;
}
.hero-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    background-color: #e8f4fd;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185FA5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 9px;
    border-radius: 3px;
}

/* ����A��4���Կ�Ƭ */
.hero-feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 24px 0 8px;
}
.hero-feature-card {
    background: #f5f9ff;
    border: 1px solid rgba(24,95,165,0.12);
    border-radius: 14px;
    padding: 20px 10px 16px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.25s ease;
}
.hero-feature-card:hover {
    background: #eef4ff;
    border-color: rgba(24,95,165,0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(24,95,165,0.10);
}
.feature-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    display: block;
}
.feature-metric {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 6px;
    word-break: break-word;
    hyphens: auto;
}
.feature-metric:only-child {
    margin-bottom: 0;
}
.feature-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.1px;
}
.feature-label:empty {
    display: none;
}
@media (max-width: 540px) {
    .hero-feature-cards {
        gap: 8px;
    }
    .hero-feature-card {
        padding: 14px 8px 12px;
        max-width: none;
    }
    .feature-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 8px;
    }
    .feature-metric {
        font-size: 1.15rem;
    }
    .feature-label {
        font-size: 11.5px;
    }
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 19px;
}

/* ��ť - ���ӿƼ���� */
.btn {
    padding: 8px 24px;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--border-color);
}

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

/* ��ɫ��������ť */
.btn-clear-role {
    background: transparent !important;
    border: 1px solid #e74c3c !important;
    color: #e74c3c !important;
    font-size: 12px !important;
    padding: 4px 12px !important;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-clear-role:hover {
    color: #fff !important;
    border-color: #e74c3c !important;
    background: #e74c3c !important;
}

/* ��ɫ����ť �� ��¼�� */
.btn-primary-filled {
    background: var(--primary-color);
    color: #fff;
    border: 1.5px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-primary-filled:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ������ʽ */
.section {
    padding: 0 20px 24px 20px;
    scroll-margin-top: 100px;
}

.section-alt {
    background: var(--surface-color);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 14px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ע������ - �Ż���һ�� */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0;
    position: relative;
}

.step-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

/* �������Ӽ�ͷ - Բ��ͼ������ڿ�Ƭ��϶ */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185FA5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
    border: 1.5px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-md);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.step-details {
    list-style: none;
    text-align: left;
    padding-left: 0;
    display: inline-block;
    margin: 0 auto;
}

.step-details li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height:1.5;
}

.step-details li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #e8f4fd;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185FA5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
    border-radius: 4px;
}

/* ��Ӧʽ�Ż� */
@media (max-width: 968px) {
    .process-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 24px;
    }
    
    .step-card:not(:last-child)::after {
        display: none;
    }
}

/* ������ʽ - ���ӿƼ���� */
.form-container {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 0 64px 8px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

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

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

/* ����д�ֶεı�ǩ - ��ɫ */
.form-group label.field-label-filled {
    color: #52b152;
}

/* ��ǰ�۽��ֶεı�ǩ - ��ɫ�����ȼ�������ɫ�� */
.form-group label.field-label-focus {
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--surface-color);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-size: 14px;
}

/* �ֶδ�����ʾ */
.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.field-error.show {
    display: block;
}

/* ճ�Զ��������� �� ���в��� */
.sticky-form-header {
    position: sticky;
    top: 68px;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 18px 10px 18px;
    margin-left: -64px;
    margin-right: -64px;
    margin-bottom: 0.5cm;
}

/* ���У���ť�� */
.sticky-header-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sticky-form-header .collapse-btn {
    flex-shrink: 0;
    margin-bottom: 0 !important;
    padding: 6px 14px;
    font-size: 14px;
    background: #f8f8f8;
    border: 1px dashed #ccc;
    color: #666;
}

.sticky-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.form-steps {
    display: flex;
    gap: 0;
    justify-content: center;
    position: relative;
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
}

.form-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.4;
    transition: opacity 0.3s;
    position: relative;
    padding: 0 18px;
    white-space: nowrap;
    flex-shrink: 0;
}

.form-step.active {
    opacity: 1;
}

/* ����ɲ�����ʽ �� �޷������ֱ���ɫ */
.form-step.completed .step-num {
    color: var(--primary-color);
}

.form-step.completed .step-label {
    color: #52b152;
}

.form-step.completed:not(:last-child)::after {
    background: var(--primary-color);
}

/* ����֮��������� */
.form-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    width: 22px;
    height: 1.5px;
    background: var(--border-color);
    transform: translateY(-50%);
}

.form-step.active:not(:last-child)::after {
    background: var(--primary-color);
}

/* ������������ �� �޷���ֻͨ����ɫ����״̬ */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    transition: all 0.3s;
}
/* ��ǰ�������֣���ɫ */
.form-step.active .step-num {
    color: var(--primary-color);
    font-size: 20px;
}
/* ��������֣���ɫ */
.form-step.completed .step-num {
    color: #52b152;
    font-size: 20px;
}
.step-num {
    font-size: 17px;
    font-weight: 700;
    color: #bbb;
    line-height: 1.2;
    transition: color 0.3s;
}
.step-check {
    font-size: 12px;
    color: #2e7d32;
    display: none;
    line-height: 1;
    font-weight: 700;
}

.step-label {
    font-size: 16px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.form-step.active .step-label {
    color: var(--primary-color);
    font-weight: 500;
}

/* �������Բ�㣨���ƽ�ɫ������ */
.step-progress-dot {
    min-width: 32px;
    width: auto;
    height: 22px;
    min-height: 22px;
    border-radius: 7px;
    border: 2px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    flex-shrink: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0 5px;
}
.step-progress-dot.completed {
    background: #eafbea;
    border-color: #52b152;
    color: #52b152;
}
.step-progress-dot.partial {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.form-step.active .step-progress-dot:not(.completed) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.form-step-content {
    display: none;
}

.form-step-content.active {
    display: block;
}

.form-step-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* ========== ��˾���� / �ϴ����գ�����˫������ ========== */
.profile-two-col {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.profile-col-left,
.profile-col-right {
    flex: 1;
    min-width: 0;
}

/* ========== ��Ա���ã���Ƭ��ʽ ========== */
.personnel-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.personnel-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}
.personnel-card-icon {
    font-size: 18px;
}
.personnel-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== ��Ա���ã���ർ�� + �Ҳ����ݲ��� ===== */
.personnel-layout {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--surface-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.personnel-nav {
    width: 155px;
    min-width: 155px;
    background: #f8f9fb;
    border-right: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding: 8px 0;
    flex-shrink: 0;
    position: sticky;
    top: 140px;
    align-self: flex-start;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

/* Ӣ��ģʽ�µ������ӿ�����ֹ "Manager in Charge" ������ѹ��ͷ */
html[lang="en"] .personnel-nav {
    width: 200px;
    min-width: 200px;
}
.personnel-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
}
.personnel-nav-item:hover {
    background: #eef2f7;
    color: var(--primary-color);
}
.personnel-nav-item.active {
    background: #fff;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}
.personnel-nav-item.completed {
    background: #eafbea;
}
.personnel-nav-item.completed .personnel-nav-text {
    color: #52b152;
}
.personnel-nav-item.completed .personnel-nav-arrow {
    color: #52b152;
}
/* ��ǰ��ɫ������ɫ������completed��ɫ�� */
.personnel-nav-item.active .personnel-nav-text {
    color: var(--primary-color);
}
.personnel-nav-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.personnel-nav-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.personnel-nav-arrow {
    font-size: 10px;
    color: #bbb;
    line-height: 1;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.2s;
}
.personnel-nav-item.active .personnel-nav-arrow {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* ��ɫ��������Բ�� */
.nav-progress-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    color: #999;
    flex-shrink: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}
.nav-progress-dot.completed {
    background: #eafbea;
    border-color: #52b152;
    color: #52b152;
}
.nav-progress-dot.partial {
    border-color: #f0ad4e;
    color: #f0ad4e;
}
.nav-progress-dot.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
/* �Ҳ������� */
.personnel-content {
    flex: 1;
    padding: 16px 20px;
    min-width: 0;
    overflow: visible;
}
.personnel-panel {
    display: none;
}
.personnel-panel.active {
    display: block;
    animation: panelFadeIn 0.25s ease;
}

/* Personnel ����ڿձ����ֶκ�ɫ�߿����� */
.personnel-panel.active .form-group input.field-empty,
.personnel-panel.active .form-group textarea.field-empty,
.personnel-panel.active .form-group select.field-empty {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.25);
}
/* ����д����ʾ��ɫ�߿� */
.personnel-panel.active .form-group input.field-filled,
.personnel-panel.active .form-group textarea.field-filled {
    border-color: #28a745 !important;
}
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ������������Inline Grid�� */
.form-row-3 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.form-row-3 .flex-1 {
    flex: 1 1 200px;
    min-width: 180px;
}

/* ���в��� */
.form-row-4 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.form-row-4 .flex-1 {
    flex: 1 1 150px;
    min-width: 140px;
}

.form-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* �ļ��ϴ� */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
}

.file-label:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.file-icon {
    font-size: 32px;
}

.file-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* �ļ���Ϣ��ʽ */
.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    flex-wrap: wrap;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
}

.file-size {
    color: var(--text-secondary);
}

.file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.3s;
}

.file-remove:hover {
    color: #c82333;
}

.file-success-icon {
    color: var(--success-color);
    font-size: 16px;
    font-weight: bold;
}

/* ȷ��ҳ�� */
.confirmation-summary {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.confirmation-summary h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 24px;
    color: var(--text-primary);
}

.confirmation-summary h4:first-child {
    margin-top: 0;
}

.confirmation-summary p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

/* FAQ��ʽ - ���ӿƼ���� */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    padding-right: 16px;
    transition: color 0.3s;
}
/* չ����FAQ�����������ɫ���Ӵ� */
.faq-item.active .faq-question h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.faq-toggle {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(24, 95, 165, 0.05);
}

.faq-answer.active + .faq-question .faq-toggle {
    transform: rotate(180deg);
    background: rgba(24, 95, 165, 0.1);
}

.faq-answer {
    padding: 0 28px 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
}

.faq-answer.active {
    padding: 12px 28px 24px 28px;
    max-height: 2000px;
}

.faq-answer > p:first-child {
    padding-left: 0;
}

.faq-answer p {
    padding-left: 0;
}

.faq-answer ol,
.faq-answer ul {
    margin: 8px 0 12px 0;
    padding-left: 24px;
}

.faq-answer ol ol,
.faq-answer ul ul,
.faq-answer ol ul,
.faq-answer ul ol {
    padding-left: 20px;
}

.faq-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
}

.faq-table th,
.faq-table td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

.faq-table th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.faq-table tbody tr:nth-child(odd) {
    background: #f4f8fc;
}

.faq-table tbody tr:hover {
    background: #e8f0fa;
}

.faq-table td br {
    line-height: 2;
}

.table-section-header {
    background: #d5e8f0;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color);
    padding: 10px 12px;
}.faq-answer ul {
    margin-left: 8px;
    margin-top: 12px;
}

.faq-answer li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* FAQ������ť */
.faq-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.faq-action-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(24, 95, 165, 0.2);
}

.faq-action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(24, 95, 165, 0.3);
}

/* ����Ƭ - �Ż� */
.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ��ϵCTA�Ż� */
.contact-cta {
    text-align: center;
    padding: 32px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    color: white;
    box-shadow: 0 8px 24px rgba(24, 95, 165, 0.3);
}

.contact-cta h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-cta p {
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.contact-cta .btn-primary {
    background: white;
    color: var(--primary-color);
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ҳ�� - ���ӿƼ���� */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 26px 20px 32px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

/* ҳ�ű������У���ȷ 8px �μ�� */
.footer-slogan-line {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-section a {
    display: block;
    color: white;
    opacity: 0.8;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

/* ��������˫�в��� */
.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 60px;
}
.footer-links-col {
    display: flex;
    flex-direction: column;
}

.footer-nav-link {
    white-space: nowrap;
}

/* ���ģ�����������������1cm */
html[lang="zh"] #footerLinks {
    margin-left: -40px;
}

/* Ӣ�ģ�Quick Links����2�У����ƣ������������Brand�м�࣬��Ӱ�����Ҳ�Useful Links��� */
html[lang="en"] .footer-section:nth-child(2) {
    margin-left: 120px;
}

.footer-bottom {
    width: 100%;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center !important;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.6;
    text-align: center !important;
    margin: 0;
}

/* ǿ�� footer-bottom �ڵ��������־��� */
.footer .footer-bottom * {
    text-align: center !important;
}

/* ��Ӧʽ��� */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step-card {
        max-width: 100%;
    }

    .form-container {
        padding: 8px 24px;
    }

    .sticky-form-header {
        margin-left: -24px;
        margin-right: -24px;
    }

    .form-buttons {
        flex-direction: column;
    }

    /* �����˵� */
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }

    .nav-divider {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        display: block;
        padding: 10px 16px;
        border-radius: 20px;
        margin-bottom: 6px;
        border-bottom: none;
        text-align: center;
    }

    .nav-links .nav-link:last-child {
        margin-bottom: 0;
    }

    .nav-links .nav-link.active::after {
        display: none;
    }
}

/* �ֻ���1�� */
@media (max-width: 768px) {
    .process-steps,
    .services-container {
        grid-template-columns: 1fr;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

/* ƽ�� 2�� */
@media (min-width: 769px) and (max-width: 1023px) {
    .process-steps,
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step-card:not(:last-child)::after {
        display: none;
    }
}

/* ���� 4�� */
@media (min-width: 1024px) {
    .process-steps,
    .services-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .step-arrow {
        transform: none;
    }

    .step-card:not(:last-child)::after {
        display: block;
    }
}

/* ƽ������ */
html {
    scroll-behavior: smooth;
}

/* ���ض��� */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-card,
.service-card,
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

/* �����˵���ʽ */
.hidden {
    display: none !important;
}

/* Ԥ����Ƭ */
.form-preview,
.faq-preview {
    max-width: 800px;
    margin: 0 auto;
}

.preview-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s;
}

.preview-card:hover::before {
    opacity: 1;
}

.preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.preview-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.preview-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.preview-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.preview-features {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.feature-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(24, 95, 165, 0.08);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.expand-btn {
    font-size: 16px;
    padding: 14px 40px;
    font-weight: 600;
}

/* === Fix: feature tags on same line === */
.preview-card .feature-tag,
.service-card .feature-tag,
#servicePreview .feature-tag,
#formPreview .feature-tag,
#faqPreview .feature-tag {
    display: inline-block !important;
    margin: 4px 6px !important;
}

/* Fix: sections fit in viewport */
.page-section.active {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

/* Fix: hero subtitle line spacing for <br> tags */
.hero-subtitle {
    line-height: 1.8 !important;
}

.collapse-btn {
    display: inline-block;
    margin-bottom: 8px;
}

/* ������������ */
.form-content {
    animation: fadeInUp 0.5s ease-out;
}

.faq-content {
    animation: fadeInUp 0.5s ease-out;
}

/* ��������˵� */
.service-preview,
.service-preview {
    max-width: 800px;
    margin: 0 auto;
}

.service-content {
    animation: fadeInUp 0.5s ease-out;
}

/* �ͻ���Ϣ�������� */
.customer-info {
    margin: 32px 0;
    padding: 24px;
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.customer-info h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.customer-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.customer-fields .form-group {
    display: flex;
    flex-direction: column;
}

.customer-fields label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.customer-fields input {
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: border-color 0.2s;
}

.customer-fields input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

.generate-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 32px 0;
}

.generate-actions .btn {
    min-width: 200px;
    font-size: 15px;
    font-weight: 600;
}

/* Toast ֪ͨ��ʽ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Toast ֪ͨ��ʽ - end */.toast {
    padding: 16px 24px;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 300px;
    max-width: 450px;
}

.toast-success {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.toast-error {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
}

.toast-info {
    border-left: 4px solid #1677ff;
    background: linear-gradient(135deg, #e8f4ff 0%, #ffffff 100%);
}

.toast-icon {
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-info .toast-icon {
    color: var(--primary-color);
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.3s;
}

.toast-close:hover {
    color: var(--text-primary);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* �ƶ��� Toast ���� */
@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* ================ �ĵ�Ԥ��ģ̬�� ================ */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.preview-modal.active {
    display: flex;
}

.preview-modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--primary-color);
    color: white;
}

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

.preview-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: opacity 0.3s;
}

.preview-modal-close:hover {
    opacity: 0.7;
}

.preview-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #f5f5f5;
    user-select: none; /* ��ֹ�ı�ѡ�� */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Ԥ���ĵ���ʽ */
.preview-document {
    background: white;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: "Times New Roman", serif;
    line-height: 1.6;
    position: relative;
}

/* ˮӡ - ��ֹ��ͼ���� */
.preview-document::before {
    content: 'PREVIEW ONLY';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 60px;
    color: rgba(0, 0, 0, 0.05);
    font-weight: bold;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}

.preview-document h1,
.preview-document h2,
.preview-document h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.preview-document h1 {
    font-size: 24px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
}

.preview-document h2 {
    font-size: 18px;
    margin-top: 24px;
}

.preview-document p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.preview-document table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.preview-document table,
.preview-document th,
.preview-document td {
    border: 1px solid var(--border-color);
}

.preview-document th,
.preview-document td {
    padding: 8px 12px;
    text-align: left;
}

.preview-document th {
    background: var(--primary-color);
    color: white;
}

.preview-modal-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* ��Ӧʽ */
@media (max-width: 768px) {
    .preview-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .preview-document {
        padding: 24px;
    }

    .preview-document::before {
        font-size: 40px;
    }
}

/* ע���Ϲ����� */
.compliance-section {
    margin-top: 48px;
    padding: 40px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.compliance-section h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.compliance-section > p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.compliance-item {
    padding: 24px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.compliance-item h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.compliance-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .compliance-grid {
        grid-template-columns: 1fr;
    }
}

/* ================ �����������ʽ ================ */
/* ��ť�飺���Ҳ��У��������� */
.btn-group-horizontal {
    display: flex;
    gap: 16px;
    margin: 8px 0;
    align-items: flex-start;
}

/* һ�����ɲ����嵥��ť */
.generate-checklist-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 4px 0;
}

.btn-generate-checklist {
    font-size: 18px;
    padding: 16px 48px;
    border-radius: 50px;
    width: 100%;
    box-sizing: border-box;
}

/* �����嵥��� - ��ʽ�г��� */
.checklist-result {
    margin-top: 12px;
    animation: fadeSlideUp 0.6s ease forwards;
}

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

.checklist-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    animation: slideInLeft 0.4s ease forwards;
    opacity: 0;
}

.checklist-file:nth-child(1) { animation-delay: 0.1s; }
.checklist-file:nth-child(2) { animation-delay: 0.3s; }
.checklist-file:nth-child(3) { animation-delay: 0.5s; }
.checklist-file:nth-child(4) { animation-delay: 0.7s; }
.checklist-file:nth-child(5) { animation-delay: 0.9s; }

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

.checklist-file-name {
    font-weight: 600;
    color: var(--text-primary);
}

.checklist-file-download {
    font-size: 13px;
    padding: 6px 16px;
}

/* ���Ҷ��ս������ */
.parallel-result {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    animation: fadeSlideUp 0.6s ease forwards;
    align-items: stretch;
}

.parallel-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.parallel-col .parallel-col-title {
    flex-shrink: 0;
}

.parallel-col .btn {
    margin-top: auto;
}

/* ���ж��ձ��� */
.parallel-table {
    width: 100%;
    display: table;
    border-collapse: collapse;
}

.parallel-row {
    display: table-row;
}

.parallel-cell {
    display: table-cell;
    vertical-align: top;
    width: 50%;
    padding: 0 8px;
}

.parallel-cell-left {
    border-right: 8px solid transparent;
}

.parallel-cell-right {
    border-left: 8px solid transparent;
}

.parallel-row-title .parallel-cell {
    padding-bottom: 8px;
}

.parallel-row-btn .parallel-cell {
    padding-top: 12px;
}

.parallel-col-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.parallel-item {
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    animation: slideInLeft 0.4s ease forwards;
    opacity: 0;
}

.parallel-col:last-child .parallel-item {
    border-left-color: #7CB342;
}

/* ��Ȩ�鵯�� */
.auth-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.auth-modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 480px;
    padding: 32px;
    animation: modalPop 0.3s ease;
}

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

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-modal-header h3 {
    font-size: 18px;
    color: var(--primary-color);
}

.auth-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.auth-tip {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--border-radius-sm);
}

.auth-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* ��Ʊ/����ť���� */
.invoice-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 4px 0;
}

/* �Ϲ������ʴ� */
.compliance-qa-section {
    margin-top: 8px;
    padding: 8px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.qa-list {
    margin-top: 8px;
}

.qa-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
    cursor: pointer;
    margin-bottom: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.qa-list {
    margin-top: 24px;
}

.qa-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
    cursor: pointer;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.qa-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qa-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.qa-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    padding: 16px;
    background: #f8f9fa;
    transition: background 0.3s;
}

.qa-item.open .qa-question {
    background: #e3f2fd;
    color: #185FA5;
}

.qa-toggle {
    font-size: 18px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.qa-item.open .qa-toggle {
    transform: rotate(180deg);
}

.qa-answer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 16px;
    background: white;
}

.qa-answer ul {
    padding-left: 20px;
    margin-top: 8px;
}

/* ================ �±�����ʽ ================ */
/* �ʱ���ѡ�� */
.capital-options {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: nowrap;
}

.capital-option {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.capital-option:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.capital-option.selected {
    border-color: var(--primary-color);
    background: rgba(24, 95, 165, 0.08);
}

.capital-checkbox {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
}
    color: var(--primary-color);
    font-weight: bold;
}

.capital-text {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
}
html[lang="en"] .capital-text {
    font-size: 12px;
}

html[lang="en"] .footer-content {
    grid-template-columns: 1.2fr 1fr 1fr;
}

.capital-text small {
    color: var(--text-secondary);
    font-size: 12px;
}

/* �ɶ�����ѡ�� - ��ʽ���ʱ���ѡ��һ�� */
.shareholder-type-options {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.shareholder-type-option {
    flex: 1;
    min-width: 200px;
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.shareholder-type-option:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.shareholder-type-option.selected {
    border-color: var(--primary-color);
    background: rgba(24, 95, 165, 0.08);
}

.type-checkbox {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
}
    color: var(--primary-color);
    font-weight: bold;
}

.type-text {
    font-size: 14px;
    color: var(--text-primary);
}

/* Tooltip ͼ�� - ԲȦ i */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(24, 95, 165, 0.15);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: bold;
    font-style: italic;
    cursor: help;
    margin-left: 6px;
    vertical-align: middle;
    position: relative;
    z-index: 210;
    transition: all 0.3s;
}

.tooltip-icon:hover {
    background: rgba(24, 95, 165, 0.3);
    transform: scale(1.1);
}

/* Tooltip �������� */
.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;  /* ǿ�Ʋ����У�������ʾ */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99999;
    pointer-events: none;
}

.tooltip-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Tooltip С��ͷ */
.tooltip-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99999;
    pointer-events: none;
}

.tooltip-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ��̬������ʽ */
.shareholder-form,
.director-form {
    transition: all 0.3s;
}

.shareholder-form:hover,
.director-form:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-remove-shareholder,
.btn-remove-director {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.btn-remove-shareholder:hover,
.btn-remove-director:hover {
    opacity: 1;
}

/* �������б� */
.bo-list {
    margin-top: 16px;
}

.bo-item {
    transition: all 0.3s;
}

.bo-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bo-preview {
    border: 1px dashed var(--border-color);
}

/*  checkbox ����ʽ�Ż� */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* �������������4���� */
.form-step-content {
    animation: fadeIn 0.3s ease-out;
}

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

/* ��Ӧʽ�Ż� */
@media (max-width: 768px) {
    .capital-options,
    .shareholder-type-options {
        flex-direction: column;
    }

    .capital-option,
    .shareholder-type-option {
        min-width: 100%;
    }

    /* ˫�������ƶ��˶ѵ� */
    .profile-two-col {
        flex-direction: column;
        gap: 16px;
    }
    .profile-col-left,
    .profile-col-right {
        width: 100%;
    }

    /* ���������ƶ��˵��� */
    .form-row-3 {
        flex-direction: column;
    }
    .form-row-3 .flex-1 {
        flex: 1 1 auto;
        min-width: 100%;
    }

    /* ��Ƭ�ڱ߾���С */
    .personnel-card {
        padding: 16px;
    }

    /* ��Ա���ã��ƶ��˵����䶥����ǩ�� */
    .personnel-layout {
        flex-direction: column;
    }
    .personnel-nav {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: static;
        max-height: none;
    }
    .personnel-nav-item {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 12px 8px;
        font-size: 13px;
        border-left: none;
        border-bottom: 3px solid transparent;
        text-align: center;
        flex-direction: column;
        gap: 4px;
    }
    .personnel-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-color);
    }
    .personnel-nav-text {
        white-space: normal;
        font-size: 12px;
    }
    .personnel-nav-arrow {
        display: none;
        margin-left: 0;
    }
    .personnel-content {
        max-height: none;
        padding: 16px;
    }
}

/* =============== �ĵ�Ԥ��ģ̬�� =============== */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.preview-modal.active {
    display: flex;
}

.preview-modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--primary-color);
    color: white;
}

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

.preview-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: opacity 0.3s;
}

.preview-modal-close:hover {
    opacity: 0.7;
}

.preview-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #f5f5f5;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.preview-document {
    background: white;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: "Times New Roman", serif;
    line-height: 1.6;
    position: relative;
}

.preview-document::before {
    content: 'PREVIEW ONLY';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 60px;
    color: rgba(0, 0, 0, 0.05);
    font-weight: bold;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}

.preview-document h1,
.preview-document h2,
.preview-document h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.preview-document h1 {
    font-size: 24px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
}

.preview-document h2 {
    font-size: 18px;
    margin-top: 24px;
}

.preview-document p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.preview-document table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.preview-document table,
.preview-document th,
.preview-document td {
    border: 1px solid var(--border-color);
}

.preview-document th,
.preview-document td {
    padding: 8px 12px;
    text-align: left;
}

.preview-document th {
    background: var(--primary-color);
    color: white;
}

.preview-modal-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

@media (max-width: 768px) {
    .preview-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .preview-document {
        padding: 24px;
    }

    .preview-document::before {
        font-size: 40px;
    }
}

/* =============== �û���֤ģ̬�� =============== */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.auth-content {
    background-color: white;
    margin: 5% auto;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.auth-content h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.auth-content .form-group {
    margin-bottom: 16px;
}

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

.auth-content .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-content .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24,95,165,0.1);
}

/* =============== �ݸ������� =============== */
.draft-panel {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.draft-content {
    background-color: white;
    margin: 5% auto;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 80vh;
    overflow-y: auto;
}

.draft-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.draft-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f8f9fa;
}

.draft-info {
    flex: 1;
}

.draft-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.draft-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.draft-actions {
    display: flex;
    gap: 8px;
}

.btn-load-draft {
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-load-draft:hover {
    background: var(--primary-dark);
}

.btn-delete-draft {
    padding: 6px 16px;
    background: white;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-delete-draft:hover {
    background: #e74c3c;
    color: white;
}

.draft-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px;
    font-style: italic;
}

/* =============== Toast ��ʾ����Ѷ��� =============== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: 10px;
    background: #ffffff;
    color: #333333 !important;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
    animation: toastSlideIn 0.3s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
    min-width: 300px;
    max-width: 420px;
    word-break: break-word;
    line-height: 1.6;
    border-left: 4px solid #999999;
}

.toast-success {
    border-left-color: #07c160;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.toast-error {
    border-left-color: #fa5151;
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
}

.toast-info {
    border-left-color: #1677ff;
    background: linear-gradient(135deg, #e8f4ff 0%, #ffffff 100%);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Custom file upload */
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.file-input-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.file-upload-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}
.file-upload-btn:hover {
    background: #e9ecef;
}
.file-upload-name {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* ���ļ��ϴ��б� */
.file-list-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    width: 100%;
}
.file-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
}
.file-list-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    color: var(--text-primary);
}
.file-list-item .file-success-icon {
    flex-shrink: 0;
}
.file-list-item .file-remove {
    flex-shrink: 0;
}

/* Ӣ�Ľ����� FAQ ���������ڱ߾ࣨ����Ĭ��ֵ��*/
html[lang="en"] .faq-answer {
    padding-left: 38px;
}
html[lang="en"] .faq-answer.active {
    padding-left: 38px;
}

/* ========== Ӣ��ר����stickyͷ�����赼������ ========== */
/* ���в��ֺ����ռһ�У��ռ��ԣ */
html[lang="en"] .step-label {
    font-size: 14px;
}
html[lang="en"] .form-step {
    padding: 0 8px;
    gap: 6px;
}
html[lang="en"] .step-indicator {
    width: auto;
    min-width: 32px;
    height: auto;
    min-height: 48px;
    font-size: 13px;
}
html[lang="en"] .form-step:not(:last-child)::after {
    width: 10px;
    right: -5px;
}
/* Ӣ��stickyͷ��������ť������ť */
html[lang="en"] .sticky-form-actions .btn {
    font-size: 12px;
    padding: 5px 10px;
}
html[lang="en"] .sticky-form-header .collapse-btn {
    font-size: 12px;
    padding: 5px 10px;
}

/* ================ ������������� ================ */
.country-code-wrapper {
    position: relative;
    width: 180px;
}

.country-code-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.country-code-search:focus {
    border-color: #185FA5;
    outline: none;
}

.country-code-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.country-code-dropdown.show {
    display: block;
}

.country-code-dropdown div {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.country-code-dropdown div:last-child {
    border-bottom: none;
}

.country-code-dropdown div:hover {
    background: #f0f0f0;
}

.country-code-dropdown div.selected {
    background: #e8f0fb;
}

/* ========== 表单验证错误样式 ========== */
.form-group.error select,
.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}

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

.form-group .error-hint {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-hint {
    display: block;
}
