/* 全局样式 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --background-color: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --text-color: #333333;
    --card-background: rgba(255, 255, 255, 0.8);
    --border-color: rgba(255, 255, 255, 0.3);
    --hover-color: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: none;
    --border-radius: 20px;
}

/* 暗色主题 */
body.dark-theme {
    --primary-color: #4cc9f0;
    --secondary-color: #4361ee;
    --background-color: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --text-color: #f8f9fa;
    --card-background: rgba(30, 41, 48, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-color: rgba(45, 55, 72, 0.9);
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    --border-radius: 20px;
}

html {
    overflow-y: scroll;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面滚动动画 */
.fade-in {
    opacity: 1;
    transform: none;
    transition: none;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    transition: none;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 45px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* 暗色模式导航栏 */
body.dark-theme .navbar {
    background: rgba(15, 23, 42, 0.82);
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    height: 100%;
    transition: padding 0.2s ease;
}

/* 滚动时的导航栏 */
.navbar.scrolled {
    height: 45px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    border-bottom-color: rgba(67, 97, 238, 0.12);
}

.navbar.scrolled .navbar-content {
    padding: 0.3rem 0;
}

body.dark-theme .navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.4);
    border-bottom-color: rgba(76, 201, 240, 0.14);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.logo-icon {
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 700;
}

.logo:hover .logo-icon {
    transform: scale(1.2) rotate(-10deg);
}

.logo-domain {
    font-weight: 900;
    font-size: 0.88rem;
    color: var(--text-color);
    opacity: 0.75;
    margin-left: 0.12rem;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--hover-color);
}

/* 翻页动画效果 */
@keyframes flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

/* 闪烁动画 */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 数字时钟通用样式 */
.digital-clock .digit.changing {
    animation: flip 0.6s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(67, 97, 238, 0.35);
    outline-offset: 3px;
}

/* Hero区域 */
.hero {
    text-align: center;
    padding: 0.5rem 0 0.8rem;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 24%),
        radial-gradient(circle at 82% 18%, rgba(76, 201, 240, 0.22) 0%, rgba(76, 201, 240, 0) 28%),
        radial-gradient(circle at 72% 78%, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0) 26%),
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #3655e6 0%, #4968f0 38%, #5f78f4 100%);
    background-size: auto, auto, auto, 28px 28px, 28px 28px, auto;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    border: none;
    outline: none;
    overflow: hidden;
    isolation: isolate;
    z-index: 20;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0.45;
    filter: blur(6px);
}

.hero::before {
    width: 360px;
    height: 360px;
    top: -180px;
    left: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero::after {
    width: 440px;
    height: 440px;
    right: -120px;
    bottom: -260px;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.26) 0%, rgba(76, 201, 240, 0) 72%);
}

.hero .container,
.hero-search,
.hero h1,
.hero p {
    position: relative;
}

.hero .container,
.hero-search {
    overflow: visible;
    z-index: 30;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.9rem;
    background: linear-gradient(90deg, #ffffff, #dbe5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 auto 0.5rem !important;
    display: inline-block !important;
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Hero内容容器 */
.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero搜索区域 */
.hero-search {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero时钟区域 */
.hero-clock {
    position: absolute;
    right: -80px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 0.2rem;
}

/* 数字时钟 - 翻页效果 */
.hero .digital-clock {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FF8C00;
    letter-spacing: 0.1rem;
    font-family: 'Courier New', monospace;
    position: relative;
    transition: all 0.3s ease;
}

.hero .digital-clock .digit {
    display: inline-block;
    margin: 0 2px;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: #FF8C00;
}

.hero .digital-clock .separator {
    display: inline-block;
    margin: 0 3px;
    color: #FF8C00;
    font-weight: bold;
    animation: blink 1s infinite;
}

/* 日期显示 */
.hero .clock-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
    text-align: center;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
    
    .hero-clock {
        position: static;
        transform: none;
        align-items: center;
        margin-top: 0.3rem;
    }
    
    .hero .digital-clock {
        font-size: 1rem;
    }
    
    .hero .clock-date {
        font-size: 0.75rem;
    }

    .tool-section,
    .download-section,
    .pro-section {
        padding: 0;
        margin-bottom: 0;
    }
}

.hero-search {
    display: flex;
    max-width: 600px;
    position: relative;
    z-index: 1;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.search-input {
    flex: 1;
    padding: 0.65rem 1.1rem;
    border: none;
    border-radius: 999px;
    font-size: 0.9rem;
    outline: none;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

.search-btn {
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg, #66d9ff, #4361ee);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 12px 24px rgba(67, 97, 238, 0.22);
    margin-left: 0.5rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}



/* 工具板块 */
.tool-section,
.download-section,
.pro-section {
    padding: 0.2rem 0;
    margin-bottom: 0;
}

#online-tools {
    margin-top: 0.1rem;
}

/* 在线工具板块标题样式 */
.tool-section h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.3rem;
    position: relative;
    display: block;
    left: auto;
    transform: none;
    margin-top: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
    padding: 0.5rem 1rem;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* 其他板块标题保持原有样式 */
.download-section h2,
.pro-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}



#online-tools .tool-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* 首页在线工具只显示10行（5列 × 10行 = 50个工具） */
#online-tools .tool-card-link:nth-child(n+51) {
    display: none;
}

/* 可下载工具与专业软件卡片网格 */
.download-section .tool-grid,
.pro-section .tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

#online-tools .tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    border-radius: var(--border-radius);
}

#online-tools .tool-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #7c9cfa;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.3rem;
    min-height: 90px;
    height: 100%;
    will-change: transform;
}

#online-tools .coming-soon-card {
    opacity: 0.72;
    filter: saturate(0.88);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 250, 252, 0.9) 100%);
}

#online-tools .coming-soon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    border-color: rgba(148, 163, 184, 0.32);
}

.status-tag {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: calc(100% - 1.4rem);
    white-space: nowrap;
}

#online-tools .tool-card .status-tag + .tool-header {
    padding-right: 5.4rem;
}

body.dark-theme .status-tag {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
}

#online-tools .tool-card-link:hover .tool-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(67, 97, 238, 0.16);
    border-color: rgba(67, 97, 238, 0.32);
}

/* 暗色模式卡片高光 */
body.dark-theme .tool-card {
    position: relative;
}

body.dark-theme .tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

body.dark-theme .tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* 专业软件卡片 */
.pro-card {
    min-height: 90px;
    padding: 0.5rem;
}

.download-section .tool-card,
.pro-section .tool-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.3rem;
    min-height: 90px;
    height: 100%;
}

.download-section .tool-card:hover,
.pro-section .tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(67, 97, 238, 0.16), 0 0 0 1px rgba(67, 97, 238, 0.08);
    border-color: rgba(67, 97, 238, 0.32);
}

.download-section .tool-header,
.pro-section .tool-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.1rem;
}

.download-section .tool-icon,
.pro-section .tool-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.12), rgba(76, 201, 240, 0.16));
    box-shadow: inset 0 0 0 1px rgba(67, 97, 238, 0.08);
}

.download-section .tool-card h3,
.pro-section .tool-card h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 0.96rem;
    line-height: 1.3;
}

.download-section .tool-card p,
.pro-section .tool-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.download-section .tool-btn,
.pro-section .tool-btn {
    display: none;
}

.download-section .price-tag,
.pro-section .price-tag {
    top: 0.7rem;
    right: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

.download-section .tool-card .price-tag + .tool-header,
.pro-section .tool-card .price-tag + .tool-header {
    padding-right: 4.8rem;
}

#online-tools .tool-card:not(.coming-soon-card):hover,
#online-tools .tool-card-link:hover .tool-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(67, 97, 238, 0.16), 0 0 0 1px rgba(67, 97, 238, 0.08);
    border-color: rgba(67, 97, 238, 0.32);
}

#online-tools .tool-card-link:focus-visible .tool-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(67, 97, 238, 0.16), 0 0 0 3px rgba(67, 97, 238, 0.18);
    border-color: rgba(67, 97, 238, 0.4);
}

/* 游戏板块样式 */
#games .tool-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

#games .tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    border-radius: var(--border-radius);
}

#games .tool-card {
    background: linear-gradient(135deg, rgba(255, 119, 68, 0.08), rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.06));
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), inset 0 0 30px rgba(255, 119, 68, 0.03);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 119, 68, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.3rem;
    min-height: 90px;
    height: 100%;
    will-change: transform;
}

#games .tool-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.1rem;
}

#games .tool-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 119, 68, 0.2), rgba(139, 92, 246, 0.2));
    box-shadow: 0 2px 8px rgba(255, 119, 68, 0.2);
    border: 1px solid rgba(255, 119, 68, 0.25);
}

#games .tool-card h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 0.96rem;
    line-height: 1.3;
}

#games .tool-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#games .tool-card-link:hover .tool-card {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 32px rgba(255, 119, 68, 0.2), 0 0 40px rgba(139, 92, 246, 0.1);
    border-color: rgba(255, 119, 68, 0.4);
    background: linear-gradient(135deg, rgba(255, 119, 68, 0.12), rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.08));
}

#games .tool-card-link:focus-visible .tool-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(255, 119, 68, 0.2), 0 0 40px rgba(139, 92, 246, 0.1), 0 0 0 3px rgba(255, 119, 68, 0.25);
    border-color: rgba(255, 119, 68, 0.5);
}
}

/* 工具按钮样式 */
#online-tools .tool-btn {
    display: none;
}

/* 下载按钮 */
.download-btn {
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
}

/* 专业软件按钮 */
.pro-btn {
    background: linear-gradient(135deg, #f72585, #4cc9f0);
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* 板块分隔线 */
.tool-section,
.download-section,
.pro-section {
    padding: 0.2rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.tool-section::after,
.download-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

#online-tools .tool-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.1rem;
}

#online-tools .tool-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.12), rgba(76, 201, 240, 0.16));
    box-shadow: inset 0 0 0 1px rgba(67, 97, 238, 0.08);
}

.tool-title {
    flex: 1;
    text-align: left;
}

#online-tools .tool-card h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 0.96rem;
    line-height: 1.3;
    padding-right: 28px;
    word-break: break-word;
}

#online-tools .tool-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-theme #online-tools .tool-card-link:hover .tool-card,
body.dark-theme #online-tools .tool-card:not(.coming-soon-card):hover,
body.dark-theme #online-tools .tool-card-link:focus-visible .tool-card {
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(76, 201, 240, 0.16);
    border-color: rgba(76, 201, 240, 0.28);
}

body.dark-theme .download-section .tool-card:hover,
body.dark-theme .pro-section .tool-card:hover {
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(76, 201, 240, 0.16);
    border-color: rgba(76, 201, 240, 0.28);
}

body.dark-theme #online-tools .tool-icon {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.14), rgba(67, 97, 238, 0.2));
    box-shadow: inset 0 0 0 1px rgba(76, 201, 240, 0.12);
}

body.dark-theme .download-section .tool-icon,
body.dark-theme .pro-section .tool-icon {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.14), rgba(67, 97, 238, 0.2));
    box-shadow: inset 0 0 0 1px rgba(76, 201, 240, 0.12);
}

body.dark-theme #online-tools .coming-soon-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.76) 0%, rgba(30, 41, 59, 0.92) 100%);
    border-color: rgba(148, 163, 184, 0.16);
}

body.dark-theme #online-tools .coming-soon-card:hover {
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.32);
}

.price-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.view-all-link {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
    transition: var(--transition);
}

.view-all-link:hover {
    text-decoration: underline;
}

.section-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.section-title-link:hover {
    color: var(--primary-color);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 0.6rem;
}

.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.section-more-link {
    font-size: 0.95rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.section-more-link:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

/* 首页英雄搜索区 */
.hero-search-section {
    padding: 0.6rem 0 0;
}

.hero-hot-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.60rem;
}

.hero-hot-tags {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.hero-time-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.35rem;
    padding: 0.2rem 0;
    font-size: 0.78rem;
    color: var(--primary-color);
    font-weight: 600;
}

.tc-big-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

.tc-date-inline,
.tc-week-inline,
.tc-lunar-inline {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.tc-sep-inline {
    font-size: 0.78rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-weight: 300;
}

.hero-search-wrap {
    display: flex;
    justify-content: center;
}

.hero-search-bar {
    display: flex;
    max-width: 100%;
    width: 100%;
    background: var(--card-background);
    border: 1.5px solid var(--primary-color);
    border-radius: 999px;
    padding: 0.35rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-search-input {
    flex: 1;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 999px;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
    color: var(--text-color);
}

.hero-search-input::placeholder {
    color: var(--text-color);
    opacity: 0.4;
}

.hero-search-btn {
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #4cc9f0, var(--primary-color));
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.hot-tags-label {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.65;
    font-weight: 500;
    white-space: nowrap;
}

.hot-tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: var(--card-background);
    border: 1px solid #4361ee;
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.75;
    transition: all 0.2s ease;
}

.hot-tag:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.12);
}

body.dark-theme .hero-search-bar {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .hot-tag {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .hot-tag:hover {
    border-color: #4cc9f0;
    box-shadow: 0 2px 8px rgba(76, 201, 240, 0.15);
}



/* 页脚 */

/* 页脚 */
.footer {
    background-color: transparent;
    padding: 0.4rem 0 0.3rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: nowrap;
    min-height: 30px;
}

.footer-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.3rem;
    font-weight: 600;
    display: none;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.footer-links li {
    position: relative;
}

.footer-links li::after {
    content: '|';
    position: absolute;
    right: -0.5rem;
    color: var(--text-color);
    opacity: 0.4;
}

.footer-links li:last-child::after {
    content: '';
}

.footer-links a {
    color: var(--text-color);
    opacity: 0.8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-social h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-bottom span {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.85rem;
}

.footer-bottom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-row span {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.85rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .navbar {
        height: auto;
    }
    .navbar-content {
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.4rem 0;
    }
    .navbar-content .logo {
        font-size: 1.3rem;
    }

    .navbar-content .logo .logo-name {
        font-size: 1.0rem;
    }

    .breadcrumb {
        display: block;
        padding: 0.5rem 0;
    }
    .breadcrumb .container {
        font-size: 0.7rem;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-item {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }
    .nav-item:not(:first-child)::before {
        content: '|';
        margin-right: 0.75rem;
        color: #9ca3af;
        font-weight: normal;
    }

    .theme-toggle {
        display: none;
    }

    .fav-nav-btn {
        padding: 0.25rem 0.5rem;
        gap: 0.2rem;
        margin-left: auto;
    }
    .fav-nav-btn .fav-icon svg {
        width: 14px;
        height: 14px;
    }
    .fav-nav-btn .fav-text {
        font-size: 0.55rem;
    }

    .navbar.scrolled {
        height: auto;
    }

    .hero {
        padding: 2rem 0 1.6rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    #online-tools .tool-grid,
    .download-section .tool-grid,
    .pro-section .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    #games .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    #online-tools .tool-card,
    .download-section .tool-card,
    .pro-section .tool-card {
        padding: 0.75rem;
    }

    #games .tool-card {
        padding: 0.75rem;
    }

    /* 首页搜索区 */
    .hero-hot-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    .hero-time-wrap {
        justify-content: center;
        align-self: center;
    }
    .hero-search-bar {
        border-radius: 999px;
        padding: 0.25rem;
    }
    .hero-search-btn {
        width: auto;
        border-radius: 999px;
        padding: 0.45rem 1rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    /* 板块标题 - 移动端纵向排列 */
    .section-header {
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
    }
    .section-header h2 {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: space-between;
    }
    #online-tools .section-more-link {
        font-size: 0;
        white-space: nowrap;
    }
    #online-tools .section-more-link::before {
        content: "搜索更多工具";
        font-size: 0.8rem;
        color: var(--primary-color);
        font-weight: 700;
    }
    #articles .section-more-link {
        font-size: 0;
        white-space: nowrap;
    }
    #articles .section-more-link::before {
        content: "浏览更多文章";
        font-size: 0.8rem;
        color: var(--primary-color);
        font-weight: 700;
    }
    #games .section-more-link {
        font-size: 0;
        white-space: nowrap;
    }
    #games .section-more-link::before {
        content: "畅玩更多游戏";
        font-size: 0.8rem;
        color: var(--primary-color);
        font-weight: 700;
    }
    .tool-section h2,
    .article-section .container .section-header h2,
    #games .section-header h2 {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
        background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .tool-section h2 .section-title-link,
    .article-section .container .section-header h2 .section-title-link,
    #games .section-header h2 .section-title-link {
        font-size: 1.1rem;
        font-weight: 600;
    }

    /* 底部 - 移动端纵向排列 */
    .footer-links ul {
        gap: 0.8rem;
    }
    .footer-bottom-row {
        flex-wrap: wrap;
        gap: 0.3rem;
        text-align: center;
    }
    .footer-bottom-row span,
    .footer-bottom-row a {
        font-size: 0.78rem;
    }
    .footer-bottom {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        display: block;
        padding: 0.5rem 0;
    }
    .breadcrumb .container {
        font-size: 0.68rem;
    }

    .nav-menu {
        gap: 0.65rem;
    }
    .nav-item {
        font-size: 0.85rem;
        padding: 0.35rem 0;
    }
    .nav-item:not(:first-child)::before {
        content: '|';
        margin-right: 0.65rem;
        color: #9ca3af;
        font-weight: normal;
    }
    .fav-nav-btn {
        padding: 0.2rem 0.35rem;
        gap: 0.1rem;
        border-width: 0.5px;
    }
    .fav-nav-btn .fav-icon svg {
        width: 13px;
        height: 13px;
    }
    .fav-nav-btn .fav-text {
        font-size: 0.5rem;
    }
    .fav-nav-btn[data-count]:not([data-count="0"])::after {
        min-width: 12px;
        height: 12px;
        font-size: 0.45rem;
        top: -3px;
        right: -3px;
    }
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-search-bar {
        border-radius: 999px;
        padding: 0.2rem;
    }
    .hero-search-input {
        border-radius: 999px;
        padding: 0.4rem 0.8rem;
        font-size: 0.82rem;
    }
    .hero-search-btn {
        width: auto;
        border-radius: 999px;
        padding: 0.4rem 0.8rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    #online-tools .tool-grid,
    .download-section .tool-grid,
    .pro-section .tool-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    #online-tools .tool-card h3,
    .download-section .tool-card h3,
    .pro-section .tool-card h3 {
        font-size: 0.88rem;
        line-height: 1.35;
        padding-right: 28px;
        word-break: break-word;
    }

    #online-tools .tool-card p,
    .download-section .tool-card p,
    .pro-section .tool-card p {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    #games .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    #games .tool-card {
        min-height: 88px;
        padding: 0.5rem;
    }

    /* 在线工具板块标题响应式样式 */
    .tool-section h2,
    .article-section .container .section-header h2,
    #games .section-header h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .tool-section h2 .section-title-link,
    .article-section .container .section-header h2 .section-title-link,
    #games .section-header h2 .section-title-link {
        font-size: 1.1rem;
        font-weight: 600;
    }

    /* 其他板块标题响应式样式 */
    .download-section h2,
    .pro-section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    /* 底部进一步缩小 */
    .footer-links ul {
        gap: 0.5rem;
    }
    .footer-bottom-row span,
    .footer-bottom-row a,
    .footer-bottom span {
        font-size: 0.7rem;
    }
    .footer-bottom-row {
        gap: 0.2rem;
    }
}

/* 面包屑导航 */
.breadcrumb {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb .container {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.85;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 搜索结果样式 */
.search-results {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: min(600px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: none;
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 360px;
}

@media (min-width: 481px) and (max-width: 767px) {
    #online-tools .tool-grid,
    .download-section .tool-grid,
    .pro-section .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    #online-tools .tool-card,
    .download-section .tool-card,
    .pro-section .tool-card {
        min-height: 88px;
        padding: 0.5rem;
    }

    #online-tools .tool-card h3,
    .download-section .tool-card h3,
    .pro-section .tool-card h3 {
        font-size: 0.88rem;
        line-height: 1.35;
        padding-right: 28px;
        word-break: break-word;
    }

    #online-tools .tool-card p,
    .download-section .tool-card p,
    .pro-section .tool-card p {
        font-size: 0.8rem;
        line-height: 1.45;
    }
}

.search-results.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.5;
    min-height: 48px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--hover-color);
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
    margin-right: 8px;
}

.search-result-category {
    font-weight: 600;
    font-size: 12px;
    color: var(--primary-color);
    margin-right: 8px;
    opacity: 0.8;
}

.search-result-separator {
    font-weight: 600;
    margin: 0 8px;
    opacity: 0.6;
}

.search-result-description {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

/* 暗色模式搜索结果 */
body.dark-theme .search-result-item:hover {
    background-color: rgba(45, 55, 72, 0.9);
}

/* 搜索结果为空时的样式 */
.search-result-item:only-child {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-color);
    opacity: 0.7;
    white-space: normal;
}

/* 搜索结果的箭头指示 */
.search-results::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 32px;
    transform: none;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--card-background);
}

body.dark-theme .search-results::before {
    border-bottom-color: var(--card-background);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .search-result-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .search-result-name {
        font-size: 13px;
    }
    
    .search-result-category {
        font-size: 11px;
    }
    
    .search-result-description {
        font-size: 13px;
    }
}

/* 确保Hero区域为相对定位，使搜索结果容器能正确定位 */
.hero {
    position: relative;
}

/* ===== 文章板块样式 ===== */
.article-section .container .section-header h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.3rem;
    position: relative;
    left: auto;
    transform: none;
    margin-top: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
    padding: 0.5rem 1rem;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 12px;
}

.article-card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    min-height: 64px;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.10);
    border-color: rgba(67, 97, 238, 0.24);
}

.article-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-icon-wrap svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-info-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.10), rgba(76, 201, 240, 0.10));
    color: var(--primary-color);
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1.6;
}

.article-desc {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.6;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 18px;
}

.article-arrow {
    font-size: 1rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.article-card-link:hover .article-arrow {
    opacity: 0.7;
    transform: translateX(0);
}

/* 暗色模式文章卡片 */
body.dark-theme .article-card {
    position: relative;
}

body.dark-theme .article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

body.dark-theme .article-icon-wrap {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.14), rgba(67, 97, 238, 0.18));
}

body.dark-theme .article-tag {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.16), rgba(67, 97, 238, 0.18));
    color: #4cc9f0;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .article-card {
        padding: 12px 14px;
        gap: 12px;
    }
    .article-title {
        font-size: 0.86rem;
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: 2.6rem;
    }
    .article-desc {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
        max-height: 2.8rem;
        opacity: 0.55;
    }
    .article-tag {
        font-size: 0.62rem;
        padding: 1px 6px;
    }
    .article-icon-wrap {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .article-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .article-icon-wrap {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    .article-icon-wrap svg {
        width: 17px;
        height: 17px;
    }
    .article-title {
        font-size: 0.82rem;
        line-height: 1.35;
        max-height: 2.7rem;
    }
    .article-desc {
        font-size: 0.7rem;
        line-height: 1.4;
        opacity: 0.5;
    }
    .article-tag {
        font-size: 0.58rem;
        padding: 1px 5px;
    }
}

/* ===== 收藏功能样式 ===== */

/* 导航栏收藏按钮 */
.fav-nav-btn {
    background: none;
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f59e0b;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    line-height: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.fav-nav-btn:hover {
    background-color: rgba(245, 158, 11, 0.08);
    border-color: #f59e0b;
}
.fav-nav-btn .fav-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.fav-nav-btn .fav-icon svg {
    width: 16px;
    height: 16px;
    fill: #f59e0b;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.35));
}
.fav-nav-btn .fav-text {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
}
.fav-nav-btn.has-items {
    border-color: #f59e0b;
}
.fav-nav-btn.has-items .fav-icon svg {
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}
.fav-nav-btn[data-count]:not([data-count="0"])::after {
    content: attr(data-count);
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* 卡片收藏星星按钮 */
.fav-star {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    user-select: none;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.fav-star svg {
    display: block;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}
.fav-star svg path {
    fill: none;
    stroke: #d1d5db;
    stroke-width: 1.5px;
    transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}
.fav-star:hover svg {
    transform: scale(1.15);
}
.fav-star:hover svg path {
    stroke: #fbbf24;
}
.fav-star.active svg path {
    fill: #fbbf24;
    stroke: #fbbf24;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}

/* 游戏卡片上的星星（标签在左上，星星在右上同行） */
#games .fav-star,
.games-section .fav-star {
    top: 0.7rem;
    right: 18px;
}
#games .fav-star svg,
.games-section .fav-star svg {
    width: 18px;
    height: 18px;
}
a.tool-card-link .fav-star {
    text-decoration: none;
}

/* 抽屉遮罩 */
.fav-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.fav-drawer-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* 抽屉主体 */
.fav-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100%;
    background: var(--card-background);
    backdrop-filter: blur(20px);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}
.fav-drawer.open {
    right: 0;
}

body.dark-theme .fav-drawer {
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}

/* 抽屉头部 */
.fav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.fav-drawer-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}
.fav-drawer-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    line-height: 1;
    transition: all 0.2s ease;
    opacity: 0.6;
}
.fav-drawer-close:hover {
    opacity: 1;
    background-color: var(--hover-color);
    transform: rotate(90deg);
}

/* 抽屉内容列表 */
.fav-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

/* 分类标题 */
.fav-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.5;
    padding: 0.6rem 1.2rem 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 空状态 */
.fav-drawer-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 1rem;
    line-height: 1.8;
}
.fav-drawer-empty span {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 收藏项 */
.fav-drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.2rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    border-bottom-width: 0.5px;
}
.fav-drawer-item:hover {
    background-color: var(--hover-color);
}
.fav-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-color);
    flex: 1;
    min-width: 0;
}
.fav-drawer-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}
.fav-drawer-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-drawer-remove {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.35;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
    line-height: 1;
}
.fav-drawer-remove:hover {
    opacity: 1;
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    transform: scale(1.2);
}

/* 暗色模式 */
body.dark-theme .fav-nav-btn {
    border-color: rgba(251, 191, 36, 0.3);
}
body.dark-theme .fav-nav-btn:hover {
    background-color: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
}
body.dark-theme .fav-star svg path {
    stroke: #6b7280;
}
body.dark-theme .fav-star:hover svg path {
    stroke: #fbbf24;
}
body.dark-theme .fav-star.active svg path {
    fill: #fbbf24;
    stroke: #fbbf24;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.45));
}

/* 响应式 */
@media (max-width: 480px) {
    .fav-drawer {
        right: -100%;
        width: 85%;
    }
}
