/* 吸顶栏统一居中容器（不依赖 layui） */
.sticky-wrap {
    /*width: 100%;*/
    /*max-width: 1140px;*/
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* 品牌主色调 */
:root {
    --brand-blue: #2d9cf5;
    --brand-blue-dark: #1a8bf2;
    --brand-orange: #ff8a00;
}

/* =========================================
   0. 页面最顶部通知栏
   ========================================= */
.top-notice-bar {
    background: #f0f7ff;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #e0edff;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.top-notice-bar.closed {
    padding: 0;
    border: none;
    height: 0;
}

.top-notice-bar .notice-inner {
    position: relative;
}

.top-notice-bar .notice-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a4a4f;
    flex-wrap: wrap;
    padding-right: 40px;
}

.top-notice-bar .notice-tag {
    color: var(--brand-blue);
    font-weight: 600;
}

.top-notice-bar .notice-icon {
    color: var(--brand-blue);
    display: flex;
    align-items: center;
}

.top-notice-bar .notice-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.top-notice-bar .notice-link {
    color: var(--brand-blue);
    margin-left: 4px;
    font-weight: 500;
}

.top-notice-bar .notice-link:hover {
    text-decoration: underline;
}

.top-notice-bar .close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #86868b;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.top-notice-bar .close-btn:hover {
    color: #1d1d1f;
}

/* =========================================
   1. 原有页面头部
   ========================================= */
.page-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f2;
}

.breadcrumb-bar {
    padding: 16px 0 24px;
}

.breadcrumb {
    font-size: 13px;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb span.divider {
    color: #d2d2d7;
}

.breadcrumb a:hover {
    color: var(--brand-blue);
}

.breadcrumb .current {
    color: #1d1d1f;
    font-weight: 500;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
    align-items: center;
}

.product-title {
    font-size: 26px;
    font-weight: 400;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #86868b;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    padding-top: 4px;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 40px;
    transition: all 0.2s;
}

.btn-outline {
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    background: transparent;
}

.btn-outline:hover {
    background: #f5f5f7;
    border-color: #c0c0c5;
}

.btn-solid {
    border: 1px solid var(--brand-blue);
    color: #ffffff;
    background: var(--brand-blue);
    box-shadow: 0 2px 8px rgba(45, 156, 245, 0.2);
}

.btn-solid:hover {
    background: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
    transform: translateY(-1px);
}

/* =========================================
   2. 核心导航菜单
   ========================================= */
.product-nav-tabs {
    display: flex;
    gap: 32px;
    /*border-bottom: 1px solid #e8e8ed;*/
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 0 15px 0;
}

.product-nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #86868b;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-tab svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
    transition: stroke 0.2s;
}

.nav-tab:hover {
    color: #1d1d1f;
}

.nav-tab.active {
    color: var(--brand-blue);
}

.nav-tab.active svg {
    stroke: var(--brand-blue);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-blue);
}

/* =========================================
   3. 滚动吸顶导航栏 (两行结构)
   ========================================= */
.sticky-nav {
    position: fixed;
    top: -120px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: top 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), height 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sticky-nav.show {
    top: 0;
}

.sticky-nav.announce-closed {
    height: 60px;
}

.sticky-row-main {
    height: 60px;
    display: flex;
    align-items: center;
    /*width: 100%;*/
}

.sticky-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sticky-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sticky-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.sticky-subtitle {
    font-size: 15px;
    color: #86868b;
    border-left: 1px solid #d2d2d7;
    padding-left: 12px;
}

.sticky-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.sticky-menu {
    display: flex;
    gap: 20px;
}

.sticky-menu a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 500;
    color: #4a4a4f;
    cursor: pointer;
    transition: color 0.2s;
}

.sticky-menu a svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.8;
    transition: stroke 0.2s;
}

.sticky-menu a:hover, .sticky-menu a.active {
    color: var(--brand-blue);
}

.sticky-menu a.active svg {
    stroke: var(--brand-blue);
}

.sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 40px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.sticky-btn:hover {
    background: var(--brand-blue-dark);
}

/* 公告行：块级布局 + sticky-wrap 居中，文字与主行标题左对齐 */
.sticky-row-announce {
    height: 36px;
    background: #f0f7ff;
    border-top: 1px solid #f0f0f2;
    display: block;
    width: 100%;
    position: relative;
    transition: opacity 0.3s ease, height 0.3s ease;
    overflow: hidden;
}

.sticky-nav.announce-closed .sticky-row-announce {
    height: 0;
    opacity: 0;
    border: none;
}

.sticky-announce-inner {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}

.sticky-announce-text {
    font-size: 12px;
    color: #6e6e73;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 40px; /* 仅给右侧关闭按钮留空间 */
    max-width: 100%;
}

.sticky-announce-text .tag {
    color: var(--brand-blue);
    font-weight: 600;
}

.sticky-announce-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #86868b;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.sticky-announce-close:hover {
    color: #1d1d1f;
}

/* =========================================
   4. 侧边悬浮导航 (精致重构)
   ========================================= */
.side-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    padding: 8px;
    width: 48px;
    transition: width 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
}

.side-nav:hover {
    width: 136px;
}

.side-nav-item {
    display: flex;
    align-items: center;
    height: 40px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: #86868b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.side-nav-item:last-child {
    margin-bottom: 0;
}

.side-nav-item:hover, .side-nav-item.active {
    background: #f0f7ff;
    color: var(--brand-blue);
}

.side-nav-item.active {
    font-weight: 600;
}

.side-nav-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.side-nav-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
    transition: stroke 0.2s;
}

.side-nav-item.active svg {
    stroke: var(--brand-blue);
}

.side-nav-text {
    opacity: 0;
    font-size: 13px;
    margin-left: 8px;
    transition: opacity 0.2s;
    transition-delay: 0.05s;
}

.side-nav:hover .side-nav-text {
    opacity: 1;
}

.side-nav-divider {
    height: 1px;
    background: #f0f0f2;
    margin: 4px 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.side-nav:hover .side-nav-divider {
    opacity: 1;
}

.back-to-top {
    display: flex;
    align-items: center;
    height: 40px;
    border-radius: 10px;
    color: #86868b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;

    opacity: 0;
    visibility: hidden;
    height: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    height: 40px;
    margin-bottom: 4px;
}

.back-to-top:hover {
    background: #f0f7ff;
    color: var(--brand-blue);
}

/* =========================================
   5. 页面主体内容区 & 视频播放器
   ========================================= */
.main-content {
    padding: 40px 0 80px;
}

.apple-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f2;
    padding: 48px;
    margin-bottom: 32px;
    scroll-margin-top: 120px;
}

.apple-card:last-child {
    margin-bottom: 0;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* 独立视频卡片 */
.video-card {
    padding: 48px;
}

.video-container {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    outline: none;
}

/* --- 产品概述内容 --- */
.overview-content p {
    font-size: 16px;
    color: #4a4a4f;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.feature-list {
    list-style: none;
    margin-top: 32px;
    border-top: 1px solid #f0f0f2;
    padding-top: 32px;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #4a4a4f;
    line-height: 1.6;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--brand-blue);
    border-radius: 50%;
}

.feature-list strong {
    color: #1d1d1f;
    font-weight: 600;
}

/* --- 设计资源 & 历史版本 内容 --- */
.resource-group-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.resource-row {
    display: flex;
    flex-wrap: wrap;
}

.resource-row > div {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.resource-item {
    background: #ffffff;
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: all 0.3s ease;
    height: 100%;
}

.resource-item:hover {
    border-color: rgba(45, 156, 245, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.resource-img {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
    border-bottom: 1px solid #f0f0f2;
}

.resource-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.resource-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.resource-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-blue);
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.resource-desc {
    font-size: 12px;
    color: #86868b;
    line-height: 1.5;
    text-align: center;
    margin-top: auto;
}

/* =========================================
   6. 表格通用样式
   ========================================= */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.doc-table th {
    background: transparent;
    color: #86868b;
    font-weight: 500;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8ed;
    white-space: nowrap;
    font-size: 13px;
}

.doc-table td {
    padding: 20px 16px;
    color: #1d1d1f;
    border-bottom: 1px solid #f0f0f2;
    vertical-align: middle;
    transition: background 0.2s;
}

.doc-table tr:hover td {
    background: #fbfbfd;
}

.doc-table th:last-child, .doc-table td:last-child {
    text-align: right;
}

.doc-table th:first-child, .doc-table td:first-child {
    /*padding-left: 0;*/
}

.doc-title-cell {
    display: flex;
    align-items: center;
    font-weight: 400;
}

.doc-meta-text {
    color: #6e6e73;
    font-size: 13px;
}

.btn-doc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(45, 156, 245, 0.3);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-doc:hover {
    background: #f0f7ff;
    border-color: var(--brand-blue);
    color: var(--brand-blue-dark);
}

.btn-doc svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.btn-doc.warning {
    color: var(--brand-orange);
    border-color: rgba(255, 138, 0, 0.3);
}

.btn-doc.warning:hover {
    background: #fff8e7;
    border-color: var(--brand-orange);
    color: #e67a00;
}

/* 默认状态 */
.btn-doc.success {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: #ffffff;
    transition: all 0.25s ease;
}

/* Hover 状态：颜色加深 + 边缘变实 + 轻微绿底 */
.btn-doc.success:hover {
    color: #059669; /* 加深的深翡翠绿 */
    border-color: rgba(16, 185, 129, 0.6); /* 边框透明度提高 */
    background: rgba(16, 185, 129, 0.04); /* 极微弱的浅绿背景 */
}

.inner-divider {
    height: 1px;
    background: #f0f0f2;
    margin: 40px 0;
}

/* =========================================
   7. 选型表图片样式
   ========================================= */
.selection-table-img {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f2;
}

.selection-table-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1200px) {
    .side-nav {
        display: none;
    }
}

@media (max-width: 900px) {
    .top-notice-bar .notice-content {
        font-size: 12px;
        padding: 0 16px;
        padding-right: 40px;
        justify-content: center;
    }

    .top-notice-bar .close-btn {
        right: 10px;
    }

    .product-info-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 24px;
        align-items: flex-start;
    }

    .product-title {
        font-size: 28px;
    }

    .header-actions {
        width: 100%;
    }

    .btn-header {
        flex: 1;
        height: 36px;
        border-radius: 18px;
        font-size: 13px;
        padding: 0 16px;
    }

    .sticky-nav {
        height: 60px;
    }

    .sticky-nav.announce-closed {
        height: 60px;
    }

    .sticky-row-announce {
        display: none;
    }

    .sticky-subtitle {
        display: none;
    }

    .sticky-menu {
        display: none;
    }

    .sticky-title {
        font-size: 16px;
    }

    .main-content {
        padding: 24px 0 48px;
    }

    .apple-card {
        padding: 28px 20px;
        border-radius: 20px;
        margin-bottom: 24px;
    }

    .video-card {
        padding: 28px 20px;
    }

    .video-container {
        border-radius: 12px;
    }

    .card-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .resource-img {
        height: 200px;
    }

    .inner-divider {
        margin: 32px 0;
    }

    .doc-table, .doc-table thead, .doc-table tbody, .doc-table th, .doc-table td, .doc-table tr {
        display: block;
    }

    .doc-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .doc-table tr {
        border: 1px solid #e8e8ed;
        border-radius: 12px;
        margin-bottom: 16px;
        background: #ffffff;
        padding: 8px 0;
    }

    .doc-table td {
        border: none;
        border-bottom: 1px dashed #f0f0f2;
        position: relative;
        padding: 12px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }

    .doc-table td:last-child {
        border-bottom: none;
    }

    .doc-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #86868b;
        text-align: left;
        margin-right: 20px;
        flex-shrink: 0;
    }

    .doc-table td:first-child {
        color: var(--brand-blue);
        font-weight: 600;
        font-size: 15px;
        padding-bottom: 16px;
        border-bottom: 1px solid #e8e8ed;
        display: block;
        text-align: left;
        padding-left: 24px;
    }

    .doc-table td:first-child::before {
        display: none;
    }

    .doc-table td:last-child {
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px dashed #f0f0f2;
    }

    .btn-doc {
        width: 100%;
        height: 36px;
        border-radius: 10px;
        font-size: 13px;
    }
}


.overview-content img {
    max-width: 100% !important;
}


/* =========================================
   文档行高亮闪烁效果
   ========================================= */

/* 闪烁动画：浅蓝 → 深蓝 → 深蓝 → 浅蓝 */
@keyframes highlightFlash {
    0% {
        background-color: rgba(45, 156, 245, 0.10);
    }
    30% {
        background-color: rgba(45, 156, 245, 0.15);
    }
    70% {
        background-color: rgba(45, 156, 245, 0.15);
    }
    100% {
        background-color: rgba(45, 156, 245, 0.08);
    }
}

/* 闪烁进行中（3 次 × 1.2s ≈ 3.6s） */
.doc-row-highlight {
    animation: highlightFlash 1.2s ease-in-out 3;
    background-color: rgba(45, 156, 245, 0.10);
    transition: background-color 0.2s;
}

/* 闪烁结束后保留的浅色背景，便于用户继续定位 */
.doc-row-highlight-persist {
    background-color: rgba(45, 156, 245, 0.08);
}

/* 可选：给表格行加平滑过渡，避免生硬跳变 */
.doc-table tbody tr {
    transition: background-color 0.3s ease;
}
