/* ============================================================
   Global Sources 香港展 买家登记页 — 完整复刻样式
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    background: #e8ecf3;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

/* ---------- 顶部导航栏 ---------- */
.nav-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    cursor: pointer;
}

.logo-text-global {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    letter-spacing: -0.5px;
}

.logo-dots {
    font-size: 14px;
    color: #e53935;
    margin: 0 1px;
}

.logo-text-sources {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    letter-spacing: -0.5px;
}

.logo-divider {
    font-size: 28px;
    font-weight: 200;
    color: #ccc;
    margin: 0 12px;
}

.logo-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    letter-spacing: 0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.lang-switch:hover {
    background: #f5f5f5;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.auth-links a {
    color: #333;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #4a3aaf;
}

.auth-sep {
    color: #ccc;
}

/* ---------- Hero Banner ---------- */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #1a1150 0%, #312892 30%, #4a3aaf 50%, #6341c2 70%, #7b52d8 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 32px 36px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(60, 40, 180, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(120, 80, 220, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.hero-title {
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 32px;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35), 0 2px 16px rgba(0, 0, 0, 0.25);
}

.hero-shows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.show-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.badge-brand {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    white-space: nowrap;
}

.badge-name-sm {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    line-height: 1.3;
}

.badge-icon {
    font-size: 20px;
}

.ctis-badge {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ---------- 进度条 ---------- */
.progress-section {
    background: linear-gradient(180deg, #f0f2f8 0%, #e8ecf3 100%);
    padding: 32px 32px;
    border-bottom: none;
}

.progress-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.step-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ddd;
    border: 3px solid #ddd;
    position: relative;
}

.step-dot.active {
    background: #4a3aaf;
    border-color: #4a3aaf;
    box-shadow: 0 0 0 4px rgba(74, 58, 175, 0.15);
}

.step-label {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

.progress-step:first-child .step-label {
    color: #333;
    font-weight: 500;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
}

.progress-line-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #4a3aaf;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ---------- 主内容区 ---------- */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 32px 60px;
}

/* 提示横幅 */
.promo-banner {
    background: linear-gradient(135deg, #fef9e7 0%, #fdf6d8 50%, #fef8e0 100%);
    border: 1px solid #f0e0a0;
    border-radius: 10px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.promo-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.promo-text {
    font-size: 17px;
    font-weight: 600;
    color: #e53935;
    line-height: 1.5;
}

.form-notice {
    text-align: center;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.form-notice p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.link-blue {
    color: #1565c0;
    text-decoration: underline;
    text-decoration-color: rgba(21, 101, 192, 0.3);
    transition: text-decoration-color 0.2s;
}

.link-blue:hover {
    text-decoration-color: #1565c0;
}

/* 表单卡片 */
.form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    padding: 20px 32px;
    border-bottom: 1px solid #f0f0f0;
    color: #222;
}

.required {
    color: #e53935;
    font-weight: 400;
}

.card-body {
    padding: 24px 32px 32px;
}

/* 展会选择 - 阶段区块 */
.phase-block {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.phase-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.phase-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.phase-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.phase-date {
    font-size: 16px;
    font-weight: 600;
    color: #4a3aaf;
    text-decoration: underline;
    text-decoration-color: rgba(74, 58, 175, 0.3);
    transition: text-decoration-color 0.2s;
}

.phase-date:hover {
    text-decoration-color: #4a3aaf;
}

.phase-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
}

.checkbox-item:hover {
    color: #4a3aaf;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: #4a3aaf;
    border-color: #4a3aaf;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cb-text {
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- 表单样式 ---------- */
.form-body {
    max-width: 700px;
}

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

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-input::placeholder {
    color: #aaa;
}

.form-input:focus {
    outline: none;
    border-color: #4a3aaf;
    box-shadow: 0 0 0 3px rgba(74, 58, 175, 0.1);
}

.name-row {
    display: flex;
    gap: 12px;
}

.select-wrap {
    position: relative;
}

.select-wrap.small {
    min-width: 100px;
}

.select-wrap.full {
    width: 100%;
}

.select-wrap.phone-code {
    min-width: 160px;
}

.form-select {
    width: 100%;
    height: 44px;
    padding: 0 36px 0 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    font-family: inherit;
    background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus {
    outline: none;
    border-color: #4a3aaf;
    box-shadow: 0 0 0 3px rgba(74, 58, 175, 0.1);
}

.phone-row {
    display: flex;
    gap: 12px;
}

/* ---------- 条款和提交 ---------- */
.terms-card {
    background: #f4f4fa;
    border: 1px solid #e8e8f0;
}

.terms-checkbox {
    margin-bottom: 20px;
}

.terms-checkbox .cb-text {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}

.terms-notes {
    background: #f0f0f5;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.terms-notes ul {
    list-style: disc;
    padding-left: 20px;
}

.terms-notes li {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 4px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 54px;
    padding: 0 64px;
    background: linear-gradient(135deg, #d4604e 0%, #c2503f 50%, #b8442f 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(180, 68, 47, 0.25);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #d44a38 0%, #b8392a 100%);
    box-shadow: 0 6px 20px rgba(201, 74, 58, 0.4);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(201, 74, 58, 0.3);
}

/* ---------- 右侧分享浮窗 ---------- */
.share-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 90;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
}

.share-label {
    background: #666;
    color: #fff;
    font-size: 13px;
    padding: 12px 10px;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 2px;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: opacity 0.2s;
}

.share-icon:hover {
    opacity: 0.85;
}

.share-icon.fb { background: #1877f2; }
.share-icon.tw { background: #222; }
.share-icon.ln { background: #0a66c2; }

/* ---------- 底部版权栏 ---------- */
.site-footer {
    background: #2c2c3a;
    padding: 24px 32px;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-links a,
.footer-links .cookie-pref {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.footer-links a:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.cookie-pref {
    cursor: pointer;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-shows {
        gap: 14px;
    }
    
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .logo-divider {
        display: none;
    }
    
    .hero-banner {
        padding: 32px 16px 28px;
        min-height: 200px;
    }
    
    .hero-date {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .hero-shows {
        gap: 10px;
    }
    
    .badge-name {
        font-size: 12px;
    }
    
    .badge-brand {
        font-size: 7px;
    }
    
    .main-content {
        padding: 20px 16px 40px;
    }
    
    .card-body {
        padding: 20px 16px 24px;
    }
    
    .card-title {
        padding: 16px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .name-row {
        flex-direction: column;
    }
    
    .phone-row {
        flex-direction: column;
    }
    
    .share-sidebar {
        display: none;
    }
    
    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .promo-text {
        font-size: 15px;
    }
    
    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }
    
    .hero-shows {
        display: none;
    }
    
    .submit-btn {
        width: 100%;
    }
}

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

.form-card {
    animation: fadeInUp 0.5s ease both;
}

.form-card:nth-child(2) {
    animation-delay: 0.1s;
}

.form-card:nth-child(3) {
    animation-delay: 0.2s;
}

.promo-banner {
    animation: fadeInUp 0.4s ease both;
}

/* QR Code 浮窗 */
.qr-float {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 85;
}
