/*
Theme Name: 鼓狮新闻快讯 (合并版)
Theme URI: https://www.gushiio.com/
Author: 鼓狮
Description: 定制的新闻时间轴主题。基于旧版经典布局，集成新版代币卡片与行情功能。
Version: 5.2 (Fixed Mobile Menu)
Requires PHP: 8.0
License: GNU General Public License v2 or later
*/

/* =========================================
   1. CSS 变量 (Variables) - 融合版
   ========================================= */
:root {
    --theme-color: #a62a1a;
    --theme-color-darker: #a62a1a;
    --text-color: #34495e;
    --text-color-light: #7f8c8d;
    --bg-color: #f4f6f9;
    --card-bg-color: #ffffff;
    --border-color: #eaecf1;
    --header-height: 60px;
    --timeline-color: #dcdedf;
    --timeline-dot-color: var(--theme-color);
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 10px 25px rgba(52, 73, 94, 0.08);
    --border-radius: 12px;
    --header-btn-bg: #444;
}

/* 新版新增的高亮色变量 */
.io-highlight {
    color: #00FFFF;
}

body.dark-mode {
    --theme-color: #ff4d4d;
    --theme-color-darker: #e60000;
    --text-color: #ecf0f1;
    --text-color-light: #95a5a6;
    --bg-color: #1c2128;
    --card-bg-color: #282f3a;
    --border-color: #3b4658;
    --header-btn-bg: #444;
    --timeline-dot-color: var(--theme-color);
}

.footer-inner {
    line-height: 25px;
}

/* =========================================
   2. 通用样式 (Global Styles)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'system-ui', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--theme-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--theme-color-darker); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }


/* =========================================
   3. 头部 (Header) - 【完整保留旧版】
   ========================================= */
.site-header {
    background-color: #222;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.site-header .logo img {
    height: 50px;
    width: auto;
    display: block; 
    transition: transform 0.3s ease; 
}
.site-header .logo img:hover { transform: scale(1.05); }

/* 导航 */
.nav-controls { display: flex; align-items: center; gap: 10px; }
.main-navigation .nav-links { list-style: none; display: flex; gap: 10px; align-items: center; }
.main-navigation a { color: rgba(255, 255, 255, 0.9); text-decoration: none; padding: 10px 15px; border-radius: 5px; transition: all 0.3s ease; position: relative; font-weight: 500; display: block; }
.main-navigation a:hover { background-color: rgba(255, 255, 255, 0.1); color: white; }
.main-navigation li.current-menu-item > a, .main-navigation li.current-menu-ancestor > a {
    color: white;
    background-color: var(--theme-color);
}

/* 下拉菜单 */
.main-navigation ul { margin: 0; padding: 0; list-style: none; }
.main-navigation .menu-item-has-children { position: relative; }
.main-navigation .menu-item-has-children > a { display: flex; align-items: center; gap: 5px; }
.main-navigation .menu-item-has-children .caret-icon { width: 0.7em; height: 0.7em; fill: currentColor; transition: transform 0.3s ease; }
.main-navigation .menu-item-has-children:hover .caret-icon { transform: rotate(180deg); }
.main-navigation .sub-menu {
    display: none; position: absolute; background-color: var(--card-bg-color); min-width: 200px;
    box-shadow: var(--shadow-medium); border-radius: 8px; z-index: 1000; top: calc(100% + 1px); left: 0;
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease; padding: 5px 0;
}
.main-navigation .menu-item-has-children:hover > .sub-menu { display: block; opacity: 1; transform: translateY(0); }
.main-navigation .sub-menu a { color: var(--text-color); padding: 12px 18px; font-size: 14px; font-weight: normal; }
.main-navigation .sub-menu a:hover { background-color: var(--bg-color); color: var(--theme-color); }
body.dark-mode .main-navigation .sub-menu { background-color: #333; }
body.dark-mode .main-navigation .sub-menu a:hover { background-color: #444; }

/* 头部按钮 (画笔/主题切换) - 【保留旧版样式】 */
.header-btn {
    padding: 8px; width: 36px; height: 36px; font-size: 14px; border: none;
    border-radius: 50%; cursor: pointer; transition: all 0.3s ease;
    display: flex; justify-content: center; align-items: center;
    background-color: var(--header-btn-bg);
    color: #fff;
}
.header-btn:hover { background-color: var(--theme-color); transform: scale(1.1) rotate(15deg); }
.header-btn svg {  fill: currentColor; }
.toggle-theme .icon-sun { display: none; }
body.dark-mode .toggle-theme .icon-sun { display: block; }
body.dark-mode .toggle-theme .icon-moon { display: none; }

/* 汉堡菜单按钮 (移动端) */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0; z-index: 1201; }
.menu-toggle .hamburger { width: 28px; height: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.menu-toggle .hamburger span { display: block; width: 100%; height: 3px; background-color: white; border-radius: 3px; transition: all 0.3s ease; transform-origin: center; }
body.menu-open .menu-toggle .hamburger span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
body.menu-open .menu-toggle .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle .hamburger span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }


/* =========================================
   4. Banner 区域
   ========================================= */
/* 旧版静态 Banner (保留以防备用) */
.site-banner {
    background-color: #a62a1a;
    background-image: url('https://tools.gushiio.com/img/toolsbanner.png');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    color: white; 
    text-align: center;
    padding: 60px 20px; 
    font-weight: bold; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.banner-title { font-size: 2.1rem; line-height: 1.2; }

/* 新版首页幻灯 Banner 样式 (新增) */
.homepage-banner-container {
    margin-bottom: 30px;
    border-radius: 12px;
    position: relative;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}
.homepage-banner-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.homepage-banner-swiper {
    border-radius: 12px;
    overflow: hidden;
    background-color: #f0f2f5;
}
.homepage-banner-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 40%;
    position: relative;
    color: #fff;
    text-decoration: none;
}
.homepage-banner-swiper .swiper-slide .banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.homepage-banner-swiper .swiper-slide-active:hover .banner-image {
    transform: scale(1.05);
}
.homepage-banner-swiper .banner-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(to top, rgb(0 0 0 / 78%) 0%, rgb(0 0 0 / 0%) 100%);
    z-index: 1;
}
.homepage-banner-swiper .banner-title {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 120px;
    z-index: 2;
    margin: 0;
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0.2s;
}
.homepage-banner-swiper .swiper-slide-active .banner-title {
    transform: translateY(0);
    opacity: 1;
}
.homepage-banner-swiper .swiper-pagination {
    bottom: 25px !important;
    left: auto !important;
    right: 25px !important;
    width: auto !important;
    text-align: right;
}
.homepage-banner-swiper .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
    opacity: 0.8;
    margin: 0 4px !important;
}
.homepage-banner-swiper .swiper-pagination-bullet-active {
    background-color: #fff;
    width: 24px;
    border-radius: 4px;
    opacity: 1;
}
.homepage-banner-swiper .swiper-button-next,
.homepage-banner-swiper .swiper-button-prev {
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.8);
}
.homepage-banner-container:hover .swiper-button-next,
.homepage-banner-container:hover .swiper-button-prev {
    opacity: 1;
    transform: scale(1);
}


/* =========================================
   5. 主要内容区布局
   ========================================= */
.site-content { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 40px; margin-bottom: 40px; }
.main-content-area { flex: 1; min-width: 0; }
.sidebar-area { flex-basis: 320px; flex-shrink: 0; }


/* =========================================
   6. 时间线样式 (Timeline) - 【完整保留旧版】
   ========================================= */
.timeline-container { position: relative; padding-left: 20px; }
.timeline-container::before {
    content: ''; position: absolute; left: 0px; top: 15px; bottom: -80px;
    width: 1px; background-color: var(--timeline-color); border-radius: 3px;
}
.timeline-date-group { margin-bottom: 40px; }
.timeline-date-marker {
    position: relative; margin-bottom: 25px; margin-left: -32px;
    font-size: 1.5rem; font-weight: 600; color: var(--text-color); display: flex; align-items: center;
}
.timeline-date-marker::before {
    content: ''; width: 15px; height: 15px; background-color: var(--bg-color);
    border: 3px solid var(--timeline-dot-color); border-radius: 50%;
    position: absolute; left: 2px; z-index: 2;
}
.timeline-date-marker span {
    margin-left: 30px; background-color: var(--card-bg-color);
    padding: 5px 15px; border-radius: var(--border-radius); box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);font-size: 1.2rem;
}

.timeline-date-marker1 {
    position: relative; margin-bottom: 25px; margin-left: -37px;
    font-size: 1.5rem; font-weight: 600; color: var(--text-color); display: flex; align-items: center;
}
.timeline-date-marker1::before {
    content: ''; width: 15px; height: 15px; background-color: var(--bg-color);
    border: 3px solid var(--timeline-dot-color); border-radius: 50%;
    position: absolute; left: 2px; z-index: 2;
}
.timeline-date-marker1 span {
    margin-left: 35px; background-color: var(--card-bg-color);
    padding: 5px 15px; border-radius: var(--border-radius); box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 25px;
    background-color: var(--card-bg-color); border-radius: var(--border-radius); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.timeline-item::before {
    content: ''; position: absolute; left: -27px; top: 28px;
    width: 10px; height: 10px; background-color: var(--theme-color);
    border-radius: 50%; z-index: 1; border: 2px solid var(--bg-color);
}

.timeline-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: -5px;
}
.timeline-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
/* PC端时间样式 */
.timeline-time {
    position: absolute;
    left: -33px;
    top: 23px;
    transform: translateX(-100%) translateZ(0);
    background-color: var(--card-bg-color);
    color: var(--text-color);
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}
/* PC端悬浮时显示阴影 */
.timeline-item:hover .timeline-time {
    box-shadow: var(--shadow-soft);
}

.timeline-item.has-thumbnail {
    display: flex;
    gap: 20px;
    padding: 20px;
}
.timeline-thumbnail {
    flex-shrink: 0;
    width: 120px;
}
.timeline-thumbnail img {
    border-radius: var(--border-radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.timeline-content-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-badges { 
    display: inline-flex; 
    gap: 8px; 
    margin-right: 8px; 
}
.post-badge {
    color: white; padding: 3px 10px; font-size: 0.75rem; font-weight: bold;
    border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px;
}
.post-badge.important { background-color: #3498db; }
.post-badge.hot { background-color: #e74c3c; }

.timeline-title { font-size: 1.25rem; margin: 0; }
.timeline-title a { color: var(--text-color); text-decoration: none; }
.timeline-title a:hover { color: var(--theme-color); }
.timeline-excerpt { margin-top: 10px; font-size: 0.95rem; line-height: 1.7; color: var(--text-color-light); margin-bottom: -5px;}


/* 分页 */
.pagination { margin-top: 40px; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 10px; }
.pagination .page-numbers {
    display: inline-block; padding: 10px 15px; border-radius: 8px;
    background-color: var(--card-bg-color); border: 1px solid var(--border-color);
    transition: all 0.3s ease; box-shadow: var(--shadow-soft);
}
.pagination .page-numbers:hover { background-color: var(--theme-color); color: white; border-color: var(--theme-color); transform: translateY(-2px); }
.pagination .page-numbers.current { background-color: var(--theme-color); color: white; border-color: var(--theme-color); font-weight: bold; }


/* =========================================
   7. 侧边栏 (Sidebar) - 【融合版】
   ========================================= */
.sidebar-area .widget {
    background-color: var(--card-bg-color); padding: 25px;
    border-radius: var(--border-radius); margin-bottom: 30px; border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}
.sidebar-area .widget-title {
    font-size: 1.2rem; font-weight: 600; margin-top: 0; margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 2px solid var(--theme-color);
}
.sidebar-area .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-area .widget li { margin-bottom: 15px; }
.sidebar-area .widget a {
    color: var(--text-color); text-decoration: none; display: flex;
    gap: 15px; align-items: flex-start;
}
.sidebar-area .widget a:hover .list-title { color: var(--theme-color); }
.sidebar-area .list-counter {
    font-size: 0.8rem; font-weight: bold; color: var(--theme-color);
    background-color: var(--bg-color); min-width: 28px; height: 28px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.3s ease;
}
.sidebar-area .widget li:nth-child(-n+3) .list-counter {
    background-color: var(--theme-color); color: white;
}
.sidebar-area .widget a:hover .list-counter { transform: scale(1.1); }
.sidebar-area .list-title { line-height: 1.5; transition: color 0.3s ease; }


/* =========================================
   8. 分类与文章内容页
   ========================================= */
/* 分类页头 */
.archive-header {
    background-color: var(--card-bg-color); padding: 20px; border-radius: var(--border-radius);
    margin-bottom: 30px; border-left: 5px solid var(--theme-color); box-shadow: var(--shadow-soft);
}
.archive-title { margin: 0; font-size: 1.5rem; }

/* 文章内容页 */
.single-post-content {
    background-color: var(--card-bg-color); padding: 40px;
    border-radius: var(--border-radius); border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}
.entry-header { margin-bottom: 25px; }
/* 文章元信息 */
.entry-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
    color: var(--text-color-light); font-size: 0.9rem; margin-bottom: 30px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border-color);
}
.entry-meta span { display: flex; align-items: center; gap: 6px; }
.entry-meta a { color: var(--text-color-light); }
.entry-meta a:hover { color: var(--theme-color); }
.entry-meta .meta-icon { width: 1.1em; height: 1.1em; fill: currentColor; }
.entry-meta .meta-badge {
    color: white; padding: 4px 12px; font-weight: 500;
    border-radius: 50px; 
}
.entry-meta .meta-badge.important { background-color: #3498db; }
.entry-meta .meta-badge.hot { background-color: #e74c3c; }

.entry-content { font-size: 1.1rem; line-height: 1.8; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.8em 0 1em; line-height: 1.4; color: var(--text-color); }
.entry-content p { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.5em 1.5em; padding-left: 1.5em; }
.entry-content blockquote {
    margin: 1.5em 0; padding: 1em 1.5em;
    border-left: 4px solid var(--theme-color); background-color: var(--bg-color);
    border-radius: 0 8px 8px 0; font-style: italic; color: var(--text-color-light);
}
.entry-content img { border-radius: 10px; box-shadow: var(--shadow-medium); margin: 2em auto; }

/* 文章操作按钮 */
.post-actions {
    display: flex; justify-content: center; gap: 20px;
    margin: 26px 0 0; padding-top: 30px; border-top: 1px dashed var(--border-color);
}
.action-btn {
    background-color: var(--bg-color); border: 2px solid var(--border-color); padding: 12px 25px;
    border-radius: 50px; cursor: pointer; font-size: 1rem; font-weight: 600;
    color: var(--text-color); display: flex; align-items: center; gap: 8px; transition: all 0.3s ease;
}
.action-btn:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-medium);
    border-color: var(--theme-color);
}
.action-btn.active, .action-btn:disabled {
    background-color: var(--theme-color); color: white; border-color: var(--theme-color);
    cursor: not-allowed; transform: none; box-shadow: none;
}
.action-btn svg { width: 1.2em; height: 1.2em; }

/* 文章标签 (Post Tags) */
.post-tags {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.tags-title {
    font-weight: 600;
    margin-right: 5px;
    color: var(--text-color);
}
.post-tags a {
    display: inline-block;
    background-color: var(--bg-color);
    color: var(--text-color-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}
.post-tags a:hover {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    color: white;
    transform: translateY(-2px);
}
.timeline-tags {
    margin-top: 15px;
    margin-bottom: -3px;
}


/* 文章底部最新快讯 */
.latest-news-section { margin-top: 40px; }
.latest-news-section .widget-title {
    font-size: 1.5rem; text-align: center; margin-bottom: 30px;
}
.latest-news-content .timeline-container { padding-left: 30px; }
.latest-news-content .timeline-container::before { left: 5px; }
.latest-news-content .timeline-item { padding: 25px; }
.latest-news-content .timeline-item::before { left: -32px; }
.latest-news-content .timeline-time { left: -39px; }


/* =========================================
   9. 底部 (Footer)
   ========================================= */
.site-footer {
    text-align: center; margin-top: 40px; padding: 30px 20px;
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.7); font-size: 14px;
}
.site-footer a { color: white; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }

/* 首页友情链接 (Homepage Links) - 【保留旧版】 */
.links-section {
    margin-top: 40px; padding: 30px; background-color: var(--card-bg-color);
    border-radius: var(--border-radius); box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}
.links-section .widget-title {
    font-size: 1.2rem; font-weight: 600; margin-top: 0; margin-bottom: 25px;
    padding-bottom: 10px; border-bottom: 2px solid var(--theme-color);
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}
.link-card {
    background-color: var(--bg-color); padding: 12px 18px; border-radius: 8px;
    text-align: center; font-weight: 500; color: var(--text-color);
    transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    font-size: clamp(0.75rem, 1.1vw + 0.1rem, 0.875rem);
}
.link-card:hover {
    transform: translateY(-5px) scale(1.05); box-shadow: var(--shadow-medium);
    color: white; background-color: var(--theme-color);
    border-color: var(--theme-color-darker);
}


/* ============================================================
   10. 新增功能：加密货币报价标签/卡片样式 (Crypto Styles)
   ============================================================ */
/* 列表页与内容页共用样式 - 磨砂玻璃+霓虹风格 */
.crypto-tag-list {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.crypto-tag-card {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    border-radius: 50px; /* 胶囊圆角 */
    padding: 6px 8px 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    line-height: 1.2; /* 修复内容页高度不一致问题 */
    margin: 0; /* 重置可能继承的margin */
    box-sizing: border-box;
}

/* 针对内容页内部链接样式的强制覆盖 */
.entry-content .crypto-tag-card {
    border-bottom: none;
    line-height: 1.2;
    text-decoration: none;
}

body.dark-mode .crypto-tag-card {
    background: rgba(40, 47, 58, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* 悬停交互效果 */
.crypto-tag-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--theme-color);
}
body.dark-mode .crypto-tag-card:hover {
    background: rgba(50, 60, 75, 0.95);
}

.crypto-symbol {
    font-weight: 800;
    margin-right: 8px;
    color: var(--text-color);
    letter-spacing: 0.5px;
}
body.dark-mode .crypto-symbol {
    color: #fff;
}

.crypto-price {
    margin-right: 12px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', monospace;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.9;
    letter-spacing: -0.3px;
}
body.dark-mode .crypto-price {
    color: #cbd5e0;
}

.crypto-change {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    min-width: 50px;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1; /* 确保胶囊内文字垂直居中 */
}

/* 涨跌颜色定义 - 霓虹质感 */
.crypto-up {
    background-color: #10b981; /* 鲜艳绿 */
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35); /* 霓虹光晕 */
}

.crypto-down {
    background-color: #ef4444; /* 鲜艳红 */
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35); /* 霓虹光晕 */
}

/* 内容页样式微调：与列表页一致，增加顶部间距 */
.single-post-content .crypto-tag-list {
    margin-top: 30px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}


/* ============================================================
   11. 新增功能：市场概览小工具 (Market Overview Widget)
   ============================================================ */
.market-overview-container { margin-top: 40px; }
.market-overview-widget-section { width: 100%; margin-bottom: 40px; }
.market-overview-widget-section .section-title {
    font-size: 1.75rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--text-color);
}
.market-overview-widget-section .info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.market-overview-widget-section .info-card {
    background-color:var(--card-bg-color);
    padding: 1rem 1.2rem;
    border-radius:var(--border-radius);
    box-shadow:var(--shadow-soft);
    transition:transform .2s ease-out,box-shadow .2s ease-out;
    display:flex;
    flex-direction:column;
    justify-content: space-between;
    min-height: 160px;
    border:1px solid var(--border-color);
    container-type: inline-size;
}
.market-overview-widget-section .info-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-medium);}
.market-overview-widget-section .info-card-title{
    font-size:.875rem; font-weight:500; color:var(--text-color-light);
    text-transform:uppercase; letter-spacing:.025em; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.5rem;
    text-align: center;
}

.market-overview-widget-section .info-card-value {
    font-size: clamp(1.8rem, 15cqi, 2.5rem); 
    font-weight: 700; color: var(--text-color);
    line-height: 1.1; margin: 0.25rem 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-align: center;
}

.market-overview-widget-section .info-card-value.positive-flow{color:#38a169;}
.market-overview-widget-section .info-card-value.negative-flow{color:#e53e3e;}
body.dark-mode .market-overview-widget-section .info-card-value.positive-flow{color:#68d391;}
body.dark-mode .market-overview-widget-section .info-card-value.negative-flow{color:#fc8181;}
.market-overview-widget-section .info-card-subtext{
    font-size:.8rem; line-height: 1.4; color:var(--text-color-light); 
    margin-top: 0.25rem; margin-bottom: 0.21rem;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.market-overview-widget-section .no-data{font-size:.9rem;color:var(--text-color-light);text-align:center;margin-top:1rem;flex-grow:1;display:flex;align-items:center;justify-content:center;}
.market-overview-widget-section .info-card-link{text-decoration:none;color:inherit;display:block;height:100%;}

/* 特殊卡片样式 */
.fear-greed-custom-card .fear-greed-gauge-container{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:.5rem;flex-grow:1;}
.fear-greed-custom-card .fear-greed-svg{max-height:100px;width:auto;}
.fear-greed-custom-card #fg-pointer-stroke{stroke:#4a5568;}
.fear-greed-custom-card #fg-pointer-fill{fill:var(--card-bg-color);}
body.dark-mode .fear-greed-custom-card #fg-pointer-stroke{stroke:#e2e8f0;}
body.dark-mode .fear-greed-custom-card #fg-pointer-fill{fill:#4a5568;}
.fear-greed-custom-card .fear-greed-text-overlay{position:absolute;top:62%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;}
.fear-greed-custom-card .fear-greed-text-overlay .current-value{font-size:2rem;font-weight:700;line-height:1;color:var(--text-color);margin-bottom:-83px;margin-top:1.3rem;}
.fear-greed-custom-card .fear-greed-text-overlay .description{font-size:.8rem;margin-top:5.2rem;font-weight:500;text-transform:uppercase;margin-bottom:8px;}
.fg-extreme-fear{color:#e53e3e!important;}
.fg-fear{color:#dd6b20!important;}
.fg-neutral{color:#d69e2e!important;}
.fg-greed{color:#38a169!important;}
.fg-extreme-greed{color:#2f855a!important;}
body.dark-mode .fg-extreme-fear{color:#fc8181!important;}
body.dark-mode .fg-fear{color:#f6ad55!important;}
body.dark-mode .fg-neutral{color:#f6e05e!important;}
body.dark-mode .fg-greed{color:#68d391!important;}
body.dark-mode .fg-extreme-greed{color:#48bb78!important;}
.btc-dominance-custom-card .btc-dominance-content{margin-top:.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-around;}
.btc-dominance-custom-card .dominance-values p{font-size:.85rem;margin-bottom:.25rem;display:flex;align-items:center;}
.btc-dominance-custom-card .legend-color{width:10px;height:10px;border-radius:2px;margin-right:6px;display:inline-block;}
.btc-dominance-custom-card .dominance-values .value{font-weight:600;color:var(--text-color);}
.btc-dominance-custom-card .color-bar-container{display:flex;height:12px;border-radius:10px;overflow:hidden;margin-top:.3rem;background-color:#e2e8f0;}
body.dark-mode .btc-dominance-custom-card .color-bar-container{background-color:#4a5568;}
.btc-dominance-custom-card .color-bar-segment{height:100%;transition:width .5s ease-in-out;}
.altcoin-season-custom-card .altcoin-season-content{margin-top:.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-around;}
.altcoin-season-custom-card .progress-label{display:flex;align-items:center;justify-content:center;}
.altcoin-season-custom-card .progress-number{font-size:1.75rem;font-weight:700;display:flex;align-items:baseline;color:var(--text-color);}
.altcoin-season-custom-card .progress-divider{font-size:1rem;margin:0 4px;color:var(--text-color-light);}
.altcoin-season-custom-card .progress-total{font-size:.9rem;color:var(--text-color-light);}
.altcoin-season-custom-card .progress-bar-custom-container{height:10px;background-color:var(--bg-color);border-radius:8px;overflow:hidden;position:relative;margin-top:.75rem;}
body.dark-mode .altcoin-season-custom-card .progress-bar-custom-container{background-color:#4a5568;}
.altcoin-season-custom-card .progress-segments{display:flex;width:100%;height:100%;}
.altcoin-season-custom-card .progress-segments>div{flex:1;height:100%;}
.altcoin-season-custom-card .progress-segment-1{background-color:#dd6b20;}
.altcoin-season-custom-card .progress-segment-2{background-color:#f6ad55;}
.altcoin-season-custom-card .progress-segment-3{background-color:#68d391;}
.altcoin-season-custom-card .progress-segment-4{background-color:#38a169;}
.altcoin-season-custom-card .progress-marker{position:absolute;width:12px;height:12px;background-color:var(--text-color);border-radius:50%;top:50%;transform:translate(-50%,-50%);z-index:2;border:2px solid var(--card-bg-color);box-shadow:0 0 5px rgba(0,0,0,.3);transition:left .5s ease-in-out;}
body.dark-mode .altcoin-season-custom-card .progress-marker{background-color:#e2e8f0;border-color:var(--card-bg-color);}
.altcoin-season-custom-card .progress-labels{display:flex;justify-content:space-between;margin-top:.5rem;color:var(--text-color-light);font-size:.75rem;font-weight:500;}

/* 排名升降卡片样式 */
.info-card.rank-change-card { justify-content: flex-start; }
.rank-change-content { display: flex; align-items: center; gap: 15px; flex-grow: 1; }
.rank-change-content .token-icon { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background-color: var(--bg-color); }
.rank-change-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rank-change-info .token-name {
    font-size: 1.1rem; font-weight: 600; color: var(--text-color); line-height: 1.3;
    margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-change-info .change-text { font-size: 0.9rem; font-weight: 500; line-height: 1.4; }
.rank-change-info .change-text.positive { color: #38a169; }
.rank-change-info .change-text.negative { color: #e53e3e; }
body.dark-mode .rank-change-info .change-text.positive { color: #68d391; }
body.dark-mode .rank-change-info .change-text.negative { color: #fc8181; }

.market-overview-widget-section .value-aligned {
    font-size: 2.0rem !important; font-weight: 700; line-height: 1.3;
    flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center;
}


/* =========================================
   12. 响应式设计 (Responsive Design)
   ========================================= */

/* 大屏幕：市场概览 5列布局 */
@media (min-width: 1400px) {
    .market-overview-widget-section .info-cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 常规响应式节点 (基于旧版逻辑) */
@media (max-width: 1200px) {
    /* 移动端菜单弹出逻辑 */
    .menu-toggle { display: block; }
    .main-navigation {
        position: fixed; top: var(--header-height); right: 0; width: 280px; height: calc(100vh - var(--header-height));
        background-color: #2a2a2a; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1200; overflow-y: auto;
    }
    body.menu-open .main-navigation { transform: translateX(0); }
    .main-navigation .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 20px 0; }
    .main-navigation .nav-links a { padding: 15px 25px; border-radius: 0; border-bottom: 1px solid #444; }
    .main-navigation .sub-menu {
        display: none; position: static; transform: none; opacity: 1; box-shadow: none; border-radius: 0;
        background-color: #383838; border-bottom: 1px solid #444; padding: 0;
    }
    /* 【修复】：确保点击展开时子菜单显示，并添加了!important确保优先级 */
    .main-navigation .menu-item-has-children.active > .sub-menu { display: block !important; }
    .main-navigation .sub-menu a { padding-left: 45px; color: #ccc; }
    .main-navigation .menu-item-has-children:hover > .sub-menu { display: none; }
    /* 【修复】：确保点击后箭头旋转 */
    .main-navigation .menu-item-has-children.active .caret-icon { transform: rotate(180deg); }


    /* 平板和手机的徽章和时间线样式 */
    .timeline-header {
        display: block;
        margin-top: -10px;
    }
    .post-badges {
        margin-bottom: 12px;
    }
    .timeline-item { margin-top: 55px; }
    .timeline-time {
        position: absolute;
        top: -5px;
        transform: translateY(-100%);
        left: 0;
        background-color: var(--card-bg-color);
        color: var(--text-color);
        padding: 5px 12px;
        border-radius: 8px;
        border: none;
        font-weight: 600;
        box-shadow: none;
        z-index: 5;
    }
    .timeline-item::before {
        top: -25px;
        left: -27px;
    }
    .latest-news-content .timeline-item::before {
        top: -25px;
        left: -32px;
    }
    .latest-news-content .timeline-time {
    left: 0px;
    }
}

/* 竖屏平板和手机的侧边栏堆叠 */
@media (max-width: 992px) {
    .site-content { flex-direction: column; }
    .main-content-area, .sidebar-area { width: 100%; flex-basis: auto; }
}

@media (max-width: 768px) {
    .banner-title { font-size: 2.2rem; }
    .site-banner { padding: 50px 15px; }
    .single-post-content, .latest-news-content { padding: 25px; }
    .entry-meta { gap: 8px 15px; }
    .timeline-date-marker, .timeline-date-marker1 { font-size: 1.2rem; }
    .timeline-title { font-size: 1.1rem; }
    .links-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    
    /* 移动端菜单修正 - 统一逻辑 */
    .main-navigation {
        width: 100%;
        right: -100%;
    }
    body.menu-open .main-navigation {
        transform: translateX(-100%);
    }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .action-btn { padding: 10px 15px; font-size: 0.9rem; justify-content: center; }
    .post-actions { gap: 10px; flex-direction: column; }
    
    /* 时间线移动端精准定位 (保留旧版数据) */
    .timeline-container { padding-left: 20px; }
    .timeline-container::before { left: 0; }
    .timeline-date-marker { margin-left: -23px; }
    .timeline-date-marker::before { left: -6px; }
    .timeline-date-marker span { margin-left: 22px; }
    .timeline-date-marker1 { margin-left: -28px; }
    .timeline-date-marker1::before { left: -6px; }
    .timeline-date-marker1 span { margin-left: 26px; }
    
    .timeline-item { padding-left: 15px; padding-right: 15px; }
    .timeline-item::before { left: -25.5px; margin-left: -1px; top: -25px;}
    .latest-news-content .timeline-item::before { left: -32px; top: -25px;}
    .timeline-meta { flex-direction: column; align-items: flex-start; }
    .latest-news-content { padding: 20px; }
    .links-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
    .link-card { padding: 10px 15px; }

    .timeline-item.has-thumbnail {
        flex-direction: column;
        gap: 15px;
    }
    .timeline-thumbnail {
        width: 100%;
    }
    
    /* Banner 字体缩小 */
    .banner-title {
        font-size: 1.6rem;
    }

    /* 代币卡片手机端优化 */
    .crypto-tag-list {
        gap: 8px;
    }
    .crypto-tag-card {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    .crypto-price {
        margin-right: 6px;
    }
    .crypto-change {
        font-size: 0.65rem;
        padding: 2px 6px;
        min-width: 30px;
    }

    /* 市场概览卡片单列 */
    .market-overview-widget-section .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .market-overview-widget-section .info-card {
        min-height: auto;
        padding: 1.2rem;
    }
    .market-overview-widget-section .info-card-title {
        font-size: 0.9rem;
    }
    .rank-change-info .token-name {
        font-size: 1.2rem;
    }
}