/* public/assets/css/life/welcome-screen.css */

.wg-workspace { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    width: 100%; 
    box-sizing: border-box;
}

/* =========================================================
   UI 控制台元素 (平铺网格布局)
   ========================================================= */
.wg-control-panel { 
    width: 100%; 
    background: var(--bg-surface); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    padding: 24px; 
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* 一行排开的响应式网格 */
.wg-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: flex-end;
}

.wg-control-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }

.wg-select, .wg-color-picker { width: 100%; height: 42px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-main); font-size: 0.95rem; font-weight: 600; cursor: pointer; outline: none; transition: 0.2s; box-sizing: border-box;}
.wg-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 0, 102, 204), 0.1); }
.wg-color-picker { padding: 2px 4px; }

.wg-btn-secondary { width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--bg-body); color: var(--text-main); border: 2px dashed var(--border-color); border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s; padding: 0 10px; overflow: hidden; white-space: nowrap;}
.wg-btn-secondary:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(var(--primary-rgb, 0, 102, 204), 0.05);}
.wg-btn-text { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; margin-left: 4px;}

.wg-btn-export { width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary-color); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 800; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 10px rgba(var(--primary-rgb, 0, 102, 204), 0.3); box-sizing: border-box; white-space: nowrap;}
.wg-btn-export:hover { opacity: 0.9; transform: translateY(-2px); }

/* 滑块样式美化 */
.wg-range { -webkit-appearance: none; width: 100%; height: 6px; background: rgba(0,0,0,0.1); border-radius: 4px; outline: none; margin-top: 15px; margin-bottom: 3px; }
[data-theme="dark"] .wg-range { background: rgba(255,255,255,0.1); }
.wg-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-color); cursor: pointer; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.wg-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* =========================================================
   核心 16:9 物理画布 (数字标牌级展示引擎 - 绝对居中缩放)
   ========================================================= */
.wg-canvas-container { 
    width: 100%; 
    box-sizing: border-box; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--border-color); 
    overflow: hidden; 
    position: relative; 
    background: #000000; /* 全屏时若屏幕不是 16:9，周边会显示酷黑的电影边框 */
}

/* 全屏状态下去除边框和圆角 */
.wg-canvas-container.is-fullscreen {
    border-radius: 0 !important;
    border: none !important;
}

.wg-board-scaler { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 1920px; 
    height: 1080px; 
    transform-origin: center center; 
    /* transform: translate(-50%, -50%) scale(X) 会由 JS 动态注入 */
}

/* 核心画板本体 (1920 x 1080) */
.wg-board {
    width: 100%; height: 100%; background-color: #0f172a; background-size: cover; background-position: center; background-repeat: no-repeat;
    display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative;
    --wg-custom-text: inherit; --wg-title-scale: 1; --wg-sub-scale: 1;
}

.wg-board-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 1; display: none; }
.wg-board.has-bg-image .wg-board-overlay { display: block; }

/* 商业级：顶部状态栏 (品牌标识与时钟) */
.wg-top-bar {
    position: absolute; top: 60px; left: 80px; right: 80px; display: flex; justify-content: space-between; align-items: center; font-size: 28px; font-weight: 500; z-index: 10;
}
.wg-top-clock { font-family: 'Inter', monospace; letter-spacing: 2px; }

.wg-board-content { position: relative; z-index: 2; text-align: center; width: 85%; max-width: 1600px; display: flex; flex-direction: column; align-items: center;}

/* 编辑态与防呆换行 */
.wg-editable { outline: none; border: 2px dashed transparent; transition: 0.2s; min-height: 1.2em; display: inline-block; width: 100%; word-break: break-word; white-space: pre-wrap; border-radius: 8px;}
.wg-canvas-container:not(.is-fullscreen) .wg-editable:hover { border: 2px dashed rgba(255,255,255,0.4); }
.wg-canvas-container:not(.is-fullscreen) .wg-editable:focus { border: 2px dashed #3b82f6; background: rgba(0,0,0,0.2); }
.wg-top-brand { width: auto; padding: 4px 16px; margin-left: -16px;}

/* ---------------------------------------------------------
   模板 1：Corporate (苹果发布会级 Apple Keynote Style)
   --------------------------------------------------------- */
.tpl-corp { 
    background-color: #000000; 
    background-image: radial-gradient(circle at 50% 0%, #1e3a8a 0%, transparent 60%);
    color: var(--wg-custom-text, #ffffff); 
    font-family: 'Inter', system-ui, sans-serif; 
}
.tpl-corp .wg-top-bar { color: rgba(255,255,255,0.5); }
.tpl-corp .wg-sub-title { font-size: calc(36px * var(--wg-sub-scale)); font-weight: 500; letter-spacing: 8px; color: #94a3b8; margin-bottom: 24px; text-transform: uppercase;}
.tpl-corp .wg-main-title { 
    font-size: calc(150px * var(--wg-title-scale)); line-height: 1.15; font-weight: 800; letter-spacing: -3px; margin-bottom: 40px; 
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tpl-corp .wg-footer-title { font-size: calc(28px * var(--wg-sub-scale)); font-weight: 500; color: #3b82f6; width: auto;}
.tpl-corp .wg-decor-line { display: none; }

/* ---------------------------------------------------------
   模板 2：Elegant (高奢黑金 Luxury Gala)
   --------------------------------------------------------- */
.tpl-elegant { 
    background-color: #0f172a; color: var(--wg-custom-text, #fbbf24); 
    font-family: 'Georgia', 'Playfair Display', serif; 
}
.tpl-elegant::before { content: ''; position: absolute; inset: 40px; border: 1px solid rgba(251, 191, 36, 0.4); pointer-events: none; z-index: 1;}
.tpl-elegant::after { content: ''; position: absolute; inset: 48px; border: 1px solid rgba(251, 191, 36, 0.1); pointer-events: none; z-index: 1;}
.tpl-elegant .wg-top-bar { color: #fbbf24; border-bottom: 1px solid rgba(251, 191, 36, 0.3); padding-bottom: 20px;}
.tpl-elegant .wg-sub-title { font-size: calc(40px * var(--wg-sub-scale)); font-style: italic; color: #cbd5e1; margin-bottom: 30px;}
.tpl-elegant .wg-main-title { font-size: calc(140px * var(--wg-title-scale)); line-height: 1.15; font-weight: 400; margin-bottom: 50px; letter-spacing: 2px;}
.tpl-elegant .wg-footer-title { font-size: calc(24px * var(--wg-sub-scale)); letter-spacing: 12px; color: #94a3b8; text-transform: uppercase; width: auto;}
.tpl-elegant .wg-decor-line { display: none; }

/* ---------------------------------------------------------
   模板 3：Tech (Web3数据网格 Cyber Grid)
   --------------------------------------------------------- */
.tpl-tech { 
    background-color: #020617; color: var(--wg-custom-text, #ffffff); font-family: 'Courier New', monospace; 
    background-image: linear-gradient(rgba(30, 41, 59, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 41, 59, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
}
.tpl-tech .wg-top-bar { color: #22d3ee; }
.tpl-tech .wg-board-content { align-items: flex-start; text-align: left; width: 80%; }
.tpl-tech .wg-sub-title { font-size: calc(35px * var(--wg-sub-scale)); color: #22d3ee; margin-bottom: 20px; text-transform: uppercase;}
.tpl-tech .wg-sub-title::before { content: "SYSTEM.LOG> "; color: #e879f9;}
.tpl-tech .wg-main-title { font-size: calc(160px * var(--wg-title-scale)); line-height: 1.15; font-weight: 900; margin-bottom: 40px; color: #fff; text-shadow: 0 0 30px rgba(34, 211, 238, 0.4);}
.tpl-tech .wg-footer-title { font-size: calc(30px * var(--wg-sub-scale)); background: #22d3ee; color: #000; padding: 10px 20px; font-weight: bold; width: auto;}
.tpl-tech .wg-decor-line { display: none; }

/* ---------------------------------------------------------
   模板 4：Party (现代毛玻璃 Glassmorphism)
   --------------------------------------------------------- */
.tpl-party { 
    background: linear-gradient(45deg, #f43f5e, #8b5cf6, #0ea5e9); background-size: 200% 200%; animation: gradientFlow 10s ease infinite; 
    color: var(--wg-custom-text, #ffffff); font-family: 'Inter', system-ui, sans-serif; 
}
@keyframes gradientFlow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.tpl-party .wg-top-bar { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.2);}
.tpl-party .wg-board-content {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px; padding: 100px 80px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.tpl-party .wg-sub-title { font-size: calc(36px * var(--wg-sub-scale)); font-weight: 600; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 4px;}
.tpl-party .wg-main-title { font-size: calc(150px * var(--wg-title-scale)); line-height: 1.05; font-weight: 900; margin-bottom: 30px; letter-spacing: -2px;}
.tpl-party .wg-footer-title { font-size: calc(28px * var(--wg-sub-scale)); font-weight: 500; opacity: 0.9; width: auto;}
.tpl-party .wg-decor-line { display: none; }

/* ---------------------------------------------------------
   模板 5：Minimalist (瑞士平面设计 Swiss Design)
   --------------------------------------------------------- */
.tpl-minimal { 
    background: #f8fafc; color: var(--wg-custom-text, #0f172a); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
}
.tpl-minimal .wg-top-bar { color: #64748b; font-weight: 600; font-size: 24px;}
.tpl-minimal .wg-board-content { align-items: flex-start; text-align: left; width: 85%; }
.tpl-minimal .wg-decor-line { display: block; width: 120px; height: 16px; background-color: #ef4444; margin-bottom: 60px; }
.tpl-minimal .wg-sub-title { font-size: calc(32px * var(--wg-sub-scale)); font-weight: 700; letter-spacing: 2px; color: #64748b; margin-bottom: 20px; text-transform: uppercase;}
.tpl-minimal .wg-main-title { font-size: calc(160px * var(--wg-title-scale)); line-height: 1; font-weight: 900; letter-spacing: -4px; margin-bottom: 40px; color: #0f172a;}
.tpl-minimal .wg-footer-title { font-size: calc(28px * var(--wg-sub-scale)); font-weight: 500; color: #94a3b8; width: auto;}
.wg-canvas-container:not(.is-fullscreen) .tpl-minimal .wg-editable:hover { border-color: rgba(0,0,0,0.1); }
.wg-canvas-container:not(.is-fullscreen) .tpl-minimal .wg-editable:focus { border-color: #000; background: rgba(0,0,0,0.02); }


/* =========================================================
   暗黑模式适配
   ========================================================= */
[data-theme="dark"] .wg-control-panel { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .wg-select, [data-theme="dark"] .wg-btn-secondary { background: #1e293b; border-color: #334155; color: #f8fafc;}

/* =========================================================
   SEO 内容强化网格
   ========================================================= */
.tool-seo-content { margin-top: 50px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 40px; }
.tool-seo-content h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; color: var(--text-main); }
.seo-intro-section { margin-bottom: 40px; }
.seo-lead-text { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 15px;}
.seo-sub-heading { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; color: var(--text-main); border-left: 4px solid var(--primary-color); padding-left: 12px;}

.seo-feature-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.seo-feature-card { background: var(--bg-body); border: 1px solid var(--border-color); padding: 24px; border-radius: 12px; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: flex-start;}
.seo-feature-card:hover { border-color: var(--primary-color); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 102, 204, 0.08); }

.seo-feature-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; width: 100%; }
.seo-icon { width: 40px; height: 40px; flex-shrink: 0; color: var(--primary-color); background: rgba(var(--primary-rgb, 0, 102, 204), 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.seo-icon svg { width: 20px; height: 20px; }
.seo-feature-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--text-main); }
.seo-feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

.seo-howto-list { list-style: decimal; padding-left: 20px; color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; }
.seo-howto-list li { margin-bottom: 10px; }
.seo-howto-list strong { color: var(--text-main); }

[data-theme="dark"] .tool-seo-content { background: var(--bg-surface); }
[data-theme="dark"] .seo-feature-card { background: #0f172a; border-color: #334155; }

/* 移动端兼容 */
@media (max-width: 900px) {
    .seo-feature-grid-3 { grid-template-columns: 1fr; }
    .wg-controls-grid { grid-template-columns: 1fr; gap: 12px; }
}