/* ===================================
   HuiWork Landing Page Styles
   一屏自适应 + 设计感增强版
   =================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    padding-bottom: clamp(60px, 8vh, 72px);
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
    width: 100%;
}

/* ===================================
   Decorative Background Elements
   =================================== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.035;
}

.bg-dot-1 {
    width: clamp(200px, 30vw, 400px);
    height: clamp(200px, 30vw, 400px);
    background: radial-gradient(circle, #E60012 0%, transparent 70%);
    top: -5%;
    right: -5%;
    animation: float-slow 20s ease-in-out infinite;
}

.bg-dot-2 {
    width: clamp(150px, 25vw, 300px);
    height: clamp(150px, 25vw, 300px);
    background: radial-gradient(circle, #000000 0%, transparent 70%);
    bottom: -3%;
    left: -4%;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.bg-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #E60012, transparent);
    height: 1px;
    opacity: 0.05;
}

.bg-line-1 {
    width: 50%;
    top: 38%;
    left: 25%;
    animation: fade-line 8s ease-in-out infinite;
}

.bg-line-2 {
    width: 35%;
    top: 68%;
    right: 15%;
    animation: fade-line 10s ease-in-out infinite 2s;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 15px); }
}

@keyframes fade-line {
    0%, 100% { opacity: 0.02; }
    50% { opacity: 0.06; }
}

/* ===================================
   Bottom Navigation (淡红色底部导航栏)
   =================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(960px, 95vw);
    height: clamp(64px, 9vh, 80px);
    background-color: #FFF0F0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 16px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 1000;
    box-shadow: 0 -2px 12px rgba(230, 0, 18, 0.08);
    border-radius: 16px 16px 0 0;
}

.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    color: #8B0000;
    font-size: clamp(13px, 1.6vw, 16px);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    position: relative;
    padding: 8px 4px;
    text-align: center;
    white-space: nowrap;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background-color: rgba(230, 0, 18, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: -1;
}

.nav-item:hover {
    color: #E60012;
}

.nav-item:hover::before {
    width: 80%;
    height: 70%;
}

.bottom-nav .nav-item.active {
    color: #E60012;
    font-weight: 600;
}

.nav-item:active {
    transform: scale(0.95);
}

/* ===================================
   Main Content Area (fills remaining space)
   =================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    flex: 0 0 auto;
    padding-top: clamp(32px, 5vh, 48px);
    padding-bottom: clamp(16px, 2.5vh, 24px);
    text-align: center;
}

.hero-title {
    font-size: clamp(24px, 4.5vw, 44px);
    font-weight: 700;
    color: #000000;
    letter-spacing: -1.5px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.hero-cn {
    font-size: clamp(26px, 4.8vw, 48px);
    font-weight: 800;
    background: linear-gradient(135deg, #FF1A2C 0%, #E60012 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 8px;
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 500;
    color: #222222;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.hero-desc {
    font-size: clamp(12px, 1.4vw, 15px);
    color: #555555;
    max-width: 480px;
    margin: 0 auto;
}

.hero-slogan {
    margin-top: clamp(12px, 1.5vh, 20px);
    color: #555555;
    font-weight: 500;
}

.hero-desc .highlight {
    color: #FF1A2C;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.hero-desc .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF1A2C, transparent);
    opacity: 0.5;
}

/* ===================================
   Features Section (2x2 Grid)
   =================================== */
.features {
    flex: 1;
    min-height: 0;
    padding: clamp(8px, 1vh, 16px) 0 clamp(8px, 1vh, 16px);
    display: flex;
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 1.8vw, 20px);
    width: 100%;
}

.feature-card {
    padding: clamp(14px, 2vh, 24px);
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: clamp(8px, 1vw, 12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #E60012, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(230, 0, 18, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: clamp(32px, 4vw, 44px);
    height: clamp(32px, 4vw, 44px);
    margin-bottom: clamp(8px, 1.2vh, 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.04) 0%, rgba(0, 0, 0, 0.02) 100%);
    border-radius: clamp(6px, 0.8vw, 10px);
    padding: clamp(6px, 0.8vw, 10px);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: clamp(12px, 1.3vw, 15px);
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.feature-desc {
    font-size: clamp(10px, 1vw, 13px);
    color: #666666;
    line-height: 1.5;
}

/* ===================================
   Summary & CTA Section
   =================================== */
.summary {
    flex: 0 0 auto;
    padding: clamp(16px, 2vh, 28px) 0 clamp(20px, 3vh, 32px);
    text-align: center;
}

.summary-text {
    font-size: clamp(12px, 1.3vw, 15px);
    color: #333333;
    max-width: 560px;
    margin: 0 auto clamp(6px, 1vh, 12px);
    line-height: 1.6;
}

.summary-note {
    display: block;
    font-size: clamp(10px, 1vw, 12px);
    color: #999999;
    margin-top: 4px;
}

.summary-highlight {
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 600;
    color: #E60012;
    display: inline-block;
    line-height: 1.6;
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 16px;
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.06) 0%, rgba(230, 0, 18, 0.02) 100%);
    border-radius: 8px;
    border-left: 3px solid #E60012;
}

.cta-buttons {
    display: flex;
    gap: clamp(10px, 1.5vw, 14px);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: clamp(8px, 1.2vh, 12px) clamp(20px, 3vw, 32px);
    font-size: clamp(12px, 1.3vw, 15px);
    font-weight: 600;
    text-decoration: none;
    border-radius: clamp(6px, 0.8vw, 8px);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #E60012 0%, #cc0010 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
    transform: translateY(-1px);
}

/* ===================================
   Footer
   =================================== */
.footer {
    flex-shrink: 0;
    padding: clamp(8px, 1.2vh, 16px) 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.footer p {
    font-size: clamp(10px, 1vw, 12px);
    color: #999999;
}

/* ===================================
   Entrance Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeInUp 0.5s ease-out;
}

.features-grid {
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.summary {
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.feature-card:nth-child(1) { animation: fadeInUp 0.4s ease-out 0.08s both; }
.feature-card:nth-child(2) { animation: fadeInUp 0.4s ease-out 0.16s both; }
.feature-card:nth-child(3) { animation: fadeInUp 0.4s ease-out 0.24s both; }
.feature-card:nth-child(4) { animation: fadeInUp 0.4s ease-out 0.32s both; }

/* ===================================
   Responsive: Mobile adjustments
   =================================== */
@media (max-width: 768px) {
    .bottom-nav {
        height: 60px;
    }

    .nav-item {
        font-size: 12px;
    }

    .hero-cn {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .hero-title {
        letter-spacing: -0.5px;
    }

    .features-grid {
        gap: clamp(8px, 1.5vw, 14px);
    }

    .feature-card {
        padding: clamp(10px, 1.5vh, 16px);
    }

    .feature-icon {
        width: clamp(28px, 5vw, 36px);
        height: clamp(28px, 5vw, 36px);
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        height: 56px;
    }

    .nav-item {
        font-size: 11px;
        letter-spacing: 0;
    }

    .hero-cn {
        font-size: clamp(22px, 6vw, 28px);
    }

    .hero-title {
        font-size: clamp(18px, 5vw, 24px);
    }

    .features-grid {
        gap: clamp(6px, 1.5vw, 10px);
    }

    .feature-title {
        font-size: clamp(11px, 2.5vw, 13px);
    }

    .feature-desc {
        font-size: clamp(9px, 2vw, 11px);
    }
}

/* ===================================
   Capabilities Page Styles - 核心能力页面
   =================================== */

body.capabilities-page {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background-color: #FFFFFF;
    min-height: 100vh;
    display: block;
    padding-bottom: 0;
}

html:has(body.capabilities-page) {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* 页面标题区 */
.capabilities-header {
    padding-top: clamp(60px, 8vh, 80px);
    padding-bottom: clamp(20px, 3vh, 32px);
    text-align: center;
}

.page-title {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.page-subtitle {
    font-size: clamp(14px, 1.6vw, 18px);
    color: #666666;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 核心能力内容区 */
.capabilities-content {
    padding: 0 0 clamp(20px, 3vh, 32px);
}

/* 核心能力卡片 */
.capability-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
    padding: clamp(24px, 3vh, 32px);
    margin-bottom: clamp(32px, 4vh, 48px);
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.capability-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(230, 0, 18, 0.1);
}

/* 偶数卡片：截图在左，文字在右 */
.capability-even {
    direction: rtl;
}

.capability-even > * {
    direction: ltr;
}

/* 卡片文字区 */
.capability-text {
    padding: clamp(8px, 1vh, 16px);
}

.capability-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: rgba(230, 0, 18, 0.08);
    line-height: 1;
    margin-bottom: 8px;
}

.capability-title {
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1.3;
}

.capability-core {
    font-size: clamp(13px, 1.5vw, 15px);
    color: #333333;
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 500;
}

/* 要点列表 */
.capability-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-points li {
    font-size: clamp(12px, 1.3vw, 14px);
    color: #555555;
    margin-bottom: 10px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.point-icon {
    flex-shrink: 0;
    font-size: clamp(13px, 1.4vw, 16px);
}

/* 图片展示区 */
.capability-image {
    width: 100%;
}

.capability-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
    display: block;
}

.capability-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 图片占位区（保留兼容） */
.image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #FAFAFA;
    border: 1px dashed #E0E0E0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.placeholder-text {
    font-size: clamp(11px, 1.2vw, 13px);
    color: #999999;
    text-align: center;
}

/* ===================================
   Lightbox - 图片灯箱
   =================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.2s ease-out;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Lightbox 移动端适配 */
@media (max-width: 768px) {
    .lightbox-content img {
        max-width: 95vw;
        max-height: 85vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.5);
    }
}

/* 底部引导按钮 */
.capabilities-cta {
    text-align: center;
    margin-top: clamp(24px, 3vh, 32px);
    padding-bottom: clamp(20px, 3vh, 32px);
}

.cta-button {
    display: inline-block;
    font-size: clamp(14px, 1.5vw, 16px);
    color: #E60012;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 28px;
    border: 2px solid #E60012;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.cta-button:hover {
    background: #E60012;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.25);
    transform: translateY(-2px);
}

/* ===================================
   Responsive: 核心能力页面移动端适配
   =================================== */
@media (max-width: 768px) {
    .capabilities-header {
        padding-top: 60px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-subtitle {
        font-size: 13px;
    }

    .capability-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: clamp(16px, 2.5vh, 24px);
    }

    .capability-even {
        direction: ltr;
    }

    .capability-image {
        order: 2;
    }

    .capability-text {
        order: 1;
        padding: 0;
    }

    .capability-number {
        font-size: 28px;
    }

    .image-placeholder {
        aspect-ratio: 4 / 3;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .capabilities-header {
        padding-top: 52px;
    }

    .page-title {
        font-size: 18px;
    }

    .page-subtitle {
        font-size: 12px;
    }

    .capability-card {
        padding: 14px;
        margin-bottom: 24px;
    }

    .capability-number {
        font-size: 24px;
    }

    .capability-title {
        font-size: 15px;
    }

    .capability-core {
        font-size: 12px;
    }

    .capability-points li {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .image-placeholder {
        padding: 12px;
    }

    .placeholder-text {
        font-size: 10px;
    }

    .cta-button {
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* ===================================
   Scenes Page Styles - 现实场景页面
   =================================== */

/* 场景页面基础样式 - 允许滚动 */
body.scenes-page {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background-color: #FFFFFF;
    min-height: 100vh;
    display: block;
    padding-bottom: 0;
}

html:has(body.scenes-page) {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* ===================================
   左上角品牌标识
   =================================== */
.brand-logo {
    position: fixed;
    top: clamp(12px, 2vh, 20px);
    left: clamp(12px, 2vw, 24px);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 1001;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.brand-logo:hover {
    box-shadow: 0 4px 16px rgba(230, 0, 18, 0.12);
    transform: translateY(-1px);
}

.brand-bar {
    display: block;
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #E60012 0%, #FF1A2C 100%);
    border-radius: 2px;
    position: relative;
}

.brand-bar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -2px;
    right: -2px;
    bottom: -3px;
    background: linear-gradient(180deg, #E60012 0%, #FF1A2C 100%);
    border-radius: 3px;
    opacity: 0.15;
    z-index: -1;
}

.brand-text {
    font-size: clamp(13px, 1.5vw, 15px);
    color: #333333;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.brand-text strong {
    color: #E60012;
    font-weight: 700;
}

/* ===================================
   页面标题区
   =================================== */
.scenes-header {
    padding-top: clamp(60px, 8vh, 80px);
    padding-bottom: clamp(20px, 3vh, 32px);
    text-align: center;
}

.scenes-title {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.scenes-subtitle {
    font-size: clamp(14px, 1.6vw, 18px);
    color: #666666;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   对比核心区 - 时间线布局
   =================================== */
.comparison-section {
    padding: clamp(20px, 3vh, 40px) 0 0;
}

/* 图例 */
.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: clamp(28px, 4vh, 44px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-gray {
    border: 2px solid #999999;
    background: transparent;
}

.legend-red {
    background: #E60012;
    box-shadow: 0 0 4px rgba(230, 0, 18, 0.3);
}

.legend-text {
    font-size: clamp(12px, 1.3vw, 14px);
    color: #666666;
    font-weight: 500;
}

/* 时间线容器 */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* 时间线行 */
.timeline-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    margin-bottom: clamp(24px, 3.5vh, 36px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.timeline-row.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 左侧：传统工作流 */
.timeline-side {
    padding: 0;
}

.without-side {
    text-align: right;
    padding-right: clamp(16px, 2.5vw, 32px);
}

.with-side {
    text-align: left;
    padding-left: clamp(16px, 2.5vw, 32px);
}

/* 时间线卡片 */
.timeline-card {
    padding: clamp(16px, 2.2vh, 24px) clamp(18px, 2.5vw, 28px);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 传统工作流卡片 - 极淡灰白背景 + 灰色边框 */
.without-card {
    background-color: #FAFAFA;
    border: 1px solid #E8E8E8;
}

/* HuiWork 工作流卡片 - 纯白背景 + 左侧红色竖线 */
.with-card {
    background-color: #FFFFFF;
    border: none;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

/* HuiWork 卡片左侧红色装饰线 */
.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #E60012 0%, #FF1A2C 100%);
    border-radius: 0 2px 2px 0;
}

.card-label {
    font-size: clamp(10px, 1.1vw, 12px);
    color: #999999;
    margin-bottom: 6px;
    font-weight: 500;
}

.with-card .card-label {
    color: #E60012;
}

/* 卡片标题 - 传统工作流 */
.card-title-small {
    font-size: clamp(15px, 1.7vw, 19px);
    color: #555555;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

/* HuiWork 卡片标题 */
.with-card .card-title-small {
    color: #333333;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.with-card .card-title-small strong {
    color: #E60012;
    font-weight: 700;
}

/* 卡片图标 */
.card-icon {
    font-size: clamp(14px, 1.5vw, 17px);
    display: inline-block;
}

/* 卡片描述 - 传统工作流 */
.card-desc {
    font-size: clamp(11px, 1.2vw, 13px);
    color: #999999;
    line-height: 1.65;
}

/* HuiWork 卡片描述 */
.with-card .card-desc {
    color: #666666;
}

/* 中间时间线 */
.timeline-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(70px, 9vw, 90px);
}

/* 垂直红线 - 贯穿整个时间线 */
.timeline-center::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(180deg, #E60012 0%, rgba(230, 0, 18, 0.15) 100%);
    z-index: 1;
}

/* 最后一行的红线不延伸 */
.timeline-row:last-child .timeline-center::before {
    bottom: 0;
}

/* 时间节点 - 实心红底白字 */
.time-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #E60012;
    padding: clamp(8px, 1vh, 12px) clamp(14px, 2vw, 20px);
    border-radius: 24px;
    box-shadow: 0 3px 12px rgba(230, 0, 18, 0.25);
    min-width: clamp(60px, 7vw, 76px);
}

.time-text {
    font-size: clamp(15px, 1.8vw, 20px);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.time-sub {
    font-size: clamp(10px, 1.1vw, 12px);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-top: 2px;
}

/* ===================================
   底部安全间距 - 确保内容不被底部导航栏遮挡
   =================================== */
.bottom-spacer {
    height: clamp(100px, 14vh, 140px);
}

/* ===================================
   底部总结
   =================================== */
.scenes-summary {
    padding: 0 0 clamp(120px, 16vh, 160px);
    text-align: center;
}

.scenes-summary .summary-text {
    font-size: clamp(15px, 1.8vw, 18px);
    color: #555555;
    margin-bottom: 10px;
    line-height: 1.8;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scenes-summary .summary-text:last-of-type {
    margin-bottom: clamp(28px, 4vh, 40px);
    font-weight: 700;
    color: #1A1A1A;
    font-size: clamp(17px, 2vw, 20px);
}

/* scenes-summary 中的 CTA 按钮样式 */
.scenes-summary .cta-link {
    display: inline-block;
    font-size: clamp(16px, 1.8vw, 20px);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    padding: clamp(16px, 2vh, 24px) clamp(40px, 5vw, 64px);
    background: #E60012;
    border: none;
    border-radius: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.35);
    letter-spacing: 0.5px;
}

.scenes-summary .cta-link:hover {
    background: #cc0010;
    box-shadow: 0 8px 28px rgba(230, 0, 18, 0.45);
    transform: translateY(-2px);
}

.scenes-summary .cta-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

/* ===================================
   滚动动画
   =================================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comparison-card {
    opacity: 0;
}

.comparison-card.animate-in {
    opacity: 1;
}

.without-card.animate-in {
    animation: slideInLeft 0.6s ease-out forwards;
}

.with-card.animate-in {
    animation: slideInRight 0.6s ease-out 0.15s forwards;
}

/* ===================================
   响应式：移动端适配 - 时间线布局
   =================================== */
@media (max-width: 768px) {
    .brand-logo {
        top: 8px;
        left: 8px;
        padding: 6px 10px;
    }

    .brand-bar {
        width: 3px;
        height: 22px;
    }

    .brand-text {
        font-size: 12px;
    }

    .scenes-header {
        padding-top: 60px;
    }

    .scenes-title {
        font-size: 20px;
    }

    .scenes-subtitle {
        font-size: 13px;
    }

    /* 图例调整 */
    .timeline-legend {
        gap: 20px;
        margin-bottom: 20px;
    }

    .legend-dot {
        width: 8px;
        height: 8px;
    }

    .legend-text {
        font-size: 11px;
    }

    /* 时间线行 - 移动端改为上下堆叠 */
    .timeline-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 24px;
    }

    /* 中间时间线节点移到顶部 */
    .timeline-center {
        order: -1;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 12px;
    }

    .timeline-center::before {
        display: none;
    }

    .time-node {
        padding: 6px 16px;
        border-radius: 16px;
    }

    .time-text {
        font-size: 14px;
    }

    .time-sub {
        font-size: 11px;
        margin-left: 6px;
    }

    /* 左右侧卡片堆叠 */
    .timeline-side {
        padding: 0;
    }

    .without-side {
        text-align: left;
        padding-right: 0;
        padding-bottom: 8px;
    }

    .with-side {
        text-align: left;
        padding-left: 0;
    }

    .timeline-card {
        padding: 12px 14px;
    }

    .card-label {
        font-size: 10px;
    }

    .card-title-small {
        font-size: 13px;
    }

    .card-desc {
        font-size: 12px;
    }

    .summary-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        top: 6px;
        left: 6px;
        padding: 5px 8px;
        gap: 6px;
    }

    .brand-bar {
        width: 3px;
        height: 18px;
    }

    .brand-text {
        font-size: 11px;
    }

    .scenes-header {
        padding-top: 52px;
    }

    .scenes-title {
        font-size: 18px;
    }

    .scenes-subtitle {
        font-size: 12px;
    }

    .timeline-legend {
        gap: 16px;
        margin-bottom: 16px;
    }

    .legend-text {
        font-size: 10px;
    }

    .time-node {
        padding: 5px 12px;
    }

    .time-text {
        font-size: 13px;
    }

    .time-sub {
        font-size: 10px;
    }

    .timeline-card {
        padding: 10px 12px;
    }

    .card-label {
        font-size: 9px;
    }

    .card-title-small {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .card-desc {
        font-size: 11px;
        line-height: 1.5;
    }

    .summary-text {
        font-size: 13px;
    }

    .cta-link {
        font-size: 13px;
        padding: 8px 18px;
    }
}

/* ===================================
   Advantages Page Styles - 核心优势页面
   =================================== */

/* 核心优势页面基础样式 */
body.advantages-page {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background-color: #FFFFFF;
    min-height: 100vh;
    display: block;
    padding-bottom: 0;
}

html:has(body.advantages-page) {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* 页面标题区 */
.advantages-header {
    padding-top: clamp(60px, 8vh, 80px);
    padding-bottom: clamp(20px, 3vh, 32px);
    text-align: center;
}

/* 核心对比区 */
.advantages-comparison {
    padding: clamp(20px, 3vh, 40px) 0;
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 24px);
    max-width: 1100px;
    margin: 0 auto;
}

.comparison-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: clamp(20px, 2.5vh, 28px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.comparison-card.animate-in {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease-out;
}

/* 竞品卡片 - 极淡灰白背景 */
.competitor-card {
    background-color: #F8F9FA;
    border: 1px solid #E8E8E8;
}

.competitor-card .card-title {
    color: #888888;
}

.competitor-card .item-text {
    color: #888888;
}

.competitor-card .item-desc {
    color: #AAAAAA;
}

/* HuiWork 卡片 - 纯白背景 + 红色竖线 */
.huiwork-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(230, 0, 18, 0.15);
    box-shadow: 0 4px 20px rgba(230, 0, 18, 0.08);
    transform: translateX(-20px) scale(1);
    position: relative;
    overflow: hidden;
}

.huiwork-card.animate-in {
    transform: translateX(0) scale(1.03);
}

/* HuiWork 卡片左侧红色装饰线 */
.huiwork-card .card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #E60012 0%, #FF1A2C 100%);
    border-radius: 0 2px 2px 0;
}

.card-header {
    margin-bottom: clamp(16px, 2vh, 24px);
    padding-bottom: clamp(12px, 1.5vh, 16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.huiwork-card .card-header {
    border-bottom-color: rgba(230, 0, 18, 0.1);
}

.card-title {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.5vh, 16px);
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-icon {
    font-size: clamp(14px, 1.5vw, 18px);
    flex-shrink: 0;
}

.item-icon-red {
    color: #E60012;
}

.item-text {
    font-size: clamp(13px, 1.4vw, 16px);
    color: #333333;
    line-height: 1.4;
}

.item-desc {
    font-size: clamp(11px, 1.2vw, 13px);
    color: #666666;
    line-height: 1.5;
    margin-left: 28px;
}

/* ===================================
   真实工作流流水线
   =================================== */
.workflow-pipeline-section {
    padding: clamp(32px, 5vh, 56px) 0;
}

.workflow-section-title {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: clamp(32px, 4vh, 48px);
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(16px, 2vw, 24px) 0;
}

/* 工作流节点 */
.workflow-node {
    flex: 0 0 auto;
    width: clamp(180px, 22vw, 240px);
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: clamp(16px, 2vh, 24px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.workflow-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #E60012 0%, #FF1A2C 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.workflow-node:hover {
    box-shadow: 0 4px 20px rgba(230, 0, 18, 0.1);
    border-color: rgba(230, 0, 18, 0.2);
}

.workflow-node:hover::before {
    opacity: 1;
}

.workflow-node.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease-out;
}

/* 节点图标 */
.node-icon {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: clamp(10px, 1.2vh, 14px);
}

.icon-emoji {
    font-size: clamp(24px, 2.5vw, 32px);
}

/* 节点头部 */
.node-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(8px, 1vh, 12px);
}

.node-number {
    font-size: clamp(11px, 1.2vw, 13px);
    font-weight: 700;
    color: #E60012;
    opacity: 0.6;
}

.node-title {
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
}

/* 节点描述 */
.node-desc {
    font-size: clamp(11px, 1.2vw, 13px);
    color: #666666;
    line-height: 1.6;
    margin-bottom: clamp(10px, 1.2vh, 14px);
}

/* 优势标签 */
.node-tag {
    display: inline-block;
    font-size: clamp(10px, 1vw, 12px);
    color: #E60012;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(230, 0, 18, 0.06);
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* 箭头连接 */
.workflow-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 5vw, 60px);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease-out;
}

.workflow-arrow svg {
    width: 100%;
    height: auto;
}

.workflow-arrow.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   底部引导
   =================================== */
.advantages-cta {
    padding: clamp(20px, 3vh, 32px) 0 clamp(100px, 14vh, 140px);
    text-align: center;
}

/* 通用 CTA 链接 - 红底白字 */
.cta-link {
    display: inline-block;
    font-size: clamp(14px, 1.5vw, 16px);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 32px;
    background: #E60012;
    border: 2px solid #E60012;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

.cta-link:hover {
    background: #cc0010;
    border-color: #cc0010;
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
    transform: translateY(-2px);
}

.cta-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.3);
}

/* 主按钮 - 红底白字（与 .cta-link 相同样式） */
.cta-button-primary {
    display: inline-block;
    font-size: clamp(14px, 1.5vw, 16px);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 32px;
    background: #E60012;
    border: 2px solid #E60012;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

.cta-button-primary:hover {
    background: #cc0010;
    border-color: #cc0010;
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
    transform: translateY(-2px);
}

.cta-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.3);
}

/* ===================================
   响应式：工作流流水线移动端适配
   =================================== */
@media (max-width: 768px) {
    .workflow-pipeline {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .workflow-node {
        width: 100%;
        max-width: 320px;
    }

    .workflow-arrow {
        width: 100%;
        max-width: 60px;
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .workflow-arrow.animate-in {
        transform: rotate(90deg) translateX(0);
    }

    .workflow-section-title {
        font-size: 15px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .workflow-section-title {
        font-size: 14px;
    }

    .workflow-node {
        padding: 12px 14px;
    }

    .icon-emoji {
        font-size: 22px;
    }

    .node-title {
        font-size: 14px;
    }

    .node-desc {
        font-size: 12px;
    }

    .node-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ===================================
   指令触发器样式
   =================================== */
.command-trigger-section {
    max-width: 700px;
    margin: 0 auto clamp(32px, 4vh, 48px);
    text-align: center;
}

.trigger-subtitle {
    font-size: clamp(12px, 1.3vw, 14px);
    color: #666666;
    margin-bottom: clamp(12px, 1.5vh, 16px);
    letter-spacing: 0.5px;
}

.command-input-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 0 16px 0 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.command-input-wrapper:hover {
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.12);
    border-color: rgba(230, 0, 18, 0.2);
}

.command-input-wrapper.active {
    border-color: #E60012;
    box-shadow: 0 6px 24px rgba(230, 0, 18, 0.15);
}

.input-icon {
    flex-shrink: 0;
    margin-right: 12px;
}

.input-placeholder {
    flex: 1;
    font-size: clamp(14px, 1.5vw, 16px);
    color: #999999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.send-button {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(230, 0, 18, 0.08);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-button:hover {
    background: #E60012;
}

.send-button:hover svg path {
    fill: white;
}

/* 加载动画 */
.loading-dots {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    gap: 4px;
}

.loading-dots.show {
    display: flex;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: #E60012;
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0; }

@keyframes loading-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ===================================
   垂直时间轴样式
   =================================== */
.vertical-timeline-section {
    max-width: 100%;
    margin: 0 auto clamp(40px, 5vh, 60px);
    position: relative;
}

/* 时间轴节点容器 */
.timeline-node {
    position: relative;
    margin-bottom: clamp(24px, 3vh, 36px);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: clamp(40px, 5vw, 56px); /* 左侧留空给时间轴 */
    width: 100%;
}

.timeline-node.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 时间轴连接器和红点容器 */
.timeline-connector {
    position: absolute;
    left: clamp(16px, 2.5vw, 24px);
    top: 0;
    bottom: -clamp(24px, 3vh, 36px);
    width: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 最后一个节点没有向下的连线，但保留红点 */
.timeline-node:last-child .timeline-connector .axis-line-segment {
    display: none;
}

/* 红点 - 位于节点顶部 */
.axis-dot {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #E60012;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.12);
    flex-shrink: 0;
}

/* 红色连接线 */
.axis-line-segment {
    position: absolute;
    top: 40px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(180deg, #E60012 0%, rgba(230, 0, 18, 0.3) 100%);
}

/* 节点卡片 */
.node-card {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    padding: clamp(20px, 2.5vh, 28px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
}

.node-card:hover {
    box-shadow: 0 6px 24px rgba(230, 0, 18, 0.1);
    border-color: rgba(230, 0, 18, 0.15);
}

/* 节点卡片内容区 */
.node-card-content {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vh, 12px);
}

/* 步骤头部：序号 + 图标 */
.node-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.node-step-number {
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 700;
    color: #E60012;
    font-family: 'SF Mono', 'Menlo', monospace;
    letter-spacing: 1px;
}

.node-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 0, 18, 0.06);
    border-radius: 10px;
}

.node-card-title {
    font-size: clamp(16px, 1.7vw, 20px);
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.3;
}

.node-card-desc {
    font-size: clamp(13px, 1.3vw, 15px);
    color: #666666;
    line-height: 1.6;
}

/* 产品截图占位区 */
.node-screenshot {
    margin-top: clamp(12px, 1.5vh, 16px);
    border-radius: 8px;
    overflow: hidden;
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #FAFAFA;
    border: 1px dashed #E0E0E0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #BBBBBB;
    transition: all 0.3s ease;
}

.screenshot-placeholder:hover {
    border-color: rgba(230, 0, 18, 0.2);
    background: rgba(230, 0, 18, 0.02);
}

.screenshot-placeholder svg {
    opacity: 0.5;
}

.screenshot-placeholder p {
    font-size: clamp(12px, 1.2vw, 14px);
    margin: 0;
}

/* ===================================
   交付物预览区样式
   =================================== */
.deliverable-preview-section {
    max-width: 700px;
    margin: 0 auto clamp(40px, 5vh, 60px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out 0.3s;
}

.deliverable-preview-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.preview-window {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* macOS风格标题栏 */
.preview-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FAFAFA;
    border-bottom: 1px solid #F0F0F0;
}

.titlebar-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #FF5F57;
}

.dot-yellow {
    background: #FEBC2E;
}

.dot-green {
    background: #28C840;
}

.titlebar-filename {
    font-size: 12px;
    color: #666666;
    margin-left: 8px;
}

/* 预览内容区 */
.preview-content {
    padding: clamp(16px, 2vh, 24px);
    min-height: 200px;
}

.preview-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #FAFAFA;
    border: 1px dashed #E0E0E0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    text-align: center;
    color: #999999;
}

.placeholder-text svg {
    margin-bottom: 12px;
}

.placeholder-text p {
    font-size: 14px;
    margin: 4px 0;
}

.placeholder-hint {
    font-size: 12px !important;
    color: #BBBBBB !important;
}

/* ===================================
   垂直时间轴展开动画
   =================================== */
.vertical-timeline-section {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease-out;
}

.vertical-timeline-section.expanded {
    max-height: 8000px;
    opacity: 1;
}

/* ===================================
   交互动画状态
   =================================== */
.timeline-node.active {
    box-shadow: 0 4px 20px rgba(230, 0, 18, 0.15);
    border-color: rgba(230, 0, 18, 0.3);
}

.timeline-node.active .axis-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(230, 0, 18, 0.2);
    transition: all 0.3s ease;
}

/* ===================================
   交付物预览区（合并到节点4）
   =================================== */
.deliverable-preview {
    margin-top: clamp(16px, 2vh, 24px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out 0.3s;
}

.timeline-node.visible .deliverable-preview {
    opacity: 1;
    transform: translateY(0);
}

/* 格式切换按钮 */
.format-switcher {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}

.format-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    background: #FAFAFA;
    border: 1px solid #E8E8E8;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.format-btn:hover {
    color: #E60012;
    border-color: rgba(230, 0, 18, 0.3);
    background: rgba(230, 0, 18, 0.04);
}

.format-btn.active {
    color: #FFFFFF;
    background: #E60012;
    border-color: #E60012;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.25);
}

.format-btn.active svg {
    color: #FFFFFF;
}

.format-btn svg {
    flex-shrink: 0;
    color: currentColor;
}

/* 滑动预览容器 */
.preview-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.preview-slide {
    display: none;
    animation: slideIn 0.35s ease-out;
}

.preview-slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 预览窗口样式（节点内） */
.node-card .preview-window {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.node-card .preview-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FAFAFA;
    border-bottom: 1px solid #F0F0F0;
}

.node-card .titlebar-dots {
    display: flex;
    gap: 6px;
}

.node-card .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.node-card .dot-red {
    background: #FF5F57;
}

.node-card .dot-yellow {
    background: #FEBC2E;
}

.node-card .dot-green {
    background: #28C840;
}

.node-card .titlebar-filename {
    font-size: 12px;
    color: #666666;
    margin-left: 8px;
}

.node-card .preview-content {
    padding: clamp(16px, 2vh, 24px);
}

.node-card .preview-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #FAFAFA;
    border: 1px dashed #E0E0E0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-card .placeholder-text {
    text-align: center;
    color: #999999;
}

.node-card .placeholder-text svg {
    margin-bottom: 12px;
}

.node-card .placeholder-text p {
    font-size: 14px;
    margin: 4px 0;
}

.node-card .placeholder-hint {
    font-size: 12px !important;
    color: #BBBBBB !important;
}

/* ===================================
   响应式：工作流区域移动端适配
   =================================== */
@media (max-width: 768px) {
    .command-trigger-section {
        max-width: 90%;
    }
    
    .command-input-wrapper {
        height: 52px;
        padding: 0 12px 0 16px;
    }
    
    .input-placeholder {
        font-size: 13px;
    }
    
    .vertical-timeline-section {
        max-width: 90%;
    }
    
    .axis-line {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-node {
        justify-content: flex-start;
        padding-left: 40px;
    }
    
    .axis-dot {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .node-card {
        width: 100%;
    }
    
    .node-card-inner {
        gap: 12px;
    }
    
    .node-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .node-icon-wrapper svg {
        width: 28px;
        height: 28px;
    }
    
    .deliverable-preview-section {
        max-width: 90%;
    }
    
    .preview-content {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .trigger-subtitle {
        font-size: 11px;
    }
    
    .command-input-wrapper {
        height: 48px;
        border-radius: 24px;
    }
    
    .input-placeholder {
        font-size: 12px;
    }
    
    .send-button {
        width: 32px;
        height: 32px;
    }
    
    .node-card {
        padding: 12px;
    }
    
    .node-card-title {
        font-size: 14px;
    }
    
    .node-card-desc {
        font-size: 12px;
    }
    
    .preview-titlebar {
        padding: 10px 12px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .titlebar-filename {
        font-size: 11px;
    }
}

/* ===================================
   Projects Page Styles - 项目模板页面
   =================================== */

body.projects-page {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background-color: #FFFFFF;
    min-height: 100vh;
    display: block;
    padding-bottom: 0;
}

html:has(body.projects-page) {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.projects-container {
    padding-top: clamp(60px, 8vh, 80px);
    padding-bottom: clamp(20px, 3vh, 32px);
}

/* 左右布局 */
.projects-layout {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: clamp(24px, 3vw, 40px);
    height: calc(100vh - clamp(60px, 8vh, 80px) - clamp(20px, 3vh, 32px) - 80px);
    min-height: 500px;
}

/* 左侧：展示区 */
.projects-display {
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    padding: clamp(20px, 2.5vw, 32px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* 空状态 */
.display-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.empty-icon {
    margin-bottom: 20px;
}

.empty-title {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.empty-desc {
    font-size: clamp(12px, 1.3vw, 14px);
    color: #999999;
    max-width: 280px;
    line-height: 1.6;
}

/* 展示内容 */
.display-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.template-title {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.template-tag {
    font-size: 12px;
    font-weight: 500;
    color: #E60012;
    background: rgba(230, 0, 18, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.template-desc {
    font-size: clamp(13px, 1.4vw, 15px);
    color: #555555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.template-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #F0F0F0;
}

.scenario-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scenario-list li {
    font-size: clamp(12px, 1.3vw, 14px);
    color: #555555;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.scenario-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #E60012;
    border-radius: 50%;
}

.output-desc {
    font-size: clamp(12px, 1.3vw, 14px);
    color: #555555;
    line-height: 1.7;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-size: 11px;
    color: #666666;
    background: #F5F5F5;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #E8E8E8;
}

.question-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.question-list li {
    font-size: clamp(12px, 1.3vw, 14px);
    color: #555555;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.question-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
}

/* 右侧：模板库 */
.projects-library {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    padding: clamp(20px, 2.5vw, 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0F0F0;
    flex-shrink: 0;
}

.library-title {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 700;
    color: #000000;
}

.template-count {
    font-size: 12px;
    color: #999999;
}

.template-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    overflow-y: auto;
    padding-right: 8px;
    flex: 1;
    min-height: 0;
}

.template-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-item:hover {
    background: #FFF0F0;
    border-color: rgba(230, 0, 18, 0.2);
    transform: translateX(4px);
}

.template-item.active {
    background: rgba(230, 0, 18, 0.06);
    border-color: #E60012;
    box-shadow: 0 0 0 1px rgba(230, 0, 18, 0.1);
}

.template-item-name {
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 500;
    color: #333333;
}

.template-item-tag {
    font-size: 11px;
    color: #E60012;
    background: rgba(230, 0, 18, 0.08);
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

/* 滚动条样式 */
.template-list::-webkit-scrollbar {
    width: 6px;
}

.template-list::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 3px;
}

.template-list::-webkit-scrollbar-thumb {
    background: #DDD;
    border-radius: 3px;
}

.template-list::-webkit-scrollbar-thumb:hover {
    background: #CCC;
}

.projects-display::-webkit-scrollbar {
    width: 6px;
}

.projects-display::-webkit-scrollbar-track {
    background: transparent;
}

.projects-display::-webkit-scrollbar-thumb {
    background: #DDD;
    border-radius: 3px;
}

/* 响应式 */
@media (max-width: 768px) {
    .projects-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        height: auto;
    }

    .projects-display {
        position: static;
        max-height: none;
        order: 2;
        min-height: 300px;
    }

    .projects-library {
        order: 1;
        min-height: 300px;
    }

    .template-list {
        grid-template-columns: repeat(2, 1fr);
        max-height: 400px;
    }

    .display-empty {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .projects-container {
        padding-top: 52px;
    }

    .projects-display,
    .projects-library {
        padding: 14px;
    }

    .template-item {
        padding: 10px 12px;
    }

    .template-item-name {
        font-size: 13px;
    }

    .template-item-tag {
        font-size: 10px;
    }
}

/* ===================================
   Service Page Styles - 专业服务页面
   =================================== */

body.service-page {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background-color: #FFFFFF;
    min-height: 100vh;
    display: block;
    padding-bottom: 0;
}

html:has(body.service-page) {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* 页面标题区 */
.service-header {
    padding-top: clamp(60px, 8vh, 80px);
    padding-bottom: clamp(24px, 3vh, 36px);
    text-align: center;
}

.service-tagline {
    font-size: clamp(12px, 1.4vw, 14px);
    color: #666666;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: 500;
}

.service-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.service-subtitle {
    font-size: clamp(14px, 1.6vw, 16px);
    color: #666666;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 双模部署对比区 */
.deploy-section {
    padding: 0 0 clamp(32px, 4vh, 48px);
}

.deploy-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.deploy-card {
    padding: clamp(24px, 3vh, 36px);
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    opacity: 0;
}

.deploy-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.deploy-card:first-child {
    transform: translateX(-30px);
}

.deploy-card:last-child {
    transform: translateX(30px);
}

.deploy-card:hover {
    border-color: #FFE0E0;
    box-shadow: 0 8px 24px rgba(230, 0, 18, 0.08);
}

.deploy-card:hover .deploy-icon {
    transform: scale(1.05);
}

.deploy-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.deploy-icon svg {
    width: 100%;
    height: 100%;
}

.deploy-title {
    font-size: clamp(16px, 1.8vw, 18px);
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.deploy-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tag-red {
    color: #E60012;
    border: 1px solid #E60012;
}

.tag-gray {
    color: #666666;
    border: 1px solid #999999;
}

.deploy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.deploy-list li {
    font-size: clamp(12px, 1.3vw, 14px);
    color: #666666;
    line-height: 1.8;
    padding-left: 12px;
    position: relative;
}

.deploy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #E60012;
    opacity: 0.5;
}

.deploy-footer {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 10px 16px;
    background: #FAFAFA;
    border-radius: 6px;
    text-align: center;
}

.deploy-footer p {
    font-size: 12px;
    color: #666666;
    letter-spacing: 0.5px;
}

/* 安全与隔离承诺区 */
.security-section {
    padding: 0 0 clamp(80px, 10vh, 120px);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.security-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: clamp(16px, 2vh, 24px);
    background: #FAFAFA;
    border-radius: 8px;
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateY(15px);
}

.security-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.security-card:hover {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.security-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.security-icon svg {
    width: 100%;
    height: 100%;
}

.security-card:hover .security-icon svg path,
.security-card:hover .security-icon svg rect,
.security-card:hover .security-icon svg circle {
    fill: #E60012;
}

.security-text {
    flex: 1;
}

.security-title {
    font-size: clamp(13px, 1.4vw, 14px);
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.security-desc {
    font-size: clamp(11px, 1.2vw, 12px);
    color: #666666;
    line-height: 1.6;
}

/* 底部导航栏在 service 页面的特殊样式 */
.service-nav {
    background: #FFFFFF;
    box-shadow: 0 -1px 0 #F0F0F0;
}

.service-nav .nav-item {
    color: #8B0000;
}

.service-nav .nav-item:hover {
    color: #E60012;
}

.service-nav .nav-item.active {
    color: #E60012;
}

/* 入场动画 */
@keyframes serviceFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-header {
    animation: serviceFadeIn 0.5s ease-out;
}

/* 部署卡片滑入动画 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.deploy-card:first-child {
    animation: slideInLeft 0.5s ease-out 0.2s forwards;
}

.deploy-card:last-child {
    animation: slideInRight 0.5s ease-out 0.3s forwards;
}

/* 安全卡片上浮动画 */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.security-card:nth-child(1) { animation: floatUp 0.4s ease-out 0.4s forwards; }
.security-card:nth-child(2) { animation: floatUp 0.4s ease-out 0.5s forwards; }
.security-card:nth-child(3) { animation: floatUp 0.4s ease-out 0.6s forwards; }
.security-card:nth-child(4) { animation: floatUp 0.4s ease-out 0.7s forwards; }

/* ===================================
   Responsive: 专业服务页面移动端适配
   =================================== */
@media (max-width: 768px) {
    .service-header {
        padding-top: 60px;
    }

    .service-title {
        font-size: 22px;
    }

    .service-subtitle {
        font-size: 13px;
    }

    .deploy-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .deploy-card:first-child,
    .deploy-card:last-child {
        transform: translateY(20px);
    }

    .deploy-card:first-child {
        animation: serviceFadeIn 0.5s ease-out 0.2s forwards;
    }

    .deploy-card:last-child {
        animation: serviceFadeIn 0.5s ease-out 0.3s forwards;
    }

    .security-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .service-header {
        padding-top: 52px;
    }

    .service-tagline {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .service-title {
        font-size: 20px;
    }

    .service-subtitle {
        font-size: 12px;
    }

    .deploy-card {
        padding: 20px;
    }

    .deploy-icon {
        width: 48px;
        height: 48px;
    }

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

    .deploy-list li {
        font-size: 12px;
    }

    .security-card {
        padding: 14px;
    }

    .security-icon {
        width: 28px;
        height: 28px;
    }

    .security-title {
        font-size: 13px;
    }

    .security-desc {
        font-size: 11px;
    }
}

/* ===================================
   Cases Page Styles - 使用案例页面
   =================================== */

/* 案例页面基础样式 - 固定不滚动 */
body.cases-page {
    height: 100vh !important;
    overflow: hidden !important;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

html:has(body.cases-page) {
    height: 100vh !important;
    overflow: hidden !important;
}

/* 案例页面主内容区 */
.cases-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 页面标题区 */
.cases-header {
    flex-shrink: 0;
    padding-top: clamp(32px, 5vh, 48px);
    padding-bottom: clamp(8px, 1.5vh, 12px);
    text-align: center;
}

.cases-title {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    color: #000000;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.cases-subtitle {
    font-size: clamp(13px, 1.5vw, 15px);
    color: #666666;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 案例画廊布局 */
.cases-gallery {
    flex: 1;
    min-height: 0;
    padding: clamp(8px, 1.5vh, 16px) 0 clamp(120px, 15vh, 160px);
    overflow-y: auto;
}

.gallery-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

/* ===================================
   左侧：结果展示区 (70%)
   =================================== */
.gallery-showcase {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    padding: clamp(16px, 2.5vh, 24px);
    transition: opacity 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* 展示区标题 - 新布局：左侧标题 + 右侧行动链接 */
.showcase-header {
    flex-shrink: 0;
    margin-bottom: clamp(12px, 1.5vh, 16px);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.showcase-header-left {
    flex: 1;
    min-width: 0;
}

.showcase-title {
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
    line-height: 1.3;
}

.showcase-value {
    font-size: clamp(12px, 1.3vw, 13px);
    color: #666666;
    line-height: 1.5;
}

/* 标题右侧"查看实现过程"链接 */
.showcase-action-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    font-size: clamp(12px, 1.3vw, 14px);
    color: #E60012;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #E60012;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.showcase-action-link:hover {
    background: #E60012;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.25);
}

.showcase-action-link:active {
    transform: scale(0.97);
}

/* 结果预览区 */
.showcase-preview {
    position: relative;
    margin-bottom: clamp(8px, 1vh, 12px);
    flex: 1 1 auto;
    min-height: 400px;
    max-height: 600px;
    overflow: auto;
}

.file-type-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #E60012;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #F5F5F5;
    border: 2px dashed #D0D0D0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 3vh, 32px);
    transition: all 0.3s ease;
}

.placeholder-icon {
    width: clamp(40px, 5vw, 56px);
    height: clamp(40px, 5vw, 56px);
    margin-bottom: 12px;
    opacity: 0.6;
}

.placeholder-text {
    font-size: clamp(12px, 1.3vw, 14px);
    color: #999999;
    text-align: center;
}

/* 预览内容容器 */
.preview-content {
    width: 100%;
    height: 100%;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

/* PDF 预览框架 */
.pdf-preview-frame {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
    border-radius: 8px;
    background: #F5F5F5;
    transition: opacity 0.2s ease;
}

.pdf-preview-frame:hover {
    opacity: 0.9;
}

/* 透明点击层 - 覆盖在 PDF iframe 上方，允许滚动穿透 */
.pdf-click-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
    display: none;
    pointer-events: none;
}

/* 加载状态 */
.preview-loading {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    border-radius: 8px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #F0F0F0;
    border-top-color: #E60012;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 50px;
    font-size: 13px;
    color: #999999;
    white-space: nowrap;
}

/* 加载超时提示 */
.load-timeout-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #E60012;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 10;
}

.pdf-click-overlay.active {
    display: block;
}

/* 点击查看提示 */
.preview-click-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #E60012;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
    user-select: none;
}

.preview-click-hint.show {
    display: flex;
    opacity: 1;
}

.hint-icon {
    width: 16px;
    height: 16px;
    color: #E60012;
}

/* 查看详情按钮 - 预览框右下角 */
.preview-detail-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #E60012;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid rgba(230, 0, 18, 0.2);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 10;
    user-select: none;
    backdrop-filter: blur(8px);
}

.preview-detail-btn.active {
    display: flex;
    opacity: 1;
}

.preview-detail-btn:hover {
    background: #E60012;
    color: #FFFFFF;
    border-color: #E60012;
    box-shadow: 0 4px 14px rgba(230, 0, 18, 0.3);
    transform: translateY(-1px);
}

.preview-detail-btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 16px;
    height: 16px;
    color: currentColor;
    flex-shrink: 0;
}

/* ===================================
   详情弹窗样式
   =================================== */
.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
}

.detail-modal.active {
    display: flex;
}

.detail-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.detail-modal-content {
    position: relative;
    width: min(92vw, 1400px);
    height: min(88vh, 900px);
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
    z-index: 1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.detail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #F0F0F0;
    flex-shrink: 0;
    background: #FFFFFF;
}

.detail-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
}

.detail-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #F5F5F5;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.detail-modal-close:hover {
    background: #E8E8E8;
    color: #1A1A1A;
}

.detail-modal-close svg {
    width: 18px;
    height: 18px;
}

.detail-modal-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.detail-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 行动按钮区 */
.showcase-cta {
    flex-shrink: 0;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* 行动按钮区的"查看实现过程"链接 */
.showcase-cta .showcase-action-link {
    display: inline-flex;
    align-items: center;
    font-size: clamp(12px, 1.3vw, 14px);
    color: #E60012;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid #E60012;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    margin-top: 0;
}

.showcase-cta .showcase-action-link:hover {
    background: #E60012;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.25);
}

.showcase-cta .showcase-action-link:active {
    transform: scale(0.97);
}

.cta-note {
    font-size: 11px;
    color: #999999;
    line-height: 1.4;
    margin: 0;
}

/* ===================================
   右侧：案例缩略图列表 (30%)
   =================================== */
.gallery-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.case-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* 案例列表项 */
.case-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    height: 64px;
    padding: 0 10px;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.case-item:hover {
    background-color: #F5F5F5;
}

.case-item:hover .case-name {
    color: #000000;
}

/* 选中状态 */
.case-item.active {
    background-color: #FFF0F0;
    border-left-color: #E60012;
}

.case-item.active .case-name {
    color: #E60012;
    font-weight: 600;
}

.case-item.active .case-thumbnail {
    border-color: #E60012;
    background-color: #FFFFFF;
}

/* 缩略图 - 优化样式 */
.case-thumbnail {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
    border: 1px solid #F0D0D0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* 所有案例缩略图统一使用红色主题 */
.case-thumbnail svg path,
.case-thumbnail svg circle,
.case-thumbnail svg rect {
    stroke: #E60012;
    fill: none;
}

.case-thumbnail svg circle[fill] {
    fill: rgba(230, 0, 18, 0.3);
}

.case-item.active .case-thumbnail {
    background: linear-gradient(135deg, #E60012 0%, #CC0010 100%);
    border-color: #E60012;
}

.thumbnail-icon {
    width: 24px;
    height: 24px;
}

/* 选中状态下图标变白 */
.case-item.active .thumbnail-icon {
    color: #FFFFFF;
}

.case-item.active .thumbnail-icon path,
.case-item.active .thumbnail-icon circle,
.case-item.active .thumbnail-icon rect {
    stroke: #FFFFFF;
    fill: none;
}

/* 子案例列表 */
.subcase-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.subcase-item {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #666666;
    background: #FAFAFA;
    margin-bottom: 4px;
}

.subcase-item:hover {
    background: #F0F0F0;
    color: #333333;
}

.subcase-item.active {
    background: linear-gradient(135deg, #E60012 0%, #cc0010 100%);
    color: #FFFFFF;
    font-weight: 600;
    border-left: 3px solid #E60012;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.3);
}

/* 案例信息 */
.case-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.case-name {
    font-size: 12px;
    color: #1A1A1A;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.case-desc {
    font-size: 10px;
    color: #999999;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================================
   响应式：案例页面移动端适配
   =================================== */
@media (max-width: 1024px) {
    .gallery-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-nav {
        position: static;
        order: -1;
    }

    .case-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .case-item {
        flex-shrink: 0;
        width: 160px;
        height: 72px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px 8px 0 0;
        padding: 8px 12px;
    }

    .case-item.active {
        border-left-color: transparent;
        border-bottom-color: #E60012;
        background-color: #FFF0F0;
    }

    .case-item:hover {
        background-color: transparent;
    }

    .case-item:hover .case-name {
        color: #1A1A1A;
    }

    .case-item.active .case-name {
        color: #E60012;
    }

    .showcase-preview {
        min-height: 250px;
    }

    .preview-placeholder {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .cases-header {
        padding-top: 60px;
    }

    .cases-title {
        font-size: 20px;
    }

    .cases-subtitle {
        font-size: 13px;
    }

    .gallery-showcase {
        padding: clamp(16px, 2.5vh, 24px);
    }

    .showcase-title {
        font-size: 20px;
    }

    .showcase-value {
        font-size: 13px;
    }

    .preview-placeholder {
        padding: 24px;
        min-height: 200px;
    }

    .placeholder-icon {
        width: 40px;
        height: 40px;
    }

    .placeholder-text {
        font-size: 12px;
    }

    .cta-button-primary {
        padding: 10px 24px;
        font-size: 14px;
    }

    .cta-note {
        font-size: 11px;
    }

    .case-item {
        width: 140px;
        height: 68px;
    }

    .case-thumbnail {
        width: 40px;
        height: 40px;
    }

    .thumbnail-icon {
        width: 24px;
        height: 24px;
    }

    .case-name {
        font-size: 13px;
    }

    .case-desc {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .cases-header {
        padding-top: 52px;
    }

    .cases-title {
        font-size: 18px;
    }

    .cases-subtitle {
        font-size: 12px;
    }

    .showcase-title {
        font-size: 18px;
    }

    .showcase-value {
        font-size: 12px;
    }

    .preview-placeholder {
        padding: 16px;
        min-height: 160px;
    }

    .placeholder-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 12px;
    }

    .placeholder-text {
        font-size: 11px;
    }

    .file-type-label {
        font-size: 10px;
        padding: 3px 8px;
    }

    .cta-button-primary {
        padding: 10px 20px;
        font-size: 13px;
    }

    .case-item {
        width: 120px;
        height: 64px;
        padding: 6px 10px;
    }

    .case-thumbnail {
        width: 36px;
        height: 36px;
    }

    .thumbnail-icon {
        width: 20px;
        height: 20px;
    }

    .case-name {
        font-size: 12px;
    }

    .case-desc {
        font-size: 10px;
    }
}

/* ===================================
   数据采集快照卡片样式
   =================================== */
.data-snapshot-card {
    margin-top: 16px;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    overflow: hidden;
}

.snapshot-header {
    padding: 10px 14px;
    background: #F5F5F5;
    border-bottom: 1px solid #E8E8E8;
}

.snapshot-badge {
    font-size: 12px;
    color: #666666;
    font-weight: 500;
}

.snapshot-body {
    padding: 14px;
}

.snapshot-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 12px 0;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.task-table thead {
    background: #F0F0F0;
}

.task-table th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #333333;
    font-size: 11px;
}

.task-table td {
    padding: 7px 10px;
    border-top: 1px solid #E8E8E8;
    color: #555555;
}

.task-table tbody tr:hover {
    background: rgba(230, 0, 18, 0.03);
}

.status-check {
    color: #28C840;
    font-weight: 600;
}

/* ===================================
   反幻觉校验自查表卡片样式
   =================================== */
.validation-card {
    margin-top: 16px;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    overflow: hidden;
}

.validation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #F0FFF0;
    border-bottom: 1px solid #E8E8E8;
}

.validation-badge {
    font-size: 12px;
    color: #333333;
    font-weight: 600;
}

.validation-status {
    font-size: 12px;
    color: #28C840;
    font-weight: 600;
}

.validation-body {
    padding: 14px;
}

.validation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.validation-table thead {
    background: #F0F0F0;
}

.validation-table th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #333333;
    font-size: 11px;
}

.validation-table td {
    padding: 6px 10px;
    border-top: 1px solid #E8E8E8;
    color: #555555;
}

.validation-table tbody tr:hover {
    background: rgba(230, 0, 18, 0.03);
}

.status-pass {
    color: #28C840;
    font-weight: 600;
}

.status-na {
    color: #FEBC2E;
    font-weight: 500;
}

.validation-summary {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(40, 200, 64, 0.08);
    border-radius: 6px;
}

.summary-text {
    font-size: 11px;
    color: #333333;
    margin: 0;
    line-height: 1.5;
}

/* ===================================
   文档结构预览卡片样式
   =================================== */
.doc-structure-card {
    margin-top: 16px;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    overflow: hidden;
}

.structure-header {
    padding: 10px 14px;
    background: #F5F5F5;
    border-bottom: 1px solid #E8E8E8;
}

.structure-badge {
    font-size: 12px;
    color: #666666;
    font-weight: 500;
}

.structure-body {
    padding: 14px;
}

.structure-title {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 12px 0;
}

.structure-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tree-root {
    padding: 6px 0;
    font-size: 12px;
    color: #333333;
}

.tree-icon {
    margin-right: 6px;
}

.tree-label {
    font-weight: 500;
}

.tree-children {
    list-style: none;
    padding-left: 20px;
    margin: 4px 0 0 0;
}

.tree-children li {
    padding: 3px 0;
    font-size: 11px;
    color: #666666;
}

.tree-children li .tree-icon {
    font-size: 10px;
}

/* ===================================
   落盘交付卡片样式
   =================================== */
.delivery-card {
    margin-top: 16px;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    overflow: hidden;
}

.delivery-header {
    padding: 10px 14px;
    background: #FFF5F5;
    border-bottom: 1px solid #E8E8E8;
}

.delivery-badge {
    font-size: 12px;
    color: #E60012;
    font-weight: 600;
}

.delivery-body {
    padding: 14px;
}

.file-path {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
}

.path-label {
    font-size: 12px;
    color: #666666;
    margin-right: 4px;
}

.path-code {
    font-size: 12px;
    color: #E60012;
    font-family: 'SF Mono', 'Menlo', monospace;
    background: rgba(230, 0, 18, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
}

.delivery-features {
    margin-bottom: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 12px;
    color: #333333;
    border-bottom: 1px solid #F0F0F0;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
}

.chat-example {
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
}

.example-title {
    font-size: 11px;
    color: #999999;
    margin: 0 0 10px 0;
}

.chat-bubble {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.chat-bubble.user {
    background: #F0F0F0;
    color: #333333;
    margin-left: 20px;
}

.chat-bubble.agent {
    background: rgba(230, 0, 18, 0.08);
    color: #333333;
    margin-right: 20px;
}

.chat-bubble p {
    margin: 0;
}

/* ===================================
   响应式：新卡片样式移动端适配
   =================================== */
@media (max-width: 768px) {
    .data-snapshot-card,
    .validation-card,
    .doc-structure-card,
    .delivery-card {
        margin-top: 12px;
    }

    .task-table,
    .validation-table {
        font-size: 10px;
    }

    .task-table th,
    .validation-table th {
        padding: 6px 8px;
    }

    .task-table td,
    .validation-table td {
        padding: 5px 8px;
    }

    .structure-tree,
    .tree-children {
        font-size: 11px;
    }

    .chat-bubble {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .snapshot-badge,
    .validation-badge,
    .delivery-badge,
    .structure-badge {
        font-size: 11px;
    }

    .task-table th,
    .validation-table th {
        font-size: 10px;
    }

    .task-table td,
    .validation-table td {
        font-size: 10px;
    }

    .summary-text {
        font-size: 10px;
    }

    .feature-item {
        font-size: 11px;
    }

    .path-code {
        font-size: 11px;
    }
}

/* ===================================
   落盘截图样式
   =================================== */
.delivery-screenshot {
    margin-bottom: 14px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E8E8E8;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===================================
   完整文档预览样式
   =================================== */
.doc-preview-section {
    margin-top: 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E8E8E8;
    background: #FAFAFA;
}

.preview-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #F5F5F5;
    border-bottom: 1px solid #E8E8E8;
}

.preview-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

.preview-file-name {
    font-size: 12px;
    color: #666666;
}

.doc-preview-content {
    background: #FFFFFF;
}

.doc-preview-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FAFAFA;
    border-bottom: 1px solid #F0F0F0;
}

.doc-preview-body {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.doc-preview-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #333333;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    background: transparent;
    padding: 0;
    border: none;
}

.doc-preview-text code {
    font-family: inherit;
    font-size: inherit;
    background: transparent;
    padding: 0;
    color: inherit;
}

/* 文档预览滚动条样式 */
.doc-preview-body::-webkit-scrollbar {
    width: 6px;
}

.doc-preview-body::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 3px;
}

.doc-preview-body::-webkit-scrollbar-thumb {
    background: #DDD;
    border-radius: 3px;
}

.doc-preview-body::-webkit-scrollbar-thumb:hover {
    background: #CCC;
}

/* ===================================
   渲染后 Markdown 样式
   =================================== */
.md-rendered {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.7;
    color: #333333;
}

.md-rendered h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 20px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #E8E8E8;
}

.md-rendered h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin: 16px 0 8px 0;
}

.md-rendered p {
    margin: 8px 0;
    color: #555555;
}

.md-rendered ul,
.md-rendered ol {
    margin: 8px 0;
    padding-left: 20px;
}

.md-rendered li {
    margin: 4px 0;
    color: #555555;
}

.md-rendered li strong {
    color: #333333;
}

.md-rendered .md-blockquote {
    background: rgba(230, 0, 18, 0.03);
    border-left: 3px solid #E60012;
    padding: 10px 14px;
    margin: 12px 0;
    border-radius: 0 6px 6px 0;
}

.md-rendered .md-blockquote p {
    margin: 4px 0;
    font-size: 11px;
    color: #666666;
}

.md-rendered .md-hr {
    border: none;
    border-top: 1px solid #E8E8E8;
    margin: 16px 0;
}

.md-rendered .md-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 11px;
    overflow-x: auto;
    display: block;
}

.md-rendered .md-table thead {
    background: #F5F5F5;
}

.md-rendered .md-table th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #333333;
    border-bottom: 2px solid #E8E8E8;
    white-space: nowrap;
}

.md-rendered .md-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #F0F0F0;
    color: #555555;
    white-space: nowrap;
}

.md-rendered .md-table tbody tr:hover {
    background: rgba(230, 0, 18, 0.03);
}

.md-rendered .md-table strong {
    color: #333333;
}

.md-rendered .md-list {
    list-style: none;
    padding-left: 0;
}

.md-rendered .md-list li {
    position: relative;
    padding-left: 16px;
}

.md-rendered .md-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #E60012;
    border-radius: 50%;
    opacity: 0.6;
}

.md-rendered .md-list-ol {
    list-style: decimal;
    padding-left: 20px;
}

.md-rendered .md-list-ol li {
    margin: 6px 0;
}

/* 表格横向滚动容器 */
.md-rendered .md-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 表格滚动条样式 */
.md-rendered .md-table::-webkit-scrollbar {
    height: 4px;
}

.md-rendered .md-table::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 2px;
}

.md-rendered .md-table::-webkit-scrollbar-thumb {
    background: #DDD;
    border-radius: 2px;
}

/* ===================================
   响应式：文档预览移动端适配
   =================================== */
@media (max-width: 768px) {
    .delivery-screenshot {
        margin-bottom: 12px;
    }

    .doc-preview-section {
        margin-top: 12px;
    }

    .preview-section-header {
        padding: 8px 12px;
    }

    .preview-section-title {
        font-size: 12px;
    }

    .preview-file-name {
        font-size: 11px;
    }

    .md-rendered {
        padding: 12px;
        max-height: 300px;
        font-size: 11px;
    }

    .md-rendered h2 {
        font-size: 14px;
    }

    .md-rendered h3 {
        font-size: 13px;
    }

    .md-rendered .md-table {
        font-size: 10px;
    }

    .md-rendered .md-table th,
    .md-rendered .md-table td {
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .doc-preview-titlebar {
        padding: 10px 12px;
    }

    .titlebar-dots {
        gap: 4px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .titlebar-filename {
        font-size: 11px;
    }

    .md-rendered {
        padding: 10px;
        max-height: 250px;
        font-size: 10px;
        line-height: 1.6;
    }

    .md-rendered h2 {
        font-size: 13px;
        margin: 16px 0 8px 0;
    }

    .md-rendered h3 {
        font-size: 12px;
    }

    .md-rendered .md-blockquote {
        padding: 8px 10px;
    }

    .md-rendered .md-blockquote p {
        font-size: 10px;
    }

    .md-rendered .md-table {
        font-size: 9px;
    }

    .md-rendered .md-table th,
    .md-rendered .md-table td {
        padding: 4px 6px;
    }
}
