/* ============================================================
   theme596 - AI工具导航 · 赛博朋克科技暗黑
   主色: #b347ea (霓虹紫)  强调: #00e5ff (电光青)
   底色: #0a0a0f (深空黑)  卡片: 玻璃拟态
   ============================================================ */

/* === CSS 变量 === */
:root {
    --color-primary: #b347ea;
    --color-primary-rgb: 179, 71, 234;
    --color-accent: #00e5ff;
    --color-accent-rgb: 0, 229, 255;
    --color-bg: #0a0a0f;
    --color-bg-secondary: #111118;
    --color-bg-card: rgba(255, 255, 255, 0.05);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #e0e0e0;
    --color-text-secondary: #888;
    --color-text-muted: #666;
    --radius: 6px;
    --radius-lg: 12px;
    --font-heading: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --transition: 0.2s ease;
}

/* === 全局重置 === */
* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.row { margin-left: -15px; margin-right: -15px; }
.col-md-9, .col-md-3, .col-md-5, .col-md-7, .col-sm-12 { padding: 0 15px; float: left; }
.col-md-9 { width: 75%; }
.col-md-3 { width: 25%; }
.col-md-5 { width: 41.666%; }
.col-md-7 { width: 58.333%; }
.col-sm-12 { width: 100%; }
.row::after { content: ""; display: table; clear: both; }

/* === A11y: skip-link === */
.skip-link {
    position: fixed; top: -100px; left: 16px; z-index: 9999;
    background: var(--color-accent); color: #000; padding: 8px 16px;
    border-radius: var(--radius); font-weight: 600; font-size: 14px;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

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

/* ====== HEADER ====== */
.site-header {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 1000;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px; max-width: 1200px;
}
.site-logo img { height: 36px; display: block; }
.site-logo-text { display: block; font-size: 20px; font-weight: 700; color: var(--color-text); letter-spacing: 1px; line-height: 1.3; }
.site-footer .site-logo-text { color: #fff; font-size: 20px; margin-bottom: 12px; }
.navbar-toggle { display: none; background: none; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 6px 10px; cursor: pointer; }
.navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; background: var(--color-text); margin: 4px 0; border-radius: 1px; }

.main-nav { border-top: 1px solid var(--color-border); background: rgba(17, 17, 24, 0.95); }
.main-nav .container { max-width: 1200px; }
.main-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-menu > li > a {
    display: block; padding: 12px 18px; color: var(--color-text-secondary);
    font-size: 14px; font-weight: 500; font-family: var(--font-heading);
    letter-spacing: 0.5px;
}
.main-menu > li > a:hover, .main-menu > li.active > a { color: var(--color-accent); }
.main-menu .dropdown { position: relative; }
.main-menu .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 999;
    background: #18181f; border: 1px solid var(--color-border);
    border-radius: var(--radius); min-width: 160px; padding: 6px 0;
    list-style: none; margin: 0;
}
.main-menu .dropdown:hover .dropdown-menu { display: block; }
.main-menu .dropdown-menu a { display: block; padding: 8px 18px; font-size: 13px; color: var(--color-text-secondary); }
.main-menu .dropdown-menu a:hover { color: var(--color-accent); background: rgba(255,255,255,0.05); }

/* ====== HERO ====== */
.hero-section {
    position: relative; padding: 100px 0 80px; text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 30%, #0a1a2e 70%, #0a0a0f 100%);
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(179, 71, 234, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(0, 229, 255, 0.06) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, 2%) rotate(2deg); }
}
.hero-section .container { position: relative; z-index: 1; }
.hero-title {
    font-family: var(--font-heading); font-size: 48px; font-weight: 700;
    color: #fff; margin: 0 0 16px;
    background: linear-gradient(135deg, #b347ea 0%, #00e5ff 50%, #b347ea 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s ease-in-out infinite;
}
@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-subtitle { font-size: 18px; color: var(--color-text-secondary); margin: 0 0 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
    display: inline-block; padding: 12px 32px; border-radius: var(--radius);
    font-size: 15px; font-weight: 600; font-family: var(--font-heading);
    letter-spacing: 0.5px; cursor: pointer; transition: all var(--transition);
}
.btn-primary {
    background: var(--color-primary); color: #fff; border: none;
    box-shadow: 0 0 20px rgba(179, 71, 234, 0.4);
}
.btn-primary:hover { background: #c56bff; box-shadow: 0 0 30px rgba(179, 71, 234, 0.6); color: #fff; }
.btn-secondary {
    background: transparent; color: var(--color-accent);
    border: 1px solid var(--color-accent);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}
.btn-secondary:hover { background: rgba(0, 229, 255, 0.1); color: var(--color-accent); }

/* ====== MAIN CONTENT ====== */
.main-section { padding: 48px 0; }

/* === Block === */
.block { margin-bottom: 36px; }
.block-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.block-head h3 { font-size: 20px; color: #fff; margin: 0; display: flex; align-items: center; gap: 8px; }
.block-head h3 i { color: var(--color-accent); font-size: 16px; }
.block-head .more { font-size: 13px; 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: 16px; }
.card-glass {
    display: block; border-radius: var(--radius); overflow: hidden;
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    transition: all var(--transition); position: relative;
}
.card-glass:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(179, 71, 234, 0.2);
}
.card-glass .card-cover {
    overflow: hidden; background: #1a1a22;
}
.card-glass .card-cover img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    transition: transform 0.3s;
}
.card-glass:hover .card-cover img { transform: scale(1.05); }
.card-glass .card-body { padding: 14px; }
.card-glass .card-title {
    font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; max-width: 100%;
}
.card-glass .card-price { font-size: 16px; font-weight: 700; color: var(--color-accent); }

/* === Article List (左图右文) === */
.article-list { list-style: none; margin: 0; padding: 0; }
.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; align-items: flex-start;
    transition: background var(--transition);
}
.article-row a:hover { background: var(--color-bg-card); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--radius); }
.article-row a img {
    width: 160px; height: 100px; object-fit: cover; border-radius: var(--radius);
    flex-shrink: 0;
}
.article-row a div { flex: 1; min-width: 0; }
.article-row a h4 {
    font-size: 15px; font-weight: 500; color: #fff; margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; max-width: 100%;
}
.article-row a span { font-size: 12px; color: var(--color-text-muted); }

/* === Banner (Swiper) === */
.banner-section { margin-bottom: 32px; }
.focus-banner { border-radius: var(--radius-lg); overflow: hidden; }
.focus-banner img { width: 100%; aspect-ratio: 2.5/1; object-fit: cover; }
.focus-banner .swiper-slide { position: relative; }
.focus-banner .swiper-slide span {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 16px 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff; font-size: 16px; font-weight: 600;
}

/* ====== PAGE BANNER (子页) ====== */
.page-banner {
    background: linear-gradient(135deg, #111118 0%, #1a0a2e 50%, #0a1a2e 100%);
    padding: 48px 0; text-align: center;
}
.page-banner-title { font-size: 32px; font-family: var(--font-heading); color: #fff; margin: 0 0 8px; }
.breadcrumb-inline { font-size: 13px; color: var(--color-text-muted); }
.breadcrumb-inline a { color: var(--color-text-secondary); }
.breadcrumb-inline a:hover { color: var(--color-accent); }
.breadcrumb-inline i { margin: 0 6px; font-size: 12px; }
.page-container { padding: 40px 15px 60px; }

/* === List Toolbar === */
.list-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; margin-bottom: 20px;
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.toolbar-title { font-size: 14px; font-weight: 600; color: var(--color-text); }
.toolbar-order { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.toolbar-order li a {
    display: block; padding: 4px 14px; font-size: 13px; border-radius: var(--radius);
    color: var(--color-text-secondary); transition: all var(--transition);
}
.toolbar-order li a:hover { color: var(--color-accent); }
.toolbar-order li a.active { background: var(--color-primary); color: #fff; }

/* === Article Card List === */
.article-card-list { margin-bottom: 32px; }
.article-card {
    display: flex; gap: 20px; margin-bottom: 20px;
    padding: 20px; background: var(--color-bg-card);
    border: 1px solid var(--color-border); border-radius: var(--radius);
    transition: all var(--transition);
    flex-wrap: wrap;
}
.article-card:hover { border-color: var(--color-primary); }
.article-cover {
    width: 240px; flex-shrink: 0; border-radius: var(--radius);
    overflow: hidden; display: block;
}
.article-cover img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-cover img { transform: scale(1.05); }
.article-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.article-title { font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 10px; }
.article-intro {
    font-size: 13px; color: var(--color-text-secondary); line-height: 1.6;
    margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; max-width: 100%;
}
.article-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--color-text-muted); flex-wrap: wrap; }
.meta-cat {
    display: inline-block; padding: 3px 10px; font-size: 11px; border-radius: 100px;
    background: rgba(179, 71, 234, 0.15); color: var(--color-primary);
    border: 1px solid rgba(179, 71, 234, 0.3);
}

/* === Pagination === */
.pagination-box { text-align: center; padding: 24px 0; }
.pagination-box .pagination {
    display: inline-flex; gap: 6px; list-style: none; margin: 0; padding: 0;
}
.pagination-box .pagination li a, .pagination-box .pagination li span {
    display: inline-block; padding: 8px 14px; font-size: 13px; border-radius: var(--radius);
    background: var(--color-bg-card); color: var(--color-text-secondary);
    border: 1px solid var(--color-border); transition: all var(--transition);
}
.pagination-box .pagination li a:hover { border-color: var(--color-primary); color: var(--color-accent); }
.pagination-box .pagination .active span { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* === Article Detail === */
.detail-page { padding: 32px 0 60px; }
.breadcrumb-box { font-size: 13px; margin-bottom: 24px; color: var(--color-text-muted); }
.breadcrumb-box a { color: var(--color-text-secondary); }
.breadcrumb-box a:hover { color: var(--color-accent); }
.breadcrumb-box i { margin: 0 6px; font-size: 12px; }

.article-detail { max-width: 720px; }
.article-detail-title { font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 16px; line-height: 1.4; }
.article-detail-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--color-text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.detail-cat {
    display: inline-block; padding: 4px 14px; font-size: 12px; border-radius: 100px;
    background: rgba(179, 71, 234, 0.15); color: var(--color-primary);
}
.article-detail-content {
    font-size: 16px; line-height: 1.9; color: #c8c8d0;
}
.article-detail-content img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }
.article-detail-content p { margin: 0 0 16px; }
.article-detail-content h2, .article-detail-content h3 { color: #fff; margin: 32px 0 16px; }
.article-detail-content a { color: var(--color-accent); }

/* === Article Summary (GEO) === */
.article-summary {
    margin: 32px 0; padding: 24px;
    background: linear-gradient(135deg, rgba(179, 71, 234, 0.08), rgba(0, 229, 255, 0.05));
    border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.article-summary-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.summary-deco { color: var(--color-accent); font-size: 16px; }
.article-summary-title { font-size: 15px; font-weight: 600; color: var(--color-accent); margin: 0; }
.article-summary-text { font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; margin: 0 0 12px; }
.article-summary-cite { font-size: 12px; color: var(--color-text-muted); }
.cite-label { color: var(--color-text-secondary); }
.cite-text {
    display: block; margin-top: 4px; padding: 8px 12px; font-size: 12px;
    background: rgba(0,0,0,0.4); border-radius: var(--radius);
    word-break: break-all; color: var(--color-text-muted);
}

/* === Detail Nav (prev/next) === */
.article-detail-nav {
    display: flex; gap: 16px; margin: 32px 0;
    border-top: 1px solid var(--color-border); padding-top: 24px;
}
.detail-nav-item { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.detail-nav-label { font-size: 12px; color: var(--color-text-muted); }
.detail-nav-title {
    font-size: 14px; color: var(--color-text); font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden; max-width: 100%;
}
.detail-nav-next { text-align: right; }

/* === Related === */
.related-section { margin-top: 40px; }
.related-section h3 { font-size: 18px; color: #fff; margin: 0 0 16px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--color-bg-card); border: 1px solid var(--color-border); transition: all var(--transition); }
.related-card:hover { border-color: var(--color-primary); }
.related-cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.related-body { padding: 12px; }
.related-body h4 { font-size: 13px; color: #fff; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.related-body span { font-size: 11px; color: var(--color-text-muted); }

/* === Product Grid === */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.product-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius); overflow: hidden; transition: all var(--transition);
}
.product-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.product-cover { display: block; overflow: hidden; }
.product-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-cover img { transform: scale(1.05); }
.product-body { padding: 16px; }
.product-title { font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.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: 6px 16px; font-size: 12px; font-weight: 600;
    background: rgba(179, 71, 234, 0.15); color: var(--color-primary);
    border: 1px solid rgba(179, 71, 234, 0.3); border-radius: var(--radius);
    transition: all var(--transition);
}
.product-btn:hover { background: var(--color-primary); color: #fff; }

/* === Product Detail === */
.product-detail-page { padding: 32px 0 60px; }
.product-detail-main { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; }
.pc-slide { }
.pc-slide .view img { width: 100%; border-radius: var(--radius); }
.pc-slide .preview { margin-top: 12px; position: relative; }
.pc-slide .preview .swiper-slide { cursor: pointer; opacity: 0.5; transition: opacity var(--transition); }
.pc-slide .preview .swiper-slide.active-nav, .pc-slide .preview .swiper-slide:hover { opacity: 1; }
.pc-slide .preview img { width: 100%; border-radius: var(--radius); }
.arrow-left, .arrow-right {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 28px; height: 28px; background: rgba(0,0,0,0.7);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.arrow-left { left: 0; }
.arrow-right { right: 0; }
.arrow-left::after { content: '‹'; color: #fff; font-size: 20px; }
.arrow-right::after { content: '›'; color: #fff; font-size: 20px; }

.product-detail-title { font-size: 24px; font-weight: 700; color: #fff; margin: 0 0 16px; }
.product-price-box { margin-bottom: 20px; padding: 16px; background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.2); border-radius: var(--radius); }
.product-price-box span:first-child { font-size: 13px; color: var(--color-text-muted); margin-right: 8px; }
.product-price-box .price { font-size: 28px; font-weight: 700; color: var(--color-accent); }
.product-params { margin-bottom: 20px; }
.param-row { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--color-border); }
.param-key { color: var(--color-text-muted); min-width: 60px; }
.param-val { color: var(--color-text); }
.product-actions button {
    padding: 12px 40px; border: none; border-radius: var(--radius);
    background: var(--color-primary); color: #fff; font-size: 15px; font-weight: 600;
    cursor: pointer; box-shadow: 0 0 16px rgba(179, 71, 234, 0.3);
    transition: all var(--transition);
}
.product-actions button:hover { background: #c56bff; box-shadow: 0 0 24px rgba(179, 71, 234, 0.5); }

.product-detail-content { margin-top: 32px; }
.nav-tabs { display: flex; list-style: none; margin: 0 0 20px; padding: 0; gap: 2px; border-bottom: 2px solid var(--color-border); }
.nav-tabs li { }
.nav-tabs li a { display: block; padding: 10px 24px; font-size: 14px; font-weight: 600; color: var(--color-text-secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.nav-tabs li.active a { color: var(--color-accent); border-color: var(--color-accent); }
.detail-content-body { font-size: 15px; line-height: 1.8; color: #c8c8d0; }

/* === Images Grid === */
.images-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.image-tile { display: block; border-radius: var(--radius); overflow: hidden; background: var(--color-bg-card); border: 1px solid var(--color-border); transition: all var(--transition); }
.image-tile:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.image-tile-cover img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.image-tile-body { padding: 12px; }
.image-tile-title { font-size: 14px; color: #fff; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.image-tile-view { font-size: 12px; color: var(--color-text-muted); }

/* === Channel Page === */
.channel-block { margin-bottom: 32px; }
.text-list { list-style: none; margin: 0; padding: 0; }
.text-list-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.text-list-item:last-child { border-bottom: none; }
.text-list-title { flex: 1; min-width: 0; font-size: 14px; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.text-list-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--color-text-muted); flex-shrink: 0; margin-left: 16px; }

/* === Single Page === */
.single-main { max-width: 800px; margin: 0 auto; }
.single-content { font-size: 15px; line-height: 1.9; color: #c8c8d0; }
.subnav { margin-bottom: 24px; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.subnav ul li a { display: block; padding: 8px 20px; font-size: 14px; border-radius: var(--radius); background: var(--color-bg-card); color: var(--color-text-secondary); border: 1px solid var(--color-border); transition: all var(--transition); }
.subnav ul li.active a { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.subnav ul li a:hover { border-color: var(--color-primary); color: var(--color-accent); }

/* ====== WIDGETS (右侧边栏) ====== */
.widget { margin-bottom: 24px; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.widget-head { padding: 14px 18px; border-bottom: 1px solid var(--color-border); }
.widget-title { font-size: 15px; font-weight: 600; color: #fff; margin: 0; display: flex; align-items: center; gap: 8px; }
.widget-title i { color: var(--color-accent); font-size: 14px; }
.widget-body { padding: 8px 18px 14px; }
.widget-ad { background: none; border: none; border-radius: 0; }
.widget-ad img { width: 100%; border-radius: var(--radius); }

/* -- Rank list -- */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.rank-item:last-child { border-bottom: none; }
.rank-num {
    width: 24px; height: 24px; border-radius: var(--radius); display: flex;
    align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
    background: rgba(255,255,255,0.05); color: var(--color-text-muted); flex-shrink: 0;
}
.rank-num.rank-top { background: var(--color-primary); color: #fff; }
.rank-content { flex: 1; min-width: 0; }
.rank-title { font-size: 13px; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.rank-meta { font-size: 11px; color: var(--color-text-muted); display: block; margin-top: 2px; }

/* -- Latest list -- */
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.latest-item:last-child { border-bottom: none; }
.latest-thumb { width: 64px; height: 48px; flex-shrink: 0; border-radius: 4px; overflow: hidden; display: block; }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-info { flex: 1; min-width: 0; }
.latest-title { font-size: 13px; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.latest-date { font-size: 11px; color: var(--color-text-muted); display: block; margin-top: 4px; }

/* -- Nav list (侧栏) -- */
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { }
.nav-item > a { display: block; padding: 8px 0; font-size: 13px; color: var(--color-text-secondary); border-bottom: 1px solid rgba(255,255,255,0.04); }
.nav-item.active > a { color: var(--color-accent); font-weight: 600; }
.nav-item > a:hover { color: var(--color-accent); }
.nav-sub { list-style: none; margin: 0; padding: 0 0 0 14px; }
.nav-sub a { display: block; padding: 6px 0; font-size: 12px; color: var(--color-text-muted); }
.nav-sub a:hover, .nav-sub .active > a { color: var(--color-accent); }

/* ====== CONTACT FORM ====== */
.contact-form-wrap { margin-top: 40px; padding: 32px; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.contact-form-title { font-size: 20px; color: #fff; margin: 0 0 24px; }
.form-message { }
.form-row { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.form-row label { flex: 1; min-width: 0; font-size: 14px; color: var(--color-text-secondary); display: flex; align-items: center; gap: 8px; }
.form-row label span { white-space: nowrap; min-width: 70px; }
.inp {
    flex: 1; padding: 10px 14px; font-size: 14px;
    background: rgba(0,0,0,0.4); border: 1px solid var(--color-border);
    border-radius: var(--radius); color: #fff; font-family: var(--font-body);
}
.inp:focus { border-color: var(--color-accent); outline: none; }
.mes { display: flex; gap: 8px; font-size: 14px; color: var(--color-text-secondary); margin-bottom: 16px; }
.mes span { white-space: nowrap; min-width: 70px; }
.mes textarea {
    flex: 1; padding: 10px 14px; font-size: 14px; min-height: 120px;
    background: rgba(0,0,0,0.4); border: 1px solid var(--color-border);
    border-radius: var(--radius); color: #fff; resize: vertical; font-family: var(--font-body);
}
.mes textarea:focus { border-color: var(--color-accent); outline: none; }
.msgbtn-box { display: flex; gap: 12px; }
.btn-contact, .btn-contact-reset {
    padding: 10px 36px; font-size: 14px; font-weight: 600;
    border-radius: var(--radius); cursor: pointer; border: none; font-family: var(--font-heading);
}
.btn-contact { background: var(--color-primary); color: #fff; box-shadow: 0 0 16px rgba(179,71,234,0.3); }
.btn-contact:hover { background: #c56bff; }
.btn-contact-reset { background: rgba(255,255,255,0.05); color: var(--color-text-secondary); border: 1px solid var(--color-border); }
.btn-contact-reset:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ====== FOOTER ====== */
.site-footer {
    background: #08080c; border-top: 1px solid var(--color-border);
    padding: 40px 0 24px; text-align: center; font-size: 13px; color: var(--color-text-muted);
}
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 24px; text-align: left; }
.footer-brand { flex: 1.4 1 240px; min-width: 200px; }
.footer-brand p { font-size: 12px; color: var(--color-text-muted); margin: 0; }
.footer-col { flex: 1 1 150px; min-width: 130px; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.footer-col a { display: block; color: var(--color-text-secondary); font-size: 13px; padding: 3px 0; }
.footer-col a:hover { color: var(--color-accent); }
.footer-copyright { padding-top: 20px; border-top: 1px solid var(--color-border); }
.footer-copyright a { color: var(--color-text-muted); margin-left: 10px; }

/* ====== FLOAT BTN ====== */
#floatbtn { position: fixed; bottom: 40px; right: 24px; z-index: 999; }
#floatbtn a {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--color-primary); color: #fff; font-size: 16px;
    line-height: 1; padding: 0;
    box-shadow: 0 0 20px rgba(179, 71, 234, 0.4);
    transition: all var(--transition);
}
#floatbtn a i { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; line-height: 1; }
#floatbtn a:hover { background: #c56bff; box-shadow: 0 0 28px rgba(179, 71, 234, 0.6); }

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

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .col-md-9, .col-md-3, .col-md-5, .col-md-7 { width: 100%; float: none; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .images-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 32px; }
    .hero-section { padding: 60px 0 48px; }
    .article-card { flex-direction: column; }
    .article-cover { width: 100%; }
    .article-detail-nav { flex-direction: column; }
    .detail-nav-next { text-align: left; }
    .form-row { flex-direction: column; }
}
@media (max-width: 768px) {
    .card-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: 26px; }
    .hero-subtitle { font-size: 14px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .main-menu { display: flex; flex-wrap: wrap; }
    .main-nav { }
    .footer-main { flex-direction: column; }
}
@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
.main-menu .dropdown-menu{max-height:320px;overflow-y:auto}
