/* 导入第一款自定义字体：联盟起艺卢帅正锐黑体 (主标题使用) */
@font-face {
    font-family: 'LianMengQiYiLuShuaiZhengRuiHeiTi';
    src: url('assets/fonts/LianMengQiYiLuShuaiZhengRuiHeiTi-2.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* 导入第二款自定义字体：阿里巴巴普惠体 H (二级标题使用) */
@font-face {
    font-family: 'AlibabaPuHuiTi-Heavy';
    src: url('assets/fonts/Alibaba-PuHuiTi-Heavy.woff2') format('woff2'),
         url('assets/fonts/Alibaba-PuHuiTi-Heavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* 主标题样式（与影像叙事页完全一致，采用联盟起艺卢帅正锐黑体 + 纯白实色） */
.custom-font-title {
    font-family: 'LianMengQiYiLuShuaiZhengRuiHeiTi', var(--font-ui) !important;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    font-weight: 900;
    margin: 0 0 1.2rem;
    color: #ffffff !important;
    -webkit-text-stroke: 0.8px #ffffff;
    line-height: 1.3;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
}

.custom-font-title:hover {
    transform: scale(1.02);
    text-shadow: 0 6px 32px rgba(227, 214, 195, 0.15);
}

/* 统一所有二级标题样式（与影像叙事页一致，采用阿里巴巴普惠体 Heavy 900） */
.portfolio-sub-head h2,
.template-showcase-copy h2,
.automotive-workflow-section h2,
.cpic-section-title,
.panel-title-premium,
.deck-header-left h2,
.project-card h3,
.doc-h2 {
    font-family: 'AlibabaPuHuiTi-Heavy', var(--font-ui) !important;
    font-size: clamp(1.4rem, 2.4vw, 2.1rem) !important;
    letter-spacing: 0.08em !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-stroke: 0.3px #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

/* 卡片与文档内三级标题 */
.title-group h3,
.doc-h3 {
    font-family: 'AlibabaPuHuiTi-Heavy', var(--font-ui) !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    color: #ffffff !important;
}

/* 统一标签/Kicker小字样式（纯净高级白/灰排版） */
.portfolio-sub-head p,
.metric-label,
.panel-kicker,
.cpic-kicker-tag,
.deck-kicker,
.stack-kicker,
.card-kicker {
    color: var(--text-faint) !important;
    letter-spacing: 0.24em !important;
    font-size: var(--fs-kicker) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    margin-bottom: 0.6rem !important;
    display: block;
}

.car-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    margin-top: 1.8rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .car-hero-grid {
        grid-template-columns: 1fr;
    }
}

.car-video-box {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.car-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.car-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.car-gallery-card {
    position: relative;
    border-radius: 0.8rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.car-gallery-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.car-gallery-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.car-gallery-card:hover img {
    transform: scale(1.05);
}

.car-gallery-card .card-caption {
    padding: 0.6rem 0.8rem;
    font-size: 0.78rem;
    color: #d1d5db;
    background: #0a0b0e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.car-gallery-card .zoom-icon {
    font-size: 0.75rem;
    color: #ffffff;
    opacity: 0.85;
}

.agent-pipeline-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin: 1.8rem 0;
}

.agent-node-card {
    background: #0a0b0e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    padding: 1.25rem;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.agent-node-card:hover {
    border-color: rgba(78, 165, 127, 0.6);
    transform: translateY(-2px);
}

/* 懂车帝 3分钟车评视频生成工作流 专项排版 */
.automotive-workflow-section {
    margin-top: 4rem;
    margin-bottom: 2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    box-shadow: none;
    position: relative;
}

.automotive-workflow-section::before {
    display: none;
}

.automotive-workflow-section.reveal,
.cpic-skill-section.reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

.agent-node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-num-badge {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #4ea57f;
    background: rgba(78, 165, 127, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(78, 165, 127, 0.3);
}

.agent-node-title {
    font-family: 'AlibabaPuHuiTi-SemiBold', var(--font-ui);
    font-size: 1.05rem;
    color: #ffffff;
    margin: 0;
}

.agent-core-tag {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.agent-node-desc {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.tactics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.tactic-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.6rem;
    padding: 1.2rem;
}

.tactic-card.warning-border {
    border-left-color: rgba(255, 255, 255, 0.7);
}

.tactic-card h5 {
    font-size: 0.95rem;
    color: #ffffff;
    margin: 0 0 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tactic-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.6;
}

.badcase-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.badcase-tag {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 0.3rem;
}

/* Modal Lightbox */
.app-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.app-modal-box {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-modal-box img, .app-modal-box video {
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 0.8rem;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-modal-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.app-modal-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.app-modal-caption {
    margin-top: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

/* 极简 ASCII / 等宽技术风流程图 */
.ascii-flowchart-box {
    margin: 2rem 0;
    padding: 2rem 1.2rem;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: Consolas, "Courier New", monospace, monospace;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.ascii-top-box {
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    max-width: 95%;
}

.ascii-tree-stem {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
}

.ascii-cluster-box {
    width: 100%;
    max-width: 820px;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    padding: 1.4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

.ascii-cluster-title {
    font-size: 0.92rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 0.3rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ascii-branch-bar {
    width: 92%;
    height: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
}

.ascii-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.5rem 1rem;
    width: 100%;
    text-align: center;
}

.ascii-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem;
}

.ascii-arrow {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.ascii-item-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.ascii-item-desc {
    font-size: 0.8rem;
    color: #d1d5db;
    line-height: 1.45;
}

.ascii-item-sub {
    font-size: 0.74rem;
    color: #9ca3af;
    margin-top: 0.3rem;
    line-height: 1.35;
}

.ascii-output-bar {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
}

.flow-output-node {
    margin-top: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: #ffffff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* 纯净文档 Typography 样式 */
.doc-h2 {
    font-size: 1.3rem !important;
    color: #ffffff !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.4rem;
}

.doc-h3 {
    font-size: 1.1rem !important;
    color: #ffffff !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.8rem !important;
}

.doc-list {
    margin: 0.4rem 0 1rem 1.2rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
}

.doc-list li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.doc-sub-note {
    color: rgba(255, 255, 255, 0.68);
    margin-left: 1.2rem;
    font-size: 0.88rem;
}
