/* ============================================
   多端产品页面 - 公共样式
   ============================================ */

/* ---------- 产品中心 ---------- */
.product-center {
    width: 100%;
    padding: 80px 0 60px;
    background: #ffffff;
    box-sizing: border-box;
}
.product-center .pc-inner {
    width: 1400px;
    margin: 0 auto;
    position: relative;
}
.product-center .pc-title {
    font-size: 36px;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: 0;
}
.product-center .pc-subtitle {
    font-size: 16px;
    color: #888;
    text-align: center;
    margin-top: 16px;
}

/* ---------- 产品卡片组(手风琴) ---------- */
.pc-cards {
    margin-top: 48px;
    display: flex;
    gap: 24px;
    position: relative;
}
.pc-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    flex: 1;
    min-height: 446px;
    display: flex;
    align-items: flex-end;
}
.pc-card .pc-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.pc-card:hover .pc-card-bg {
    transform: scale(1.03);
}
.pc-card .pc-card-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
}
.pc-card .pc-card-info {
    position: relative;
    z-index: 2;
    padding: 16px 20px;
    color: #fff;
    width: 100%;
    transition: background-color 0.5s ease;
}
/* ---------- 焦点态文字: 标题与副标题上下两行 ---------- */
.pc-card .pc-card-focus {
    display: none;
}
.pc-card .pc-card-focus .pc-card-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}
.pc-card .pc-card-focus .pc-card-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}
/* 焦点块内最后一个元素不留底部间距 */
.pc-card .pc-card-focus > *:last-child {
    margin-bottom: 0;
}

/* ---------- 非焦点态文字: 标题 / 副标题 / 详情 依次竖排 ---------- */
.pc-card .pc-card-nf-title {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 6px;
}
.pc-card .pc-card-nf-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}
.pc-card .pc-card-nf-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 18px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
/* 非焦点块内最后一个元素不留底部间距 */
.pc-card .pc-card-nf > *:last-child {
    margin-bottom: 0;
}

/* 激活态 - 大卡片: 宽度恒占容器 56%, 其余卡片平分剩余空间(三栏/二栏/多栏一致) */
.pc-card.active {
    flex: 0 0 56%;
}
.pc-card.active .pc-card-mask {
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0) 100%);
}

/* 展开态 - 毛玻璃, 只显示焦点文字 */
.pc-card.active .pc-card-info {
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
            backdrop-filter: blur(18px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.pc-card.active .pc-card-focus {
    display: block;
}
.pc-card.active .pc-card-nf {
    display: none;
}

/* 收缩态 - 遮罩铺满整张卡; 信息区上下居中, 只显示非焦点文字 */
.pc-card:not(.active) {
    align-items: center;
}
.pc-card:not(.active) .pc-card-mask {
    /* 底色由后台栏目变量「卡片底色」输出为 --pc-card-collapsed-bg; 未配置时兜底半透明黑 */
    background: var(--pc-card-collapsed-bg, rgba(0, 0, 0, 0.45));
}

/* 非焦点标题竖向排列 (卡片多时用, 由「非焦点竖向」勾选框控制)
   文字从上到下 = 相当于横排的从左到右; 居上 = 相当于横排的居左
   水平方向居中, 与设计稿一致 */
.pc-card.is-vertical:not(.active) {
    align-items: flex-start;
}
.pc-card.is-vertical:not(.active) .pc-card-info {
    padding-top: 40px;
}
.pc-card.is-vertical:not(.active) .pc-card-nf {
    text-align: center;
}
.pc-card.is-vertical:not(.active) .pc-card-nf-title {
    display: inline-block;
    writing-mode: vertical-rl;
    margin-bottom: 0;
    line-height: 1.1;
    letter-spacing: 2px;
}

/* ---------- 黄色下划线指示 ---------- */
.pc-indicator {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    margin-top: 32px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.pc-indicator .bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc((100% - 48px) / 3);
    background: #fec901;
    border-radius: 2px;
    transition: transform 0.5s ease;
}

/* ============================================
   技术栈
   ============================================ */
.tech-stack {
    width: 100%;
    padding: 80px 0 70px;
    background: #f8f8f8;
    box-sizing: border-box;
    overflow: hidden;
}
.tech-stack .ts-inner {
    width: 1400px;
    margin: 0 auto;
    position: relative;
}
.tech-stack .ts-title {
    font-size: 32px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
}
.tech-stack .ts-subtitle {
    font-size: 15px;
    color: #888;
    text-align: center;
    margin-top: 14px;
    line-height: 26px;
}

/* 技术栈面板容器 */
.ts-panels {
    position: relative;
    margin-top: 48px;
    min-height: 460px;
}
.ts-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateX(40px);
}
.ts-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.ts-panel.exit {
    opacity: 0;
    transform: translateX(-40px);
}

/* 技术栈卡片网格 */
.ts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.ts-item {
    display: flex;
    gap: 18px;
    padding: 28px 26px;
    background: #ffffff;
    border-radius: 8px;
    transition: background 0.3s ease;
}
.ts-item:hover {
    background: #fbfbfb;
}
.ts-item .ts-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}
.ts-item .ts-icon svg {
    width: 22px;
    height: 22px;
    fill: #000;
}
/* 后台自定义上传了图标: 去掉底色, 图片填满图标框 */
.ts-item .ts-icon.has-img {
    background: none;
}
.ts-item .ts-icon.has-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ts-item .ts-text .ts-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.ts-item .ts-text .ts-item-desc {
    font-size: 13px;
    color: #888;
    line-height: 22px;
}

/* ============================================
   应用场景
   ============================================ */
.scenario {
    width: 100%;
    padding: 70px 0 100px;
    background: #f8f8f8;
    box-sizing: border-box;
    overflow: hidden;
}
.scenario .sc-inner {
    width: 1400px;
    margin: 0 auto;
}
.scenario .sc-title {
    font-size: 32px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
}
.scenario .sc-subtitle {
    font-size: 15px;
    color: #888;
    text-align: center;
    margin-top: 14px;
}

/* 场景面板容器 */
.sc-panels {
    position: relative;
    margin-top: 48px;
    min-height: 280px;
}
.sc-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}
.sc-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 场景布局:左图 + 右文 */
.sc-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
}
.sc-layout .sc-img {
    width: 45%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.sc-layout .sc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sc-layout .sc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
}
.sc-layout .sc-info .sc-point {
    font-size: 16px;
    color: #797979;
    line-height: 28px;
    position: relative;
    padding-left: 18px;
}
/* 圆点颜色取自设计稿实测 #707070 */
.sc-layout .sc-info .sc-point::before {
    content: '·';
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 22px;
    color: #707070;
    font-weight: bold;
}
