/* ============================================================
   FastAdmin Landing Page - 跨境电商AI运营助手
   参考设计: kd12.com (Tailwind风格 → 原生CSS实现)
   ============================================================ */

/* ============ 全局重置 ============ */
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1e293b;
    background: #fff;
    overflow-x: hidden;
}

/* ============ 点阵背景 ============ */
.dotted-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.dotted-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image:
        linear-gradient(to right, rgb(148 163 184 / 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(148 163 184 / 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ============ 渐变光晕 ============ */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
}
.glow-blob--blue {
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(124,58,237,0.15));
}
.glow-blob--indigo {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(236,72,153,0.12));
}
.glow-blob--cyan {
    background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(59,130,246,0.12));
}

/* ============ Navbar ============ */
.navbar-landing {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-bottom: 1px solid rgba(226,232,240,0.5);
    padding: 0;
    transition: all 0.3s;
}
.navbar-landing .navbar-brand {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b !important;
    letter-spacing: -0.3px;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar-landing .navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.navbar-landing .navbar-brand small {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
}
.navbar-default.navbar-landing .navbar-nav > li > a {
    color: #475569 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    transition: color 0.2s;
}
.navbar-default.navbar-landing .navbar-nav > li > a:hover {
    color: #2563eb !important;
}
.navbar-default.navbar-landing .navbar-nav > li > a.btn-signin {
    height: 35px;
    line-height: 33px;
    border: 1px solid #e2e8f0;
    color: #475569 !important;
    border-radius: 8px;
    padding: 0 16px !important;
    margin: 7px 4px;
    background: transparent;
    font-size: 13px !important;
    font-weight: 600 !important;
}
.navbar-default.navbar-landing .navbar-nav > li > a.btn-signin:hover {
    border-color: #2563eb;
    color: #2563eb !important;
    background: rgba(37,99,235,0.04);
}
.navbar-default.navbar-landing .navbar-nav > li > a.btn-signup {
    height: 35px;
    line-height: 35px;
    border-radius: 8px;
    padding: 0 16px !important;
    margin: 7px 0;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: #fff !important;
    border: none;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.navbar-default.navbar-landing .navbar-nav > li > a.btn-signup:hover {
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
    transform: translateY(-1px);
}

/* ============ 英雄区 ============ */
#hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 30%, #eef2ff 60%, #fdf2f8 100%);
    overflow: hidden;
}
#hero .container {
    position: relative;
    z-index: 10;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}
.hero-badge .pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    position: relative;
}
.hero-badge .pulse-dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 0.75; }
    70% { transform: scale(2); opacity: 0; }
    100% { transform: scale(2); opacity: 0; }
}
.hero-badge .icon-sparkle {
    width: 16px;
    height: 16px;
}

/* Hero Title */
.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.hero-title .gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.hero-desc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 28px;
}

/* Hero CTA */
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none !important;
}
.btn-hero--primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-hero--primary:hover {
    box-shadow: 0 8px 28px rgba(37,99,235,0.4);
    transform: translateY(-2px);
    color: #fff !important;
}
.btn-hero--outline {
    background: #fff;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
}
.btn-hero--outline:hover {
    border-color: #2563eb;
    color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(226,232,240,0.6);
}
.hero-stats .stat-item {
    text-align: left;
}
.hero-stats .stat-num {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
}
.hero-stats .stat-num .gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stats .stat-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* Hero Image */
.hero-image {
    position: relative;
    text-align: center;

}
.hero-image .img-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(226,232,240,0.6);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    padding: 230px 250px;
    text-align: center;
    background: url("../img/ppxindex.png") no-repeat center center;
    background-size: cover;
}
.hero-image .img-card .big-icon {
    font-size: 72px;
    color: #2563eb;
    display: block;
    margin-bottom: 16px;
}
.hero-image .img-card .card-text {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

/* ============ 平台/功能区 ============ */
#platforms {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
    margin-bottom: 16px;
}
.section-title {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.section-title .gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}
.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.2s;
    white-space: nowrap;
}
.feature-tag:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}
.feature-tag .tag-icon {
    width: 14px;
    height: 14px;
    color: #2563eb;
}

/* Feature Cards (Pricing-style grid) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.feature-card-item {
    position: relative;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    border: 1px solid rgba(226,232,240,0.6);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
}
.feature-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    border-color: #bfdbfe;
}
.feature-card-item .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
    color: #fff;
}
.feature-card-item .card-icon--blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.feature-card-item .card-icon--purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.feature-card-item .card-icon--pink { background: linear-gradient(135deg, #db2777, #ec4899); }
.feature-card-item .card-icon--cyan { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.feature-card-item .card-icon--orange { background: linear-gradient(135deg, #ea580c, #f97316); }
.feature-card-item .card-icon--green { background: linear-gradient(135deg, #059669, #10b981); }
.feature-card-item .card-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.feature-card-item .card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}
.feature-card-item .card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ============ 为什么选择我们 ============ */
#why-us {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 50%, #f5f3ff 100%);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.why-card {
    position: relative;
    padding: 36px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ecfeff, #f0fdfa);
    border: 1px solid rgba(226,232,240,0.5);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.3s;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.why-card .why-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
}
.why-card .why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 16px;
}
.why-card .why-icon--cyan { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.why-card .why-icon--blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.why-card .why-icon--purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.why-card .why-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}
.why-card .why-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    position: relative;
    z-index: 10;
}
.why-card .why-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    position: relative;
    z-index: 10;
}
.why-card .why-list li {
    font-size: 13px;
    color: #64748b;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.why-card .why-list li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
}

/* ============ CTA 底部行动号召 ============ */
#cta-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f3ff 0%, #eef2ff 50%, #f8fafc 100%);
}
.cta-box {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1e3a5f, #1e293b);
    text-align: center;
    overflow: hidden;
}
.cta-box .cta-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(124,58,237,0.3));
    filter: blur(80px);
    pointer-events: none;
}
.cta-box .cta-glow2 {
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(59,130,246,0.2));
    filter: blur(64px);
    pointer-events: none;
}
.cta-box .cta-content {
    position: relative;
    z-index: 10;
}
.cta-box .cta-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
}
.cta-box .cta-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
}
.cta-box .btn-hero--primary {
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    font-size: 16px;
    padding: 14px 40px;
}

/* ============ Footer ============ */
.footer-landing {
    background: #0f172a;
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 28px 0;
    font-size: 13px;
}

/* ============ Auth Modals ============ */
.modal-auth .modal-sm {
    width: 420px;
}
.modal-auth .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}
.modal-auth .modal-header {
    text-align: center;
    padding: 36px 32px 0;
    border: none;
}
.modal-auth .modal-header .close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
}
.modal-auth .modal-header h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #0f172a;
}
.modal-auth .modal-header p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}
.modal-auth .modal-body {
    padding: 24px 32px 36px;
}
.modal-auth .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    height: 42px;
    font-size: 14px;
    box-shadow: none !important;
    padding: 8px 14px;
}
.modal-auth .form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
}
.modal-auth .form-group {
    margin-bottom: 16px;
}
.modal-auth .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.modal-auth .input-group {
    display: flex;
    width: 100%;
}
.modal-auth .input-group .form-control {
    height: 42px;
    border-radius: 8px 0 0 8px;
    flex: 1;
}
.modal-auth .input-group .input-group-btn {
    width: auto;
}
.modal-auth .input-group .input-group-btn img {
    height: 42px;
    width: auto;
    border-radius: 0 8px 8px 0;
    display: block;
    cursor: pointer;
}
.modal-auth .btn-primary {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
    transition: all 0.25s;
}
.modal-auth .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
    transform: translateY(-1px);
    opacity: 0.95;
}
.modal-auth .auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #94a3b8;
}
.modal-auth .auth-switch a {
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
}
.modal-auth .auth-switch a:hover {
    color: #1d4ed8;
}
.modal-auth .alert-danger {
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 14px;
    border: none;
    background: #fef2f2;
    color: #dc2626;
}

/* ============ Responsive ============ */
@media (max-width: 1199px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .hero-title { font-size: 36px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 20px; }
    .hero-stats .stat-num { font-size: 22px; }
}
@media (max-width: 767px) {
    .navbar-landing .navbar-brand { font-size: 16px; }
    .navbar-landing .navbar-brand small { display: none; }
    #hero { min-height: auto; padding: 100px 0 60px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 18px; }
    .hero-desc { font-size: 14px; }
    .hero-actions { flex-direction: column; }
    .btn-hero { justify-content: center; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .hero-stats .stat-item { flex: 1; min-width: 80px; }
    .hero-stats .stat-num { font-size: 20px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .feature-card-item { padding: 20px 14px; }
    .feature-card-item .card-icon { width: 44px; height: 44px; font-size: 18px; }
    .section-title { font-size: 26px; }
    .why-grid { grid-template-columns: 1fr; }
    .why-card { padding: 24px 20px; }
    .cta-box { padding: 40px 24px; }
    .cta-box .cta-title { font-size: 26px; }
    .feature-tags { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; }
    #platforms { padding: 50px 0; }
    #why-us { padding: 50px 0; }
    #cta-section { padding: 50px 0; }
    .modal-auth .modal-sm { width: auto; margin: 0 16px; }
}