/* ==================================================
   文件名：bobao-main.css
   路径：/css/bobao-main.css
   描述：波宝钱包官网核心样式 - 完整修复版
   ================================================== */

/* ---------- 全局变量与重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #0a1929;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- 头部导航 ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eaeef5;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo a {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(145deg, #0b4b9a, #1d4ed8, #7e3af2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    font-size: 1rem;
    color: #2d3a5e;
    margin-left: 6px;
    font-weight: 400;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
    transition: color 0.2s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* 移动端菜单图标 */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #0b4b9a;
    user-select: none;
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #0b2230;
}

.section-title span {
    background: linear-gradient(135deg, #1d4ed8, #6b21a5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Hero 主视觉 ---------- */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0 3rem;
}

.hero-content {
    flex: 1 1 45%;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
    background: linear-gradient(145deg, #1e40af, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-desc {
    font-size: 1.25rem;
    color: #334155;
    margin-bottom: 2rem;
    max-width: 600px;
}

.seo-trust {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.4rem;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    font-size: 1.1rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: #1d4ed8;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.5);
}

.btn-primary:hover {
    background: #1e3fb0;
    transform: translateY(-3px);
}

.btn-outline {
    background: white;
    border: 2px solid #cbd5e1;
    color: #1e293b;
}

.btn-outline:hover {
    border-color: #1d4ed8;
    background: #f8fafc;
}

/* ---------- 轮播图样式 ---------- */
.hero-carousel {
    flex: 1 1 45%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 35px -12px rgba(23, 65, 165, 0.25);
    position: relative;
    min-height: 320px;
    background: #e2e8f0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-caption {
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-size: 1.8rem;
    font-weight: bold;
    background: rgba(0,0,0,0.3);
    padding: 1rem 2rem;
    border-radius: 60px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.1);
    z-index: 21;
}

.carousel-dot.active {
    background: #1d4ed8;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(29,78,216,0.6);
}

/* ---------- 功能卡片 ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 2.2rem 1.8rem;
    border: 1px solid #eef2f8;
    transition: all 0.25s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(29, 78, 216, 0.2);
    border-color: #a5c0fa;
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.feature-card p {
    color: #42526b;
    font-size: 1rem;
}

/* ---------- 新闻卡片 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(29,78,216,0.15);
}

.news-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-color: #4361ee;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-card-content {
    padding: 1.8rem 1.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #4b6584;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date-icon {
    width: 16px;
    height: 16px;
    background: #1d4ed8;
    border-radius: 50%;
    display: inline-block;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #0f172a;
}

.news-summary {
    color: #2d3e5f;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 1rem;
}

.news-link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.news-link:hover {
    gap: 0.8rem;
}

.news-link:after {
    content: "→";
    transition: transform 0.2s;
}

/* ---------- 视频步骤板块 ---------- */
.video-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}

.video-step-card {
    background: white;
    border-radius: 32px;
    padding: 2rem 1.5rem 2.5rem;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    position: relative;
    transition: transform 0.3s;
}

.video-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px -12px rgba(29,78,216,0.15);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: #1d4ed8;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(29,78,216,0.4);
}

.video-placeholder {
    width: 100%;
    height: 180px;
    background: #1e293b;
    border-radius: 20px;
    margin: 1rem 0 1.5rem;
    overflow: hidden;
    position: relative;
}

.step-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
}

.video-step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    text-align: center;
    color: #0f172a;
}

.video-step-card p {
    color: #475569;
    text-align: center;
    font-size: 0.95rem;
}

.video-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: #e6f0ff;
    border-radius: 60px;
    color: #1e40af;
}

.video-note a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- 帮助卡片 ---------- */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.help-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem 1.8rem;
    border: 1px solid #eef2f8;
    transition: 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.help-card:hover {
    border-color: #1d4ed8;
    box-shadow: 0 12px 20px -10px rgba(29,78,216,0.1);
}

.help-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
}

.help-card p {
    color: #2d4059;
    margin-bottom: 1.4rem;
}

.help-link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: #0f1829;
    color: #b0c4de;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
}

.footer-col h5 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.7rem;
}

.footer-col a {
    color: #b0c4de;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid #25344f;
    font-size: 0.9rem;
}

.copyright p {
    margin-bottom: 0.5rem;
}

/* ---------- 响应式适配 ---------- */
@media screen and (max-width: 900px) {
    .header-inner {
        height: 70px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
        padding: 1.5rem 0;
        border-top: 1px solid #edf2f7;
        z-index: 99;
    }

    .main-nav.active ul {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .hero {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .btn-group {
        justify-content: center;
    }

    .hero-carousel {
        width: 100%;
        min-height: 280px;
    }

    .carousel-caption {
        font-size: 1.3rem;
        padding: 0.6rem 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .feature-card {
        padding: 1.8rem 1.2rem;
    }

    .feature-card h3 {
        font-size: 1.4rem;
    }

    .news-card-image {
        height: 180px;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .help-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }

    .carousel-caption {
        font-size: 1.1rem;
    }

    .video-step-card {
        padding: 1.8rem 1.2rem 2rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        left: 20px;
    }

    .video-placeholder {
        height: 150px;
    }
}

/* 确保文字可见性 */
h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
}

p {
    color: #334155;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}