/* 金蝶AI 税务云 页面样式 */

/* 【修复】取消全局网站Header和Banner图之间的"红框空白条"：
   其他产品页(PLM/SRM)统一加了 .content-wrap { margin-top:80px } 用于和吸顶Header的间隔，
   但税务云有大图Banner需要紧贴Header，所以覆盖为0。*/
.content-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.product_xc_banner {
    margin-top: 0 !important;
}

/* ========== 产品子导航（.navegation — 源网站菜单栏，5项锚点） ========== */
.taxcloud-nav {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    background: #ffffff;
    border-top: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
    position: sticky;
    top: 0;
    z-index: 99;
    box-sizing: border-box;
}

.taxcloud-nav-inner {
    max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
}

.tn-item {
    display: inline-block;
    position: relative;
    padding: 22px 0;
    font-size: 18px;
    font-weight: 500;
    color: #4a5a72;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.tn-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 0;
    height: 3px;
    background: #1976d2;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px 2px 0 0;
}

.tn-item:hover {
    color: #1976d2;
}

.tn-item:hover::after {
    width: 100%;
}

.tn-item.active {
    color: #1976d2;
    font-weight: 600;
}

.tn-item.active::after {
    width: 100%;
}

/* 基础样式 - 解决全局CSS冲突的section-title flex布局问题 */
.product-info {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* 通用区块样式 */
.section {
    padding: 72px 0;  /* ↑20% (原60) */
    position: relative;
}

/* 概述区域 */
.section-header {
    text-align: center !important;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    justify-content: normal !important;
}

.section-title-center {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 40px;
    text-align: center;
}

.section-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Banner区域 */
.product_xc_banner {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.product_xc_banner .banner_pc {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product_xc_banner .text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.product_xc_banner .w1440 {
    width: 100%;
    max-width: 1440px;
    padding: 0 20px 0 133px;
    color: #fff;
    margin: 0;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    letter-spacing: 2px;
}

.banner-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 700px;
}

.banner-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: #1565c0;
    color: #fff;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}

.btn-primary:hover {
    background: #0d47a1;
    transform: translateY(-1px);
}

.btn-link {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* 四大核心功能 */
.features-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.feature-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid #f0f2f5;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(21, 101, 192, 0.12);
    border-color: #e0ecff;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f0ff 0%, #f0f7ff 100%);
    border-radius: 16px;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.feature-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a2b42;
    margin: 0 0 12px;
}

.feature-desc {
    font-size: 14px;
    color: #6a7a90;
    line-height: 1.8;
    margin: 0;
}

/* 架构图 */
.section-arch {
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.arch-image {
    text-align: center;
    margin: 20px 0 40px;
}

.arch-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(21, 101, 192, 0.08);
}

.core-scenarios {
    text-align: center;
    margin-top: 20px;
}

.core-scenarios-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2b42;
    margin: 0 0 20px;
    text-align: center;
}

/* Tab 样式：源网站下划线式页签（蓝文字 + 蓝下划线激活态） */
.core-scenario-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 20px;
    padding: 0 20px;
    border-bottom: 1px solid #e4e9f0;
    width: 100%;
    box-sizing: border-box;
}

.cs-tab {
    flex: 1 1 0;
    padding: 14px 8px 18px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #3c4a5f;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    margin: 0;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-align: center;
}

.cs-tab:hover {
    color: #1976d2;
}

.cs-tab.active {
    background: transparent;
    color: #1976d2;
    border-bottom: 3px solid #1976d2;
    box-shadow: none;
    font-weight: 600;
}

/* 场景面板显示/隐藏 */
.cs-panel {
    display: none;
    animation: csFadeIn 0.35s ease;
}

.cs-panel.active {
    display: block;
}

@keyframes csFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 场景卡片交替布局 —— 行背景色横线拉通（白+浅蓝灰交替）
   全局容器.product-info内部有max-width限宽，.section-scenarios需突破父级100vw全屏横拉 */
.section-scenarios {
    background: #f5f7fa;  /* 源网站.starting容器：全屏宽浅蓝灰底层 */
    width: 1210px !important;
    margin-left: calc((100% - 1210px) / 2) !important;
    margin-right: calc((100% - 1210px) / 2) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    overflow-x: hidden;  /* 防止出现横向滚动条 */
    /* padding上下继承.section的72px 0（不覆盖） */
}

/* 防止出现横向滚动条（body/html级，避免100vw溢出条） */
body, html {
    overflow-x: hidden;
}

/* Tab栏与卡片区域之间保持自然间距（section padding已给顶部空间） */
.scenarios-header-placeholder {
    display: none;
}

/* 行结构：全宽（横线拉通），内容层1200px居中；交替背景色odd=透明(显#f5f7fa) even=白色 */
.detail-row {
    display: block !important;           /* 外层全宽，不flex；flex移到inner */
    padding: 53px 0;                     /* ↑20% (原44) */
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

/* 交替背景色：even行白色横条板块，分隔两行；odd行透明显section底层#f5f7fa */
.detail-row:nth-child(even) {
    background: #ffffff;
}
.detail-row:nth-child(odd) {
    background: transparent;
}

/* 行内内容层：图文撑满容器宽度，两侧留白向中间收 */
.detail-row-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-sizing: border-box;
}

/* reverse行：inner层row-reverse */
.detail-row.reverse .detail-row-inner {
    flex-direction: row-reverse;
}

/* 图片列 */
.detail-row-img {
    flex: 0 0 54% !important;
    max-width: 54% !important;
    width: 54%;
    position: relative;
    overflow: hidden;        /* hover放大裁剪必须 */
    border-radius: 14px;     /* 源网站.left圆角 */
}

.detail-row-img .row-img-main {
    width: 100% !important;
    height: auto;
    display: block;
    border-radius: 0;        /* 由父容器裁剪圆角 */
    background: #f5f7fa;
    transition: all 0.6s ease-out;  /* hover放大过渡 */
}

/* 鼠标悬停图片放大（源网站scale(1.04)） */
.detail-row-img:hover .row-img-main {
    transform: scale(1.04);
}

.detail-row-img .row-img-badge {
    position: absolute;
    left: 30px;           /* 源网站：所有卡片统一左下角 left:30px */
    bottom: 30px;         /* 源网站：bottom:30px（无 top/translateY） */
    top: auto;
    transform: none;
    max-width: 50%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

/* reverse行badge仍保持左下角定位（源网站20张卡片统一left:30px） */
.detail-row.reverse .detail-row-img .row-img-badge {
    left: 30px;
    right: auto;
}

/* 文字列：自适应填充剩余空间 */
.detail-row-content {
    flex: 1 1 auto;
    min-width: 0;
}

.detail-row-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a2b42;
    margin: 0 0 14px;
    line-height: 1.4;
}

.detail-row-desc {
    font-size: 15px;
    color: #5a6a80;
    line-height: 1.8;
    margin: 0 0 18px;
}

.detail-row-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 24px;
}

.detail-row-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: #455468;
    line-height: 1.8;
}

.detail-row-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #24c38e;
    font-weight: 700;
    font-size: 14px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 30px;
    border: 1.5px solid #c7d0dd;
    color: #55667e;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    background: #fff;
}

.btn-outline:hover {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(25, 118, 210, 0.25);
}

/* ========== CTA 案例区域（.huoqu + .anli 源网站复刻） ========== */

/* 4-1. CTA小横条：对标世界一流... / 获取详细方案按钮 */
.cta-small {
    background: #f5f7fa url("/static/taxcloud_img/cta_small_bg.jpg") no-repeat center center / cover;
    width: 1210px !important;
    margin-left: calc((100% - 1210px) / 2) !important;
    margin-right: calc((100% - 1210px) / 2) !important;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.cta-small-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-small-text {
    font-size: 36px;
    font-weight: 600;
    color: #1a2b42;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    letter-spacing: 0.5px;
}

.cta-small-btn {
    display: inline-block;
    flex-shrink: 0;
    padding: 14px 44px;
    background: #1976d2;
    color: #fff;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.cta-small-btn:hover {
    background: #1161af;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(25, 118, 210, 0.3);
}

/* 4-2. 客户案例大Banner（新奥集团案例） */
.cta-big {
    width: 1210px !important;
    margin-left: calc((100% - 1210px) / 2) !important;
    margin-right: calc((100% - 1210px) / 2) !important;
    min-height: 640px;
    padding: 96px 0;
    background: #0a1830 url("/static/taxcloud_img/cta_banner_bg.jpg") no-repeat center center / cover;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* 底部暗、顶部亮遮罩层（参考源站shadow.png：保证底部文字清晰，顶部LOGO区域明亮） */
.cta-big::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 24, 48, 0.75) 0%, rgba(10, 24, 48, 0.35) 45%, rgba(10, 24, 48, 0) 75%);
    pointer-events: none;
    z-index: 0;
}

.cta-big-inner {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-big-content {
    max-width: 760px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cta-big-logo {
    width: auto;
    height: 160px;
    object-fit: contain;
    align-self: flex-start;
}

.cta-big-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.55;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.cta-big-desc {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

/* FAQ / 产品推荐 / AI旅程 全屏横拉 */
.section-faq,
.section-related,
.ai-journey {
    background: #ffffff;
    width: 1210px !important;
    margin-left: calc((100% - 1210px) / 2) !important;
    margin-right: calc((100% - 1210px) / 2) !important;
}

.section-related {
    background: #f7f9fc;
}

.ai-journey {
    background: linear-gradient(135deg, #e8f1ff 0%, #f2f7ff 50%, #e6f0ff 100%);
}

/* 桌面端(>1210px)全屏横拉：突破product-info限宽到视口边缘 */
/* 必须放在基础规则之后，否则 !important 会被覆盖 */
@media (min-width: 1211px) {
  .section-scenarios,
  .cta-small,
  .cta-big,
  .section-faq,
  .section-related,
  .ai-journey {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    width: auto !important;
  }
}

.faq-list {
    margin: 0 auto;
}

/* 参考源站：简洁列表式，底部细线分隔，无卡片 */
.faq-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    transition: all 0.25s;
    background: transparent;
    padding: 21px 0;
}

.faq-item.open {
    box-shadow: none;
}

.faq-question {
    padding: 0 20px 0 50px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.faq-icon {
    position: absolute;
    left: 15px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: url("/static/taxcloud_img/icona.png") no-repeat center center / contain;
    color: transparent;
    font-size: 0;
    transition: transform 0.25s;
}

/* 展开后加号变减号（源站同款） */
.faq-item.open .faq-icon {
    background: none;
}

.faq-item.open .faq-icon::after {
    content: "";
    display: block;
    width: 16px;
    height: 2px;
    background: #252b3a;
    margin-top: 7px;
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #252b3a;
    line-height: 1.6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 20px 0 50px;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 12px 20px 0 50px;
}

.faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #666a75;
}

/* 6. 您可能还感兴趣的产品（参考源站卡片横向排列） */
.section-related {
    background: #f7f9fc;
}

/* 一屏4张，翻页切换（参考源站swiper：viewport裁切 + transform过渡） */
.related-viewport {
    overflow: hidden;
    padding: 4px;
    margin: 0 -4px;
}

.related-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* 分页点（参考源站swiper pagination） */
.related-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.related-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4dbe7;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.related-dot.active {
    background: #1976d2;
    transform: scale(1.3);
}

/* 复刻源站.epm：固定高卡片，内容垂直居中，hover图标淡出+查看更多展开 */
.related-card {
    position: relative;
    flex: 0 0 calc((100% - 48px) / 4);
    height: 260px;
    background: #fff;
    padding: 30px 24px;
    text-decoration: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-icon {
    position: relative;
    height: 50px;
    width: 50px;
    margin: 0 auto;
    transition: opacity 0.5s;
}

.related-icon img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    display: block;
}

.related-text {
    width: 100%;
    box-sizing: border-box;
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    color: #252b3a;
    line-height: 1;
    margin: 16px 0 14px;
    text-align: center;
}

.related-desc {
    font-size: 14px;
    color: #666a75;
    line-height: 1.7;
    height: 92px;
    overflow: hidden;
    transition: 0.5s;
}

/* 默认隐藏，hover时展开为42px灰框按钮（源站同款动画） */
.related-more {
    max-height: 0;
    width: 122px;
    line-height: 42px;
    text-align: center;
    font-size: 14px;
    color: #7b7d7e;
    overflow: hidden;
    display: block;
    border-radius: 5px;
    box-sizing: border-box;
    transition: 0.5s;
}

.related-more::after {
    content: "›";
    margin-left: 4px;
    transition: 0.5s;
}

.related-more:hover::after {
    margin-left: 8px;
}

.related-card:hover .related-icon {
    opacity: 0;
}

.related-card:hover .related-more {
    max-height: 42px;
    margin-top: 30px;
    border: 1px solid #7b7d7e;
}

/* 7. 开启您的AI原生企业管理之旅 */
.ai-journey {
    background: linear-gradient(135deg, #e8f1ff 0%, #f2f7ff 50%, #e6f0ff 100%);
    text-align: center;
    padding: 90px 0;
}

.ai-journey-title {
    font-size: 40px;
    font-weight: 700;
    color: #252b3a;
    margin: 0 0 18px;
}

.ai-journey-desc {
    font-size: 18px;
    color: #666a75;
    margin: 0 0 36px;
}

.ai-journey-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 24px;
}

.ai-journey-btn {
    display: inline-block;
    padding: 0 42px;
    height: 52px;
    line-height: 52px;
    border-radius: 6px;
    font-size: 18px;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.25s;
}

.ai-journey-btn:hover {
    opacity: 0.88;
}

.ai-journey-btn-primary {
    background: #1976d2;
    color: #fff;
}

.ai-journey-btn-secondary {
    background: #fff;
    color: #1976d2;
    border: 1px solid #1976d2;
    line-height: 50px;
}

.ai-journey-hint {
    font-size: 15px;
    color: #7B808C;
    margin: 0;
}

.ai-journey-hint a {
    color: #7B808C;
    text-decoration: underline;
    margin-right: 8px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .features-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-row-inner,
    .detail-row.reverse .detail-row-inner {
        flex-direction: column !important;
        gap: 30px;
        padding: 0 20px;
    }

    .detail-row-img {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100%;
    }

    .detail-row-content {
        flex: 0 0 100% !important;
        width: 100%;
    }

    .detail-row-list {
        grid-template-columns: 1fr;
    }

    .section-cta-tax .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .product_xc_banner {
        height: 420px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-text {
        font-size: 15px;
    }

    .product_xc_banner .w1440 {
        padding: 0 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .features-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-row-title {
        font-size: 22px;
    }

    .cta-tax-title {
        font-size: 20px;
    }
}

/* 与 cosmic_hr 一致：默认1440px，视口≤1500px时正文容器限宽1200px
   置于文件末尾，确保覆盖前面的基础规则 max-width:1440px */
@media (max-width: 1500px) {
  .taxcloud-nav-inner,
  .product-info,
  .product_xc_banner .w1440,
  .detail-row-inner,
  .cta-small-inner,
  .cta-big-inner,
  .container {
    max-width: 1200px;
  }
}
