/* =========================================================
   AI之家 (AI-Home) 核心样式库 (main.css)
   包含全站框架、模块化 UI 及 8 大核心子页面样式
========================================================= */

/* ================= 1. 全局基础重置 & 核心框架 ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #f5f5f5; color: #333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.5; overflow-y: scroll; overflow-x: hidden; }
a { text-decoration: none; color: #333; transition: color 0.2s; cursor: pointer; }
a:hover { color: #1677FF; }
ul { list-style: none; }

/* 顶栏 */
.header { background: #fff; height: 74px; display: flex; align-items: center; border-bottom: 2px solid #1677FF; min-width: 1380px; }
.header-inner { width: 1380px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 26px; font-weight: bold; color: #1677FF; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; flex-shrink: 0; }
.search-box { display: flex; width: 640px; border: 2px solid #1677FF; height: 38px; border-radius: 2px; overflow: hidden; }
.search-box input { flex: 1; padding: 0 15px; border: none; outline: none; font-size: 14px; }
.search-box button { width: 100px; background: #1677FF; color: #fff; border: none; font-size: 16px; font-weight: bold; cursor: pointer; transition: background 0.2s; }
.search-box button:hover { background: #005ce6; }
.header-links { font-size: 14px; color: #666; display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

/* 核心布局栅格 (1380px) */
.main-container { width: 1380px; margin: 20px auto; display: flex; gap: 20px; align-items: flex-start; min-height: 80vh; } 
.box-style { background: #fff; border: 1px solid #e6e6e6; border-radius: 4px; } 

/* 左侧导航 (160px 固定) */
.sidebar-left { width: 160px; flex-shrink: 0; padding: 10px 0; position: sticky; top: 20px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 50px; font-size: 15px; font-weight: 500; color: #333; border-left: 3px solid transparent; transition: background 0.2s; }
.nav-item svg { width: 22px; height: 22px; stroke: #444; stroke-width: 2.0; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: stroke 0.2s; }
.nav-item:hover, .nav-item.active { background: #f8f8f8; color: #1677FF; font-weight: bold; border-left-color: #1677FF; }
.nav-item:hover svg, .nav-item.active svg { stroke: #1677FF; }

/* 核心内容区 (🔥智能自适应 1200px 或 880px) */
.content-center { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.breadcrumb { font-size: 13px; color: #666; padding: 0; }

/* 右侧边栏 (300px，若存在则 content-center 自动压缩为 880px) */
.sidebar-right { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.right-widget { padding: 20px; }
.widget-title { font-size: 16px; font-weight: bold; color: #333; padding-bottom: 12px; border-bottom: 1px solid #e6e6e6; margin-bottom: 12px; }
.rank-list li { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.rank-list li:last-child { border-bottom: none; }
.rank-list li .num { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; background: #e5e5e5; color: #999; font-size: 12px; margin-right: 12px; font-family: Tahoma; flex-shrink: 0; }
.rank-list li:nth-child(1) .num, .rank-list li:nth-child(2) .num, .rank-list li:nth-child(3) .num { background: #ff6600; color: #fff; }
.rank-list li a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ================= 2. 通用 UI 组件 (全站复用) ================= */
.btn-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; background: #fff; border: 1px solid #1677FF; color: #1677FF; border-radius: 4px; font-size: 14px; font-weight: bold; cursor: pointer; margin-bottom: 15px; transition: all 0.2s; }
.btn-back:hover { background: #1677FF; color: #fff; }
.btn-follow { width: 100%; background: #1677FF; color: #fff; border: none; padding: 10px 0; font-weight: bold; font-size: 14px; border-radius: 4px; cursor: pointer; margin-top: 15px; transition: all 0.2s; }
.btn-follow:hover { background: #005ce6; }

.author-card { padding: 25px 20px; display: flex; flex-direction: column; align-items: center; border-radius: 6px; }
.author-avatar { width: 70px; height: 70px; border-radius: 50%; background: #1677FF; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; margin-bottom: 12px; }
.author-name { font-size: 18px; font-weight: bold; color: #333; }

.masonry-grid { column-count: 4; column-gap: 20px; width: 100%; }
.score-box { display: flex; align-items: center; justify-content: center; gap: 6px; }
.stars { color: #ff9900; letter-spacing: 1px; font-size: 18px; }
.num { color: #ff6600; font-weight: bold; font-size: 18px; }


/* ================= 3. 首页专属 (index.html) ================= */
.trending-bar { background: #fff; padding: 12px 20px; display: flex; font-size: 13px; color: #666; align-items: center; border: 1px solid #e6e6e6; }
.trending-bar strong { color: #ff6600; margin-right: 15px; font-weight: normal; }
.trending-bar a { margin-right: 20px; color: #666; }

.ai-brands-panel { padding: 15px 20px; }
.brand-row { display: flex; align-items: center; padding: 18px 0; border-bottom: 1px dashed #eee; }
.brand-row:last-child { border-bottom: none; padding-bottom: 0; }
.row-title { width: 65px; font-weight: bold; color: #333; font-size: 15px; flex-shrink: 0; }
.row-nav-arrow { width: 24px; height: 40px; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 20px; font-weight: bold; cursor: pointer; transition: color 0.2s; user-select: none; }
.row-nav-arrow:hover { color: #1677FF; }
.brands-grid { flex: 1; display: flex; justify-content: space-between; padding: 0 15px; overflow: hidden; }
.brand-card-text { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; flex-shrink: 0; }
.brand-name-main { font-size: 14px; font-weight: bold; color: #222; font-family: Tahoma, Arial; white-space: nowrap; transition: color 0.2s; }
.brand-name-main:hover { color: #1677FF; text-decoration: underline; cursor: pointer; }
.brand-links-sub { display: flex; gap: 10px; font-size: 12px; color: #999; }
.brand-links-sub a:hover { color: #1677FF; text-decoration: underline; }

.hero-section { padding: 20px; }
.hero-gallery { display: grid; grid-template-columns: 600px 230px; grid-template-rows: repeat(3, 125px); gap: 10px; margin-bottom: 25px; }
.img-box { position: relative; background: #333; overflow: hidden; cursor: pointer; }
.img-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.img-box:hover img { opacity: 1; }
.img-title { position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.6); color: #fff; padding: 10px 15px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-main { grid-column: 1 / 2; grid-row: 1 / 4; }
.hero-main .img-title { font-size: 20px; font-weight: bold; padding: 20px 25px; white-space: normal; background: linear-gradient(transparent, rgba(0,0,0,0.85)); }

.news-feed { border-top: 2px solid #333; padding-top: 20px; display: flex; gap: 30px; }
.news-col { flex: 1; min-width: 0; }
.news-col-title { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 12px; }
.news-list li { margin-bottom: 10px; font-size: 14px; line-height: 24px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-list li::before { content: '•'; color: #ccc; margin-right: 8px; font-size: 16px; vertical-align: middle; }
.news-list li a:hover { color: #1677FF; text-decoration: underline; }


/* ================= 4. 教程画廊与详情页 ================= */
.brand-filter-wrap { padding: 15px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.filter-label { font-size: 14px; font-weight: bold; color: #999; margin-right: 5px; }
.brand-btn { display: flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1px solid #e6e6e6; border-radius: 20px; font-size: 14px; font-weight: bold; color: #333; background: #fff; transition: all 0.2s; cursor: pointer; }
.brand-btn img { height: 18px; object-fit: contain; }
.brand-btn:hover { border-color: #1677FF; color: #1677FF; box-shadow: 0 4px 10px rgba(22,119,255,0.1); transform: translateY(-2px); }
.brand-btn.active { background: #1677FF; border-color: #1677FF; color: #fff; box-shadow: 0 4px 10px rgba(22,119,255,0.2); }
.brand-btn.active img { filter: brightness(0) invert(1); }
.sort-options { margin-left: auto; display: flex; gap: 15px; font-size: 14px; color: #666; }
.sort-options a:hover { color: #1677FF; }
.sort-options a.active { color: #1677FF; font-weight: bold; }

.standard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* 通用文章教程卡片 */
.card-item { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid #eee; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; display: flex; flex-direction: column; position: relative;}
.card-item:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); border-color: #cce0ff; }
.card-cover { position: relative; width: 100%; height: 170px; overflow: hidden; background: #f0f0f0; }
.card-cover .mock-img { width: 100%; height: 100%; display: block; transition: transform 0.4s ease; }
.card-item:hover .card-cover .mock-img { transform: scale(1.08); }
.card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.card-item:hover .card-overlay { opacity: 1; }
.card-tag { display: inline-flex; position: absolute; top: 10px; right: 10px; z-index: 2; align-items: center; font-size: 12px; color: #1677FF; background: #e6f7ff; padding: 4px 10px; border-radius: 4px; font-weight: bold; backdrop-filter: blur(4px); }
.card-item .card-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-item .card-title { font-size: 15px; font-weight: bold; color: #222; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 45px; } 
.card-desc { font-size: 13px; color: #666; line-height: 1.5; }

/* 图文详情区块 */
.detail-layout { display: flex; gap: 20px; align-items: flex-start; }
.article-wrap { padding: 40px 45px; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.article-title { font-size: 28px; font-weight: bold; color: #111; line-height: 1.4; margin-bottom: 15px; }
.article-meta { display: flex; justify-content: space-between; font-size: 13px; color: #888; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; margin-bottom: 25px; }
.article-content { font-size: 16px; color: #2c3e50; line-height: 1.8; }
.article-content p { margin-bottom: 20px; text-align: justify; }
.article-content h2 { font-size: 22px; font-weight: bold; color: #111; margin: 40px 0 20px; padding-left: 12px; border-left: 4px solid #1677FF; }
.prompt-box { background: #282c34; border-radius: 6px; margin: 20px 0; overflow: hidden; }
.prompt-header { background: #21252b; padding: 10px 15px; color: #abb2bf; font-size: 13px; font-weight: bold; }
.prompt-body { padding: 20px; font-family: Consolas, monospace; font-size: 14px; color: #98c379; line-height: 1.6; }

.article-actions { display: flex; justify-content: center; gap: 30px; margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; }
.action-btn-big { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 75px; height: 75px; border-radius: 50%; border: 1px solid #e6e6e6; background: #fff; cursor: pointer; transition: all 0.3s; color: #666; }
.action-btn-big svg { width: 26px; height: 26px; stroke: #666; stroke-width: 1.5; fill: none; margin-bottom: 6px; transition: all 0.3s; }
.action-btn-big span { font-size: 12px; font-weight: bold;}
.action-btn-big.like:hover { border-color: #ff4d4f; color: #ff4d4f; background: #fff1f0; transform: translateY(-3px); }
.action-btn-big.like:hover svg { stroke: #ff4d4f; fill: #ff4d4f; }
.action-btn-big.fav:hover { border-color: #faad14; color: #faad14; background: #fffbe6; transform: translateY(-3px); }
.action-btn-big.fav:hover svg { stroke: #faad14; fill: #faad14; }
.action-btn-big.reward:hover { border-color: #1677FF; color: #1677FF; background: #f0f6ff; transform: translateY(-3px); }
.action-btn-big.reward:hover svg { stroke: #1677FF; }

/* 侧边 TOC 目录 */
.toc-widget { position: sticky; top: 20px; padding: 20px 0; border-radius: 6px; }
.toc-title { font-size: 15px; font-weight: bold; color: #333; padding: 0 20px 15px; border-bottom: 1px solid #f0f0f0; margin-bottom: 10px; }
.toc-list li a { display: block; padding: 8px 20px; font-size: 14px; color: #666; border-left: 3px solid transparent; transition: all 0.2s; }
.toc-list li a:hover, .toc-list li a.active { color: #1677FF; background: #f0f6ff; border-left-color: #1677FF; font-weight: bold; }

/* 纯视频专属组件 */
.video-player-box { width: 100%; background: #000; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.video-screen { width: 100%; aspect-ratio: 16 / 9; background: #111; }
.video-controls { background: #1a1a1a; padding: 15px 20px; }
.progress-bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; position: relative; cursor: pointer; margin-bottom: 12px; }
.progress-bar-fill { height: 100%; width: 35%; background: #1677FF; border-radius: 3px; position: relative; }
.chapter-marker { position: absolute; top: -2px; width: 10px; height: 10px; background: #fff; border: 2px solid #1a1a1a; border-radius: 50%; z-index: 2; transition: transform 0.2s; }
.chapter-marker:hover { transform: scale(1.5); background: #ff6600; }
.control-btns { display: flex; justify-content: space-between; color: #fff; font-size: 13px; align-items: center; }

.ai-chapters-box { background: #fff; border-radius: 6px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.ai-chapters-title { font-size: 16px; font-weight: bold; color: #111; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.ai-chapters-title span { background: linear-gradient(90deg, #1677FF, #00f2fe); -webkit-background-clip: text; color: transparent; font-size: 12px; border: 1px solid #1677FF; padding: 2px 6px; border-radius: 10px; }
.chapter-item { display: flex; align-items: center; padding: 12px 15px; background: #f8f9fa; border-radius: 4px; margin-bottom: 8px; cursor: pointer; border-left: 3px solid transparent; }
.chapter-item:hover { background: #f0f6ff; border-left-color: #1677FF; }
.chapter-time { color: #1677FF; font-family: Consolas, monospace; font-weight: bold; font-size: 14px; width: 60px; }

.playlist-box { padding: 20px 15px; }
.playlist-title { font-size: 15px; font-weight: bold; margin-bottom: 15px; padding: 0 5px; }
.playlist-item { display: flex; gap: 10px; padding: 10px 5px; border-radius: 4px; cursor: pointer; transition: background 0.2s; }
.playlist-item:hover, .playlist-item.active { background: #f0f6ff; }
.pl-thumb { width: 90px; height: 50px; background: #333; border-radius: 4px; position: relative; flex-shrink: 0; }
.pl-time { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.8); color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 2px; }
.pl-title { font-size: 12px; font-weight: bold; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }


/* ================= 5. 提示词画廊 (prompt-gallery.html) ================= */
.gallery-filter { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-tags a { display: inline-block; padding: 6px 18px; font-size: 14px; color: #666; background: #f5f5f5; border-radius: 20px; transition: all 0.2s; border: 1px solid transparent; }
.filter-tags a:hover { background: #e6e6e6; color: #333; }
.filter-tags a.active { background: #f0f6ff; color: #1677FF; font-weight: bold; border-color: #1677FF; }
.filter-sort a { font-size: 14px; color: #666; margin-left: 15px; transition: color 0.2s; }
.filter-sort a.active { color: #333; font-weight: bold; }

.prompt-card { break-inside: avoid; margin-bottom: 20px; background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #eee; box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.prompt-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); border-color: #cce0ff; }
.prompt-card .card-img-box { width: 100%; overflow: hidden; position: relative; background: #f0f0f0; }
.prompt-card .mock-img { width: 100%; display: block; transition: transform 0.5s ease; }
.prompt-card:hover .mock-img { transform: scale(1.04); }
.img-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.prompt-card:hover .img-overlay { opacity: 1; }
.btn-view { border: 1px solid #fff; color: #fff; padding: 8px 24px; border-radius: 20px; font-size: 14px; font-weight: bold; backdrop-filter: blur(4px); }

.prompt-card .card-info-box { padding: 15px; display: flex; flex-direction: column; }
.prompt-card .card-title { font-size: 14px; font-weight: bold; color: #222; line-height: 1.4; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prompt-card .card-footer { display: flex; justify-content: space-between; align-items: center; }

/* 提示词全屏弹窗 */
.fullscreen-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 9999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.fullscreen-modal.show { opacity: 1; }
.modal-content-wrap { width: 90%; max-width: 1300px; height: 85vh; background: #fff; border-radius: 12px; display: flex; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fullscreen-modal.show .modal-content-wrap { transform: scale(1); }
.modal-left { flex: 1; background: #111; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.modal-left-img { width: 100%; height: 100%; object-fit: contain; }
.modal-right { width: 420px; flex-shrink: 0; background: #fff; display: flex; flex-direction: column; position: relative; }
.btn-close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; color: #999; cursor: pointer; line-height: 1; z-index: 10; transition: color 0.2s; }
.btn-close-modal:hover { color: #ff4d4f; }
.modal-right-scroll { padding: 30px 25px; overflow-y: auto; flex: 1; }
.modal-author-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-author { display: flex; align-items: center; gap: 10px; }
.modal-author-avatar { width: 36px; height: 36px; border-radius: 50%; background: #1677FF; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; }
.modal-author-name { font-size: 15px; font-weight: bold; color: #333; }
.modal-badge { display: inline-block; background: #e6f7ff; color: #1677FF; padding: 3px 10px; border-radius: 2px; font-size: 13px; font-weight: bold; margin-bottom: 15px; border: 1px solid #91caff; }
.modal-title { font-size: 20px; font-weight: bold; color: #111; line-height: 1.4; margin-bottom: 25px; }

.prompt-section { margin-bottom: 25px; }
.prompt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.prompt-label { font-size: 14px; font-weight: bold; color: #333; display: flex; align-items: center; gap: 6px; }
.btn-copy-mini { background: #fff; color: #1677FF; border: 1px solid #1677FF; padding: 4px 12px; border-radius: 15px; font-size: 12px; cursor: pointer; transition: all 0.2s; }
.btn-copy-mini:hover { background: #1677FF; color: #fff; }
.prompt-content-box { background: #f8f9fa; border: 1px solid #e6e6e6; border-radius: 6px; padding: 15px; font-size: 13px; color: #555; line-height: 1.6; word-break: break-all; }
.prompt-content-box.eng { font-family: Consolas, Monaco, monospace; color: #096dd9; background: #f0f6ff; border-color: #d9e8ff; }

.modal-footer { padding: 20px 25px; border-top: 1px solid #eee; background: #fff; display: flex; justify-content: space-between; }
.modal-action-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: bold; color: #666; cursor: pointer; transition: color 0.2s; border-right: 1px solid #eee; }
.modal-action-btn:last-child { border-right: none; }
.modal-action-btn svg { width: 20px; height: 20px; stroke: #666; stroke-width: 2; fill: none; transition: stroke 0.2s, fill 0.2s; }
.modal-action-btn.like:hover { color: #ff4d4f; }
.modal-action-btn.like:hover svg { stroke: #ff4d4f; fill: #ff4d4f; }
.modal-action-btn.fav:hover { color: #faad14; }
.modal-action-btn.fav:hover svg { stroke: #faad14; fill: #faad14; }


/* ================= 6. 翻车现场 (fail-gallery & fail-detail) ================= */
.fail-header-banner { background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; padding: 30px 40px; position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(250, 173, 20, 0.05); color: #333; }
.fail-header-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: repeating-linear-gradient(45deg, #ffcc00, #ffcc00 10px, #fff 10px, #fff 20px); }
.banner-title { font-size: 28px; font-weight: bold; color: #d46b08; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.banner-desc { font-size: 14px; color: #666; max-width: 700px; }
.btn-upload-fail { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); background: #ffcc00; color: #111; border: none; padding: 12px 25px; font-size: 16px; font-weight: bold; border-radius: 4px; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 10px rgba(255,204,0,0.3); }
.btn-upload-fail:hover { background: #faad14; transform: translateY(-50%) scale(1.05); }

.fail-filter { display: flex; gap: 10px; margin-top: 20px; }
.fail-filter a { background: #333; color: #aaa; padding: 6px 16px; border-radius: 20px; font-size: 13px; transition: all 0.2s; }
.fail-filter a:hover { background: #444; color: #fff; }
.fail-filter a.active { background: #ffcc00; color: #111; font-weight: bold; }

.fail-card { break-inside: avoid; margin-bottom: 20px; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: relative; cursor: pointer; border: 1px solid #e0e0e0; transition: transform 0.3s; }
.fail-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.card-case-id { background: #f8f8f8; padding: 8px 15px; font-family: monospace; font-size: 12px; color: #999; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; }
.card-case-id span.model { color: #ff4d4f; font-weight: bold; background: #fff1f0; padding: 2px 6px; border-radius: 2px; }

.fail-card .card-img-wrap { position: relative; width: 100%; background: #eee; overflow: hidden; }
.fail-img { width: 100%; display: block; filter: contrast(0.95); transition: filter 0.3s; }
.fail-card:hover .fail-img { filter: contrast(1.1); }
.stamp-fail { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-15deg); color: rgba(255, 50, 50, 0.8); font-size: 32px; font-weight: 900; font-family: "Arial Black", impact, sans-serif; border: 4px solid rgba(255, 50, 50, 0.8); border-radius: 8px; padding: 5px 15px; letter-spacing: 2px; pointer-events: none; opacity: 0.9; }

.fail-card .card-info { padding: 15px; background: #fafafa; }
.expectation-box { margin-bottom: 12px; }
.label-text { font-size: 12px; font-weight: bold; color: #1677FF; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.label-text::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #1677FF; border-radius: 50%; }
.prompt-intent { font-size: 14px; color: #333; font-weight: bold; line-height: 1.4; }
.reality-box { padding: 10px; background: #fff1f0; border-left: 3px solid #ff4d4f; border-radius: 0 4px 4px 0; }
.reality-label { font-size: 12px; font-weight: bold; color: #ff4d4f; margin-bottom: 4px; }
.reality-text { font-size: 13px; color: #cf1322; line-height: 1.5; }

.fail-card .card-footer { padding: 12px 15px; background: #fff; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.fail-actions { display: flex; gap: 15px; }
.action-btn { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #666; font-weight: bold; transition: color 0.2s; cursor: pointer; }
.action-haha:hover { color: #ffcc00; }
.action-metoo:hover { color: #1677FF; }
.action-rescue { color: #52c41a; }
.action-rescue:hover { color: #389e0d; text-decoration: underline; }

/* 翻车详情页 (fail-detail.html) */
.detail-grid { display: flex; gap: 20px; align-items: flex-start; }
.col-main { width: 780px; display: flex; flex-direction: column; gap: 20px; }
.col-side { width: 400px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }

.case-header { padding: 25px 30px; background: #fff; border-radius: 6px; border-top: 4px solid #ff4d4f; }
.case-id-badge { display: inline-block; background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; padding: 3px 10px; font-family: monospace; font-size: 13px; font-weight: bold; border-radius: 2px; margin-bottom: 15px; }
.case-title { font-size: 24px; font-weight: bold; color: #111; margin-bottom: 15px; }
.case-meta { display: flex; align-items: center; gap: 15px; font-size: 13px; color: #888; }
.case-meta .author { display: flex; align-items: center; gap: 6px; color: #333; font-weight: bold; }
.case-meta .author img { width: 20px; height: 20px; border-radius: 50%; background: #ccc; }

.disaster-showcase { background: #fff; border-radius: 6px; overflow: hidden; padding: 20px; }
.disaster-showcase .img-wrapper { position: relative; width: 100%; background: #eee; border-radius: 4px; overflow: hidden; display: flex; justify-content: center; align-items: center; border: 1px solid #e6e6e6; }
.disaster-img { max-width: 100%; max-height: 600px; display: block; }

.action-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; margin-top: 20px; border-top: 1px dashed #eee; }
.action-btns { display: flex; gap: 15px; }
.btn-laugh { background: #fffbe6; border: 1px solid #ffe58f; color: #d46b08; padding: 8px 25px; border-radius: 20px; font-size: 15px; font-weight: bold; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-laugh:hover { background: #fff1b8; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(250,173,20,0.2); }
.btn-metoo { background: #f0f6ff; border: 1px solid #91caff; color: #1677FF; padding: 8px 25px; border-radius: 20px; font-size: 15px; font-weight: bold; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-metoo:hover { background: #e6f7ff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(22,119,255,0.2); }
.share-btn { color: #999; font-size: 14px; cursor: pointer; }
.share-btn:hover { color: #333; }

.comment-section { background: #fff; padding: 25px 30px; border-radius: 6px; }
.section-title { font-size: 16px; font-weight: bold; color: #111; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; display: block; width: 4px; height: 16px; background: #ff4d4f; border-radius: 2px; }
.comment-input-box { display: flex; gap: 15px; margin-bottom: 25px; }
.comment-input-box img { width: 36px; height: 36px; border-radius: 50%; background: #ccc; }
.comment-input-box textarea { flex: 1; border: 1px solid #d9d9d9; border-radius: 4px; padding: 10px; font-size: 14px; resize: vertical; min-height: 60px; outline: none; }
.comment-input-box textarea:focus { border-color: #1677FF; }
.btn-submit-comment { padding: 0 20px; background: #1677FF; color: #fff; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }

.comment-item { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed #eee; }
.comment-item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.c-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e6e6e6; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: #666; flex-shrink: 0; }
.c-content { flex: 1; }
.c-user { font-size: 13px; font-weight: bold; color: #333; margin-bottom: 4px; display: flex; justify-content: space-between; }
.c-time { color: #999; font-weight: normal; font-size: 12px; }
.c-text { font-size: 14px; color: #555; line-height: 1.5; }

.prompt-archive { background: #fff; padding: 25px 20px; border-radius: 6px; border-top: 4px solid #1677FF; }
.archive-label { font-size: 13px; font-weight: bold; color: #999; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.prompt-text { font-family: Consolas, monospace; font-size: 13px; color: #333; background: #f0f6ff; padding: 15px; border-radius: 4px; border: 1px solid #d9e8ff; line-height: 1.6; word-break: break-all; margin-bottom: 20px; }
.model-info-row { display: flex; justify-content: space-between; font-size: 13px; padding: 10px 0; border-bottom: 1px dashed #eee; }
.model-info-row:last-child { border-bottom: none; }
.info-key { color: #666; }
.info-val { font-weight: bold; color: #111; }

.related-fails { background: #fff; padding: 25px 20px; border-radius: 6px; }
.related-item { display: flex; gap: 12px; margin-bottom: 15px; cursor: pointer; transition: transform 0.2s; }
.related-item:last-child { margin-bottom: 0; }
.related-item:hover { transform: translateX(5px); }
.r-thumb { width: 90px; height: 60px; background: #eee; border-radius: 4px; flex-shrink: 0; overflow: hidden; position: relative; }
.r-thumb img { width: 100%; height: 100%; object-fit: cover; filter: contrast(0.9); }
.r-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.r-title { font-size: 13px; font-weight: bold; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; line-height: 1.4; transition: color 0.2s; }
.related-item:hover .r-title { color: #1677FF; }
.r-stats { font-size: 12px; color: #999; }
.r-stats span { color: #d46b08; font-weight: bold; }


/* ================= 7. 模型对比 (compare.html) ================= */
.compare-tabs-wrap { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #1677FF; padding-bottom: 0; margin-top: 5px; }
.tabs-left a { display: inline-block; padding: 12px 35px; font-size: 16px; font-weight: bold; color: #666; background: #e6e6e6; margin-right: 5px; border-radius: 4px 4px 0 0; cursor: pointer; transition: all 0.2s;}
.tabs-left a.active { background: #1677FF; color: #fff; }

.table-section { display: none; } 
.table-section.active { display: block; }
.table-wrapper { width: 100%; background: #fff; border: 1px solid #e6e6e6; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }

.compare-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13px; word-wrap: break-word; }
.compare-table th, .compare-table td { border-bottom: 1px solid #eee; border-right: 1px solid #eee; padding: 16px 20px; text-align: center; vertical-align: middle; background: #fff; }
.compare-table th:first-child, .compare-table td:first-child { width: 210px; text-align: left; background: #fafafa; font-weight: bold; color: #555; border-right: 2px solid #ddd; }
.compare-table thead th { position: sticky; top: 0; z-index: 10; padding: 25px 15px 20px; background: #fff; border-bottom: 2px solid #ddd; }
.compare-table thead th:first-child { background: #f0f2f5; z-index: 20; }

.model-th-card { height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.remove-btn { position: absolute; top: -15px; right: 5px; color: #ccc; cursor: pointer; font-size: 20px; line-height: 1; transition: color 0.2s; }
.remove-btn:hover { color: #ff4d4f; }
.th-logo img { height: 45px; object-fit: contain; margin-bottom: 8px; }
.th-name { font-size: 16px; font-weight: bold; color: #111; margin-bottom: 6px; }

.empty-slot { border: 2px dashed #d9d9d9; background: #fafafa; cursor: pointer; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: all 0.2s; border-radius: 4px; margin-top: 10px; }
.empty-slot:hover { border-color: #1677FF; background: #f0f6ff; color: #1677FF; }
.empty-slot .icon-plus { font-size: 36px; line-height: 1; margin-bottom: 5px; color: #ccc; transition: color 0.2s;}
.empty-slot:hover .icon-plus { color: #1677FF; }
.empty-slot .add-text { font-size: 15px; color: #999; font-weight: normal; transition: color 0.2s;}
.empty-slot:hover .add-text { color: #1677FF; }

.btn-col-review { background: #fff; color: #ff6600; border: 1px solid #ff6600; padding: 6px 15px; font-size: 13px; border-radius: 15px; cursor: pointer; transition: all 0.2s; font-weight: bold; margin-top: 10px; }
.btn-col-review:hover { background: #ff6600; color: #fff; }
.btn-col-submit { background: #52c41a; color: #fff; border: 1px solid #52c41a; padding: 6px 15px; font-size: 13px; border-radius: 15px; cursor: pointer; display: none; font-weight: bold; margin-top: 10px; }

.group-title td { background: #f0f2f5 !important; font-size: 16px; font-weight: bold; color: #111; text-align: left; }
.diff { color: #d4380d; font-weight: bold; background-color: #fff2e8 !important; }
.empty-col { background: #fafafa !important; color: #ccc; font-size: 18px; } 

.bar-wrap { display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; padding: 0 10px; }
.bar-item { display: flex; align-items: center; font-size: 13px; color: #666; }
.bar-label { width: 85px; flex-shrink: 0; }
.bar-bg { flex: 1; background: #eee; height: 8px; border-radius: 4px; overflow: hidden; margin-right: 12px; }
.bar-fill { height: 100%; border-radius: 4px; }
.bar-val { width: 35px; text-align: right; font-weight: bold; }

.comment-list { text-align: left; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.comment-list li { background: #f8f9fa; padding: 10px 12px; border-radius: 4px; font-size: 13px; color: #444; border-left: 3px solid #ccc; line-height: 1.5; }
.comment-list li.pro { border-left-color: #52c41a; } 
.comment-list li.con { border-left-color: #ff4d4f; } 

.edit-ui { display: none; width: 100%; padding: 0 10px; }
.edit-input { width: 100%; padding: 10px; border: 1px solid #1677FF; border-radius: 2px; font-size: 14px; outline: none; margin: 4px 0; }
.edit-select { width: 100%; padding: 8px; border: 1px solid #1677FF; font-size: 14px;}
.edit-textarea { width: 100%; padding: 10px; border: 1px solid #1677FF; height: 80px; resize: vertical; font-size: 14px;}
.rating-stars-input { color: #ccc; font-size: 24px; letter-spacing: 2px; cursor: pointer; }
.rating-stars-input:hover { color: #ff9900; }

td.editing .display-ui { display: none; }
td.editing .edit-ui { display: block; }
th.editing .btn-col-review { display: none; }
th.editing .btn-col-submit { display: inline-block; }
td.editing { background-color: #f0f6ff !important; border-left: 1px solid #1677FF; border-right: 1px solid #1677FF; }

/* 比较模块模型选择弹窗 */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; z-index: 1000; align-items: center; justify-content: center; }
.modal-box { width: 600px; background: #fff; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); overflow: hidden; }
.modal-header { padding: 15px 20px; background: #f9f9f9; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 16px; font-weight: bold; }
.close-modal { font-size: 24px; cursor: pointer; color: #999; line-height: 1;}
.close-modal:hover { color: #ff4d4f; }
.modal-body { padding: 20px; }
.modal-search { width: 100%; padding: 12px 15px; border: 1px solid #1677FF; outline: none; margin-bottom: 15px; font-size: 14px; border-radius: 2px; }

.alpha-quick-search { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.alpha-quick-search a { display: inline-block; padding: 4px 10px; border: 1px solid #e6e6e6; color: #666; font-size: 12px; border-radius: 2px; background: #fff; transition: all 0.2s; font-family: Tahoma; }
.alpha-quick-search a:hover, .alpha-quick-search a.active { background: #1677FF; color: #fff; border-color: #1677FF; font-weight: bold; }

.hot-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hot-item { border: 1px solid #eee; padding: 12px; text-align: center; cursor: pointer; transition: all 0.2s; border-radius: 2px; }
.hot-item:hover { border-color: #1677FF; background: #f0f6ff; color: #1677FF; }
.hot-item img { height: 25px; margin-bottom: 8px; display: block; margin-left: auto; margin-right: auto; object-fit: contain;}
.hot-item span { font-size: 13px; font-weight: bold;}


/* ================= 8. 品牌馆与模型详情 (brand-library & brand-detail) ================= */
.filter-panel { padding: 10px 20px; }
.filter-row { display: flex; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed #eee; }
.filter-row:last-child { border-bottom: none; }
.filter-label { width: 80px; color: #999; font-weight: bold; line-height: 26px; flex-shrink: 0; }
.filter-items { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-items a { padding: 2px 14px; line-height: 22px; color: #333; border-radius: 2px; transition: all 0.2s; }
.filter-items a:hover { color: #1677FF; }
.filter-items a.active { background: #1677FF; color: #fff; font-weight: bold; }

.alpha-bar { padding: 15px 20px; display: flex; align-items: flex-start; }
.alpha-label { font-weight: bold; color: #333; margin-right: 15px; line-height: 30px; flex-shrink: 0; }
.alpha-list { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.alpha-list a { display: inline-block; width: 30px; height: 30px; line-height: 28px; text-align: center; border: 1px solid #e6e6e6; color: #333; font-family: Tahoma, Arial; font-size: 14px; background: #fff; transition: all 0.2s; }
.alpha-list a:hover, .alpha-list a.active { background: #1677FF; color: #fff; border-color: #1677FF; font-weight: bold; }

.brand-showroom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 5px; }
.car-card { background: #fff; border: 1px solid #e6e6e6; display: flex; flex-direction: column; position: relative; transition: box-shadow 0.2s, border-color 0.2s; }
.car-card:hover { border-color: #1677FF; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card-badge { position: absolute; top: -1px; left: -1px; background: #e6f7ff; color: #096dd9; font-size: 12px; padding: 2px 8px; border-bottom-right-radius: 4px; border: 1px solid #91caff; border-top: none; border-left: none; z-index: 2; }
.card-badge.hot { background: #fff2e8; color: #d4380d; border-color: #ffbb96; } 
.car-card .card-logo { height: 110px; display: flex; align-items: center; justify-content: center; margin-top: 20px; cursor: pointer; padding: 0 15px; background: #fff; overflow: hidden; }
.car-card .card-logo img { max-width: 100%; max-height: 60px; display: block; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.car-card:hover .card-logo img { transform: translateY(-5px) scale(1.05); } 
.car-card .card-info { padding: 0 15px 15px; text-align: center; cursor: pointer; }
.car-card .card-title { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 4px; }
.car-card .card-price { color: #ff6600; font-size: 14px; font-weight: bold; font-family: Tahoma; margin-bottom: 4px; }
.car-card .card-score { font-size: 12px; color: #666; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.car-card .card-variants { font-size: 12px; color: #999; display: flex; align-items: center; justify-content: center; gap: 4px; }
.car-card .card-variants span { display: inline-block; border-bottom: 1px dashed #ccc; }

.card-actions { display: flex; border-top: 1px solid #e6e6e6; height: 36px; background: #fafafa; }
.card-actions a { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #666; transition: all 0.2s; }
.card-actions a:hover { color: #1677FF; }
.card-actions a.primary { background: #1677FF; color: #fff; font-weight: bold; }
.card-actions a.primary:hover { background: #005ce6; }
.card-actions a:not(:last-child) { border-right: 1px solid #e6e6e6; }
.card-actions a.primary:not(:last-child) { border-right: 1px solid #005ce6; }

/* 品牌详情页头部 */
.series-header { padding: 15px 20px; position: relative; }
.series-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.series-title-row img { height: 24px; vertical-align: middle; }
.series-title-row h1 { font-size: 22px; font-weight: bold; color: #111; margin: 0; }
.tag-blue { background: #e6f7ff; color: #096dd9; border: 1px solid #91caff; padding: 1px 6px; font-size: 12px; border-radius: 2px; }
.tag-gray { background: #f5f5f5; color: #666; border: 1px solid #d9d9d9; padding: 1px 6px; font-size: 12px; border-radius: 2px; }
.series-meta-row { display: flex; align-items: center; font-size: 13px; color: #666; margin-bottom: 15px; }
.series-meta-row a.website-link { color: #1677FF; margin-right: 25px; }
.series-meta-row a.website-link:hover { text-decoration: underline; }
.price-highlight { color: #ff6600; font-size: 16px; font-weight: bold; font-family: Tahoma; }
.score-highlight { color: #ff9900; letter-spacing: 1px; margin-left: 5px; }
.score-num { font-weight: bold; color: #ff6600; font-size: 16px; }

.series-action-row { display: flex; gap: 10px; }
.btn-primary { background: #1677FF; color: #fff; border: none; padding: 8px 25px; font-size: 14px; font-weight: bold; cursor: pointer; border-radius: 2px; transition: background 0.2s;}
.btn-primary:hover { background: #005ce6; }
.btn-secondary { background: #f8f8f8; color: #333; border: 1px solid #ccc; padding: 8px 25px; font-size: 14px; cursor: pointer; border-radius: 2px; transition: all 0.2s;}
.btn-secondary:hover { border-color: #1677FF; color: #1677FF; }

.series-nav-bar { background: #1677FF; display: flex; padding: 0 10px; }
.series-nav-bar a { color: #fff; font-size: 15px; padding: 10px 25px; font-weight: bold; transition: background 0.2s; }
.series-nav-bar a:hover { background: #005ce6; }
.series-nav-bar a.active { background: #005ce6; border-bottom: 3px solid #fff; }

.series-content-grid { display: flex; gap: 15px; align-items: flex-start; }
.versions-sidebar { width: 280px; flex-shrink: 0; }
.versions-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background: #f9f9f9; border-bottom: 1px solid #e6e6e6; }
.versions-title { font-size: 15px; font-weight: bold; color: #333; }
.btn-side-compare { display: inline-block; border: 1px solid #1677FF; color: #1677FF; background: #fff; padding: 3px 12px; font-size: 12px; font-weight: bold; border-radius: 2px; cursor: pointer; transition: all 0.2s; }
.btn-side-compare:hover { background: #1677FF; color: #fff; }
.version-list { display: flex; flex-direction: column; }
.version-item { padding: 12px 15px; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background 0.2s; }
.version-item:hover { background: #f8f8f8; }
.version-item.active { background: #f0f6ff; border-left: 3px solid #1677FF; padding-left: 12px; }
.v-info { display: flex; flex-direction: column; gap: 4px; }
.v-name { font-size: 14px; font-weight: bold; color: #333; }
.version-item.active .v-name { color: #1677FF; }
.v-req { font-size: 12px; color: #999; }
.v-compare { font-size: 12px; color: #666; display: flex; align-items: center; gap: 5px; }
.v-compare input[type="checkbox"] { width: 14px; height: 14px; cursor: pointer; }

.model-main-view { width: 905px; display: flex; flex-direction: column; gap: 15px; }
.hero-showcase { height: 420px; background: #333; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.hero-showcase img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 20px; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; }
.hero-overlay h2 { font-size: 22px; font-weight: bold; margin-bottom: 5px; }
.hero-overlay p { font-size: 13px; color: #ddd; }
.btn-gallery { background: rgba(255,255,255,0.2); border: 1px solid #fff; color: #fff; padding: 6px 15px; font-size: 13px; cursor: pointer; transition: background 0.2s; }
.btn-gallery:hover { background: rgba(255,255,255,0.4); }

.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fafafa; border: 1px solid #eee; }
.spec-item { padding: 15px 20px; text-align: center; border-right: 1px solid #eee; }
.spec-item:last-child { border-right: none; }
.spec-val { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 4px; font-family: Tahoma; }
.spec-lbl { font-size: 12px; color: #888; }

.bottom-sections { display: flex; gap: 15px; }
.section-box { flex: 1; padding: 15px 20px; }
.sec-title { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.sec-title a { font-size: 13px; color: #1677FF; font-weight: normal; }