/* ===== theme574 徒步户外主题 ===== */
:root {
    --color-primary: #3a7d44;
    --color-primary-dark: #2d6235;
    --color-primary-light: #e8f5e9;
    --color-accent: #e8913a;
    --color-accent-dark: #d17a2a;
    --color-text: #333;
    --color-text-light: #666;
    --color-text-muted: #999;
    --color-bg: #f7f5f0;
    --color-white: #fff;
    --color-border: #e0ddd5;
    --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.14);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--color-text); background: var(--color-bg); line-height: 1.6; margin: 0; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== A11y: Skip Link ===== */
.skip-link { position: absolute; top: -100px; left: 10px; background: var(--color-primary); color: #fff; padding: 8px 16px; z-index: 9999; border-radius: 0 0 4px 4px; font-size: 14px; }
.skip-link:focus { top: 0; }

/* ===== Focus ===== */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 1000; }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; margin: 0; background: #fff; border-bottom: 1px solid var(--color-border); }
.header-top-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.main-nav { background: linear-gradient(135deg, #2d6335, #3a7d44, #4a9d54, #2d6335); display: block; clear: both; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.main-nav:after { content: ''; display: table; clear: both; }
.site-logo img { height: 42px; }
.mobile-toggle { background: none; border: none; padding: 8px; display: none; }
.mobile-toggle .icon-bar { display: block; width: 22px; height: 2px; background: var(--color-primary); margin: 4px 0; border-radius: 1px; }

.main-nav-inner { width: 100%; padding: 0 15px; }
.main-menu { display: flex; }
.main-menu > li { position: relative; }
.main-menu > li > a { display: block; color: #fff; padding: 14px 20px; font-size: 15px; font-weight: 500; transition: background 0.2s; }
.main-menu > li > a:hover,
.main-menu > li.active > a { background: var(--color-primary-dark); }
.main-menu .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--color-white); min-width: 160px; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); overflow-y: auto; max-height: 320px; z-index: 100; }
.main-menu > li:hover .dropdown-menu { display: block; }
.main-menu .dropdown-menu a { display: block; padding: 10px 18px; color: var(--color-text); font-size: 14px; transition: all 0.15s; }
.main-menu .dropdown-menu a:hover { background: var(--color-primary-light); color: var(--color-primary); }

/* ===== Hero ===== */
.hero-section { padding: 80px 0; text-align: center; color: #fff; position: relative; }
.hero-title { font-size: 42px; font-weight: 700; margin: 0 0 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 18px; margin: 0 0 32px; opacity: 0.92; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-block; padding: 12px 32px; background: var(--color-accent); color: #fff; border-radius: 50px; font-size: 16px; font-weight: 600; transition: all 0.2s; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary { display: inline-block; padding: 12px 32px; background: rgba(255,255,255,0.2); color: #fff; border: 2px solid rgba(255,255,255,0.6); border-radius: 50px; font-size: 16px; font-weight: 600; transition: all 0.2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.3); color: #fff; border-color: #fff; }

/* ===== Banner ===== */
.banner-section { padding: 30px 0; }
.focus-banner { border-radius: var(--radius); overflow: hidden; }
.focus-banner img { width: 100%; height: 380px; object-fit: cover; }
.focus-banner .swiper-slide { position: relative; }
.focus-banner .swiper-slide span { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 40px 20px 16px; font-size: 18px; font-weight: 600; }
.focus-banner .swiper-pagination { bottom: 12px !important; }
.focus-banner .swiper-pagination-bullet { background: #fff; opacity: 0.5; }
.focus-banner .swiper-pagination-bullet-active { opacity: 1; background: var(--color-accent); }

/* ===== Main Section ===== */
.main-section { padding: 10px 0 60px; }

/* ===== Block ===== */
.block { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; overflow: hidden; }
.block-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.block-head h3 { font-size: 20px; font-weight: 700; color: var(--color-text); margin: 0; padding-left: 14px; border-left: 4px solid var(--color-accent); }
.block-head .more { font-size: 14px; color: var(--color-text-muted); }
.block-head .more:hover { color: var(--color-accent); }

/* ===== Card Grid ===== */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px 24px 24px; }
.card { display: block; border-radius: var(--radius); overflow: hidden; transition: all 0.25s; background: #fff; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-cover { aspect-ratio: 3/2; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-cover img { transform: scale(1.05); }
.card-body { padding: 14px 16px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--color-text); margin: 0 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.card-desc { font-size: 13px; color: var(--color-text-muted); margin: 0; }
.card-tag { font-size: 12px; color: var(--color-accent); font-weight: 500; }
.card-price { font-size: 18px; color: var(--color-accent); font-weight: 700; }

/* ===== Article List ===== */
.article-list { padding: 16px 24px 24px; }
.article-row { border-bottom: 1px solid var(--color-border); }
.article-row:last-child { border-bottom: none; }
.article-row a { display: flex; gap: 16px; padding: 16px 0; color: var(--color-text); transition: all 0.15s; }
.article-row a:hover { color: var(--color-primary); }
.article-row img { width: 160px; height: 110px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.article-row div { flex: 1; min-width: 0; }
.article-row h4 { font-size: 16px; font-weight: 600; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-row p { font-size: 13px; color: var(--color-text-light); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-row span { font-size: 12px; color: var(--color-text-muted); }

/* ===== Page Banner ===== */
.page-banner { padding: 50px 0; color: #fff; position: relative; }
.page-banner-title { font-size: 32px; font-weight: 700; margin: 0 0 10px; text-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.breadcrumb-inline { font-size: 14px; opacity: 0.9; }
.breadcrumb-inline a { color: rgba(255,255,255,0.85); }
.breadcrumb-inline a:hover { color: #fff; }
.breadcrumb-inline i { margin: 0 6px; font-size: 12px; }
.breadcrumb-box { padding: 16px 0; font-size: 14px; color: var(--color-text-muted); }
.breadcrumb-box a { color: var(--color-text-light); }
.breadcrumb-box a:hover { color: var(--color-accent); }
.breadcrumb-box i { margin: 0 6px; font-size: 12px; }

/* ===== Page Container ===== */
.page-container { padding: 0 15px 60px; }

/* ===== Text List ===== */
.text-list { padding: 0 24px 20px; }
.text-list-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--color-border); }
.text-list-item:last-child { border-bottom: none; }
.text-list-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--color-text); }
.text-list-title:hover { color: var(--color-accent); }
.text-list-meta { flex-shrink: 0; margin-left: 12px; font-size: 12px; color: var(--color-text-muted); display: flex; gap: 12px; }
.text-list-date { color: var(--color-text-muted); }

/* ===== Detail Article ===== */
.detail-content { background: #fff; border-radius: 8px; padding: 32px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.detail-body { line-height: 2; color: #333; font-size: 16px; }
.detail-body h2 { font-size: 24px; font-weight: 700; margin: 36px 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--color-primary-light); color: var(--color-primary-dark); }
.detail-body h3 { font-size: 20px; font-weight: 600; margin: 28px 0 14px; color: var(--color-primary); }
.detail-body p { margin: 0 0 18px; text-indent: 2em; font-size: 16px; }
.detail-summary { margin: 0 0 28px; padding: 20px 24px; background: linear-gradient(135deg, #f0f7f1, #e8f4ea); border-left: 4px solid var(--color-primary); border-radius: 0 8px 8px 0; }
.detail-summary-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.detail-summary-head i { color: var(--color-primary); font-size: 18px; }
.detail-summary-head strong { font-size: 16px; color: var(--color-primary-dark); }
.detail-summary p { margin: 0; text-indent: 0; color: #555; font-size: 15px; line-height: 1.8; }
.detail-figure { margin: 0 0 24px; }
.detail-figure img { width: 100%; border-radius: 8px; }
.detail-tags { margin-top: 32px; padding: 16px 0; border-top: 1px solid #eee; }
.detail-tags span { display: inline-block; background: var(--color-primary-light); color: var(--color-primary); padding: 6px 16px; margin: 4px 8px; border-radius: 20px; font-size: 13px; }
.detail-prev-next { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid #eee; }
.detail-prev-next a { max-width: 48%; display: block; padding: 12px 16px; border-radius: 8px; background: #f9faf9; transition: background 0.2s; }
.detail-prev-next a:hover { background: var(--color-primary-light); text-decoration: none; }
.detail-prev-next a span { display: block; font-size: 12px; color: #999; margin-bottom: 6px; }
.detail-prev-next a strong { display: block; font-size: 15px; color: #333; font-weight: 600; line-height: 1.5; }
.detail-prev-next a:hover strong { color: var(--color-primary-dark); }

/* ===== Article List Cards ===== */
.list-card-wrap { display: flex; flex-direction: column; gap: 20px; }
.list-card { display: flex; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); transition: box-shadow 0.25s, transform 0.25s; }
.list-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.list-card-cover { flex-shrink: 0; width: 240px; height: 170px; overflow: hidden; display: block; }
.list-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.list-card:hover .list-card-cover img { transform: scale(1.05); }
.list-card-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3a7d44, #2d6335); color: rgba(255,255,255,0.6); font-size: 48px; }
.list-card-body { flex: 1; min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; }
.list-card-cat { display: inline-block; align-self: flex-start; background: var(--color-primary-light); color: var(--color-primary); padding: 3px 12px; border-radius: 20px; font-size: 12px; margin-bottom: 8px; }
.list-card-body h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; line-height: 1.4; }
.list-card-body h3 a { color: var(--color-text); }
.list-card-body h3 a:hover { color: var(--color-primary); }
.list-card-body p { font-size: 14px; color: #888; line-height: 1.7; margin: 0 0 12px; flex: 1; }
.list-card-date { font-size: 12px; color: #bbb; }

/* ===== List Toolbar ===== */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 2px solid var(--color-primary); margin-bottom: 20px; }
.toolbar-title { font-size: 16px; font-weight: 600; color: var(--color-primary); }
.toolbar-order { display: flex; gap: 4px; }
.toolbar-order a { display: block; padding: 6px 16px; font-size: 13px; color: var(--color-text-light); border-radius: 4px; }
.toolbar-order a.active,
.toolbar-order a:hover { background: var(--color-primary); color: #fff; }

/* ===== Article Card List ===== */
.article-card-list {}
.article-card { display: flex; gap: 20px; padding: 20px; background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; transition: all 0.2s; }
.article-card:hover { box-shadow: var(--shadow-hover); }
.article-cover { flex-shrink: 0; width: 240px; }
.article-cover img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; }
.article-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-title { font-size: 18px; font-weight: 700; color: var(--color-text); margin: 0 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-intro { font-size: 14px; color: var(--color-text-light); margin: 0 0 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; align-items: center; gap: 16px; margin-top: auto; font-size: 13px; color: var(--color-text-muted); }
.meta-cat { display: inline-block; padding: 2px 10px; background: var(--color-primary-light); color: var(--color-primary); border-radius: 20px; font-size: 12px; font-weight: 500; }

/* ===== Pagination ===== */
.pagination-box { text-align: center; padding: 20px 0; }
.pagination { display: inline-flex; gap: 4px; }
.pagination li a,
.pagination li span { display: block; padding: 8px 14px; font-size: 14px; border-radius: 4px; color: var(--color-text); border: 1px solid var(--color-border); }
.pagination li.active span { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination li a:hover { background: var(--color-primary-light); border-color: var(--color-primary); color: var(--color-primary); }

/* ===== Sidebar (Right) ===== */
.rt-widget { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.rt-widget h4 { font-size: 16px; font-weight: 700; padding: 16px 18px 12px; margin: 0; border-bottom: 1px solid var(--color-border); color: var(--color-text); }
.rt-widget ul { padding: 8px 0; }
.rt-widget li { border-bottom: 1px dashed var(--color-border); }
.rt-widget li:last-child { border-bottom: none; }
.rt-widget li a { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; font-size: 14px; color: var(--color-text); transition: all 0.15s; }
.rt-widget li a:hover { color: var(--color-accent); background: #fafaf7; }
.rt-widget-count { font-size: 12px; color: var(--color-text-muted); background: var(--color-bg); padding: 2px 8px; border-radius: 10px; }
.rt-widget-ad { padding: 0; }
.rt-widget-ad img { width: 100%; display: block; }

/* ===== Article Detail ===== */
.article-detail { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.article-detail-head { padding: 30px 30px 20px; border-bottom: 1px solid var(--color-border); }
.article-detail-title { font-size: 28px; font-weight: 700; line-height: 1.4; margin: 0 0 16px; }
.article-detail-meta { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--color-text-muted); flex-wrap: wrap; }
.detail-cat { display: inline-block; padding: 2px 12px; background: var(--color-primary-light); color: var(--color-primary); border-radius: 20px; font-size: 13px; font-weight: 500; }
.article-detail-content { padding: 30px; font-size: 16px; line-height: 1.85; color: #444; }
.article-detail-content h2 { font-size: 22px; margin: 32px 0 16px; color: var(--color-text); }
.article-detail-content h3 { font-size: 18px; margin: 24px 0 12px; color: var(--color-text); }
.article-detail-content p { margin: 0 0 16px; }
.article-detail-content ul,
.article-detail-content ol { margin: 0 0 16px; padding-left: 24px; }
.article-detail-content li { margin-bottom: 8px; }
.article-detail-content img { max-width: 100%; border-radius: 8px; }

/* ===== Article Summary (GEO/AI) ===== */
.article-summary { margin: 0 30px 24px; padding: 20px 24px; background: #f9faf6; border-radius: var(--radius); border-left: 4px solid var(--color-accent); }
.article-summary-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.summary-deco { color: var(--color-accent); font-size: 16px; }
.article-summary-title { font-size: 15px; font-weight: 700; color: var(--color-text); margin: 0; }
.article-summary-text { font-size: 14px; color: var(--color-text-light); line-height: 1.7; margin: 0 0 12px; }
.article-summary-cite { font-size: 12px; color: var(--color-text-muted); }
.cite-label { font-weight: 600; }
.cite-text { background: #eee; padding: 2px 8px; border-radius: 4px; font-size: 11px; word-break: break-all; }

/* ===== Article Nav ===== */
.article-detail-nav { display: flex; gap: 20px; padding: 0 30px 24px; }
.detail-nav-item { flex: 1; min-width: 0; padding: 16px 20px; background: var(--color-bg); border-radius: var(--radius); transition: all 0.2s; }
.detail-nav-item:hover { background: var(--color-primary-light); }
.detail-nav-label { display: block; font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; }
.detail-nav-title { display: block; font-size: 14px; font-weight: 500; color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-nav-prev { text-align: left; }
.detail-nav-next { text-align: right; }

/* ===== Related ===== */
.related-section { padding: 30px 0; }
.related-section h3 { font-size: 20px; font-weight: 700; margin: 0 0 20px; padding-left: 14px; border-left: 4px solid var(--color-accent); }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.related-card { display: block; background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.2s; }
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.related-cover { aspect-ratio: 3/2; overflow: hidden; }
.related-cover img { width: 100%; height: 100%; object-fit: cover; }
.related-body { padding: 12px 16px; }
.related-body h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-body span { font-size: 12px; color: var(--color-text-muted); }

/* ===== Images Grid ===== */
.images-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 20px 0; }
.image-tile { display: block; background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.2s; }
.image-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.image-tile-cover { aspect-ratio: 4/3; overflow: hidden; }
.image-tile-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.image-tile:hover .image-tile-cover img { transform: scale(1.05); }
.image-tile-body { padding: 10px 14px; }
.image-tile-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.image-tile-view { font-size: 12px; color: var(--color-text-muted); }

/* ===== Product Grid ===== */
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 20px 0; }
.product-card { background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.product-cover { display: block; aspect-ratio: 1/1; overflow: hidden; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-cover img { transform: scale(1.05); }
.product-body { padding: 14px 16px; }
.product-title { font-size: 14px; font-weight: 600; margin: 0 0 10px; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 18px; font-weight: 700; color: var(--color-accent); }
.product-btn { display: inline-block; padding: 5px 16px; background: var(--color-primary); color: #fff !important; border-radius: 20px; font-size: 13px; font-weight: 500; transition: background 0.2s; }
.product-btn:hover { background: var(--color-primary-dark); }

/* ===== Product Detail ===== */
.product-detail-main { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 30px; }
.product-detail-main .row { margin: 0; display: flex; }
.product-info { padding: 24px; }
.product-detail-title { font-size: 24px; font-weight: 700; margin: 0 0 20px; }
.product-price-box { background: #fdf2e8; padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.product-price-box .price { font-size: 32px; font-weight: 700; color: var(--color-accent); }
.product-params { margin-bottom: 20px; }
.param-row { display: flex; padding: 10px 0; border-bottom: 1px dashed var(--color-border); font-size: 14px; }
.param-key { color: var(--color-text-muted); width: 80px; flex-shrink: 0; }
.param-val { color: var(--color-text); }
.product-actions button { padding: 12px 36px; background: var(--color-accent); color: #fff; border: none; border-radius: 50px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.product-actions button:hover { background: var(--color-accent-dark); }
.product-detail-content { padding: 24px; }
.product-detail-content .nav-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--color-primary); margin-bottom: 20px; padding: 0; }
.product-detail-content .nav-tabs li a { display: block; padding: 10px 24px; font-size: 15px; font-weight: 600; color: var(--color-text); }
.product-detail-content .nav-tabs li.active a { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); margin-bottom: -2px; }
.detail-content-body { font-size: 15px; line-height: 1.8; }
.detail-content-body h2 { font-size: 20px; margin: 24px 0 12px; }
.detail-content-body h3 { font-size: 17px; margin: 20px 0 10px; }
.detail-content-body ul { padding-left: 20px; }

/* ===== PC Slide ===== */
.pc-slide { padding: 20px; }
.pc-slide .view .swiper-container { border-radius: var(--radius); overflow: hidden; }
.pc-slide .view img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pc-slide .preview { position: relative; margin-top: 10px; }
.pc-slide .preview .arrow-left,
.pc-slide .preview .arrow-right { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; background: rgba(0,0,0,0.5); border-radius: 50%; }
.pc-slide .preview .arrow-left { left: 4px; }
.pc-slide .preview .arrow-right { right: 4px; }
.pc-slide .preview .swiper-slide { opacity: 0.5; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; transition: all 0.2s; }
.pc-slide .preview .active-nav { opacity: 1; border-color: var(--color-accent); }
.pc-slide .preview img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* ===== Single Page ===== */
.single-main { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.subnav { background: var(--color-bg); padding: 0 20px; border-bottom: 1px solid var(--color-border); }
.subnav ul { display: flex; gap: 0; }
.subnav li a { display: block; padding: 14px 20px; font-size: 15px; color: var(--color-text); font-weight: 500; }
.subnav li.active a { color: var(--color-primary); border-bottom: 3px solid var(--color-accent); }
.subnav li a:hover { color: var(--color-accent); }
.single-content { padding: 30px; font-size: 16px; line-height: 1.85; }
.single-content h2 { font-size: 24px; margin: 0 0 16px; }
.single-content h3 { font-size: 18px; margin: 24px 0 12px; }
.single-content p { margin: 0 0 14px; }
.single-content ul { padding-left: 20px; }
.single-content li { margin-bottom: 8px; }

/* ===== Contact Form ===== */
.contact-form-wrap { padding: 30px; border-top: 1px solid var(--color-border); }
.contact-form-title { font-size: 20px; font-weight: 700; margin: 0 0 20px; }
.form-message { background: #f9faf6; padding: 24px; border-radius: var(--radius); }
.form-row { display: flex; gap: 20px; margin-bottom: 16px; }
.form-row label { flex: 1; min-width: 0; }
.form-row label span { display: block; font-size: 14px; color: var(--color-text); margin-bottom: 4px; font-weight: 500; }
.form-message .inp { width: 100%; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.form-message .inp:focus { border-color: var(--color-primary); }
.form-message textarea { width: 100%; height: 120px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 14px; resize: vertical; outline: none; }
.form-message textarea:focus { border-color: var(--color-primary); }
.mes { display: block; margin-bottom: 16px; }
.mes span { display: block; font-size: 14px; color: var(--color-text); margin-bottom: 4px; font-weight: 500; }
.msgbtn-box { display: flex; gap: 12px; }
.btn-contact { padding: 10px 36px; background: var(--color-primary); color: #fff; border: none; border-radius: 50px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-contact:hover { background: var(--color-primary-dark); }
.btn-contact-reset { padding: 10px 36px; background: #fff; color: var(--color-text); border: 1px solid var(--color-border); border-radius: 50px; font-size: 15px; cursor: pointer; }

/* ===== Footer ===== */
.site-footer { background: #2a2a2a; color: #b0b0b0; padding: 40px 0 30px; font-size: 14px; }
.footer-friend-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.footer-friend-links a { color: #888; font-size: 13px; }
.footer-friend-links a:hover { color: var(--color-accent); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.footer-nav a { color: #b0b0b0; font-size: 14px; }
.footer-nav a:hover { color: var(--color-accent); }
.footer-copyright { text-align: center; font-size: 12px; color: #777; }
.footer-copyright a { color: #777; }

/* ===== Float Btn ===== */
#floatbtn { position: fixed; right: 20px; bottom: 60px; z-index: 999; }
#back-to-top { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--color-primary); color: #fff; border-radius: 50%; box-shadow: 0 2px 12px rgba(0,0,0,0.2); transition: all 0.3s; opacity: 0; visibility: hidden; font-size: 18px; }
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--color-accent); transform: translateY(-2px); }

/* ===== Channel Block ===== */
.channel-block { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; overflow: hidden; }
.channel-block .block-head { padding: 20px 24px; border-bottom: 1px solid var(--color-border); }
.block-title { font-size: 18px; font-weight: 700; margin: 0; }
.block-more { font-size: 13px; color: var(--color-text-muted); }
.block-more:hover { color: var(--color-accent); }

/* ===== Search ===== */
.search-page mark { background: #fff3cd; padding: 1px 2px; border-radius: 2px; }

/* ===== Hide admin bar (#c08a8e) ===== */
[style*="background:#c08a8e"],
[style*="background-color:#c08a8e"],
[style*="background: #c08a8e"],
.top-bar[style*="c08a8e"] { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .mobile-toggle { display: block; }
    .main-menu { flex-direction: column; }
    .main-menu > li > a { padding: 12px 16px; }
    .main-menu .dropdown-menu { position: static; box-shadow: none; border-radius: 0; background: rgba(0,0,0,0.08); }
    .main-menu .dropdown-menu a { color: rgba(255,255,255,0.9); }
    .navbar-collapse { display: none; }
    .navbar-collapse.collapse.in,
    .navbar-collapse.active { display: block; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .images-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .article-card { flex-direction: column; }
    .article-cover { width: 100%; }
    .article-cover img { height: 200px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .form-row { flex-direction: column; gap: 12px; }
    .focus-banner img { height: 220px; }
    .article-row a { flex-direction: column; }
    .article-row img { width: 100%; height: 180px; }
}

@media (max-width: 767px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .images-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .article-detail-head { padding: 20px 16px; }
    .article-detail-content { padding: 20px 16px; font-size: 15px; }
    .article-detail-title { font-size: 22px; }
    .article-detail-nav { flex-direction: column; padding: 0 16px 16px; }
    .single-content { padding: 20px; }
    .contact-form-wrap { padding: 20px; }
    .article-summary { margin: 0 16px 16px; }
}
