/* ============================================
   暖阳展示页样式
   复用主站设计系统（色彩变量、字号、深色模式）
   ============================================ */

/* === 顶栏 === */
.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
}

.showcase-title {
    font-size: var(--font-title);
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}

.showcase-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--cloud);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--charcoal);
    transition: all 0.2s;
}

.showcase-settings-btn:hover {
    background: var(--hairline);
}

/* === 介绍区 === */
.showcase-intro {
    background: var(--canvas);
    padding: var(--space-10) var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* LOGO 底图 - 居中，不铺满，自动适配 */
.intro-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45%;
    max-width: 280px;
    min-width: 120px;
    aspect-ratio: 1;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.intro-logo-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.intro-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.intro-name {
    font-size: 36px;
    font-weight: 800;
    color: var(--rausch);
    margin: 0 0 var(--space-2);
}

.intro-slogan {
    font-size: var(--font-large);
    color: var(--charcoal);
    margin: 0 0 var(--space-6);
    font-weight: 500;
}

.intro-desc {
    font-size: var(--font-body);
    color: var(--ash);
    line-height: 1.7;
    margin: 0 0 var(--space-6);
}

.intro-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

.intro-tag {
    padding: var(--space-2) var(--space-4);
    background: var(--cloud);
    border-radius: var(--radius-pill);
    font-size: var(--font-small);
    color: var(--charcoal);
    font-weight: 500;
}

/* === 特性区块 === */
.feature-section {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-10) var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-section.feature-alt {
    background: var(--cloud);
    flex-direction: row;
}

.feature-section:not(.feature-alt) {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-size: var(--font-title);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 var(--space-3);
}

.feature-desc {
    font-size: var(--font-body);
    color: var(--ash);
    line-height: 1.7;
    margin: 0 0 var(--space-2);
}

.feature-desc-sub {
    color: var(--mute);
    font-size: var(--font-small);
}

.feature-image {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.feature-image img {
    max-width: 100%;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* 统计数据 */
.feature-stats {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-5);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--rausch);
}

.stat-label {
    font-size: var(--font-small);
    color: var(--ash);
    margin-top: var(--space-1);
}

/* === 访问地址区 === */
.showcase-access {
    background: var(--canvas);
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

.access-heading {
    font-size: var(--font-title);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 var(--space-3);
}

.access-slogan {
    font-size: var(--font-large);
    color: var(--charcoal);
    margin: 0 0 var(--space-6);
}

.access-btn {
    display: inline-block;
    padding: var(--space-3) var(--space-8);
    background: var(--rausch);
    color: #fff;
    font-size: var(--font-large);
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.3);
}

.access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 56, 92, 0.4);
}

.access-url {
    font-size: var(--font-small);
    color: var(--mute);
    margin: var(--space-4) 0 0;
}

/* === 试玩区 === */
.showcase-demo {
    background: var(--cloud);
    padding: var(--space-8) var(--space-6) var(--space-10);
}

.demo-heading {
    text-align: center;
    font-size: var(--font-title);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 var(--space-2);
}

.demo-subheading {
    text-align: center;
    font-size: var(--font-small);
    color: var(--ash);
    margin: 0 0 var(--space-6);
}

/* === 设备切换栏 === */
.device-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.device-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    background: var(--canvas);
    border: 2px solid var(--hairline);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s;
    min-width: 90px;
}

.device-thumb:hover {
    border-color: var(--stone);
    transform: translateY(-2px);
}

.device-thumb.active {
    border-color: var(--rausch);
    background: rgba(255, 56, 92, 0.05);
}

.device-thumb-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.device-thumb-name {
    font-size: var(--font-micro);
    color: var(--charcoal);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.device-thumb.active .device-thumb-name {
    color: var(--rausch);
}

/* === 页面切换标签 === */
.page-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.page-tab {
    padding: var(--space-2) var(--space-5);
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    font-size: var(--font-small);
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.page-tab:hover {
    border-color: var(--stone);
}

.page-tab.active {
    background: var(--ink);
    color: var(--canvas);
    border-color: var(--ink);
}

/* === 设备展示区 === */
.device-stage {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 500px;
    padding: var(--space-4);
}

.device-frame {
    position: relative;
    display: inline-block;
    transition: opacity 0.3s;
}

.device-frame.switching {
    opacity: 0;
}

.device-img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.device-screen {
    position: absolute;
    overflow: hidden;
    background: #000;
}

.device-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 竖屏手机尺寸控制 */
.device-frame.portrait {
    max-height: 620px;
}

.device-frame.portrait .device-img {
    max-height: 620px;
    width: auto;
}

/* 横屏设备尺寸控制 */
.device-frame.landscape {
    max-width: 760px;
}

.device-frame.landscape .device-img {
    max-width: 760px;
}

/* === 设备信息 === */
.device-info {
    text-align: center;
    margin-top: var(--space-6);
}

.device-info-name {
    font-size: var(--font-large);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 var(--space-1);
}

.device-info-spec {
    font-size: var(--font-small);
    color: var(--ash);
    margin: 0;
}

/* === 底部 === */
.showcase-footer {
    background: var(--canvas);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    border-top: 1px solid var(--hairline);
}

.showcase-footer p {
    font-size: var(--font-small);
    color: var(--mute);
    margin: 0;
}

.footer-note {
    margin-top: var(--space-2) !important;
    font-size: var(--font-micro) !important;
    opacity: 0.7;
}

/* === 悬浮进入主站按钮 === */
.floating-home-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    background: var(--rausch);
    color: #fff;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 200;
    transition: all 0.25s;
    text-decoration: none;
}

.floating-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(255, 56, 92, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-home-btn:active {
    transform: translateY(-1px);
}

/* === 设置浮层 === */
.showcase-settings-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 300;
    opacity: 0;
    transition: opacity 0.3s;
}

.showcase-settings-overlay.active {
    display: block;
    opacity: 1;
}

.showcase-settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 85vw;
    height: 100vh;
    background: var(--canvas);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 301;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.showcase-settings-panel.active {
    transform: translateX(0);
}

/* === 响应式 === */
@media (max-width: 768px) {
    .showcase-header {
        padding: var(--space-3) var(--space-4);
    }

    .showcase-title {
        font-size: var(--font-large);
    }

    .intro-name {
        font-size: 28px;
    }

    /* 特性区块在移动端改为纵向排列 */
    .feature-section,
    .feature-section.feature-alt,
    .feature-section:not(.feature-alt) {
        flex-direction: column;
        gap: var(--space-5);
        padding: var(--space-8) var(--space-4);
    }

    .feature-content {
        width: 100%;
    }

    .feature-image {
        order: -1;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .feature-image img {
        max-height: 240px;
        max-width: 100%;
    }

    .feature-stats {
        justify-content: center;
        gap: var(--space-4);
    }

    .stat-num {
        font-size: 22px;
    }

    .device-thumb {
        min-width: 64px;
        padding: var(--space-2) var(--space-3);
    }

    .device-thumb-icon {
        width: 28px;
        height: 28px;
    }

    /* 竖屏设备：限制高度避免溢出屏幕 */
    .device-frame.portrait {
        max-height: 420px;
    }

    .device-frame.portrait .device-img {
        max-height: 420px;
        width: auto;
    }

    /* 横屏设备：限制宽度，等比缩放 */
    .device-frame.landscape {
        max-width: 100%;
    }

    .device-frame.landscape .device-img {
        max-width: 100%;
        height: auto;
    }

    /* 设备展示区：减小最小高度，增加横向溢出处理 */
    .device-stage {
        padding: var(--space-2);
        min-height: 320px;
        overflow-x: hidden;
        overflow-y: visible;
    }

    /* 设备选择栏横向滚动 */
    .device-selector {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-2);
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .device-selector::-webkit-scrollbar {
        display: none;
    }

    /* 页面标签换行处理 */
    .page-tabs {
        flex-wrap: wrap;
    }

    .floating-home-btn {
        bottom: 16px;
        left: 16px;
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 480px) {
    .device-selector {
        gap: var(--space-2);
    }

    .device-thumb {
        min-width: 56px;
        padding: var(--space-2);
    }

    .device-thumb-name {
        font-size: 10px;
    }

    .device-thumb-icon {
        width: 24px;
        height: 24px;
    }

    .device-frame.portrait {
        max-height: 360px;
    }

    .device-frame.portrait .device-img {
        max-height: 360px;
    }

    .device-stage {
        min-height: 280px;
        padding: var(--space-1);
    }

    .feature-image img {
        max-height: 200px;
    }

    .intro-name {
        font-size: 24px;
    }

    .intro-desc {
        font-size: 14px;
    }

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

    .demo-heading {
        font-size: 20px;
    }

    .access-heading {
        font-size: 20px;
    }

    .page-tab {
        padding: var(--space-1) var(--space-3);
        font-size: 12px;
    }
}


/* === 全局溢出保护 === */
.showcase-demo {
    overflow-x: hidden;
}

.device-frame {
    max-width: 100%;
}

.device-frame .device-img {
    max-width: 100%;
}


/* ============================================
   展示页皮肤适配
   ============================================ */

/* === 液态玻璃皮肤 === */
body[data-theme="liquid"] {
    background: #000000;
    color: #F7F7F7;
}

body[data-theme="liquid"] .showcase-header {
    background: rgba(25, 25, 25, 0.5);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="liquid"] .showcase-title {
    color: #F7F7F7;
}

body[data-theme="liquid"] .showcase-settings-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #E0E0E0;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-theme="liquid"] .showcase-settings-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* 介绍区 */
body[data-theme="liquid"] .showcase-intro {
    background: transparent;
}

body[data-theme="liquid"] .intro-name {
    color: var(--rausch);
    text-shadow: 0 0 40px rgba(255, 56, 92, 0.3);
}

body[data-theme="liquid"] .intro-slogan {
    color: #E0E0E0;
}

body[data-theme="liquid"] .intro-desc {
    color: #AAAAAA;
}

body[data-theme="liquid"] .intro-tag {
    background: rgba(255, 255, 255, 0.06);
    color: #E0E0E0;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 特性区块 */
body[data-theme="liquid"] .feature-section.feature-alt {
    background: rgba(255, 255, 255, 0.02);
}

body[data-theme="liquid"] .feature-title {
    color: #F7F7F7;
}

body[data-theme="liquid"] .feature-desc {
    color: #AAAAAA;
}

body[data-theme="liquid"] .feature-desc-sub {
    color: #888888;
}

body[data-theme="liquid"] .feature-image img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body[data-theme="liquid"] .stat-num {
    color: var(--rausch);
}

body[data-theme="liquid"] .stat-label {
    color: #AAAAAA;
}

/* 试玩区 */
body[data-theme="liquid"] .showcase-demo {
    background: rgba(255, 255, 255, 0.02);
}

body[data-theme="liquid"] .demo-heading {
    color: #F7F7F7;
}

body[data-theme="liquid"] .demo-subheading {
    color: #AAAAAA;
}

body[data-theme="liquid"] .device-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
}

body[data-theme="liquid"] .device-thumb:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme="liquid"] .device-thumb.active {
    border-color: var(--rausch);
    background: rgba(255, 56, 92, 0.1);
}

body[data-theme="liquid"] .device-thumb-name {
    color: #AAAAAA;
}

body[data-theme="liquid"] .device-thumb.active .device-thumb-name {
    color: var(--rausch);
}

body[data-theme="liquid"] .page-tab {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #AAAAAA;
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
}

body[data-theme="liquid"] .page-tab:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

body[data-theme="liquid"] .page-tab.active {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border-color: rgba(255, 255, 255, 0.9);
}

/* 访问地址区 */
body[data-theme="liquid"] .showcase-access {
    background: transparent;
}

body[data-theme="liquid"] .access-heading {
    color: #F7F7F7;
}

body[data-theme="liquid"] .access-slogan {
    color: #E0E0E0;
}

body[data-theme="liquid"] .access-url {
    color: #888888;
}

/* 底部 */
body[data-theme="liquid"] .showcase-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-theme="liquid"] .showcase-footer p {
    color: #888888;
}

/* 悬浮按钮 */
body[data-theme="liquid"] .floating-home-btn {
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* 设置面板 */
body[data-theme="liquid"] .showcase-settings-panel {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}

body[data-theme="liquid"] .showcase-settings-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body[data-theme="liquid"] .settings-title {
    color: #F7F7F7;
}

body[data-theme="liquid"] .settings-section-title {
    color: #E0E0E0;
}

body[data-theme="liquid"] .settings-row-name {
    color: #E0E0E0;
}

body[data-theme="liquid"] .settings-row-desc {
    color: #888888;
}

/* 设备信息 */
body[data-theme="liquid"] .device-info-name {
    color: #F7F7F7;
}

body[data-theme="liquid"] .device-info-spec {
    color: #AAAAAA;
}

/* === 经典回忆皮肤 === */
body[data-theme="classic"] {
    background: #F5F0E8;
}

body[data-theme="classic"] .showcase-header {
    background: #F5F0E8;
    border-bottom: 1px solid #D5CFC5;
}

body[data-theme="classic"] .feature-section.feature-alt {
    background: #EDE7DC;
}

body[data-theme="classic"] .showcase-demo {
    background: #EDE7DC;
}

body[data-theme="classic"] .showcase-footer {
    background: #F5F0E8;
    border-top: 1px solid #D5CFC5;
}

body[data-theme="classic"] .showcase-access {
    background: #F5F0E8;
}

body[data-theme="classic"] .device-thumb {
    background: #FFF8EE;
    border-color: #D5CFC5;
}

body[data-theme="classic"] .page-tab {
    background: #FFF8EE;
    border-color: #D5CFC5;
}
