/* ==========================================================================
   营销站独立样式表 (marketing-style.css) - 全端响应式优化版
   ========================================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #f5f5f7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   1. 顶部导航栏 (Header & Nav)
   ========================================== */
.marketing-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e5e7;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.marketing-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    position: relative;
}

/* Logo 样式与炫彩流光 */
.marketing-header .brand-logo {
    font-size: 1.25rem;
    font-weight: 800;
    white-space: nowrap;
    z-index: 1001;
}

.marketing-header .brand-logo a {
    text-decoration: none;
    background: linear-gradient(
        120deg, 
        #2563eb 0%, 
        #3b82f6 20%, 
        #06b6d4 40%, 
        #ffffff 50%,
        #06b6d4 60%, 
        #3b82f6 80%, 
        #2563eb 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineLight 3s linear infinite;
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.marketing-header .brand-logo a:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

@keyframes shineLight {
    0% { background-position: 0% center; }
    100% { background-position: -200% center; }
}

/* 桌面端导航链接布局 */
.marketing-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.marketing-nav a {
    text-decoration: none;
    color: #515154;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.marketing-nav a:hover {
    color: #0071e3;
}

/* 右侧“商务联系”高亮胶囊按钮 */
.marketing-nav .btn-nav,
.marketing-nav a.btn-contact {
    background-color: #2563eb;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 980px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.marketing-nav .btn-nav:hover,
.marketing-nav a.btn-contact:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

/* 移动端汉堡包切换按钮 (默认隐藏) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* ==========================================
   2. 导航栏响应式适配 Breakpoints
   ========================================== */

/* 平板与窄屏 (769px - 1024px) */
@media (max-width: 1024px) {
    .marketing-nav {
        gap: 16px;
    }
    .marketing-nav a {
        font-size: 0.9rem;
    }
}

/* 移动端手机屏幕 (<= 768px) */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .marketing-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 24px 0 30px;
        gap: 16px;
        border-bottom: 1px solid #e5e5e7;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;
    }

    .marketing-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .marketing-nav a {
        font-size: 1.05rem;
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }

    .marketing-nav .btn-nav,
    .marketing-nav a.btn-contact {
        width: 80%;
        max-width: 220px;
        margin-top: 6px;
    }

    .marketing-content-block,
    .marketing-main {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ==========================================
   3. 主体及落地页排版样式
   ========================================== */
.marketing-main {
    padding-top: 30px;
    padding-bottom: 60px;
}

.promo-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
    .promo-content {
        padding: 24px 18px;
        border-radius: 12px;
    }
}

/* 文章头部（单行分布与垂直堆叠） */
.promo-header {
    text-align: left;
    margin-bottom: 35px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 第一行：面包屑导航 */
.promo-header .breadcrumb {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    clear: both;
}

/* 第二行：H1 标题 */
.promo-header h1 {
    display: block;
    width: 100%;
    font-size: 1.7rem;
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1.35;
    letter-spacing: -0.5px;
    margin: 0 0 12px 0;
}

/* 第三行：副标题 */
.promo-header .subtitle {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    color: #6e6e73;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

/* 第四行：发布元数据 */
.promo-header .entry-meta {
    width: 100%;
    flex-wrap: wrap;
}


/* ==========================================
   4. 正文段落与核心章节 (Section & Value-Section)
   ========================================== */
.promo-content section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #f0f0f2;
}

.promo-content section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.promo-content section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    position: relative;
    padding-left: 14px;
    line-height: 1.4;
}

.promo-content section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background-color: #0071e3;
    border-radius: 2px;
}

.promo-content section p {
    font-size: 1.05rem;
    color: #3a3a3c;
    line-height: 1.75;
    margin-bottom: 16px;
    text-align: justify;
}

.promo-content section p:last-child {
    margin-bottom: 0;
}

.feature-points {
    list-style: none;
    margin: 18px 0;
    padding-left: 0;
}

.feature-points li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 1.02rem;
    color: #333336;
    line-height: 1.6;
}

.feature-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #30d158;
    font-weight: bold;
    font-size: 1.1rem;
}

.pro-tip {
    background-color: #f2f7fd;
    border-left: 4px solid #0071e3;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #1d1d1f;
    font-size: 1rem;
}


/* ==========================================
   5. FAQ 问答模块样式
   ========================================== */
.faq-section {
    background: #ffffff;
    margin-top: 40px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.faq-main-title {
    font-size: 1.55rem;
    color: #1d1d1f;
    margin-bottom: 25px;
    font-weight: 700;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f7;
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1.1rem;
    color: #1d1d1f;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.faq-answer {
    font-size: 1rem;
    color: #515154;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 24px 18px;
        border-radius: 12px;
    }
}


/* ==========================================
   6. CTA 转化区样式
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, #0071e3, #0050a1);
    color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.2);
}

.cta-section h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.05rem;
    margin-bottom: 24px;
    opacity: 0.92;
    line-height: 1.6;
}

.cta-section .btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-section .btn {
    text-decoration: none;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-section .btn:hover {
    transform: translateY(-2px);
}

.cta-section .btn-primary {
    background-color: #ffffff;
    color: #0071e3;
}

.cta-section .btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 30px 20px;
        border-radius: 12px;
    }
    .cta-section .btn {
        width: 100%;
    }
}


/* ==========================================
   7. 页脚样式
   ========================================== */
.marketing-footer {
    background-color: #ffffff;
    color: #86868b;
    padding: 30px 0;
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid #e5e5e7;
    margin-top: 40px;
}

.marketing-footer p a {
    color: #86868b;
    text-decoration: none;
    transition: color 0.2s;
}

.marketing-footer p a:hover {
    color: #0071e3;
}


/* ==========================================
   营销站 - 动态推荐模块响应式样式
   ========================================== */
.related-section {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto 20px auto;
    padding: 24px 20px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
}

.related-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3b82f6;
    display: inline-block;
}

.related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    /* 大屏/平板自适应：最小 260px 一列，剩余空间按 1fr 均匀分摊 */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.related-list li {
    margin: 0;
    padding: 0;
    min-width: 0; /* 防止子元素文本过长撑破 Grid 容器 */
}

.related-list li a {
    display: block;
    padding: 10px 14px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 单行文本溢出自动显示省略号 */
    transition: all 0.2s ease-in-out;
}

.related-list li a:hover {
    color: #2563eb;
    border-color: #2563eb;
    background-color: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ------------------------------------------
   移动端响应式适配（手机与小型设备）
   ------------------------------------------ */
@media (max-width: 640px) {
    .related-section {
        margin: 20px auto;
        padding: 16px 12px;
        border-radius: 6px;
    }
    
    .related-list {
        grid-template-columns: 1fr; /* 移动端强制单列卡片排列 */
        gap: 8px;
    }
    
    .related-list li a {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}
