/* ============================================
   PICOSSO 艺术画家居平台 主样式
   深色极简风格 · 响应式设计
   ============================================ */

/* CSS变量 */
:root {
    --color-bg: #ffffff;
    --color-bg-light: #141414;
    --color-bg-card: #1a1a1a;
    --color-text: #111111;
    --color-text-secondary: #666666;
    --color-text-muted: #666666;
    --color-accent: #e63946;
    --color-gold: #c9a962;
    --color-border: #eeeeee;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* 容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 通用元素 */
.highlight {
    color: var(--color-accent);
}

.badge-red {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-label {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 500;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.section-title.large {
    font-size: 56px;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-note {
    color: var(--color-text-muted);
    font-size: 14px;
}

.section-more {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.section-more:hover {
    color: var(--color-accent);
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin: 20px 0;
}

/* 按钮 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: 16px 32px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: white;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-border);
    padding: 14px 28px;
    font-size: 14px;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-link {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--color-accent);
}

/* ============================================
   顶部导航
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-text);
}

.search-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--color-text);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
}

/* ============================================
   首屏Banner
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-card {
    max-width: 560px;
    background-color: white;
    color: var(--color-bg);
    padding: 48px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.badge-text {
    font-size: 13px;
    color: var(--color-text-muted);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 1;
}

/* ============================================
   品牌背书
   ============================================ */
.brand-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--color-border);
}

.brand-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand-item {
    border-left: 2px solid var(--color-accent);
    padding-left: 20px;
}

.brand-label {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.brand-item p {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   特色推荐
   ============================================ */
.feature-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--color-border);
}

.feature-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background-color: var(--color-bg-card);
    overflow: hidden;
}

.feature-image {
    height: 500px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-desc {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.feature-note {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

/* ============================================
   六大珍藏系列
   ============================================ */
.series-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--color-border);
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.series-card {
    background-color: var(--color-bg-card);
    overflow: hidden;
    transition: var(--transition);
}

.series-card:hover {
    transform: translateY(-4px);
}

.series-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.series-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.series-card:hover .series-image img {
    transform: scale(1.05);
}

.series-num {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 14px;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.series-info {
    padding: 32px;
}

.series-en {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.series-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.series-desc {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.series-size {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ============================================
   十幅名画
   ============================================ */
.paintings-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--color-border);
}

.paintings-scroll {
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px;
    scrollbar-width: none;
}

.paintings-scroll::-webkit-scrollbar {
    display: none;
}

.paintings-track {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.painting-card {
    flex: 0 0 220px;
    height: 300px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.painting-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.painting-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.painting-card:hover .painting-overlay {
    transform: translateY(0);
    opacity: 1;
}

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

.painting-en {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--color-gold);
    margin-bottom: 4px;
}

.painting-overlay h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.painting-year {
    font-size: 12px;
    color: var(--color-text-muted);
}

.paintings-more {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   家居场景
   ============================================ */
.scenes-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--color-border);
}

.scenes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.scene-card {
    background-color: var(--color-bg-card);
    overflow: hidden;
}

.scene-image {
    height: 280px;
    overflow: hidden;
}

.scene-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-info {
    padding: 28px;
}

.scene-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.scene-desc {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.scene-link {
    font-size: 13px;
    color: var(--color-text-muted);
}

.scene-link:hover {
    color: var(--color-accent);
}

/* ============================================
   实景预览工具（核心）
   ============================================ */
.preview-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--color-border);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.feature-list li {
    color: var(--color-text-secondary);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

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

.preview-tool {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

/* 预览画布 */
.preview-canvas {
    position: relative;
    background-color: var(--color-bg-card);
    min-height: 600px;
    overflow: hidden;
    border-radius: 4px;
}

.scene-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.scene-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45%;
    max-width: 350px;
    z-index: 10;
    transition: var(--transition);
}

.mat-board {
    background-color: white;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.frame-border {
    padding: 8px;
    background-color: #c9a962;
}

.painting-display {
    overflow: hidden;
    background-color: white;
    height: 100%;
    box-sizing: border-box;
}

.painting-display img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.upload-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 12px 20px;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    z-index: 20;
}

.upload-btn:hover {
    background-color: var(--color-accent);
}

/* 控制面板 */
.preview-controls {
    background-color: var(--color-bg-card);
    padding: 24px;
    border-radius: 4px;
}

.control-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.control-tab {
    flex: 1;
    padding: 12px 8px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.control-tab.active {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
}

.control-tab:hover {
    color: var(--color-text);
}

.control-panel {
    display: none;
}

.control-panel.active {
    display: block;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.option-item {
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.option-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--transition);
}

.option-item span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.option-item.active img {
    border-color: var(--color-accent);
}

.option-item.active span {
    color: var(--color-text);
}

/* 边框预览 */
.frame-preview {
    width: 100%;
    aspect-ratio: 3/4;
    border: 2px solid transparent;
}

.frame-preview.gold {
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
}

.frame-preview.black {
    background: linear-gradient(135deg, #2a2a2a 0%, #000 100%);
}

.frame-preview.white {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.frame-preview.wood {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
}

.frame-preview.darkwood {
    background: linear-gradient(135deg, #4a3728 0%, #2c1810 100%);
}

.frame-preview.bronze {
    background: linear-gradient(135deg, #8b7355 0%, #5c4033 100%);
}

.frame-option.active .frame-preview {
    border-color: var(--color-accent);
}

.frame-option.active span {
    color: var(--color-text);
}

/* 卡纸预览 */
.mat-preview {
    width: 100%;
    aspect-ratio: 3/4;
    border: 2px solid transparent;
}

.mat-preview.white {
    background-color: #ffffff;
}

.mat-preview.cream {
    background-color: #f5f1e8;
}

.mat-preview.gray {
    background-color: #b8b8b8;
}

.mat-preview.black {
    background-color: #1a1a1a;
}

.mat-preview.dark {
    background-color: #2d2d2d;
}

.mat-option.active .mat-preview {
    border-color: var(--color-accent);
}

.mat-option.active span {
    color: var(--color-text);
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
    padding: 80px 0 40px;
    background-color: var(--color-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-license {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
}

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

.dot.red {
    background-color: var(--color-accent);
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--color-text);
}

.footer-contact p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ============================================
   响应式设计
   ============================================ */

/* 平板 */
@media (max-width: 1024px) {
    .section-title {
        font-size: 36px;
    }
    
    .section-title.large {
        font-size: 42px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .feature-card {
        grid-template-columns: 1fr;
    }
    
    .feature-image {
        height: 300px;
    }
    
    .preview-tool {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 手机 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--color-border);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-card {
        padding: 32px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-title.large {
        font-size: 32px;
    }
    
    .brand-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .brand-title {
        font-size: 28px;
    }
    
    .series-grid {
        grid-template-columns: 1fr;
    }
    
    .scenes-grid {
        grid-template-columns: 1fr;
    }
    
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .frame-wrapper {
        width: 60%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .preview-canvas {
        min-height: 400px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .series-image {
        height: 240px;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   组合模式切换
   ============================================ */
.mode-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.mode-btn {
    padding: 10px 24px;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.mode-btn.active {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.mode-btn:hover:not(.active) {
    border-color: var(--color-text);
    color: var(--color-text);
}

/* ============================================
   位置选择器
   ============================================ */
.current-painting-info {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.current-pos {
    color: var(--color-accent);
    font-weight: 600;
}

.position-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.pos-btn {
    padding: 6px 14px;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.pos-btn.active {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

/* ============================================
   多幅组合相框样式
   ============================================ */
.multi-frame {
    display: flex;
    gap: 8px;
    padding: 8px;
}

.multi-frame .painting-display {
    flex: 1;
}

.double-mode .frame-wrapper {
    width: 70%;
}

.triple-mode .frame-wrapper {
    width: 85%;
}

/* 响应式补充 */
@media (max-width: 768px) {
    .double-mode .frame-wrapper {
        width: 90%;
    }
    
    .triple-mode .frame-wrapper {
        width: 95%;
    }
    
    .mode-switcher {
        flex-wrap: wrap;
    }
    
    .mode-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ============================================
   满屏布局（container-fluid）
   ============================================ */
.container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0 16px;
    }
}

/* ============================================
   首屏视频背景
   ============================================ */
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-card {
    position: relative;
    transition: all 0.4s ease;
}

.hero-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    transition: all 0.3s ease;
}

.hero-close-btn:hover {
    color: #333;
    transform: rotate(90deg);
}

.hero-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-open-btn:hover {
    background: rgba(0,0,0,0.8);
    border-color: white;
}

.hero-card.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    position: absolute;
}

/* ============================================
   名画自动循环滚动
   ============================================ */
.paintings-scroll.auto-scroll {
    overflow: hidden;
    margin: 0;
    padding: 0;
    mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
}

.paintings-track {
    animation: scroll-left 40s linear infinite;
}

.paintings-scroll:hover .paintings-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* 系列自动滚动 */
.series-scroll.auto-scroll {
    overflow: hidden;
    margin: 0 -24px;
    padding: 0 24px;
    mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
}

.series-track {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    animation: scroll-left 50s linear infinite;
}

.series-scroll:hover .series-track {
    animation-play-state: paused;
}

.series-track .series-card {
    flex: 0 0 320px;
}

/* 场景自动滚动 */
.scenes-scroll.auto-scroll {
    overflow: hidden;
    margin: 0 -24px;
    padding: 0 24px;
    mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
}

.scenes-track {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    animation: scroll-left 45s linear infinite;
}

.scenes-scroll:hover .scenes-track {
    animation-play-state: paused;
}

.scenes-track .scene-card {
    flex: 0 0 320px;
}

/* 系列和场景板块也用满屏布局 */
.series-section .container,
.scenes-section .container,
.feature-section .container,
.preview-section .container,
.paintings-section .container,
.brand-section .container,
.site-footer .container {
    max-width: 100%;
    padding: 0 40px;
}

@media (max-width: 1024px) {
    .series-section .container,
    .scenes-section .container,
    .feature-section .container,
    .preview-section .container,
    .paintings-section .container,
    .brand-section .container,
    .site-footer .container {
        padding: 0 24px;
    }
}

/* ============================================
   手机端APP体验优化
   ============================================ */

/* 全局触摸优化 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    touch-action: manipulation; /* 禁用双击缩放 */
    scroll-behavior: smooth;
}

/* 按钮点击反馈 */
.btn-primary, .mode-btn, .tab-btn, .bottom-nav-item {
    transition: all 0.15s ease;
}

.btn-primary:active, .mode-btn:active, .bottom-nav-item:active {
    transform: scale(0.96);
    opacity: 0.8;
}

/* 卡片圆角和阴影 */
.series-card, .scene-card, .painting-card, .hero-card {
    border-radius: 12px;
}

/* 手机端底部导航栏 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom); /* 适配iPhone底部安全区 */
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #999;
    text-decoration: none;
    font-size: 11px;
}

.bottom-nav-item.active {
    color: #111111;
}

/* 手机端显示底部导航 */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* 页面底部留白，给导航腾位置 */
    body {
        padding-bottom: 60px;
    }
    
    /* 顶部导航更紧凑 */
    .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #eeeeee;
}
    
    /* 首屏占满整个屏幕 */
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh; /* 适配移动端动态视口 */
    }
    
    /* 卡片去掉圆角太大的边距 */
    .series-track .series-card, .scenes-track .scene-card {
        flex: 0 0 280px;
        border-radius: 12px;
        overflow: hidden;
    }
    
    /* 控制选项按钮更大，好触摸 */
    .option-item {
        min-height: 44px;
    }
    
    /* 手机端隐藏上面的导航链接和搜索，只留logo */
    .main-nav {
        display: none !important;
    }
    .mobile-menu-btn {
        display: none !important;
    }
    .search-btn {
        display: none !important;
    }
    
    /* 顶部导航只留logo，居中 */
    .header-inner {
        justify-content: center;
    }
    
    /* 三个板块优化成APP内容流样式 */
    .paintings-section, .series-section, .scenes-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 24px;
        padding: 0 4px;
    }
    
    .section-title {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-top: 8px;
        color: #999;
    }
    
    /* 卡片大小更合适，一屏看1.2个 */
    .paintings-track .painting-card,
    .series-track .series-card,
    .scenes-track .scene-card {
        flex: 0 0 85%;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    
    /* 卡片下面的文字间距 */
    .card-body {
        padding: 16px;
    }
    
    .card-title {
        font-size: 16px;
        font-weight: 600;
    }
    
    .card-desc {
        font-size: 13px;
        margin-top: 6px;
        color: #999;
        line-height: 1.5;
    }
}
/* ============================================
   正确的手机端APP标准布局
   ============================================ */
@media (max-width: 768px) {
    body {
    background: #ffffff;
    padding-bottom: 70px;
    overflow-x: hidden;
    color: #111111;
}
    
    .container, .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* 顶部导航 */
    .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #eeeeee;
}
    
    .header-inner {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center !important;
    }
    
    /* 首屏 */
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 60px !important;
    }
    
    /* 所有板块 */
    .series-section, .paintings-section, .scenes-section, .preview-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-label {
        font-size: 11px;
        color: #e53935;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 22px;
        font-weight: 700;
        margin-top: 6px;
    }
    
    /* 横向滚动容器 */
    .series-scroll, .paintings-scroll, .scenes-scroll {
        margin: 0 -16px;
        padding: 0 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .series-track, .paintings-track, .scenes-track {
        display: flex;
        gap: 12px;
    }
    
    /* 1. 名画卡片 */
    .paintings-track .painting-card {
        flex: 0 0 80%;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        height: 300px;
    }
    
    .paintings-track .painting-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 2. 系列卡片 */
    .series-track .series-card {
    flex: 0 0 80%;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
    
    .series-track .series-card .series-image {
        height: 200px;
        overflow: hidden;
    }
    
    .series-track .series-card .series-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .series-track .series-card .series-info {
        padding: 14px;
    }
    
    .series-track .series-card .series-name {
        font-size: 16px;
        font-weight: 600;
        margin-top: 4px;
    }
    
    .series-track .series-card .series-desc {
        font-size: 12px;
        color: #999;
        margin-top: 6px;
        line-height: 1.5;
    }
    
    /* 3. 场景卡片 */
    .scenes-track .scene-card {
    flex: 0 0 80%;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
    
    .scenes-track .scene-card .scene-image {
        height: 200px;
        overflow: hidden;
    }
    
    .scenes-track .scene-card .scene-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .scenes-track .scene-card .scene-info {
        padding: 14px;
    }
    
    .scenes-track .scene-card .scene-name {
        font-size: 16px;
        font-weight: 600;
    }
    
    .scenes-track .scene-card .scene-desc {
        font-size: 12px;
        color: #999;
        margin-top: 6px;
        line-height: 1.5;
    }
    
    /* 底部导航 */
    .mobile-bottom-nav {
        height: 65px;
    }
}
/* 强制：手机端隐藏顶部导航 */
@media (max-width: 768px) {
    .site-header, .header-inner, .main-nav, .site-logo, .mobile-menu-btn, .search-btn {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0 !important;
        min-height: 100vh;
        min-height: 100dvh;
    }
}
/* 强制：手机端隐藏底部导航 */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}
/* ============================================
   强制白色极简风格，覆盖所有深色样式
   ============================================ */
:root {
    --color-bg: #ffffff !important;
    --color-bg-secondary: #f8f8f8 !important;
    --color-text: #111111 !important;
    --color-text-secondary: #666666 !important;
    --color-border: #eeeeee !important;
    --color-primary: #111111 !important;
}

body {
    background: #ffffff !important;
    color: #111111 !important;
}

/* 导航栏白色 */
.site-header {
    background: rgba(255,255,255,0.95) !important;
    border-bottom: 1px solid #eeeeee !important;
}

.site-logo {
    color: #111111 !important;
}

.main-nav a {
    color: #333333 !important;
}

.main-nav a:hover, .main-nav a.active {
    color: #111111 !important;
}

/* 首屏背景浅灰 */
.hero-section {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%) !important;
}

.hero-title, .section-title {
    color: #111111 !important;
}

.hero-subtitle, .section-subtitle, .card-desc {
    color: #666666 !important;
}

/* 卡片白色 */
.series-card, .painting-card, .scene-card, .hero-card {
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}

/* 按钮黑色 */
.btn-primary {
    background: #111111 !important;
    color: #ffffff !important;
}

/* 底部导航白色 */
.mobile-bottom-nav {
    background: rgba(255,255,255,0.95) !important;
    border-top: 1px solid #eeeeee !important;
}

.bottom-nav-item {
    color: #999999 !important;
}

.bottom-nav-item.active {
    color: #111111 !important;
}
/* 强制：手机端改成双列卡片布局，和aimiaozai手机端一样 */
@media (max-width: 768px) {
    /* 取消横向滚动，改成两列网格 */
    .series-scroll, .paintings-scroll, .scenes-scroll {
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .series-track, .paintings-track, .scenes-track {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    /* 卡片占满一列 */
    .paintings-track .painting-card,
    .series-track .series-card,
    .scenes-track .scene-card {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* 名画卡片高度 */
    .paintings-track .painting-card {
        height: 200px;
    }
    
    /* 系列和场景卡片图片高度统一 */
    .series-track .series-card .series-image,
    .scenes-track .scene-card .scene-image {
        height: 160px;
    }
    
    /* 文字padding缩小 */
    .series-track .series-card .series-info,
    .scenes-track .scene-card .scene-info {
        padding: 12px !important;
    }
    
    .series-track .series-card .series-name,
    .scenes-track .scene-card .scene-name {
        font-size: 14px !important;
    }
    
    .series-track .series-card .series-desc,
    .scenes-track .scene-card .scene-desc {
        font-size: 11px !important;
    }
}
/* 首屏视频样式 */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* 手机端：视频变成顶部横幅 */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 0 !important;
        min-height: auto !important;
        display: block !important;
    }
    
    .hero-video {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        aspect-ratio: 16/9;
        object-fit: contain !important;
        background: #000 !important;
    }
    
    .hero-content {
        padding: 40px 16px !important;
    }
    
    .hero-title {
        font-size: 28px !important;
    }
}
/* 手机端：去掉首屏白色弹窗卡片，变成普通文字 */
@media (max-width: 768px) {
    .hero-card {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
    }
    
    .hero-card .badge, .hero-card .hero-subtitle {
        color: #666 !important;
    }
    
    .hero-card .btn-primary {
        margin-top: 24px;
    }
}
/* 手机端：视频做背景，文字直接叠在上面 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 16px !important;
    }
    
    .hero-video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        z-index: 0 !important;
    }
    
    .hero-content {
        position: relative !important;
        z-index: 1 !important;
        width: 100% !important;
    }
    
    .hero-card {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        color: #ffffff !important;
    }
    
    .hero-card .hero-title {
        color: #ffffff !important;
        font-size: 32px !important;
    }
    
    .hero-card .hero-subtitle, .hero-card .badge {
        color: rgba(255,255,255,0.9) !important;
    }
    
    .hero-card .highlight {
        color: #ff4444 !important;
    }
}
/* 手机端首屏改成aimiaozai样式 */
@media (max-width: 768px) {
    .hero-section {
        background: #fafafa !important;
        min-height: auto !important;
        padding: 0 !important;
        display: block !important;
    }
    
    .hero-video {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
        object-fit: cover !important;
    }
    
    .hero-content {
        padding: 40px 20px !important;
    }
    
    .hero-card {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    .hero-card .badge {
        display: inline-block;
        background: #e53935 !important;
        color: white !important;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 16px;
    }
    
    .hero-card .hero-title {
        font-size: 36px !important;
        font-weight: 800;
        line-height: 1.1;
        color: #111 !important;
        margin-bottom: 16px;
    }
    
    .hero-card .hero-subtitle {
        font-size: 15px;
        color: #666 !important;
        line-height: 1.6;
        margin-bottom: 32px;
    }
    
    /* 两个大按钮，两列 */
    .hero-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 32px;
    }
    
    .hero-buttons .btn-primary {
        padding: 16px !important;
        border-radius: 12px !important;
        font-size: 15px;
        text-align: center;
        background: #111 !important;
    }
    
    .hero-buttons .btn-secondary {
        background: white !important;
        color: #111 !important;
        border: 1px solid #eee !important;
    }
}
/* 强制去掉SCROLL滚动提示 */
.scroll-indicator {
    display: none !important;
}

/* 手机端视频占满整个首屏高度 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        position: relative !important;
    }
    
    .hero-video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* 两个按钮放在视频底部，白色背景 */
    .hero-bottom-buttons {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        padding: 20px 16px !important;
        z-index: 10 !important;
    }
}
/* 首页两个大按钮 */
.hero-bottom-buttons {
    padding: 24px 0;
    background: #ffffff;
}

.hero-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.btn-lg {
    display: block;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-lg:active {
    transform: scale(0.97);
    opacity: 0.85;
}

.btn-lg.btn-outline {
    background: #ffffff;
    color: #111111;
    border: 1px solid #eeeeee;
}

@media (max-width: 768px) {
    .hero-bottom-buttons {
        padding: 16px 0;
    }
    .hero-buttons-row {
        max-width: 100%;
        padding: 0 16px;
    }
}

/* 预览独立页面顶部留白 */
.preview-section {
    padding-top: 40px;
}

@media (max-width: 768px) {
    .preview-section {
        padding-top: 24px;
    }
}
/* ============================================
   实景预览页：一屏完成，不滚动不乱动
   ============================================ */

/* PC端：整页不滚动，预览工具占满一屏 */
.page-template-default .preview-section,
body.preview-page .preview-section,
.preview-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* 模式切换紧凑 */
.preview-section .mode-switcher {
    margin-bottom: 16px;
}

/* 预览工具占满一屏 */
.preview-section .preview-tool {
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-top: 0;
    height: calc(100vh - 140px);
    min-height: 520px;
    max-height: 900px;
}

/* 画布撑满 */
.preview-section .preview-canvas {
    min-height: 100%;
    height: 100%;
}

/* 控制面板：内部滚动，不撑破页面 */
.preview-section .preview-controls {
    overflow-y: auto;
    max-height: 100%;
    padding-right: 6px;
}

.preview-section .preview-controls::-webkit-scrollbar {
    width: 4px;
}
.preview-section .preview-controls::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* 控制选项紧凑，一屏能看全 */
.preview-section .options-grid {
    gap: 8px;
}
.preview-section .option-item {
    padding: 8px;
}
.preview-section .option-item img {
    height: 44px;
    object-fit: cover;
}

/* 控制tab固定在面板顶部 */
.preview-section .control-tabs {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    padding: 4px 0;
}

/* 返回首页按钮紧凑 */
.preview-back {
    padding: 16px 0 !important;
}

/* 手机端：一屏内紧凑完成 */
@media (max-width: 768px) {
    .preview-section {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    
    .preview-section .preview-tool {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    
    /* 画布高度适中，一屏能同时看到模式和画布 */
    .preview-section .preview-canvas {
        min-height: 320px !important;
        height: 320px !important;
    }
    
    /* 模式切换和画布靠上，控制面板紧跟其后 */
    .preview-section .mode-switcher {
        margin-bottom: 8px !important;
    }
    
    .preview-section .mode-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .preview-section .control-tabs {
        position: static !important;
    }
    
    .preview-section .option-item {
        padding: 6px !important;
    }
    
    .preview-section .option-item img {
        height: 38px !important;
    }
    
    .preview-section .preview-controls {
        overflow-y: visible !important;
        max-height: none !important;
    }
}
/* 首页实景预览宣传区块 */
.preview-promo {
    padding: 100px 0;
    background: #ffffff;
}

.preview-promo-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.promo-badge {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    padding: 6px 22px;
    border-radius: 4px;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.promo-label {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    letter-spacing: 8px;
    margin-bottom: 16px;
}

.promo-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    color: #111;
    margin-bottom: 32px;
    letter-spacing: 2px;
}

.promo-desc {
    font-size: 19px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 32px;
}

.promo-features {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 44px;
    padding: 0;
}

.promo-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    color: #111;
    font-weight: 500;
}

.promo-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e53935;
    flex-shrink: 0;
}

.preview-promo .btn-primary {
    padding: 18px 52px;
    font-size: 17px;
    border-radius: 8px;
}

/* 手机端 */
@media (max-width: 768px) {
    .preview-promo {
        padding: 56px 0;
    }
    .promo-badge {
        font-size: 13px;
        padding: 4px 16px;
        margin-bottom: 16px;
    }
    .promo-label {
        font-size: 15px;
        letter-spacing: 5px;
        margin-bottom: 10px;
    }
    .promo-title {
        font-size: 34px;
        margin-bottom: 20px;
    }
    .promo-desc {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    .promo-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        max-width: 280px;
        margin: 0 auto 32px;
    }
    .promo-features li {
        font-size: 14px;
    }
}
/* ============================================
   实景预览专业布局（Wallartee 式：左导航+选项+画布）
   ============================================ */
.preview-section {
    padding: 0 !important;
    background: #f5f5f7;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: stretch;
}

.preview-layout {
    display: flex;
    width: 100%;
    height: calc(100vh - 80px);
    min-height: 560px;
}

/* 左侧竖排导航 */
.preview-sidebar {
    width: 76px;
    background: #ffffff;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 4px;
    flex-shrink: 0;
}

.side-btn {
    width: 64px;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #888;
    font-size: 11px;
    transition: all .2s;
}

.side-btn:hover {
    background: #f5f5f7;
    color: #111;
}

.side-btn.active {
    background: #111;
    color: #fff;
}

.side-btn.active svg {
    stroke: #fff;
}

/* 中间选项区 */
.preview-options {
    width: 290px;
    background: #ffffff;
    border-right: 1px solid #eee;
    overflow-y: auto;
    padding: 20px 16px;
    flex-shrink: 0;
}

.preview-options::-webkit-scrollbar {
    width: 4px;
}
.preview-options::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

/* 选项网格 */
.preview-options .options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.preview-options .option-item {
    padding: 8px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
}

.preview-options .option-item.active {
    border-color: #111;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.preview-options .option-item img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.preview-options .option-item span {
    display: block;
    font-size: 11px;
    color: #333;
    margin-top: 6px;
    font-weight: 500;
}

/* 画框/卡纸色块预览 */
.frame-preview, .mat-preview {
    height: 56px;
    border-radius: 6px;
    display: block;
}

.frame-preview.gold { background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%); }
.frame-preview.black { background: linear-gradient(135deg, #2a2a2a 0%, #000 100%); }
.frame-preview.white { background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%); border: 1px solid #eee; }
.frame-preview.wood { background: linear-gradient(135deg, #8b4513 0%, #654321 100%); }
.frame-preview.darkwood { background: linear-gradient(135deg, #4a3728 0%, #2c1810 100%); }
.frame-preview.bronze { background: linear-gradient(135deg, #8b7355 0%, #5c4033 100%); }

.mat-preview.white { background: #ffffff; border: 1px solid #ddd; }
.mat-preview.cream { background: #f5f1e8; }
.mat-preview.gray { background: #b8b8b8; }
.mat-preview.black { background: #1a1a1a; }
.mat-preview.dark { background: #2d2d2d; }

/* 画框分类标签 */
.opt-cats {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 5px 14px;
    font-size: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all .2s;
}

.cat-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* 右侧画布区 */
.preview-canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    min-width: 0;
}

/* 画布顶栏 */
.canvas-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.canvas-topbar .mode-switcher {
    display: flex;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 24px;
    padding: 3px;
    margin: 0;
}

.canvas-topbar .mode-btn {
    padding: 7px 20px;
    font-size: 13px;
    border: none;
    background: transparent;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    transition: all .2s;
    font-weight: 500;
}

.canvas-topbar .mode-btn.active {
    background: #111;
    color: #fff;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.canvas-topbar .upload-btn,
.canvas-topbar .save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all .2s;
}

.canvas-topbar .upload-btn {
    background: #111;
    color: #fff;
    border: none;
}

.canvas-topbar .upload-btn:hover {
    background: #333;
}

.canvas-topbar .save-btn {
    background: #fff;
    color: #111;
    border: 1.5px solid #111;
}

.canvas-topbar .save-btn:hover {
    background: #111;
    color: #fff;
}

/* 画布主体 */
.preview-canvas-area .preview-canvas {
    flex: 1;
    position: relative;
    background: #e9e9ed;
    border-radius: 14px;
    overflow: hidden;
    min-height: 0;
}

/* 场景图撑满 */
.preview-canvas .scene-bg {
    position: absolute;
    inset: 0;
}

.preview-canvas .scene-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 画框居中 */
.preview-canvas .frame-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44%;
    max-width: none;
    z-index: 2;
    transition: transform .2s ease;
}

/* 多幅模式放宽宽度 */
.preview-canvas .frame-wrapper.multi-mode {
    width: 66%;
}

.preview-canvas .frame-wrapper .frame-border {
    padding: 18px;
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    border-radius: 4px;
    box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

.preview-canvas .frame-wrapper .mat-board {
    background: #ffffff;
    padding: 16px;
    border-radius: 2px;
}

.preview-canvas .frame-wrapper .painting-display {
    width: 100%;
    aspect-ratio: 0.78;
    overflow: hidden;
    background: #f0f0f0;
}

.preview-canvas .frame-wrapper .painting-display img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 多幅模式 */
.preview-canvas .frame-wrapper.multi-mode .mat-board {
    display: flex;
    gap: 10px;
    padding: 12px;
}

.preview-canvas .frame-wrapper.multi-mode .painting-display {
    aspect-ratio: 0.78;
    flex: 1;
}

/* 画布底栏 */
.canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.position-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12px;
    color: #666;
}

.pos-btns {
    display: flex;
    gap: 4px;
}

.pos-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    font-size: 11px;
    cursor: pointer;
}

.pos-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 6px 12px;
}

.zoom-label {
    font-size: 12px;
    color: #666;
}

.zoom-controls input[type="range"] {
    width: 90px;
    accent-color: #111;
}

.zoom-value {
    font-size: 12px;
    color: #111;
    font-weight: 600;
    min-width: 36px;
}

.rotate-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all .2s;
}

.rotate-btn:hover {
    border-color: #111;
    color: #111;
}

/* 返回首页 */
.preview-back {
    text-align: center;
    padding: 28px 0;
    background: #f5f5f7;
}

.preview-back a {
    display: inline-block;
    padding: 12px 36px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* 手机端：顶部横排导航 + 全宽选项 + 画布 */
@media (max-width: 768px) {
    .preview-section {
        min-height: auto;
        display: block;
    }

    .preview-layout {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    /* 左侧导航变顶部横排 */
    .preview-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 6px 4px;
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .side-btn {
        width: auto;
        padding: 8px 10px;
        flex-direction: column;
        gap: 2px;
        font-size: 10px;
        border-radius: 10px;
    }

    .side-btn svg {
        width: 18px;
        height: 18px;
    }

    /* 选项区 */
    .preview-options {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 12px;
        overflow: visible;
    }

    .preview-options .options-grid {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .preview-options .option-item {
        flex: 0 0 84px;
        padding: 6px;
    }

    .preview-options .option-item img,
    .preview-options .option-item .frame-preview,
    .preview-options .option-item .mat-preview {
        height: 56px;
    }

    .panel-title {
        margin-bottom: 10px;
    }

    .opt-cats {
        margin-bottom: 10px;
    }

    /* 画布区 */
    .preview-canvas-area {
        padding: 10px;
    }

    .canvas-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .canvas-topbar .mode-switcher {
        justify-content: center;
    }

    .topbar-actions {
        justify-content: center;
    }

    .preview-canvas-area .preview-canvas {
        height: 340px;
        flex: none;
    }

    .preview-canvas .frame-wrapper {
        width: 56%;
    }

    .canvas-toolbar {
        justify-content: center;
    }
}
/* ============ 9模块编辑器 v2：顶栏/选项控件/画布角标 ============ */

/* 预览编辑器页隐藏站点主导航 */
body.preview-editor .site-header { display: none !important; }
body.preview-editor .preview-section { min-height: 100vh; }
body.preview-editor .preview-layout { height: 100vh; min-height: 600px; }

/* 编辑器顶栏 */
.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 30;
    flex-shrink: 0;
}
.editor-header-left {
    display: flex;
    align-items: center;
    width: 120px;
}
.editor-back {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f5f5f7;
    color: #333;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.editor-back:hover {
    background: #eee;
    color: #111;
}
.editor-header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 700;
    color: #111;
    letter-spacing: 1px;
}
.editor-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    width: 220px;
}
.editor-header .upload-btn,
.editor-header .save-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all .2s;
    border: none;
}
.editor-header .upload-btn {
    position: static;
    background: #111;
    color: #fff;
}
.editor-header .upload-btn:hover {
    background: #333;
}
.editor-header .save-btn {
    background: #fff;
    color: #111;
    border: 1.5px solid #111;
}
.editor-header .save-btn:hover {
    background: #111;
    color: #fff;
}

/* 单列长条选项（画框/卡纸） */
.preview-options .options-grid.list-1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.list-1 .option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-align: left;
}
.list-1 .option-item .frame-preview,
.list-1 .option-item .mat-preview {
    width: 52px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 6px;
}
.list-1 .option-item span {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

/* 调整工具区（滑块行） */
.adjust-tools {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.tool-label {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.tool-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tool-row input[type="range"] {
    flex: 1;
    accent-color: #111;
    height: 4px;
    cursor: pointer;
}
.tool-val {
    font-size: 12px;
    color: #111;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
}

/* 比例按钮组 */
.ratio-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ratio-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all .2s;
}
.ratio-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* 开关 */
.switch-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}
.switch-input { display: none; }
.switch-ui {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: #ddd;
    position: relative;
    transition: all .2s;
    flex-shrink: 0;
}
.switch-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: all .2s;
}
.switch-input:checked + .switch-ui { background: #111; }
.switch-input:checked + .switch-ui::after { left: 20px; }

/* 纯色背景 */
.bg-solid { margin-top: 4px; }
.bg-colors .mat-preview { height: 44px; }

/* 占位提示 */
.placeholder-note {
    padding: 22px 12px;
    text-align: center;
    color: #999;
    font-size: 13px;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 10px;
}
.wm-hint {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* 画布内角标 */
.preview-canvas .painting-caption {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,.88);
    color: #111;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 20px;
    z-index: 5;
    font-weight: 500;
    white-space: nowrap;
}
.preview-canvas .platform-wm {
    position: absolute;
    top: 14px;
    right: 16px;
    color: rgba(255,255,255,.92);
    font-size: 11px;
    letter-spacing: 2px;
    z-index: 5;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    font-weight: 600;
}

/* 底栏步进缩放按钮 */
.zoom-step {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all .2s;
    padding: 0;
}
.zoom-step:hover {
    border-color: #111;
    color: #111;
}
.zoom-controls .rotate-btn {
    padding: 0;
    width: 30px;
    height: 30px;
    justify-content: center;
}

/* 手机端编辑器调整 */
@media (max-width: 768px) {
    body.preview-editor .preview-layout {
        height: auto;
        min-height: 0;
    }
    .editor-header {
        padding: 0 12px;
    }
    .editor-header-left,
    .editor-header-actions {
        width: auto;
    }
    .editor-header .upload-btn,
    .editor-header .save-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    .editor-header-title {
        font-size: 14px;
    }
    .side-btn {
        padding: 6px 8px;
        flex: 0 0 auto;
    }
    .preview-options .options-grid.list-1 {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .list-1 .option-item {
        flex: 0 0 150px;
        padding: 8px 10px;
    }
    .preview-canvas .painting-caption {
        bottom: 10px;
        font-size: 11px;
        padding: 5px 12px;
    }
}

/* 预览编辑器页隐藏站点页脚 */
body.preview-editor .site-footer { display: none !important; }

/* ============ 编辑器 v3：aimiaozai 式六步流程 ============ */

/* 调整面板子模块 */
.edit-sub { display: flex; gap: 8px; margin-bottom: 10px; }
.sub-btn { flex: 1; padding: 8px 4px; border: 1px solid #e2e2e2; background: #fff; border-radius: 8px; font-size: 12px; color: #333; cursor: pointer; }
.sub-btn.active { background: #111; color: #fff; border-color: #111; }
.sub-panel { display: none; }
.sub-panel.active { display: block; }

/* 卡纸子面板 / 背景子面板 */
#panel-mat .sub-panel.active { display: block; }
#panel-background .bg-colors { display: none; }
#panel-background .bg-colors.active { display: grid; }

/* 尺寸选项 em */
.option-item em { font-style: normal; color: #999; font-size: 11px; }

/* 迷你按钮（统一/自由） */
.mat-mode-row { margin-top: 6px; gap: 6px; }
.mini-btn { padding: 5px 14px; border: 1px solid #ddd; background: #fff; border-radius: 6px; font-size: 12px; cursor: pointer; color: #666; }
.mini-btn.active { background: #111; color: #fff; border-color: #111; }
.mat-mode-label { font-style: normal; color: #999; font-size: 11px; }

/* 自由卡纸滑块 */
.free-pads { margin-top: 8px; }

/* 文本输入 */
.text-input { flex: 1; padding: 8px 10px; border: 1px solid #e2e2e2; border-radius: 8px; font-size: 13px; outline: none; }

/* 画框预览扩展款式 */
.frame-preview { width: 46px; height: 34px; border-radius: 3px; position: relative; flex: 0 0 auto; }
.frame-preview.none { border: 1px dashed #ddd; background: #fff; }
.frame-preview.gold { background: #c9a86a; box-shadow: inset 0 0 0 3px #a8874e; }
.frame-preview.black { background: #1a1a1a; }
.frame-preview.white { background: #f5f3ee; border: 1px solid #e5e2da; }
.frame-preview.wood { background: #b08968; box-shadow: inset 0 0 0 3px #8f6f4f; }
.frame-preview.oak { background: #a0714a; box-shadow: inset 0 0 0 3px #7e5a39; }
.frame-preview.walnut { background: #6b4c3a; box-shadow: inset 0 0 0 3px #4e3527; }
.frame-preview.darkwood { background: #4a3a2e; box-shadow: inset 0 0 0 3px #33271f; }
.frame-preview.floating { background: #333; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.frame-preview.scripture { background: linear-gradient(#8b6b4a,#8b6b4a) center/100% 70% no-repeat, repeating-linear-gradient(90deg,#6b4c2a 0 4px,#8b6b4a 4px 8px); }
.frame-preview.elegant { background: #d4b078; box-shadow: inset 0 0 0 3px #fff8, inset 0 0 0 6px #b28a4e; }
.frame-preview.silver { background: #b8bcc2; box-shadow: inset 0 0 0 3px #9aa0a8; }
.frame-preview.bronze { background: #8d6e50; box-shadow: inset 0 0 0 3px #6d5238; }
.frame-preview.modern { background: #2b2b2b; box-shadow: inset 0 0 0 2px #4d4d4d; }
.frame-preview.kids { background: linear-gradient(135deg,#e8a33d,#e8603d 50%,#7fbf6a 50%); }

/* 画框实际应用 */
.frame-wrapper.frame-none { padding: 0; }
.frame-wrapper.frame-gold .frame-border { background: #c9a86a; }
.frame-wrapper.frame-black .frame-border { background: #1a1a1a; }
.frame-wrapper.frame-white .frame-border { background: #f5f3ee; }
.frame-wrapper.frame-wood .frame-border { background: #b08968; }
.frame-wrapper.frame-oak .frame-border { background: #a0714a; }
.frame-wrapper.frame-walnut .frame-border { background: #6b4c3a; }
.frame-wrapper.frame-darkwood .frame-border { background: #4a3a2e; }
.frame-wrapper.frame-floating .frame-border { background: #333; }
.frame-wrapper.frame-scripture .frame-border { background: #8b6b4a; }
.frame-wrapper.frame-elegant .frame-border { background: #d4b078; }
.frame-wrapper.frame-silver .frame-border { background: #b8bcc2; }
.frame-wrapper.frame-bronze .frame-border { background: #8d6e50; }
.frame-wrapper.frame-modern .frame-border { background: #2b2b2b; }
.frame-wrapper.frame-kids .frame-border { background: linear-gradient(135deg,#e8a33d,#e8603d 50%,#7fbf6a); }

/* 卡纸预览扩展 */
.mat-preview { width: 34px; height: 26px; border-radius: 3px; flex: 0 0 auto; }
.mat-preview.linen { background: #d9d3c8; }
.mat-preview.canvas { background: radial-gradient(circle,#00000010 1px,transparent 1.4px) 0 0/6px 6px,#efe9de; }
.mat-preview.grid { background: linear-gradient(#0000000a 1px,transparent 1px),linear-gradient(90deg,#0000000a 1px,transparent 1px),#e8e6e3; }
.mat-preview.tan { background: #a89f94; }
.mat-preview.maroon { background: #8a1f2d; }
.mat-preview.grad-1 { background: linear-gradient(135deg,#f5f1e8,#e3dccb); }
.mat-preview.grad-2 { background: linear-gradient(135deg,#e8e6e3,#c9c4bd); }
.mat-preview.grad-3 { background: linear-gradient(135deg,#fdfbf7,#dcd4c4); }
.mat-preview.grad-4 { background: linear-gradient(135deg,#3a3a3a,#111); }
.mat-preview.grad-5 { background: linear-gradient(135deg,#e8dcc8,#c9b898); }
.mat-preview.grad-6 { background: linear-gradient(135deg,#d9d3c8,#f5f1e8); }
.mat-preview.brick { background: linear-gradient(#0000000a 1px,transparent 1px),linear-gradient(90deg,#0000000a 1px,transparent 1px),#e5ddd2; }
.mat-preview.cement { background: radial-gradient(circle,#00000008 1px,transparent 2px),radial-gradient(circle,#ffffff14 1px,transparent 2px),#cfcdc9; }
.mat-preview.paint { background: #eef0ec; }
.mat-preview.wood-tex { background: repeating-linear-gradient(90deg,#00000014 0 2px,transparent 2px 20px),#c9a97c; }
.mat-preview.wood-tex-2 { background: repeating-linear-gradient(90deg,#00000014 0 2px,transparent 2px 20px),#8b6b4a; }
.mat-preview.wood-tex-3 { background: repeating-linear-gradient(90deg,#00000014 0 2px,transparent 2px 20px),#5c4632; }

/* 光影光效层 */
.preview-canvas.light-soft::after { content:''; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 50% 40%, rgba(255,255,255,.18), transparent 60%); z-index:4; }
.preview-canvas.light-warm::after { content:''; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 50% 50%, rgba(255,215,160,.25), transparent 65%); z-index:4; }
.preview-canvas.light-spot::after { content:''; position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse 60% 45% at 50% 18%, rgba(255,255,255,.30), transparent 70%); z-index:4; }

/* 初始上传占位 */
.canvas-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; z-index:8; background:rgba(255,255,255,.92); }
.ph-icon { color:#bbb; }
.ph-title { font-size:18px; font-weight:700; color:#222; margin:0; }
.ph-sub { font-size:13px; color:#999; margin:0; }
.ph-upload { margin-top:6px; padding:10px 36px; background:#111; color:#fff; border:none; border-radius:8px; font-size:14px; cursor:pointer; }

/* 光影选项列表 */
#lightOptions .option-item { display:flex; align-items:center; gap:12px; padding:8px 12px; }

/* 比例按钮间距 */
.ratio-btns { display:flex; flex-wrap:wrap; gap:6px; }

/* 手机端编辑器适配 v3 */
@media (max-width: 768px) {
    .edit-sub { gap:6px; }
    .sub-btn { padding:7px 2px; font-size:11px; }
    .frame-preview { width:38px; height:28px; }
    .mat-preview { width:28px; height:22px; }
    .ph-title { font-size:15px; }
    .ph-sub { font-size:11px; }
    .ph-upload { padding:8px 28px; font-size:13px; }
    .mini-btn { padding:4px 10px; font-size:11px; }
    .canvas-placeholder { gap:6px; }
}
/* ===== Hero 视频自适应横幅（完整显示不裁切，覆盖历史规则） ===== */
.hero-section {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.hero-bg {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    background: #111 !important;
}
.hero-bg video.hero-video {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}
.hero-bg::after { display: none !important; }
.hero-content {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3 !important;
    pointer-events: none !important;
}
.hero-content > * { pointer-events: auto !important; }
.hero-bottom-buttons {
    position: relative !important;
    z-index: 3 !important;
    margin-top: 0 !important;
}
/* ===== Hero 全宽修正：去掉 flex 干扰，视频强制满宽 ===== */
.hero-section {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}
.hero-bg {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}
.hero-bg video.hero-video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}
.hero-section .container-fluid {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}
/* ============================================
   紧凑布局 + 专业配色（aimiaozai 风格，桌面端）
   ============================================ */
:root {
    --color-accent: #b02e24 !important;
    --color-text: #191919 !important;
    --color-text-secondary: #555555 !important;
    --color-border: #e8e6e1 !important;
    --color-gold: #b08d3e !important;
}

/* 区块垂直间距 100px -> 56px */
.brand-section,
.feature-section,
.series-section,
.paintings-section,
.scenes-section,
.preview-promo {
    padding: 56px 0 !important;
}

/* 标题区紧凑 */
.section-header {
    margin-bottom: 24px !important;
}
.brand-inner {
    gap: 28px !important;
}
.brand-section {
    padding-bottom: 40px !important;
}

/* 标题字号适度收敛 */
.section-title {
    font-size: 40px !important;
    line-height: 1.15 !important;
}
.brand-title {
    font-size: 36px !important;
}
.feature-title {
    font-size: 30px !important;
}
.feature-content {
    padding: 32px !important;
}

/* hero 按钮紧贴视频 */
.hero-bottom-buttons {
    padding: 12px 0 !important;
}
.hero-buttons-row {
    gap: 16px !important;
}

/* 卡片内边距收敛 */
.series-info {
    padding: 18px 20px !important;
}

/* ============================================
   手机端同样紧凑
   ============================================ */
@media (max-width: 768px) {
    .brand-section,
    .feature-section,
    .series-section,
    .paintings-section,
    .scenes-section,
    .preview-promo {
        padding: 36px 0 !important;
    }
    .section-header {
        margin-bottom: 16px !important;
    }
    .section-title {
        font-size: 28px !important;
    }
    .brand-title {
        font-size: 26px !important;
    }
    .feature-content {
        padding: 20px !important;
    }
    .hero-bottom-buttons {
        padding: 10px 0 !important;
    }
}
/* ============================================
   aimiaozai 版式：Hero 左文右视频
   ============================================ */
.hero-section {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
}
.hero-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 48px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 56px 24px 40px !important;
}
.hero-copy {
    flex: 1 1 44% !important;
    max-width: 500px !important;
}
.hero-media {
    flex: 1 1 56% !important;
    position: relative !important;
    background: #ffffff !important;
}
.hero-media video.hero-video {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
}
.hero-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    color: #b02e24;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.hero-headline {
    font-size: 46px;
    line-height: 1.2;
    font-weight: 700;
    color: #191919;
    margin: 0 0 20px;
}
.hero-headline .highlight { color: #b02e24; }
.hero-lead {
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
    margin: 0 0 28px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.hero-actions .btn-primary {
    padding: 12px 28px;
    font-size: 15px;
}
.hero-sub-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-sub-link {
    font-size: 14px;
    color: #555555;
    text-decoration: none;
    border-bottom: 1px solid #e8e6e1;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.hero-sub-link:hover { color: #b02e24; border-color: #b02e24; }

/* 区块标题行：标题 + 右侧说明 */
.section-header-row .section-note {
    font-size: 14px;
    color: #888888;
    font-weight: 400;
    margin-left: auto;
    align-self: center;
    white-space: nowrap;
}

/* 实景预览宣传：两列（左文右图） */
.preview-promo-inner {
    display: flex !important;
    align-items: center !important;
    gap: 56px !important;
}
.promo-copy {
    flex: 1 1 52% !important;
}
.promo-visual {
    flex: 1 1 48% !important;
    position: relative !important;
}
.promo-visual img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10) !important;
}
.promo-visual-note {
    text-align: center;
    font-size: 13px;
    color: #888888;
    margin-top: 12px;
}

/* FAQ 常见问题 */
.faq-section {
    padding: 56px 0 72px !important;
    background: #fafaf8 !important;
}
.faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e8e6e1;
    border-radius: 8px;
    padding: 22px 26px;
}
.faq-q {
    font-size: 16px;
    font-weight: 600;
    color: #191919;
    margin: 0 0 8px;
}
.faq-a {
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    margin: 0;
}

/* 手机端 */
@media (max-width: 768px) {
    .hero-wrap {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 0 24px !important;
    }
    .hero-media {
        order: -1 !important;
        width: 100% !important;
    }
    .hero-media video.hero-video {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .hero-copy {
        max-width: none !important;
        padding: 24px 16px 0 !important;
    }
    .hero-headline {
        font-size: 32px !important;
    }
    .hero-actions .btn-primary {
        flex: 1 1 auto;
        text-align: center;
    }
    .preview-promo-inner {
        flex-direction: column !important;
        gap: 24px !important;
    }
    .promo-copy, .promo-visual {
        width: 100% !important;
        flex: none !important;
    }
    .faq-list {
        grid-template-columns: 1fr !important;
    }
    .section-header-row {
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    .section-header-row .section-note {
        margin-left: 0 !important;
        white-space: normal !important;
        font-size: 12px !important;
    }
}
/* aimiaozai 同款：Hero 功能按钮 + 底部说明条 */
.hero-actions .btn-primary {
    background: #b02e24 !important;
    color: #ffffff !important;
    border: 1px solid #b02e24 !important;
    padding: 12px 26px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
.hero-actions .btn-primary.btn-outline {
    background: #ffffff !important;
    color: #191919 !important;
    border: 1px solid #d8d6d1 !important;
    font-weight: 500 !important;
}
.hero-actions .btn-primary.btn-outline:hover {
    border-color: #b02e24 !important;
    color: #b02e24 !important;
    background: #ffffff !important;
}
.hero-actions .btn-primary:hover {
    background: #98261d !important;
    border-color: #98261d !important;
}

/* 底部功能说明条 */
.tool-strip {
    padding: 22px 0 !important;
    background: #fafaf8 !important;
    border-top: 1px solid #f0eeea !important;
    border-bottom: 1px solid #f0eeea !important;
}
.tool-strip p {
    font-size: 13px;
    color: #888888;
    line-height: 1.9;
    text-align: center;
    margin: 0;
}
.tool-strip b {
    color: #555555;
    font-weight: 600;
}

/* 手机端按钮两列排布 */
@media (max-width: 768px) {
    .hero-actions .btn-primary {
        flex: 1 1 calc(50% - 8px) !important;
        text-align: center;
        justify-content: center;
        padding: 12px 10px !important;
    }
}
/* Hero 右侧：名画图垫底 + 视频上层（视频失败自动露图） */
.hero-media .hero-poster-img {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: none !important;
}
.hero-media video.hero-video {
    position: relative !important;
    z-index: 1 !important;
}
.hero-media video.hero-video.hidden {
    display: none !important;
}
/* 左右边距对齐 aimiaozai：容器贴边 15px、放宽宽度 */
.container {
    max-width: 1440px !important;
    padding: 0 15px !important;
}
.hero-wrap {
    padding: 56px 15px 40px !important;
}
/* 页脚同样贴边 */
.site-footer .container {
    padding: 0 15px !important;
}
@media (max-width: 768px) {
    .container {
        padding: 0 16px !important;
    }
}
/* 六大珍藏系列：PC 一行 6 个不滚动 / 手机两行每行 3 个不滚动 */
.series-scroll {
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}
.series-track {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 14px !important;
    padding: 20px 0 4px !important;
    animation: none !important;
}
.series-track .series-card {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
}
.series-card .series-image {
    aspect-ratio: 4 / 5;
}
.series-card .series-info {
    padding: 10px 2px 0;
}
.series-card .series-en {
    font-size: 10px !important;
}
.series-card .series-name {
    font-size: 17px !important;
    margin: 4px 0 6px !important;
}
.series-card .series-desc {
    font-size: 12px !important;
    line-height: 1.6 !important;
    margin-bottom: 6px !important;
}
.series-card .series-size {
    font-size: 11px !important;
}
.series-num {
    font-size: 12px !important;
}

/* 手机端：两行每行 3 个，紧凑卡片 */
@media (max-width: 768px) {
    .series-track {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 14px 0 0 !important;
    }
    .series-card .series-desc,
    .series-card .series-size {
        display: none !important;
    }
    .series-card .series-info {
        padding: 8px 0 0 !important;
    }
    .series-card .series-en {
        font-size: 8px !important;
        letter-spacing: 0.5px !important;
    }
    .series-card .series-name {
        font-size: 13px !important;
        margin: 2px 0 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .series-card .series-image {
        aspect-ratio: 3 / 4;
    }
    .series-num {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
}
/* 十幅毕加索名画：PC 两行每行5个不滚动 / 手机一行手动循环滑动 */
.paintings-scroll {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}
.paintings-track {
    animation: none !important;
}

/* PC：两行 5 列 */
@media (min-width: 769px) {
    .paintings-scroll {
        overflow: visible !important;
    }
    .paintings-track {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 14px !important;
        padding: 20px 0 0 !important;
    }
    .paintings-track .painting-card {
        flex: none !important;
        width: auto !important;
        min-width: 0 !important;
        aspect-ratio: 4 / 5;
    }
    .paintings-track .painting-card img {
        height: 100% !important;
    }
}

/* 手机：一行横向手动循环滑动 */
@media (max-width: 768px) {
    .paintings-scroll {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .paintings-scroll::-webkit-scrollbar {
        display: none !important;
    }
    .paintings-track {
        display: flex !important;
        gap: 12px !important;
        padding: 14px 0 0 !important;
        scroll-snap-type: x mandatory !important;
    }
    .paintings-track .painting-card {
        flex: 0 0 62vw !important;
        scroll-snap-align: center !important;
        aspect-ratio: 4 / 5;
    }
}
/* 家居场景：PC 一行 4 个不滚动（手机保持横向滑动） */
@media (min-width: 769px) {
    .scenes-scroll {
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
    .scenes-track {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 14px !important;
        padding: 20px 0 0 !important;
        animation: none !important;
    }
    .scenes-track .scene-card {
        flex: none !important;
        width: auto !important;
        min-width: 0 !important;
    }
    .scenes-track .scene-card .scene-image {
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }
    .scenes-track .scene-card .scene-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .scenes-track .scene-card .scene-info {
        padding: 10px 2px 0;
    }
    .scenes-track .scene-card .scene-name {
        font-size: 17px !important;
        margin: 0 0 6px !important;
    }
    .scenes-track .scene-card .scene-desc {
        font-size: 12px !important;
        line-height: 1.6 !important;
        margin-bottom: 6px !important;
    }
    .scenes-track .scene-card .scene-link {
        font-size: 13px !important;
    }
}
/* 实景预览宣传区：对齐 hero 版式（左文右图、文字左对齐、红色按钮） */
.preview-promo {
    padding: 64px 0 !important;
    background: #ffffff !important;
}
.preview-promo-inner {
    display: flex !important;
    align-items: center !important;
    gap: 64px !important;
}
.promo-copy {
    flex: 1 1 48% !important;
    max-width: 580px !important;
    text-align: left !important;
}
.promo-badge {
    display: inline-block !important;
    background: #b02e24 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 4px 12px !important;
    border-radius: 4px !important;
    margin-bottom: 16px !important;
}
.promo-label {
    font-size: 13px !important;
    letter-spacing: 2px !important;
    color: #b02e24 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin: 0 0 12px !important;
}
.promo-title {
    font-size: 40px !important;
    line-height: 1.25 !important;
    color: #191919 !important;
    margin: 0 0 18px !important;
    font-weight: 700 !important;
}
.promo-desc {
    font-size: 15px !important;
    line-height: 1.9 !important;
    color: #555555 !important;
    margin: 0 0 22px !important;
    max-width: 520px !important;
}
.promo-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 26px !important;
}
.promo-features li {
    position: relative !important;
    padding-left: 26px !important;
    font-size: 14px !important;
    color: #555555 !important;
    line-height: 1.8 !important;
    margin-bottom: 6px !important;
}
.promo-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #b02e24;
    font-weight: 700;
}
.promo-copy .btn-primary {
    background: #b02e24 !important;
    color: #ffffff !important;
    border: 1px solid #b02e24 !important;
    padding: 13px 32px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
.promo-copy .btn-primary:hover {
    background: #98261d !important;
}
.promo-visual {
    flex: 1 1 48% !important;
}
.promo-visual img {
    width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 32px rgba(0,0,0,0.10) !important;
}
.promo-visual-note {
    text-align: center !important;
    font-size: 13px !important;
    color: #888888 !important;
    margin-top: 12px !important;
}

/* 手机端堆叠 */
@media (max-width: 768px) {
    .preview-promo-inner {
        flex-direction: column !important;
        gap: 28px !important;
    }
    .promo-copy, .promo-visual {
        width: 100% !important;
        flex: none !important;
        max-width: none !important;
    }
    .promo-title {
        font-size: 30px !important;
    }
}
/* 十幅毕加索名画 v3：PC 一行6个自动循环滚动 / 手机一行3个手动滑动 */
.paintings-scroll {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}
.paintings-track {
    display: flex !important;
    animation: none !important;
    padding: 20px 0 0 !important;
}

/* PC：一行可见 6 个，自动循环 */
@media (min-width: 769px) {
    .paintings-scroll {
        overflow: hidden !important;
    }
    .paintings-track {
        width: max-content !important;
        gap: 14px !important;
    }
    .paintings-track.animate {
        animation: scroll-left 36s linear infinite !important;
    }
    .paintings-scroll:hover .paintings-track {
        animation-play-state: paused !important;
    }
    .paintings-track .painting-card {
        flex: 0 0 220px !important;
        width: 220px !important;
        min-width: 0 !important;
        aspect-ratio: 4 / 5;
    }
    .paintings-track .painting-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
}

/* 手机：一行可见 3 个，手动左右滑动 */
@media (max-width: 768px) {
    .paintings-scroll {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .paintings-scroll::-webkit-scrollbar {
        display: none !important;
    }
    .paintings-track {
        width: auto !important;
        gap: 12px !important;
        padding: 14px 0 0 !important;
        scroll-snap-type: x mandatory !important;
    }
    .paintings-track .painting-card {
        flex: 0 0 calc((100vw - 56px) / 3) !important;
        scroll-snap-align: center !important;
        aspect-ratio: 4 / 5;
    }
    .paintings-track .painting-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
}
/* 实景预览宣传区：容器贴边全宽（与 hero 一致），标题层级对齐 aimiaozai 真实框页 */
.preview-promo .container {
    max-width: 100% !important;
    padding: 0 15px !important;
}
.promo-label {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #191919 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    margin: 0 0 10px !important;
}
.promo-badge {
    margin-bottom: 12px !important;
}
.preview-promo-inner {
    gap: 56px !important;
}
.promo-copy {
    max-width: 600px !important;
}
/* 宣传区内层容器：取消旧 max-width 居中，贴边全宽 */
.preview-promo-inner {
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
}
/* ============ 免费试画框落地页（深色版式） ============ */
.ff-hero {
    background: #151311;
    color: #f5f2ec;
    padding: 72px 0 72px;
}
.ff-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 56px;
}
.ff-copy {
    flex: 1 1 46%;
    max-width: 560px;
}
.ff-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    color: #d98a5f;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.ff-title {
    font-size: 44px;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 20px;
    font-weight: 700;
}
.ff-desc {
    font-size: 15px;
    line-height: 1.9;
    color: #b8b2a8;
    margin: 0 0 28px;
    max-width: 500px;
}
.ff-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.ff-btn-outline {
    display: inline-block;
    padding: 13px 30px;
    border: 1px solid #6d675e;
    border-radius: 8px;
    color: #e8e2d8;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.ff-btn-outline:hover {
    border-color: #ffffff;
    color: #ffffff;
}
.ff-steps {
    display: flex;
    gap: 34px;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid #2c2925;
}
.ff-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #d8d2c8;
}
.ff-step i {
    font-style: normal;
    font-weight: 800;
    color: #b02e24;
    font-size: 16px;
}
.ff-visual {
    flex: 1 1 54%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.ff-sample {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #221f1b;
}
.ff-sample img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.ff-sample-meta {
    padding: 12px 14px 14px;
}
.ff-sample-kind {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1px;
    color: #d98a5f;
    text-transform: uppercase;
    font-weight: 700;
}
.ff-sample-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 4px 0 4px;
}
.ff-sample-size {
    display: block;
    font-size: 12px;
    color: #9a948a;
}

/* 面向商家 */
.ff-merchant {
    background: #1d1a17;
    color: #f5f2ec;
    padding: 56px 0;
}
.ff-merchant .ff-inner {
    justify-content: space-between;
}
.ff-merchant-copy {
    flex: 1 1 60%;
}
.ff-merchant-title {
    font-size: 32px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 14px;
    font-weight: 700;
}
.ff-merchant-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #b8b2a8;
    margin: 0;
    max-width: 560px;
}
.ff-merchant-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #b02e24;
    color: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.ff-merchant-btn:hover {
    background: #98261d;
}

/* 按作品类型 */
.ff-types {
    background: #151311;
    color: #f5f2ec;
    padding: 64px 0;
}
.ff-types-head, .ff-featured-head {
    margin-bottom: 32px;
}
.ff-types-title, .ff-featured-title {
    font-size: 34px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
}
.ff-types-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.ff-type-card {
    display: block;
    background: #221f1b;
    border: 1px solid #2c2925;
    border-radius: 12px;
    padding: 26px 18px;
    text-decoration: none;
    text-align: center;
    transition: border-color .2s;
}
.ff-type-card:hover {
    border-color: #b02e24;
}
.ff-type-name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}
.ff-type-tip {
    display: block;
    font-size: 12px;
    color: #9a948a;
    line-height: 1.5;
}

/* 精选试框 */
.ff-featured {
    background: #1d1a17;
    color: #f5f2ec;
    padding: 64px 0 72px;
}
.ff-featured-desc {
    font-size: 14px;
    color: #b8b2a8;
    margin: 12px 0 0;
}
.ff-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.ff-featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #221f1b;
}
.ff-featured-card img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.ff-featured-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 14px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
}
.ff-featured-more {
    margin-top: 32px;
    text-align: center;
}

/* freeform 手机端适配 */
@media (max-width: 768px) {
    .ff-hero {
        padding: 40px 0 48px;
    }
    .ff-inner {
        flex-direction: column;
        gap: 28px;
    }
    .ff-copy, .ff-visual {
        flex: none;
        width: 100%;
        max-width: none;
    }
    .ff-title {
        font-size: 30px;
    }
    .ff-steps {
        gap: 18px;
        flex-wrap: wrap;
    }
    .ff-sample img {
        height: 140px;
    }
    .ff-merchant .ff-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .ff-types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .ff-type-card {
        padding: 18px 10px;
    }
    .ff-type-name {
        font-size: 15px;
    }
    .ff-featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .ff-featured-card img {
        height: 180px;
    }
}
/* ============ 免费试画框 v2：真实框库（白底，对标 aimiaozai/freeform 截图） ============ */
.rf-hero {
    background: #ffffff;
    padding: 64px 0 56px;
    border-bottom: 1px solid #eeece7;
}
.rf-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 56px;
}
.rf-copy {
    flex: 1 1 50%;
    max-width: 620px;
}
.rf-kicker {
    display: inline-block;
    font-size: 14px;
    color: #191919;
    font-weight: 700;
    margin-bottom: 14px;
}
.rf-title {
    font-size: 42px;
    line-height: 1.25;
    color: #191919;
    margin: 0 0 20px;
    font-weight: 700;
}
.rf-desc {
    font-size: 15px;
    line-height: 1.9;
    color: #555555;
    margin: 0 0 30px;
    max-width: 560px;
}
.rf-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.rf-btn-outline {
    display: inline-block;
    padding: 13px 30px;
    border: 1px solid #d6d3cc;
    border-radius: 8px;
    color: #191919;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.rf-btn-outline:hover {
    border-color: #b02e24;
    color: #b02e24;
}
.rf-visual {
    flex: 1 1 50%;
}
.rf-visual-frame {
    position: relative;
    display: inline-block;
    max-width: 560px;
}
.rf-visual-frame img {
    display: block;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.rf-visual-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #b02e24;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}
.rf-visual-name {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0,0,0,0.55);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

/* 真实框库 */
.rf-library {
    background: #ffffff;
    padding: 56px 0 40px;
}
.rf-lib-title {
    font-size: 26px;
    font-weight: 700;
    color: #191919;
    margin: 0 0 8px;
}
.rf-lib-desc {
    font-size: 13px;
    color: #888888;
    margin: 0 0 24px;
}
.rf-lib-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.rf-lib-tabs {
    display: flex;
    gap: 8px;
}
.rf-tab {
    padding: 8px 20px;
    border: 1px solid #d6d3cc;
    border-radius: 999px;
    background: #ffffff;
    color: #555555;
    font-size: 14px;
    cursor: pointer;
}
.rf-tab.active {
    background: #191919;
    border-color: #191919;
    color: #ffffff;
}
.rf-search {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rf-search-input {
    padding: 9px 14px;
    border: 1px solid #d6d3cc;
    border-radius: 8px;
    font-size: 14px;
    color: #191919;
    width: 240px;
    outline: none;
}
.rf-search-input:focus {
    border-color: #b02e24;
}
.rf-search-btn {
    padding: 9px 18px;
    background: #191919;
    color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.rf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.rf-card {
    border: 1px solid #eeece7;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    transition: box-shadow .2s, border-color .2s;
}
.rf-card:hover {
    border-color: #b02e24;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.rf-card-img {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f5f3ef;
}
.rf-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rf-card-meta {
    padding: 12px 14px 14px;
}
.rf-card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.rf-card-tag {
    font-size: 10px;
    letter-spacing: 1px;
    color: #b02e24;
    font-weight: 700;
}
.rf-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #191919;
}

/* 模板详情 */
.rf-detail {
    background: #ffffff;
    padding: 16px 0 64px;
}
.rf-detail-card {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #eeece7;
    border-radius: 14px;
    padding: 28px;
}
.rf-detail-img {
    flex: 0 0 320px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f3ef;
}
.rf-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rf-detail-info {
    flex: 1;
}
.rf-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: #191919;
    margin: 0 0 12px;
}
.rf-detail-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #555555;
    margin: 0 0 20px;
}
.rf-detail-spec {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0eee9;
    font-size: 14px;
}
.rf-detail-spec span {
    color: #888888;
}
.rf-detail-spec b {
    color: #191919;
    font-weight: 600;
}
.rf-detail-ship {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
    color: #b08d3e;
    background: #faf6ec;
    border: 1px solid #e9dfc4;
    padding: 4px 12px;
    border-radius: 999px;
}
.rf-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .rf-hero {
        padding: 36px 0 32px;
    }
    .rf-inner {
        flex-direction: column;
        gap: 26px;
    }
    .rf-copy, .rf-visual {
        width: 100%;
        flex: none;
        max-width: none;
    }
    .rf-title {
        font-size: 30px;
    }
    .rf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .rf-search-input {
        width: 160px;
    }
    .rf-detail-card {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }
    .rf-detail-img {
        flex: none;
        width: 100%;
    }
    .rf-lib-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* 家居场景：手机端一行 2 图，共 4 图，左右手动滑动 */
@media (max-width: 768px) {
    .scenes-scroll {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        margin: 0 -16px !important;
        padding: 0 16px !important;
        scrollbar-width: none;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
    .scenes-scroll::-webkit-scrollbar {
        display: none;
    }
    .scenes-track {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 12px !important;
        animation: none !important;
        padding: 20px 0 0 !important;
    }
    .scenes-track .scene-card {
        flex: 0 0 calc((100vw - 44px) / 2) !important;
        width: auto !important;
        min-width: 0 !important;
        scroll-snap-align: start;
    }
    .scenes-track .scene-card .scene-image {
        height: auto !important;
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }
    .scenes-track .scene-card .scene-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .scenes-track .scene-card .scene-info {
        padding: 10px 2px 0 !important;
    }
    .scenes-track .scene-card .scene-name {
        font-size: 14px !important;
        margin: 0 0 4px !important;
    }
    .scenes-track .scene-card .scene-desc {
        font-size: 11px !important;
        line-height: 1.5 !important;
        margin-bottom: 4px !important;
    }
    .scenes-track .scene-card .scene-link {
        font-size: 12px !important;
    }
}
/* 宣传区与家居场景区边距对齐：统一 max-width 1440 居中（覆盖 max-width:100% 贴边） */
.preview-promo .container {
    max-width: 1440px !important;
    margin: 0 auto !important;
}
/* freeform hero：右侧图缩小并居中，不再占满整列 */
.rf-visual {
    flex: 1 1 44% !important;
    display: flex;
    justify-content: center;
}
.rf-visual-frame {
    max-width: 460px !important;
}
.rf-visual-frame img {
    width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: cover !important;
}
@media (max-width: 768px) {
    .rf-visual-frame {
        max-width: 100% !important;
    }
    .rf-visual-frame img {
        max-height: 420px !important;
    }
}
/* freeform 真实框库：头部横排在上，卡片一行 6 个自由滚动（PC） */
.rf-library .rf-inner {
    display: block !important;
}
.rf-lib-head {
    margin-bottom: 8px;
}
@media (min-width: 769px) {
    .rf-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 16px !important;
        padding-bottom: 10px;
        scrollbar-width: thin;
    }
    .rf-grid::-webkit-scrollbar {
        height: 6px;
    }
    .rf-grid::-webkit-scrollbar-thumb {
        background: #d6d3cc;
        border-radius: 3px;
    }
    .rf-card {
        flex: 0 0 calc((100% - 80px) / 6) !important;
        scroll-snap-align: start;
    }
}
/* freeform 卡片对齐首页名画区：纯图无文字标签 */
.rf-card-meta {
    display: none !important;
}
.rf-card-img {
    aspect-ratio: 4 / 5 !important;
}
/* freeform 卡片区：无滚动条；PC 自动左右滚动（JS 驱动 scrollLeft） */
.rf-grid {
    scrollbar-width: none !important;
}
.rf-grid::-webkit-scrollbar {
    display: none !important;
}
@media (min-width: 769px) {
    .rf-grid {
        scroll-snap-type: none !important;
        overflow-x: auto;
    }
}
/* freeform 详情卡：拉满容器宽度，右侧家居场景图 */
.rf-detail-card {
    width: 100% !important;
    flex: 1 1 auto !important;
}
.rf-detail-scene {
    flex: 1 1 0 !important;
    min-width: 0;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f3ef;
}
.rf-detail-scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .rf-detail-card {
        flex-direction: column !important;
    }
    .rf-detail-scene {
        width: 100%;
        aspect-ratio: 16 / 10;
    }
}
/* freeform hero 对齐 aimiaozai：文字加大、图片加高 */
.rf-hero {
    padding: 96px 0 80px !important;
}
.rf-kicker {
    font-size: 20px !important;
    margin-bottom: 20px !important;
}
.rf-title {
    font-size: 66px !important;
    line-height: 1.3 !important;
    margin-bottom: 24px !important;
}
.rf-desc {
    font-size: 28px !important;
    line-height: 1.65 !important;
    margin-bottom: 36px !important;
    max-width: 640px;
}
.rf-actions .btn-primary,
.rf-btn-outline {
    font-size: 17px !important;
    padding: 14px 34px !important;
}
.rf-visual-frame {
    max-width: 560px !important;
}
.rf-visual-frame img {
    max-height: 700px !important;
}
@media (max-width: 768px) {
    .rf-hero {
        padding: 48px 0 44px !important;
    }
    .rf-kicker {
        font-size: 17px !important;
    }
    .rf-title {
        font-size: 38px !important;
    }
    .rf-desc {
        font-size: 18px !important;
        line-height: 1.7 !important;
    }
    .rf-visual-frame img {
        max-height: 440px !important;
    }
}
/* freeform hero：图顶对齐标题、图底对齐按钮（高度收紧） */
.rf-inner {
    align-items: flex-start !important;
}
.rf-visual-frame {
    max-width: 528px !important;
}
.rf-visual-frame img {
    max-height: 660px !important;
}
/* freeform 公开真实框库：文字对齐 aimiaozai 大小 */
.rf-lib-title {
    font-size: 56px !important;
    line-height: 1.25 !important;
    margin-bottom: 26px !important;
}
.rf-lib-desc {
    font-size: 27px !important;
    line-height: 1.6 !important;
    color: #555555 !important;
    margin-bottom: 36px !important;
    max-width: 820px;
}
.rf-tab {
    font-size: 22px !important;
    padding: 10px 28px !important;
}
.rf-search-input {
    font-size: 18px !important;
    padding: 12px 16px !important;
    width: 260px !important;
}
.rf-search-btn {
    font-size: 18px !important;
    padding: 12px 24px !important;
}
@media (max-width: 768px) {
    .rf-lib-title {
        font-size: 34px !important;
    }
    .rf-lib-desc {
        font-size: 18px !important;
    }
    .rf-tab {
        font-size: 16px !important;
        padding: 8px 18px !important;
    }
    .rf-search-input {
        font-size: 16px !important;
        width: 100% !important;
    }
}
/* freeform hero：图片进一步缩小，顶对标题、底对按钮 */
.rf-visual-frame {
    max-width: 448px !important;
    max-height: 560px !important;
    margin-top: 0 !important;
}
.rf-visual-frame img {
    width: 100% !important;
    max-height: 560px !important;
}
/* freeform hero：图片宽上限 348px（4:5 → 高 435px） */
.rf-visual-frame {
    max-width: 348px !important;
    max-height: 435px !important;
}
.rf-visual-frame img {
    max-height: 435px !important;
}
/* freeform hero：图片宽上限 388px（4:5 → 高 485px） */
.rf-visual-frame {
    max-width: 388px !important;
    max-height: 485px !important;
}
.rf-visual-frame img {
    max-height: 485px !important;
}
/* freeform 详情卡：左右图一般高，板块淡背景 */
.rf-detail {
    background: #f7f5f1 !important;
}
.rf-detail-card {
    background: #ffffff !important;
}
.rf-detail-img {
    flex: 0 0 320px !important;
    height: 400px !important;
    aspect-ratio: auto !important;
}
.rf-detail-scene {
    height: 400px !important;
    aspect-ratio: auto !important;
}
@media (max-width: 768px) {
    .rf-detail-img {
        height: auto !important;
        aspect-ratio: 4 / 5 !important;
        width: 100% !important;
        flex: none !important;
    }
    .rf-detail-scene {
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
    }
}
/* freeform 手机端修正：hero 图收紧、搜索框自适应 */
@media (max-width: 768px) {
    .rf-visual-frame {
        max-width: 100% !important;
        max-height: none !important;
    }
    .rf-visual-frame img {
        max-height: 340px !important;
    }
    .rf-search {
        width: 100% !important;
    }
    .rf-search-input {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }
}
/* freeform 手机端：按钮加大（各占一半宽），标题收紧 */
@media (max-width: 768px) {
    .rf-title {
        font-size: 32px !important;
        line-height: 1.3 !important;
    }
    .rf-actions {
        gap: 10px !important;
    }
    .rf-actions .btn-primary,
    .rf-btn-outline {
        flex: 1 1 0 !important;
        text-align: center !important;
        font-size: 16px !important;
        padding: 15px 10px !important;
        min-height: 50px !important;
        line-height: 1.4 !important;
    }
    .rf-detail-actions .btn-primary,
    .rf-detail-actions .rf-btn-outline {
        flex: 1 1 0 !important;
        text-align: center !important;
        font-size: 15px !important;
        padding: 13px 8px !important;
        min-height: 46px !important;
    }
}
/* freeform hero 字体对齐首页 hero（以首页为基准） */
.rf-kicker {
    font-size: 14px !important;
    margin-bottom: 16px !important;
}
.rf-title {
    font-size: 46px !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
}
.rf-desc {
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin-bottom: 28px !important;
}
.rf-actions .btn-primary,
.rf-btn-outline {
    font-size: 15px !important;
    padding: 12px 28px !important;
}
@media (max-width: 768px) {
    .rf-kicker {
        font-size: 13px !important;
    }
    .rf-title {
        font-size: 30px !important;
    }
    .rf-desc {
        font-size: 15px !important;
    }
}
/* freeform 公开真实框库：字号对齐首页协调（回调缩小） */
.rf-lib-title {
    font-size: 40px !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
}
.rf-lib-desc {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #555555 !important;
    margin-bottom: 26px !important;
    max-width: 720px;
}
.rf-tab {
    font-size: 16px !important;
    padding: 10px 24px !important;
}
.rf-search-input {
    font-size: 15px !important;
    padding: 11px 15px !important;
    width: 240px !important;
}
.rf-search-btn {
    font-size: 15px !important;
    padding: 11px 22px !important;
}
@media (max-width: 768px) {
    .rf-lib-title {
        font-size: 30px !important;
    }
    .rf-lib-desc {
        font-size: 15px !important;
    }
    .rf-tab {
        font-size: 15px !important;
        padding: 8px 18px !important;
    }
    .rf-search-input {
        font-size: 15px !important;
    }
}
/* ============ App 化手机端（底部导航 + 编辑器工作界面） ============ */
/* 手机端底部导航 */
.mobile-nav {
    display: none;
}
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 58px;
        background: #ffffff;
        border-top: 1px solid #ece9e3;
        z-index: 200;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mnav-item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #8a867f;
        text-decoration: none;
        font-size: 11px;
        -webkit-tap-highlight-color: transparent;
    }
    .mnav-item.active {
        color: #b02e24;
        font-weight: 600;
    }
    /* 站点页脚为底部导航让位 */
    .site-footer, .footer-grid {
        padding-bottom: 66px !important;
    }
}
/* 编辑器页用自己的底部工具 Tab，隐藏站点底部导航 */
body.preview-editor .mobile-nav {
    display: none !important;
}

/* freeform 手机端：hero 按钮竖排全宽大按钮 */
@media (max-width: 768px) {
    .rf-actions {
        flex-direction: column;
        width: 100%;
    }
    .rf-actions .btn-primary,
    .rf-actions .rf-btn-outline {
        width: 100% !important;
        flex: none !important;
        text-align: center !important;
        font-size: 16px !important;
        padding: 15px 10px !important;
        min-height: 52px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============ 实景预览编辑器：手机端 App 工作界面 ============ */
@media (max-width: 768px) {
    body.preview-editor .preview-section {
        min-height: 100vh;
    }
    body.preview-editor .preview-layout {
        height: calc(100vh - 60px);
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    /* 画布居中占大头 */
    .preview-canvas-area {
        order: 1;
        flex: 1 1 auto;
        min-height: 0;
        padding: 12px 12px 8px;
        display: flex;
        flex-direction: column;
    }
    .preview-canvas-area .preview-canvas {
        width: 100%;
        height: auto;
        flex: none !important;
        min-height: 46vh;
        margin: auto;
    }
    .preview-canvas-area .canvas-toolbar {
        flex: none;
        margin-top: 8px;
        justify-content: center;
    }
    /* 选项抽屉：底部工具 Tab 上方弹出 */
    .preview-options {
        order: 2;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 60px;
        width: 100%;
        max-height: 40vh;
        overflow-y: auto;
        z-index: 30;
        background: #ffffff;
        border-radius: 16px 16px 0 0;
        border-top: 1px solid #eee;
        box-shadow: 0 -4px 18px rgba(0,0,0,0.08);
        padding: 12px 12px 16px;
    }
    .preview-options .options-grid {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .preview-options .option-item {
        flex: 0 0 84px;
        padding: 6px;
    }
    /* 底部工具 Tab（原左侧导航） */
    .preview-sidebar {
        order: 3;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 60px;
        min-height: 60px;
        z-index: 40;
        background: #ffffff;
        border-top: 1px solid #ece9e3;
        border-right: none;
        flex-direction: row;
        justify-content: space-around;
        padding: 6px 4px;
        top: auto !important;
    }
    .side-btn {
        width: auto;
        padding: 6px 8px;
        flex-direction: column;
        gap: 2px;
        font-size: 10px;
        border-radius: 10px;
        flex: 1 1 0;
    }
    .side-btn svg {
        width: 20px;
        height: 20px;
    }
    .side-btn.active {
        color: #b02e24;
    }
}
/* PC 端：也隐藏编辑器顶栏，上传/保存统一到画布底栏 */
@media (min-width: 769px) {
    body.preview-editor .editor-header {
        display: none !important;
    }
    .m-editor-actions {
        display: flex;
        gap: 8px;
        margin-right: 12px;
    }
    .m-editor-actions .m-editor-btn {
        padding: 8px 18px;
        font-size: 14px;
        border-radius: 6px;
        border: 1px solid #d9d5cd;
        background: #fff;
        color: #191919;
        cursor: pointer;
    }
    .m-editor-actions .m-editor-btn:first-child {
        background: #191919;
        color: #fff;
        border-color: #191919;
    }
}
/* 手机端：隐藏编辑器顶栏，上传/保存移到画布底栏 */
.m-editor-actions {
    display: none;
}
@media (max-width: 768px) {
    body.preview-editor .editor-header {
        display: none !important;
    }
    .m-editor-actions {
        display: flex;
        gap: 8px;
    }
    .m-editor-btn {
        padding: 8px 14px;
        border: 1px solid #e5e2dc;
        border-radius: 8px;
        background: #ffffff;
        font-size: 13px;
        color: #333333;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .m-editor-btn#mUploadBtn {
        background: #191919;
        color: #ffffff;
        border-color: #191919;
    }
}
/* 手机端编辑器底栏加固：防浏览器工具栏遮挡 */
@media (max-width: 768px) {
    .preview-sidebar {
        height: 64px;
        min-height: 64px;
        z-index: 999 !important;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .preview-options {
        bottom: 64px;
        max-height: 34vh;
    }
}
/* 手机端画布内容放大：画框组件加宽、画布收紧，消除上方大片空白 */
@media (max-width: 768px) {
    .preview-canvas-area .preview-canvas {
        min-height: 42vh;
    }
    .preview-canvas .frame-wrapper,
    .preview-canvas .frame-wrapper.multi-mode {
        width: 76% !important;
    }
}
/* 手机端画布贴合内容：画布区不撑满，高度跟随照片比例，消除上方空白 */
@media (max-width: 768px) {
    .preview-canvas-area {
        flex: 0 0 auto;
        padding: 10px 12px 8px;
    }
    .preview-canvas-area .preview-canvas {
        min-height: 38vh;
    }

    .preview-canvas .frame-wrapper,
    .preview-canvas .frame-wrapper.multi-mode {
        width: 76% !important;
    }
}
/* 手机端空间让位画布：抽屉、底栏整体压缩 */
@media (max-width: 768px) {
    /* 选项抽屉更矮更紧 */
    .preview-options {
        max-height: 28vh;
        padding: 8px 10px 12px;
    }
    .preview-options .panel-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .preview-options .opt-cats {
        margin-bottom: 8px;
    }
    .preview-options .option-item {
        flex-basis: 72px;
        padding: 4px;
    }
    .preview-options .option-item img,
    .preview-options .option-item .frame-preview,
    .preview-options .option-item .mat-preview {
        height: 48px;
    }
    .adjust-tools {
        gap: 6px;
    }
    .adjust-tools .tool-row {
        gap: 8px;
        margin: 0;
    }
    .tool-label {
        font-size: 12px;
    }
    /* 画布底栏一行紧凑 */
    .preview-canvas-area .canvas-toolbar {
        gap: 6px;
        margin-top: 4px;
        padding: 4px 0;
    }
    .canvas-toolbar .mode-btn {
        padding: 5px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    .m-editor-btn {
        padding: 5px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    .canvas-toolbar .zoom-controls {
        gap: 4px;
    }
    .canvas-toolbar .zoom-value {
        font-size: 11px;
    }
    .canvas-toolbar .zoom-step,
    .canvas-toolbar .rotate-btn {
        width: 26px;
        height: 26px;
    }
}
/* 手机端画布底栏压成一行小按钮 */
@media (max-width: 768px) {
    .preview-canvas-area .canvas-toolbar {
        flex-wrap: nowrap;
        gap: 4px;
        padding: 0;
        margin-top: 4px;
        justify-content: flex-start;
    }
    .canvas-toolbar .m-editor-btn,
    .canvas-toolbar .mode-btn {
        padding: 3px 8px;
        font-size: 11px;
        border-radius: 6px;
        white-space: nowrap;
        min-height: 0;
    }
    .canvas-toolbar .zoom-controls {
        gap: 2px;
        margin-left: auto;
    }
    .canvas-toolbar .zoom-value {
        font-size: 10px;
        min-width: 28px;
    }
    .canvas-toolbar .zoom-step,
    .canvas-toolbar .rotate-btn {
        width: 22px;
        height: 22px;
        padding: 0;
    }
    .canvas-toolbar .zoom-step svg,
    .canvas-toolbar .rotate-btn svg {
        width: 12px;
        height: 12px;
    }
    .canvas-toolbar .position-selector {
        display: none;
    }
}
/* 手机端：画布撑满可用高度，底栏贴底 */
@media (max-width: 768px) {
    .preview-canvas-area {
        flex: 1 1 auto;
        padding: 10px 12px 8px;
        justify-content: flex-start;
    }
    .preview-canvas-area .preview-canvas {
        flex: 1 1 auto;
        min-height: 0;
        margin: 0;
        width: 100%;
        align-self: stretch;
    }
    .preview-canvas-area .canvas-toolbar {
        margin-top: 8px;
    }
}
/* 手机端：工具栏在选项抽屉顶部时的样式 */
@media (max-width: 768px) {
    .preview-options .canvas-toolbar {
        margin: 0 0 8px;
        padding: 0 0 8px;
        border-bottom: 1px solid #f0eee9;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
    }
}
/* 手机端最终布局修正：画布强制撑满 + 抽屉工具栏强制单行 */
@media (max-width: 768px) {
    .preview-canvas-area .preview-canvas {
        flex: 1 1 auto !important;
        min-height: 0 !important;
    }
    .preview-options .canvas-toolbar {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        gap: 4px;
        margin: 0 0 8px;
        padding: 0 0 8px;
        border-bottom: 1px solid #f0eee9;
    }
    .preview-options .canvas-toolbar .m-editor-btn,
    .preview-options .canvas-toolbar .mode-btn {
        flex: 0 0 auto !important;
        padding: 3px 7px !important;
        font-size: 11px !important;
        min-height: 0 !important;
        white-space: nowrap;
    }
    .preview-options .canvas-toolbar .zoom-controls {
        flex: 0 0 auto;
        gap: 2px;
        margin-left: 4px;
    }
}
/* 手机端：画布区底部预留抽屉空间，画布不跑到抽屉下面 */
@media (max-width: 768px) {
    .preview-canvas-area {
        padding-bottom: calc(28vh + 74px) !important;
    }
}
/* 手机端：上传/保存/单幅/双联/三联 五按钮外观统一 */
@media (max-width: 768px) {
    .preview-options .canvas-toolbar .m-editor-btn,
    .preview-options .canvas-toolbar .mode-btn {
        background: #ffffff;
        color: #333333;
        border: 1px solid #e5e2dc;
    }
    .preview-options .canvas-toolbar .m-editor-btn#mUploadBtn {
        background: #ffffff;
        color: #333333;
        border-color: #e5e2dc;
    }
    .preview-options .canvas-toolbar .mode-btn.active {
        background: #191919;
        color: #ffffff;
        border-color: #191919;
    }
}
/* 多幅模式：每幅独立画框/卡纸 */
.preview-canvas .frame-wrapper.multi-wrap {
    width: 76%;
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.preview-canvas .frame-wrapper.multi-wrap .mi-item {
    flex: 1;
    min-width: 0;
    position: relative;
    cursor: pointer;
    border-radius: 4px;
}
.preview-canvas .frame-wrapper.multi-wrap .mi-swap {
    position: absolute;
    top: -6px;
    left: -6px;
    z-index: 30;
    min-width: 46px;
    height: 24px;
    line-height: 24px;
    padding: 0 8px;
    border: none;
    border-radius: 12px;
    background: #b02e24;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
    touch-action: manipulation;
}
.mi-item.active {
    outline: 2px solid #b02e24;
    outline-offset: 3px;
    border-radius: 4px;
}
.preview-canvas .frame-wrapper.multi-wrap .mi-frame {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
}
.preview-canvas .frame-wrapper.multi-wrap .mi-mat {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}
.preview-canvas .frame-wrapper.multi-wrap .painting-display {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 2px;
}
.preview-canvas .frame-wrapper.multi-wrap .painting-display .multi-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* 多幅幅数控制行 */
.multi-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px 2px 8px;
}
.multi-controls .mc-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;

    font-size: 12px;
    color: #888;
    border-bottom: 1px solid #f0eee9;
}
.multi-controls .mc-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e5e2dc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.multi-controls .mc-btn:active { background: #f0eee9; }
.multi-controls .mc-sep { flex: 1; }
.multi-controls .mc-count,
.multi-controls .mc-cur { font-weight: 600; color: #191919; }
/* 多幅自动排列：墙上挂画错落布局 */
.preview-canvas .frame-wrapper.multi-wrap.auto-layout {
    display: block;
    width: 82%;
    height: 84%;
}
.preview-canvas .frame-wrapper.multi-wrap.auto-layout .mi-item {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
}
.preview-canvas .frame-wrapper.multi-wrap.auto-layout .mi-frame {
    width: 100%;
    height: 100%;
}
.preview-canvas .frame-wrapper.multi-wrap.auto-layout .mi-mat {
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.preview-canvas .frame-wrapper.multi-wrap.auto-layout .painting-display {
    flex: 1;
    width: auto;
    height: auto;
    aspect-ratio: auto;
}
.multi-controls .mc-auto {
    width: auto;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
}
.multi-controls .mc-auto.active {
    background: #b02e24;
    color: #fff;
    border-color: #b02e24;
}.multi-controls .mc-txt {
    width: auto;
    padding: 0 7px;
    font-size: 12px;
    white-space: nowrap;
}
.multi-controls { overflow-x: auto; }