/* ===== 按摩理疗设备主题 - common.css ===== */
:root {
    --color-primary: #4A9C8C;
    --color-primary-dark: #3a7d6f;
    --color-primary-light: #e8f5f0;
    --color-accent: #e67e22;
    --color-text-dark: #2c3e50;
    --color-text-muted: #7f8c8d;
    --color-text-light: #bdc3c7;
    --color-bg-gray: #f7f9fa;
    --color-bg-warm: #fafbfc;
    --color-border: #e8edf0;
    --color-border-dark: #dde3e8;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 隐藏 #c08a8e 测试色条 */
[style*="c08a8e"] { display: none !important; }
[style*="#c08a8e"] { display: none !important; }
#c08a8e, .c08a8e, [id="c08a8e"], [class*="c08a8e"] { display: none !important; }

* { box-sizing: border-box; }
body {
    font-family: var(--font-family);
    color: var(--color-text-dark);
    background: #fff;
    line-height: 1.7;
    font-size: 15px;
}

a { color: var(--color-text-dark); transition: color 0.2s; }
a:hover { color: var(--color-primary); text-decoration: none; }

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; max-width: 1280px; margin: 0 auto; }
.site-logo-text {
    font-size: 24px; font-weight: 700; color: var(--color-primary);
    text-decoration: none; letter-spacing: 2px;
}
.site-logo-text:hover { color: var(--color-primary-dark); text-decoration: none; }

.main-nav { background: var(--color-primary); display: block; clear: both; }
.main-nav:after { content: ''; display: table; clear: both; }
.main-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 15px; }
.main-menu { display: flex; flex-wrap: wrap; float: none !important; }
.main-menu > li > a {
    display: block; padding: 13px 22px; color: #fff; 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 {
    border: none; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 8px 0;
    max-height: 320px; overflow-y: auto;
}
.main-menu .dropdown-menu a { padding: 8px 20px; font-size: 14px; }
.main-menu .dropdown-menu a:hover { background: var(--color-primary-light); color: var(--color-primary); }

.mobile-toggle { display: none; padding: 9px 10px; margin: 0; border: 1px solid #ddd; border-radius: 4px; background: #fff; }
.mobile-toggle .icon-bar { display: block; width: 22px; height: 2px; background: #666; margin: 4px 0; border-radius: 1px; }

/* ===== Hero ===== */
.hero-section {
    padding: 80px 0 70px; text-align: center;
    background: linear-gradient(135deg, #1a5276 0%, #2d8a7b 50%, #1a6b5a 100%);
    position: relative; overflow: hidden;
    clear: both; display: block;
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; right: -30%;
    width: 600px; height: 600px; border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.hero-title { color: #fff; font-size: 38px; font-weight: 700; margin: 0 0 16px; letter-spacing: 1px; }
.hero-subtitle { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 560px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
    display: inline-block; padding: 13px 36px; background: #fff; color: var(--color-primary);
    border-radius: 50px; font-size: 16px; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); color: var(--color-primary); }
.btn-hero-secondary {
    display: inline-block; padding: 13px 36px; border: 2px solid rgba(255,255,255,0.6); color: #fff;
    border-radius: 50px; font-size: 16px; font-weight: 500; transition: background 0.2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ===== Feature Section ===== */
.feature-section { padding: 50px 0; background: #fff; border-bottom: 1px solid var(--color-border); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { text-align: center; padding: 24px 16px; }
.feature-icon { font-size: 32px; color: var(--color-primary); margin-bottom: 12px; }
.feature-item h4 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.feature-item p { color: var(--color-text-muted); font-size: 14px; margin: 0; }

/* ===== Section Head ===== */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 2px solid var(--color-primary); }
.section-head h2 { font-size: 22px; font-weight: 700; margin: 0; color: var(--color-text-dark); position: relative; }
.more-link { font-size: 14px; color: var(--color-text-muted); }
.more-link:hover { color: var(--color-primary); }

/* ===== Main Section ===== */
.main-section { padding: 50px 0; }
.block { margin-bottom: 44px; }
.block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.block-head h3 { font-size: 20px; font-weight: 700; margin: 0; padding-left: 14px; border-left: 4px solid var(--color-primary); }
.block-head .more { font-size: 13px; color: var(--color-text-muted); }

/* ===== Card Grid (4col) ===== */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { display: block; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: #fff; transition: box-shadow 0.3s, transform 0.3s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-cover { position: relative; padding-top: 56%; overflow: hidden; background: var(--color-bg-gray); }
.card-cover img { position: absolute; inset: 0; 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; margin: 0 0 8px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price { font-size: 17px; font-weight: 700; color: var(--color-accent); }

/* ===== Article List ===== */
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list .article-row { border-bottom: 1px solid var(--color-border); }
.article-list .article-row:last-child { border-bottom: none; }
.article-list .article-row a { display: flex; align-items: stretch; padding: 14px 0; gap: 16px; }
.article-list .article-row a img { width: 180px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.article-list .article-row a div { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.article-list .article-row h4 { font-size: 16px; font-weight: 600; margin: 0 0 6px; line-height: 1.5; }
.article-list .article-row span { font-size: 13px; color: var(--color-text-muted); }

/* ===== Page Banner ===== */
.page-banner { padding: 50px 0; text-align: center; color: #fff; }
.page-banner-title { font-size: 28px; font-weight: 700; margin: 0 0 12px; }
.breadcrumb-inline { font-size: 14px; color: rgba(255,255,255,0.8); }
.breadcrumb-inline a { color: rgba(255,255,255,0.9); }
.breadcrumb-inline a:hover { color: #fff; }
.breadcrumb-inline i { margin: 0 6px; font-size: 12px; }
.page-container { padding: 30px 0 50px; }

/* ===== Breadcrumb Box ===== */
.breadcrumb-box { padding: 12px 0; font-size: 14px; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); margin-bottom: 20px; }
.breadcrumb-box a { color: var(--color-text-muted); }
.breadcrumb-box i { margin: 0 6px; }

/* ===== Article Card List ===== */
.article-card-list { display: flex; flex-direction: column; gap: 20px; }
.article-card { display: flex; gap: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; padding: 0; transition: box-shadow 0.2s; }
.article-card:hover { box-shadow: var(--shadow-md); }
.article-cover { flex-shrink: 0; width: 220px; overflow: hidden; }
.article-cover img { width: 100%; height: 150px; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-cover img { transform: scale(1.05); }
.article-body { flex: 1; min-width: 0; padding: 16px 16px 16px 0; display: flex; flex-direction: column; }
.article-title { font-size: 18px; font-weight: 600; margin: 0 0 8px; line-height: 1.4; }
.article-intro { font-size: 14px; color: var(--color-text-muted); margin: 0 0 12px; line-height: 1.6; }
.article-meta { font-size: 13px; color: var(--color-text-light); display: flex; gap: 16px; margin-top: auto; }
.meta-cat { color: var(--color-primary); font-size: 12px; background: var(--color-primary-light); padding: 2px 10px; border-radius: 20px; }

/* ===== Article Full (首页用) ===== */
.article-list-full { display: flex; flex-direction: column; gap: 20px; }
.article-card-full { display: flex; gap: 20px; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; }
.article-card-full:last-child { border-bottom: none; }
.article-card-full .card-cover { flex-shrink: 0; width: 240px; height: 160px; border-radius: var(--radius-sm); overflow: hidden; }
.article-card-full .card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card-full:hover .card-cover img { transform: scale(1.05); }
.article-card-full .card-body { flex: 1; min-width: 0; }
.article-card-full .card-body h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.article-card-full .card-body p { font-size: 14px; color: var(--color-text-muted); margin: 0 0 10px; }
.card-meta { font-size: 13px; color: var(--color-text-light); display: flex; gap: 16px; }

/* ===== Home Category Grid ===== */
.home-category { padding: 56px 0; background: var(--color-bg-gray); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { display: block; text-align: center; background: #fff; border-radius: var(--radius-md); padding: 30px 20px; transition: box-shadow 0.3s, transform 0.3s; border: 1px solid var(--color-border); }
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cat-icon { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.cat-card p { font-size: 13px; color: var(--color-text-muted); margin: 0; }

/* ===== Home Products ===== */
.home-products { padding: 56px 0; background: #fff; }
.product-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-item { display: block; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: #fff; transition: box-shadow 0.3s, transform 0.3s; }
.product-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-cover { position: relative; padding-top: 100%; overflow: hidden; background: var(--color-bg-gray); }
.product-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-item:hover .product-cover img { transform: scale(1.05); }
.product-info { padding: 14px 16px; }
.product-info h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-price { font-size: 16px; font-weight: 700; color: var(--color-accent); }

/* ===== Home Main ===== */
.home-main { padding: 50px 0; background: var(--color-bg-gray); }

/* ===== Sidebar Widgets ===== */
.widget { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 20px; overflow: hidden; }
.widget-head { padding: 14px 18px; border-bottom: 1px solid var(--color-border); }
.widget-title { font-size: 16px; font-weight: 700; margin: 0; }
.widget-title i { color: var(--color-primary); margin-right: 6px; }
.widget-body { padding: 6px 0; }

/* Nav Widget */
.nav-list { list-style: none; padding: 0; margin: 0; }
.nav-item a { display: block; padding: 10px 18px; font-size: 14px; border-bottom: 1px solid #f5f5f5; transition: background 0.2s; }
.nav-item a:hover { background: var(--color-primary-light); color: var(--color-primary); }
.nav-item:last-child a { border-bottom: none; }

/* Rank Widget */
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #f5f5f5; }
.rank-item:last-child { border-bottom: none; }
.rank-num { width: 20px; height: 20px; line-height: 20px; text-align: center; background: var(--color-bg-gray); border-radius: 4px; font-size: 12px; font-weight: 700; flex-shrink: 0; color: var(--color-text-muted); }
.rank-num.rank-top { background: var(--color-primary); color: #fff; }
.rank-content { flex: 1; min-width: 0; }
.rank-title { font-size: 13px; line-height: 1.5; display: block; }
.rank-meta { font-size: 11px; color: var(--color-text-light); display: block; margin-top: 4px; }

/* Latest Widget */
.latest-list { list-style: none; padding: 0; margin: 0; }
.latest-item { display: flex; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #f5f5f5; }
.latest-item:last-child { border-bottom: none; }
.latest-thumb { flex-shrink: 0; width: 70px; height: 52px; border-radius: 4px; overflow: hidden; }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-info { flex: 1; min-width: 0; }
.latest-title { font-size: 13px; line-height: 1.5; display: block; }
.latest-date { font-size: 11px; color: var(--color-text-light); display: block; margin-top: 3px; }

/* Ad Widget */
.widget-ad { padding: 0; border: none; }
.widget-ad img { width: 100%; border-radius: var(--radius-md); }

/* ===== Product Detail ===== */
.product-detail-page { padding: 24px 0 60px; }
.product-detail-main { background: #fff; border-radius: var(--radius-md); }
.product-detail-title { font-size: 24px; font-weight: 700; margin: 0 0 16px; }
.product-price-box { margin-bottom: 20px; }
.product-price-box span:first-child { font-size: 14px; color: var(--color-text-muted); }
.price { font-size: 28px; font-weight: 700; color: var(--color-accent); margin-left: 8px; }
.product-params { margin-bottom: 20px; }
.param-row { display: flex; padding: 8px 0; border-bottom: 1px dashed var(--color-border); }
.param-key { width: 60px; color: var(--color-text-muted); font-size: 14px; }
.param-val { flex: 1; min-width: 0; font-size: 14px; }
.product-actions button {
    padding: 12px 40px; background: var(--color-primary); color: #fff; border: none;
    border-radius: 50px; font-size: 16px; cursor: pointer; transition: background 0.2s;
}
.product-actions button:hover { background: var(--color-primary-dark); }
.product-detail-content { margin-top: 30px; }
.nav-tabs { border-bottom: 2px solid var(--color-border); margin-bottom: 20px; }
.nav-tabs > li > a { font-size: 15px; font-weight: 600; padding: 10px 24px; }
.nav-tabs > li.active > a { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); }
.detail-content-body { font-size: 15px; line-height: 1.9; }

/* ===== Article Detail ===== */
.article-detail { background: #fff; border-radius: var(--radius-md); }
.article-detail-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.article-detail-title { font-size: 26px; font-weight: 700; line-height: 1.4; margin: 0 0 14px; }
.article-detail-meta { display: flex; gap: 18px; font-size: 13px; color: var(--color-text-light); align-items: center; }
.detail-cat { color: var(--color-primary); background: var(--color-primary-light); padding: 3px 12px; border-radius: 20px; font-size: 12px; }
.article-detail-content { font-size: 16px; line-height: 1.9; color: var(--color-text-dark); }
.article-detail-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; }
.article-detail-nav { display: flex; justify-content: space-between; margin-top: 30px; gap: 16px; }
.detail-nav-item { flex: 1; min-width: 0; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); transition: background 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: 6px; }
.detail-nav-title { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Related ===== */
.related-section { margin-top: 40px; }
.related-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card { display: block; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow 0.2s; }
.related-card:hover { box-shadow: var(--shadow-md); }
.related-cover { padding-top: 66%; position: relative; overflow: hidden; }
.related-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.related-body { padding: 10px 12px; }
.related-body h4 { font-size: 13px; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-body span { font-size: 11px; color: var(--color-text-light); }

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

/* ===== Product Grid ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: #fff; transition: box-shadow 0.3s; }
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-body { padding: 14px 16px; }
.product-title { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 17px; font-weight: 700; color: var(--color-accent); }
.product-btn { padding: 6px 16px; background: var(--color-primary); color: #fff; border-radius: 20px; font-size: 12px; transition: background 0.2s; }
.product-btn:hover { background: var(--color-primary-dark); color: #fff; }

/* ===== Images Grid ===== */
.images-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.image-tile { display: block; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow 0.2s; }
.image-tile:hover { box-shadow: var(--shadow-md); }
.image-tile-cover { padding-top: 75%; position: relative; overflow: hidden; }
.image-tile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.image-tile:hover .image-tile-cover img { transform: scale(1.05); }
.image-tile-body { padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.image-tile-title { font-size: 14px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-tile-view { font-size: 12px; color: var(--color-text-light); flex-shrink: 0; margin-left: 8px; }

/* ===== Channel Page ===== */
.channel-block { margin-bottom: 32px; }
.text-list { list-style: none; padding: 0; margin: 0; }
.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 { font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-list-meta { font-size: 13px; color: var(--color-text-light); flex-shrink: 0; margin-left: 16px; display: flex; gap: 12px; }
.text-list-date { font-size: 12px; }

/* ===== Single Page ===== */
.single-page { padding-bottom: 50px; }
.single-main { background: #fff; border-radius: var(--radius-md); padding: 30px; border: 1px solid var(--color-border); }
.subnav { margin-bottom: 24px; }
.subnav ul { display: flex; list-style: none; padding: 0; margin: 0; border-bottom: 2px solid var(--color-border); gap: 0; }
.subnav li a { display: block; padding: 10px 24px; font-size: 15px; color: var(--color-text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.2s, border-color 0.2s; }
.subnav li.active a, .subnav li a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.single-content { font-size: 15px; line-height: 1.9; }

/* ===== Contact Form ===== */
.contact-form-wrap { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--color-border); }
.contact-form-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.form-message { max-width: 700px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-message label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.form-message label span { flex-shrink: 0; color: var(--color-text-muted); }
.form-message .inp { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; transition: border-color 0.2s; }
.form-message .inp:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(45,138,123,0.1); }
.form-message .mes { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.form-message textarea { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; height: 120px; resize: vertical; }
.form-message textarea:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(45,138,123,0.1); }
.msgbtn-box { display: flex; gap: 12px; }
.btn-contact { padding: 11px 40px; background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 15px; cursor: pointer; transition: background 0.2s; }
.btn-contact:hover { background: var(--color-primary-dark); }
.btn-contact-reset { padding: 11px 28px; background: #fff; color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 15px; cursor: pointer; }

/* ===== Footer ===== */
.site-footer { background: #2c3e50; color: rgba(255,255,255,0.7); padding: 40px 0 24px; margin-top: 0; font-size: 14px; }
.footer-friend-links { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-friend-links a { color: rgba(255,255,255,0.5); margin: 0 12px; font-size: 13px; }
.footer-friend-links a:hover { color: #fff; }
.footer-nav { text-align: center; margin-bottom: 18px; }
.footer-nav a { color: rgba(255,255,255,0.6); margin: 0 14px; }
.footer-nav a:hover { color: #fff; }
.footer-copyright { text-align: center; color: rgba(255,255,255,0.4); font-size: 13px; }
.footer-copyright a { color: rgba(255,255,255,0.4); }
.footer-copyright a:hover { color: #fff; }

/* ===== Float Button ===== */
#floatbtn { position: fixed; right: 20px; bottom: 80px; z-index: 999; }
#back-to-top { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--color-primary); color: #fff; border-radius: 50%; font-size: 16px; opacity: 0.85; transition: opacity 0.2s; }
#back-to-top:hover { opacity: 1; color: #fff; }

/* ===== Pagination ===== */
.pagination-box { text-align: center; margin-top: 30px; }
.pagination { display: inline-flex; list-style: none; padding: 0; margin: 0; gap: 4px; }
.pagination li a, .pagination li span { display: inline-block; min-width: 36px; height: 36px; line-height: 34px; padding: 0 12px; border: 1px solid var(--color-border); background: #fff; text-align: center; border-radius: var(--radius-sm); font-size: 14px; }
.pagination li a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .active a, .pagination .active span { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===== Channel Block ===== */
.channel-block { margin-bottom: 32px; }

/* ===== PC Slide ===== */
.pc-slide { border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.pc-slide .view { position: relative; }
.pc-slide .view .swiper-container { width: 100%; }
.pc-slide .view .swiper-slide { text-align: center; }
.pc-slide .view .swiper-slide img { max-width: 100%; }
.pc-slide .preview { position: relative; padding: 8px 30px; border-top: 1px solid var(--color-border); }
.pc-slide .preview .swiper-container { padding: 0; }
.pc-slide .preview .swiper-slide { padding: 2px; border: 2px solid transparent; cursor: pointer; text-align: center; }
.pc-slide .preview .swiper-slide img { height: 60px; object-fit: cover; }
.pc-slide .preview .active-nav { border-color: var(--color-primary); }
.pc-slide .arrow-left, .pc-slide .arrow-right { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 24px; height: 24px; text-align: center; line-height: 24px; color: var(--color-text-muted); cursor: pointer; }
.pc-slide .arrow-left { left: 2px; }
.pc-slide .arrow-right { right: 2px; }

/* ===== Search Page ===== */
.search-keyword { color: var(--color-accent); }

/* ===== Article Summary + A11y ===== */
.article-summary {
    --as-primary: var(--color-primary);
    --as-bg: var(--color-bg-warm);
    --as-border: var(--color-border-dark);
    --as-text: var(--color-text-dark);
    --as-muted: var(--color-text-muted);
    --as-radius: var(--radius-sm);
    margin: 30px 0;
    padding: 20px 24px;
    background: var(--as-bg);
    border-left: 4px solid var(--as-primary);
    border-radius: var(--as-radius);
}
.article-summary-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.summary-deco { color: var(--as-primary); flex-shrink: 0; }
.article-summary-title { font-size: 16px; margin: 0; color: var(--as-text); font-weight: 600; }
.article-summary-text { color: var(--as-text); font-size: 14px; line-height: 1.8; margin: 0 0 12px; }
.article-summary-cite { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--as-border); font-size: 12px; color: var(--as-muted); }
.cite-label { font-weight: 600; flex-shrink: 0; }
.cite-text { flex: 1; min-width: 0; font-family: Menlo, Monaco, Consolas, monospace; background: #fff; padding: 4px 8px; border-radius: 3px; color: var(--as-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A11y */
.skip-link { position: absolute; top: -50px; left: 8px; z-index: 9999; padding: 10px 18px; background: var(--color-primary); color: #fff !important; border-radius: 0 0 6px 6px; font-size: 14px; transition: top 0.2s ease-out; }
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 3px; }

/* ===== Detail Article Body ===== */
.detail-body { line-height: 1.9; color: #333; }
.detail-body h2 {
    font-size: 22px; font-weight: 700; margin: 32px 0 16px; padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary-light); color: var(--color-primary-dark);
}
.detail-body h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; color: var(--color-primary); }
.detail-body p { margin: 0 0 16px; text-indent: 2em; font-size: 15px; }
.detail-body-raw p { margin: 0 0 16px; font-size: 15px; line-height: 1.9; }
.detail-figure { margin: 0 0 20px; }
.detail-figure img { width: 100%; border-radius: 4px; }

/* Article Tags */
.article-tags { margin-top: 30px; padding: 16px 0; border-top: 1px solid #eee; }
.tags-label { font-size: 14px; color: #999; margin-right: 8px; }
.tags-item {
    display: inline-block; background: var(--color-primary-light); color: var(--color-primary);
    padding: 4px 14px; margin: 4px 6px; border-radius: 20px; font-size: 13px;
}

/* Prev / Next Nav */
.detail-prev-next { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.prev-next-item { max-width: 45%; flex: 1; }
.prev-next-item:hover { text-decoration: none; }
.prev-next-label { display: block; font-size: 12px; color: #999; margin-bottom: 4px; }
.prev-next-title { display: block; font-size: 14px; color: #333; line-height: 1.5; }
.prev-next-item:hover .prev-next-title { color: var(--color-primary); }
.prev-next-next { text-align: right; margin-left: auto; }
.prev-next-empty { max-width: 45%; }

/* ===== Responsive ===== */
@media (max-width: 1199px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .images-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .header-contact { display: none; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid-4 { 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); }
    .hero-title { font-size: 28px; }
    .hero-section { padding: 50px 0 44px; }
    .article-card { flex-direction: column; }
    .article-cover { width: 100%; height: 180px; }
    .article-cover img { height: 100%; }
    .article-body { padding: 14px; }
    .article-card-full { flex-direction: column; }
    .article-card-full .card-cover { width: 100%; height: 180px; }
    .feature-item { padding: 16px 10px; }
    .form-row { grid-template-columns: 1fr; }
    .article-list .article-row a img { width: 120px; height: 80px; }
}
@media (max-width: 767px) {
    body { font-size: 14px; }
    .mobile-toggle { display: block; }
    .main-menu { flex-direction: column; }
    #navbar-collapse { display: none; }
    #navbar-collapse.in { display: block; }
    .main-menu > li > a { padding: 10px 15px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .feature-grid { grid-template-columns: 1fr; gap: 8px; }
    .images-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 15px; }
    .hero-section { padding: 40px 0 34px; }
    .home-category, .home-products, .main-section { padding: 30px 0; }
    .page-banner { padding: 30px 0; }
    .page-banner-title { font-size: 22px; }
    .article-detail-title { font-size: 20px; }
    .product-detail-title { font-size: 20px; }
    .section-head h2 { font-size: 18px; }
    .single-main { padding: 16px; }
}
