/* 快安支付系统首页样式 */

/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #2d3436;
    overflow-x: hidden;
}

/* ========== 通用 ========== */
.section {
    padding: 100px 0;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #eef0ff 0%, #f0e6ff 100%);
    color: #4361ee;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: #636e72;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========== 导航栏 ========== */
.navbar {
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.navbar-brand i {
    color: #ffd700;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-buttons .btn-outline-light {
    border-radius: 20px;
    padding: 6px 20px;
    font-weight: 500;
    border-width: 2px;
}

.nav-buttons .btn-accent {
    border-radius: 20px;
    padding: 6px 20px;
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler-icon {
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

/* ========== Hero ========== */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: #4361ee;
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #2ec4b6;
    top: 40%;
    left: 30%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(67, 97, 238, 0.15);
    border: 1px solid rgba(67, 97, 238, 0.3);
    border-radius: 24px;
    color: #93b5ff;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge i {
    color: #ffd700;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
}

.login-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10;
}

.login-dropdown-menu.show {
    display: block;
}

.login-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.login-dropdown-menu a:hover {
    background: rgba(67, 97, 238, 0.3);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.4);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(67, 97, 238, 0.5);
    color: #fff;
}

.hero-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

/* Hero 模拟卡片 */
.hero-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.hero-card-dots {
    display: flex;
    gap: 6px;
}

.hero-card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-card-dots span:nth-child(1) { background: #ff5f57; }
.hero-card-dots span:nth-child(2) { background: #ffbd2e; }
.hero-card-dots span:nth-child(3) { background: #28ca41; }

.hero-card-title {
    font-size: 0.8rem;
    color: #999;
}

.hero-card-body {
    padding: 20px;
}

.mini-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mini-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.mini-stat i {
    font-size: 1.5rem;
}

.mini-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
}

.mini-stat-label {
    font-size: 0.7rem;
    color: #999;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    padding: 10px 0;
    margin-bottom: 16px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, #4361ee, #7c3aed);
    border-radius: 4px 4px 0 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.chart-bar.active {
    opacity: 1;
}

.mini-transfers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-transfer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.8rem;
}

.mini-transfer-item span {
    flex: 1;
    color: #636e72;
}

.mini-transfer-item .amount {
    flex: none;
    font-weight: 600;
    color: #2d3436;
    text-align: right;
}

/* ========== 功能卡片 ========== */
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-icon.icon-blue { background: #eef0ff; color: #4361ee; }
.feature-icon.icon-green { background: #e6f9f5; color: #2ec4b6; }
.feature-icon.icon-purple { background: #f0e6ff; color: #7c3aed; }
.feature-icon.icon-orange { background: #fff4e6; color: #ff9f1c; }
.feature-icon.icon-red { background: #ffeaea; color: #e71d36; }
.feature-icon.icon-teal { background: #e0f7fa; color: #00bcd4; }

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.9rem;
    color: #636e72;
    line-height: 1.7;
}

/* ========== 业务流程 ========== */
.workflow-section {
    background: #f8f9ff;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 20px;
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step-connector {
    position: absolute;
    top: 24px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: linear-gradient(90deg, #4361ee, #7c3aed);
    opacity: 0.3;
}

.step-icon {
    font-size: 2rem;
    color: #4361ee;
    margin-bottom: 12px;
}

.step-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.85rem;
    color: #636e72;
    line-height: 1.6;
}

/* ========== 平台展示 ========== */
.portal-section {
    padding: 100px 0;
}

.portal-section-alt {
    background: #f8f9ff;
}

.portal-mockup {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    background: #fff;
    min-height: 360px;
}

.mockup-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f1f3f5;
    border-bottom: 1px solid #e9ecef;
}

.mockup-toolbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
}

.mockup-toolbar span:nth-child(1) { background: #ff5f57; }
.mockup-toolbar span:nth-child(2) { background: #ffbd2e; }
.mockup-toolbar span:nth-child(3) { background: #28ca41; }

.mockup-sidebar {
    width: 180px;
    background: #1a1a2e;
    padding: 16px 0;
    flex-shrink: 0;
}

.mockup-nav-item {
    padding: 10px 16px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-nav-item.active {
    background: #4361ee;
    color: #fff;
    border-radius: 6px;
    margin: 0 8px;
}

.mockup-content {
    flex: 1;
    padding: 20px;
}

.mockup-stat-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.mockup-stat-box {
    flex: 1;
    height: 60px;
    border-radius: 8px;
}

.mockup-stat-box.blue { background: #eef0ff; }
.mockup-stat-box.green { background: #e6f9f5; }
.mockup-stat-box.purple { background: #f0e6ff; }
.mockup-stat-box.orange { background: #fff4e6; }

.mockup-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-table-row {
    height: 24px;
    background: #f8f9fa;
    border-radius: 4px;
}

.mockup-table-row.header {
    background: #e9ecef;
    height: 28px;
}

.mockup-transfer-form {
    padding: 20px;
}

.mockup-form-line {
    height: 16px;
    background: #e9ecef;
    border-radius: 8px;
    margin-bottom: 16px;
}

.mockup-form-line.long { width: 80%; }
.mockup-form-line.medium { width: 60%; }
.mockup-form-line.short { width: 40%; }

.mockup-form-btn {
    width: 120px;
    height: 36px;
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    border-radius: 8px;
    margin-top: 10px;
}

.portal-info {
    padding-left: 20px;
}

.portal-section-alt .portal-info {
    padding-left: 0;
    padding-right: 20px;
}

.portal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.portal-desc {
    font-size: 1.05rem;
    color: #636e72;
    line-height: 1.8;
    margin-bottom: 30px;
}

.portal-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portal-feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.portal-feature-item i {
    color: #4361ee;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.portal-feature-item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.portal-feature-item p {
    font-size: 0.85rem;
    color: #636e72;
    line-height: 1.5;
    margin: 0;
}

/* ========== 开放平台 API ========== */
.api-section {
    background: #0f0f1a;
    color: #fff;
}

.api-section .section-badge {
    background: rgba(67, 97, 238, 0.2);
    color: #93b5ff;
}

.api-section .section-title {
    color: #fff;
}

.api-section .section-desc {
    color: rgba(255,255,255,0.6);
}

.api-code-block {
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.code-lang {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.code-body {
    padding: 24px;
    margin: 0;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #e0e0e0;
    overflow-x: auto;
}

.code-comment { color: #6a737d; }
.code-keyword { color: #ff79c6; }
.code-string { color: #50fa7b; }
.code-key { color: #8be9fd; }
.code-number { color: #bd93f9; }

.api-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    justify-content: center;
}

.api-feature-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(67, 97, 238, 0.12);
    border: 1px solid rgba(67, 97, 238, 0.2);
    border-radius: 24px;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

.api-feature-chip i {
    color: #4361ee;
}

/* ========== 安全保障 ========== */
.security-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.security-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: transparent;
}

.security-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef0ff, #f0e6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #4361ee;
}

.security-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.security-card p {
    font-size: 0.85rem;
    color: #636e72;
    line-height: 1.7;
}

/* ========== CTA ========== */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== 页脚 ========== */
.footer-section {
    background: #0a0a14;
    padding: 60px 0 30px;
    color: rgba(255,255,255,0.6);
}

.footer-brand h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-heading {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
}

/* ========== 动画 ========== */
.animate-target {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-target.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.animate-target {
    transition-delay: 0s;
}

.feature-card.animate-target:nth-child(2) {
    transition-delay: 0.1s;
}

.feature-card.animate-target:nth-child(3) {
    transition-delay: 0.2s;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .hero-card {
        transform: none;
    }

    .portal-mockup {
        margin-bottom: 40px;
    }

    .portal-info {
        padding-left: 0;
    }

    .portal-section-alt .portal-info {
        padding-right: 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .step-connector {
        display: none;
    }

    .mockup-sidebar {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat-divider {
        display: none;
    }

    .workflow-steps {
        flex-direction: column;
        align-items: center;
    }

    .workflow-step {
        max-width: 300px;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .mini-stats {
        flex-direction: column;
    }

    .mockup-sidebar {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}