/* ============================================
   旺企帮 - 系统官网首页
   配色：蓝色系
   ============================================ */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #60A5FA;
    --primary-bg: #EFF6FF;
    --primary-bg-2: #DBEAFE;
    --text: #0F172A;
    --text-2: #475569;
    --text-3: #94A3B8;
    --bg: #FFFFFF;
    --surface-1: #F8FAFC;
    --surface-2: #F1F5F9;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius: 14px;
    --radius-sm: 10px;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ====== 导航栏 ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.navbar-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.navbar-nav a {
    font-size: 15px;
    color: var(--text-2);
    transition: color 0.2s;
    font-weight: 500;
    position: relative;
}
.navbar-nav a:hover { color: var(--primary); }
.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.2s;
}
.navbar-nav a:hover::after { transform: scaleX(1); }
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ====== 按钮 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    gap: 6px;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.btn-outline {
    background: var(--bg);
    color: var(--primary);
    border: 1.5px solid var(--primary-bg-2);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.btn-ghost {
    background: transparent;
    color: var(--text-2);
}
.btn-ghost:hover { color: var(--primary); }
.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
    border-radius: var(--radius-sm);
}

/* ====== Hero 区域 ====== */
.hero {
    padding: 140px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--primary-bg) 0%, #fff 70%);
}
.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-bg-2);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 100px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 28px;
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text);
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}
.hero-stat {
    text-align: center;
    padding: 0 32px;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}
.hero-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.hero-stat-value em {
    font-style: normal;
    color: var(--primary);
}
.hero-stat-label {
    font-size: 14px;
    color: var(--text-3);
    margin-top: 4px;
}

/* ====== 通用 Section ====== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
}
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-desc {
    font-size: 16px;
    color: var(--text-2);
    max-width: 560px;
    margin: 0 auto;
}

/* ====== 功能特色区域 ====== */
.features {
    padding: 80px 40px;
    background: var(--bg);
}
.features-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-bg-2);
}
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover::after { opacity: 1; }
.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    transition: all 0.3s;
}
.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}
.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.feature-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
}

/* ====== 平台优势区域 ====== */
.advantages {
    padding: 80px 40px;
    background: var(--surface-1);
}
.advantages-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.advantage-card {
    padding: 32px;
    background: var(--bg);
    border-radius: var(--radius);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.advantage-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-bg-2);
}
.advantage-num {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 48px;
}
.advantage-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.advantage-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ====== CTA 区域 ====== */
.cta {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(96,165,250,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.cta-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.cta-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}
.cta .btn-white {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 14px 40px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ====== 商户入驻区域 ====== */
.contact {
    padding: 80px 40px;
    background: var(--surface-1);
}
.contact-inner {
    max-width: 560px;
    margin: 0 auto;
}
.contact-form {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.contact-disabled {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.contact-disabled-icon {
    width: 72px;
    height: 72px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}
.contact-disabled-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.contact-disabled-desc {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.6;
}
.contact-form-group {
    margin-bottom: 16px;
}
.contact-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.contact-form-label .req {
    color: var(--primary);
    margin-left: 2px;
}
.contact-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}
.contact-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.contact-form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s;
}
.contact-form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.contact-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* 引导卡片 */
.contact-guide {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.contact-guide-icon {
    width: 72px;
    height: 72px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}
.contact-guide-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.contact-guide-desc {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* 商户类型选择 */
.merchant-type-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.merchant-type-option {
    position: relative;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.merchant-type-option:hover {
    border-color: var(--primary-bg-2);
}
.merchant-type-option.active {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.merchant-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.merchant-type-option .type-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: var(--primary);
    transition: all 0.2s;
}
.merchant-type-option.active .type-icon {
    background: var(--primary);
    color: #fff;
}
.merchant-type-option .type-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.merchant-type-option .type-desc {
    font-size: 12px;
    color: var(--text-3);
}

/* ====== 页脚 ====== */
.footer {
    padding: 40px;
    background: var(--text);
    color: rgba(255,255,255,0.6);
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.footer-brand-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    font-size: 13px;
}

/* ====== 弹窗遮罩 ====== */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.modal-mask.active {
    opacity: 1;
    pointer-events: all;
}
.modal {
    background: #fff;
    border-radius: var(--radius);
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.25s;
}
.modal-mask.active .modal {
    transform: translateY(0);
}
.modal-header {
    padding: 24px 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 20px;
    color: var(--text-3);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: var(--surface-2);
    color: var(--text);
}
.modal-body {
    padding: 24px 28px;
}
.modal-footer {
    padding: 0 28px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.modal-body .form-group {
    margin-bottom: 16px;
}
.modal-body .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.modal-body .form-label .req {
    color: var(--primary);
    margin-left: 2px;
}
.modal-body .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}
.modal-body .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.modal-body .form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s;
}
.modal-body .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.modal-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    margin-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.register-agreement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
    margin-top: 8px;
}
.register-agreement a {
    color: var(--primary);
    font-weight: 500;
}
.register-agreement a:hover {
    text-decoration: underline;
}

/* ====== Toast 提示 ====== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    color: var(--text);
    pointer-events: all;
    animation: toast-in 0.25s ease-out;
}
.toast.warning { border-left: 3px solid #F59E0B; }
.toast.error { border-left: 3px solid #EF4444; }
.toast.success { border-left: 3px solid #10B981; }
.toast.info { border-left: 3px solid var(--primary); }
.toast.out { animation: toast-out 0.25s ease-in forwards; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}

/* ====== 响应式 ====== */
@media (max-width: 768px) {
    .hero { padding: 120px 20px 60px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .hero-stats { gap: 0; flex-wrap: wrap; }
    .hero-stat { padding: 12px 16px; }
    .hero-stat-divider { display: none; }
    .hero-stat-value { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .navbar-inner { padding: 0 20px; }
    .navbar-nav { display: none; }
    .section-title { font-size: 28px; }
    .cta-title { font-size: 28px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
