/*
 * 深色主题样式表
 * 参考设计风格：深色背景 + 紫色调强调色
 */

/* ==================== 基础变量 ==================== */
:root {
    /* 深色模式 - 默认 */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-hover: #252535;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    
    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-hover: #7c3aed;
    
    --border-color: #2a2a3a;
    --border-light: #3a3a4a;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ==================== 亮色模式变量 ==================== */
body.light-theme {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f5;
    --bg-hover: #e9ecef;
    
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    
    --accent-primary: #7c3aed;
    --accent-secondary: #8b5cf6;
    --accent-hover: #6d28d9;
    
    --border-color: #dee2e6;
    --border-light: #e9ecef;
}

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.dark-theme {
    --bg-primary: #070812;
    --bg-secondary: #10121f;
    --bg-tertiary: #171a2c;
    --bg-hover: #20243a;
    --text-primary: #f5f3ff;
    --text-secondary: #c7c4d8;
    --text-muted: #7d7892;
    --accent-primary: #9f7cff;
    --accent-secondary: #c4b5fd;
    --accent-hover: #7c3aed;
    --border-color: rgba(167, 139, 250, 0.18);
    --border-light: rgba(196, 181, 253, 0.28);
    background:
        radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.18), transparent 34rem),
        radial-gradient(circle at 80% 12%, rgba(6, 182, 212, 0.10), transparent 32rem),
        var(--bg-primary);
}

/* ==================== 主题切换按钮 ==================== */
.theme-toggle-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.theme-toggle-btn i {
    font-size: 1.2rem;
    position: absolute;
    transition: all var(--transition-normal);
}

/* 深色模式显示月亮 */
body.dark-theme .theme-toggle-btn .light-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

body.dark-theme .theme-toggle-btn .dark-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
    color: var(--accent-secondary);
}

/* 亮色模式显示太阳 */
body.light-theme .theme-toggle-btn .light-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
    color: #f59e0b;
}

body.light-theme .theme-toggle-btn .dark-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
}

/* ==================== 导航栏 ==================== */
.navbar {
    background: rgba(7, 8, 18, 0.92) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    transition: var(--transition-normal);
}

body.dark-theme .navbar {
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

/* 亮色模式导航栏 */
body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    display: inline-block;
    vertical-align: middle;
}

/* Iconfont 图标样式 */
.nav-link span[class^="icon-"],
.nav-link span[class*=" icon-"] {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-right: 4px;
    display: inline-block;
    vertical-align: middle;
}

.navbar-brand .brand-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    vertical-align: middle;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm) !important;
    margin: 0 var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-secondary) !important;
    background-color: var(--bg-tertiary);
}

/* 首页标识样式 */
.nav-home .nav-link {
    position: relative;
}

.home-badge {
    display: inline-block !important;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover)) !important;
    color: #fff !important;
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    margin-left: 6px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28160, 160, 176, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================== 主内容区域 ==================== */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

/* ==================== Hero 区域 ==================== */
.hero-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

/* ==================== 卡片样式 ==================== */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}

.card-body {
    padding: var(--spacing-md);
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.card-text {
    color: var(--text-secondary);
}

/* ==================== 按钮样式 ==================== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-md);
    transition: var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-outline-primary {
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}

.btn-outline-primary:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ==================== 模块入口 ==================== */
.module-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.module-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    color: inherit;
}

.module-icon {
    font-size: 3rem;
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-sm);
}

.module-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.module-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== 分类筛选栏 ==================== */
.category-filter-section {
    padding: var(--spacing-sm) 0 var(--spacing-md) 0;
    background: transparent;
}

.category-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    align-items: center;
    padding: var(--spacing-xs);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: 100%;
}

.category-filter-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-filter-item:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.category-filter-item.active {
    background: var(--accent-primary);
    color: white;
}

.category-filter-item.active:hover {
    background: var(--accent-hover);
    color: white;
}

/* 亮色模式下的分类筛选栏 */
body.light-theme .category-filter-section {
    background: transparent;
}

body.light-theme .category-filter-bar {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.light-theme .category-filter-item {
    background: transparent;
    color: var(--text-secondary);
}

body.light-theme .category-filter-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

body.light-theme .category-filter-item.active {
    background: var(--accent-primary);
    color: white;
}

/* ==================== 列表项样式 ==================== */
.list-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-fast);
}

.list-item:hover {
    border-color: var(--border-light);
    background: var(--bg-tertiary);
}

/* ==================== 软件卡片 ==================== */
.software-card {
    height: 100%;
}

.card-clickable {
    position: relative;
}

.card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 8;
    border-radius: inherit;
}

.card-link-overlay:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

.card-clickable .card-footer .btn {
    pointer-events: none;
}

.software-card .card-img-top {
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
}

/* 亮色模式下软件卡片图片背景 */
body.light-theme .software-card .card-img-top {
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
}

.software-card-placeholder {
    background: var(--bg-tertiary);
}

.card-fallback-cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: var(--spacing-md);
    overflow: hidden;
}

.card-fallback-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14) 0, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.1) 0, transparent 50%),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.08) 2px,
            transparent 2px,
            transparent 10px
        );
}

.software-card-placeholder.card-fallback-cover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(14, 165, 233, 0.24));
}

.article-card-placeholder.card-fallback-cover {
    background: linear-gradient(135deg, var(--cover-start, rgba(168, 85, 247, 0.32)), var(--cover-end, rgba(14, 116, 144, 0.26)));
}

.fallback-main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fallback-initial {
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.fallback-subtitle {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-cover-icon .fallback-main-center {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.cover-icon-badge {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    background: rgba(10, 10, 20, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.cover-icon-badge img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.card-cover-text .fallback-main {
    gap: 0;
}

.fallback-text {
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    max-width: 100%;
    word-break: break-word;
}

.software-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.software-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== 文章卡片 ==================== */
.article-card {
    height: 100%;
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-card-placeholder {
    background: var(--bg-tertiary);
}

.article-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-tag {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--accent-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 4px;
}

/* 亮色模式下的文章标签 */
body.light-theme .article-tag {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.video-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.video-card-meta .article-tag {
    margin-right: 0;
}

.video-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==================== 工具卡片 ==================== */
.tool-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.tool-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    color: inherit;
}

.tool-icon {
    --tool-icon-size: 28px;
    --tool-upload-icon-scale: 1.12;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.tool-icon i,
.tool-icon iconpark-icon,
.tool-icon .tool-icon-image {
    width: var(--tool-icon-size);
    height: var(--tool-icon-size);
    display: block;
}

.tool-icon i {
    font-size: var(--tool-icon-size);
    line-height: 1;
    text-align: center;
}

.tool-icon .tool-icon-image {
    object-fit: contain;
}

.tool-icon .tool-icon-image--upload {
    transform: scale(var(--tool-upload-icon-scale));
    transform-origin: center;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.tool-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-grid-row > [class*='col-'] {
    display: flex;
}

.tool-grid-item {
    width: 100%;
    min-height: 180px;
    padding: 16px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: center;
    transition: var(--transition-fast);
}

.tool-grid-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.tool-icon-wrapper {
    --tool-grid-icon-size: 30px;
    --tool-grid-upload-icon-scale: 1.12;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.tool-grid-icon-image {
    width: var(--tool-grid-icon-size);
    height: var(--tool-grid-icon-size);
    object-fit: contain;
    display: block;
}

.tool-icon-wrapper .tool-icon-image--upload {
    transform: scale(var(--tool-grid-upload-icon-scale));
    transform-origin: center;
}

.tool-icon-wrapper i,
.tool-icon-wrapper iconpark-icon {
    width: var(--tool-grid-icon-size);
    height: var(--tool-grid-icon-size);
    display: block;
}

.tool-icon-wrapper i {
    font-size: var(--tool-grid-icon-size);
    line-height: 1;
    text-align: center;
}

.tool-grid-item .tool-name {
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}

.tool-grid-item .tool-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-divider {
    border-color: var(--border-color);
    margin: var(--spacing-lg) 0;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-description,
.footer p.text-muted {
    color: var(--text-secondary) !important;
    opacity: 0.96;
    font-size: 1rem;
    line-height: 1.7;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    width: 100%;
}

.footer-site-stats {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 12px;
    flex: 0 1 auto;
    color: var(--text-muted);
    font-size: 0.84rem;
    text-align: left;
}

.footer-site-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.82;
}

.footer-site-stats-title {
    color: var(--text-secondary);
    font-weight: 650;
}

.footer-site-stats strong {
    color: var(--text-secondary);
    font-weight: 700;
}

body.dark-theme .footer {
    background:
        radial-gradient(circle at 82% 0%, rgba(139, 92, 246, 0.10), transparent 30rem),
        #0b0c16;
    border-top-color: rgba(196, 181, 253, 0.14);
}

body.dark-theme .footer-site-stats {
    color: #7d7892;
}

body.dark-theme .footer-site-stats strong {
    color: #c4b5fd;
}

.footer-bottom-row .footer-meta {
    flex: 1 1 auto;
    justify-content: flex-end;
    text-align: right;
}

.footer-meta-item {
    display: inline-flex;
    align-items: center;
    line-height: 1.6;
    opacity: 0.84;
}

.footer-meta-item + .footer-meta-item::before {
    content: "|";
    margin: 0 10px;
    color: var(--text-muted);
    opacity: 0.5;
}

.footer .footer-meta-link,
.footer .footer-meta-link:link,
.footer .footer-meta-link:visited {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
    color: var(--text-muted) !important;
}

.footer .footer-meta-link:hover,
.footer .footer-meta-link:active {
    color: var(--text-secondary);
    border-bottom-color: var(--border-light);
    color: var(--text-secondary) !important;
}

@media (max-width: 768px) {
    .footer-bottom-row {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-bottom-row .footer-meta {
        justify-content: flex-start;
        text-align: left;
    }

    .footer-meta {
        font-size: 0.84rem;
    }

    .footer-meta-item {
        opacity: 0.9;
    }
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ==================== 页面标题 ==================== */
.page-header {
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-xl);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==================== 详情页样式 ==================== */
.detail-header {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-xl);
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.detail-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.detail-content h1,
.detail-content h2,
.detail-content h3 {
    color: var(--text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.detail-content p {
    margin-bottom: var(--spacing-md);
}

.detail-content .article-docx-content > *:last-child {
    margin-bottom: 0;
}

.detail-content .article-docx-content ul,
.detail-content .article-docx-content ol {
    margin: 0 0 var(--spacing-md) 1.25rem;
    padding-left: 0.5rem;
}

.detail-content .article-docx-content li {
    margin-bottom: 0.4rem;
}

.detail-content .article-docx-content blockquote {
    margin: var(--spacing-md) 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--accent-secondary);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.detail-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

.detail-content .article-image-zoomable {
    cursor: zoom-in;
}

.detail-content .article-docx-content table {
    width: 100%;
    margin: var(--spacing-md) 0;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.detail-content .article-docx-content th,
.detail-content .article-docx-content td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    vertical-align: top;
}

.detail-content .article-docx-content th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

.detail-content .article-docx-content table.article-docx-image-table {
    table-layout: fixed;
}

.detail-content .article-docx-content table.article-docx-image-table tr.article-docx-image-row td {
    padding: 8px;
    vertical-align: top;
}

.detail-content .article-docx-content table.article-docx-image-table tr.article-docx-image-row td > img {
    display: block;
    width: 100% !important;
    height: clamp(180px, 26vw, 420px) !important;
    max-height: 420px;
    margin: 0;
    object-fit: contain;
    background: color-mix(in srgb, var(--bg-secondary) 86%, transparent);
}

.detail-content .article-docx-content p.article-docx-inline-image-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: start;
}

.detail-content .article-docx-content p.article-docx-inline-image-row > img {
    width: 100% !important;
    height: clamp(180px, 26vw, 420px) !important;
    margin: 0;
    object-fit: contain;
    background: color-mix(in srgb, var(--bg-secondary) 86%, transparent);
}

.article-image-lightbox-open {
    overflow: hidden;
}

.article-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(2, 6, 23, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.article-image-lightbox.is-open {
    display: flex;
}

.article-image-lightbox__inner {
    position: relative;
    max-width: min(1200px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
}

.article-image-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    width: auto;
    height: auto;
    margin: 0;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.article-image-lightbox__caption {
    margin-top: 10px;
    color: #e5e7eb;
    font-size: 0.92rem;
    text-align: center;
    word-break: break-word;
}

.article-image-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.detail-content figure.image {
    display: table;
    clear: both;
    max-width: 100%;
    margin: var(--spacing-lg) auto;
}

.detail-content figure.image img {
    margin: 0;
}

.detail-content figure.image > figcaption {
    display: table-caption;
    caption-side: bottom;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-content figure.image.image_resized {
    display: block;
    box-sizing: border-box;
}

.detail-content figure.image.image_resized img {
    width: 100%;
}

.detail-content figure.image.image-style-align-left {
    float: left;
    margin: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) 0;
}

.detail-content figure.image.image-style-align-right {
    float: right;
    margin: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-lg);
}

.detail-content figure.image.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}

.detail-content figure.image.image-style-side {
    float: right;
    max-width: min(50%, 420px);
    margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-lg);
}

.detail-content::after {
    content: "";
    display: block;
    clear: both;
}

.detail-content figure.media,
.detail-content figure.article-media-embed {
    margin: var(--spacing-lg) 0;
}

.detail-content .article-media-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000;
}

.detail-content .article-media-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.detail-content .article-media-link {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    font-size: 0.95rem;
}

.detail-content .article-media-link a {
    display: block;
    margin-top: 6px;
    word-break: break-all;
}

.detail-content .rich-link-title,
.home-custom-module .rich-link-title {
    margin: var(--spacing-md) 0;
}

.detail-content .rich-link-title a,
.home-custom-module .rich-link-title a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 2px;
}

.detail-content .rich-link-card,
.home-custom-module .rich-link-card,
.detail-content .rich-link-preview,
.home-custom-module .rich-link-preview {
    margin: var(--spacing-md) 0;
}

.detail-content .rich-link-card__anchor,
.home-custom-module .rich-link-card__anchor,
.detail-content .rich-link-preview__anchor,
.home-custom-module .rich-link-preview__anchor {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 12px 14px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.detail-content .rich-link-card__anchor:hover,
.home-custom-module .rich-link-card__anchor:hover,
.detail-content .rich-link-preview__anchor:hover,
.home-custom-module .rich-link-preview__anchor:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.detail-content .rich-link-card__title,
.home-custom-module .rich-link-card__title,
.detail-content .rich-link-preview__title,
.home-custom-module .rich-link-preview__title {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.detail-content .rich-link-card__url,
.home-custom-module .rich-link-card__url,
.detail-content .rich-link-preview__url,
.home-custom-module .rich-link-preview__url {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
    word-break: break-all;
}

.detail-content .rich-link-preview__site,
.home-custom-module .rich-link-preview__site {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: var(--accent-secondary);
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-radius: 999px;
    padding: 2px 8px;
}

.detail-content code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.detail-content pre {
    background: var(--bg-tertiary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.detail-content pre code {
    background: none;
    padding: 0;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .detail-title {
        font-size: 1.75rem;
    }

    .detail-content figure.image.image-style-side,
    .detail-content figure.image.image-style-align-left,
    .detail-content figure.image.image-style-align-right {
        float: none;
        max-width: 100%;
        margin: var(--spacing-md) auto;
    }

    .detail-content .article-docx-content table.article-docx-image-table tr.article-docx-image-row td > img,
    .detail-content .article-docx-content p.article-docx-inline-image-row > img {
        height: clamp(150px, 48vw, 260px) !important;
    }

    .article-image-lightbox {
        padding: 12px;
    }

    .article-image-lightbox__inner {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .article-image-lightbox__img {
        max-height: calc(100vh - 72px);
    }

    .article-image-lightbox__close {
        top: -10px;
        right: -10px;
    }
    
    .social-links {
        justify-content: center;
        margin-top: var(--spacing-md);
    }
    
    .main-content {
        padding-top: 70px;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ==================== 弹窗样式优化 ==================== */
/* 通用弹窗样式 */
.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-lg);
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    background-color: var(--bg-secondary);
    padding: var(--spacing-lg);
}

.modal-footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-lg);
}

/* 关闭按钮 */
.btn-close {
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* 亮色模式弹窗 */
body.light-theme .modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body.light-theme .modal-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
}

body.light-theme .modal-body {
    background-color: var(--bg-secondary);
}

body.light-theme .modal-footer {
    background-color: var(--bg-tertiary);
}

body.light-theme .btn-close {
    filter: none;
    opacity: 0.5;
}

body.light-theme .btn-close:hover {
    opacity: 0.8;
}

/* 下载弹窗样式 */
#downloadModal .list-group-item {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#downloadModal .list-group-item:hover {
    border-color: var(--accent-primary) !important;
    background-color: var(--bg-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

#downloadModal .list-group-item:hover .fa-chevron-right {
    color: var(--accent-secondary) !important;
    transform: translateX(4px);
    transition: all 0.3s ease;
}

#downloadModal .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border-color: var(--accent-primary);
    color: white;
}

/* 联系弹窗图片样式 */
.modal-body img {
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* 弹窗动画 */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.95);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* ==================== 炫酷 Hero 区域 ==================== */
.hero-section-cool {
    --hero-accent-a: #8b5cf6;
    --hero-accent-b: #06b6d4;
    --hero-accent-c: #f97316;
    position: relative;
    min-height: calc(100vh - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 18% 18%, rgba(139, 92, 246, 0.28), transparent 42%),
        radial-gradient(circle at 86% 24%, rgba(6, 182, 212, 0.24), transparent 40%),
        linear-gradient(160deg, #05070f 0%, #0c1020 52%, #070b18 100%);
}

body.light-theme .hero-section-cool {
    --hero-accent-a: #4f46e5;
    --hero-accent-b: #0284c7;
    --hero-accent-c: #ea580c;
    background:
        radial-gradient(circle at 18% 18%, rgba(79, 70, 229, 0.22), transparent 40%),
        radial-gradient(circle at 86% 24%, rgba(2, 132, 199, 0.18), transparent 42%),
        linear-gradient(160deg, #f4f8ff 0%, #edf3ff 56%, #f8fbff 100%);
}

.particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.92;
}

body.light-theme .particles-canvas {
    opacity: 0.88;
}

.hero-aurora {
    position: absolute;
    width: 58vw;
    max-width: 860px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    opacity: 0.58;
}

.hero-aurora-a {
    top: -22%;
    left: -8%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.72), rgba(139, 92, 246, 0));
    animation: heroAuroraDriftA 18s ease-in-out infinite;
}

.hero-aurora-b {
    top: 20%;
    right: -10%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.7), rgba(6, 182, 212, 0));
    animation: heroAuroraDriftB 22s ease-in-out infinite;
}

.hero-aurora-c {
    bottom: -30%;
    left: 30%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.38), rgba(249, 115, 22, 0));
    animation: heroAuroraDriftC 26s ease-in-out infinite;
}

body.light-theme .hero-aurora {
    mix-blend-mode: multiply;
    opacity: 0.34;
    filter: blur(95px);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 75%);
    opacity: 0.35;
    pointer-events: none;
}

body.light-theme .hero-grid-overlay {
    opacity: 0.24;
}

.hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.2), transparent 48%),
        radial-gradient(circle at 12% 85%, rgba(99, 102, 241, 0.2), transparent 34%),
        radial-gradient(circle at 90% 78%, rgba(14, 165, 233, 0.16), transparent 30%);
}

body.light-theme .hero-spotlight {
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.8), transparent 48%),
        radial-gradient(circle at 12% 85%, rgba(79, 70, 229, 0.14), transparent 34%),
        radial-gradient(circle at 90% 78%, rgba(2, 132, 199, 0.12), transparent 30%);
}

.hero-rings {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 0 30px rgba(148, 163, 184, 0.15) inset;
}

.ring-1 {
    width: min(58vw, 660px);
    height: min(58vw, 660px);
    left: calc(50% - min(29vw, 330px));
    top: calc(50% - min(29vw, 330px));
    animation: heroRingPulse 9s ease-in-out infinite;
}

.ring-2 {
    width: min(80vw, 920px);
    height: min(80vw, 920px);
    left: calc(50% - min(40vw, 460px));
    top: calc(50% - min(40vw, 460px));
    animation: heroRingPulse 13s ease-in-out infinite reverse;
}

.ring-3 {
    width: min(100vw, 1160px);
    height: min(100vw, 1160px);
    left: calc(50% - min(50vw, 580px));
    top: calc(50% - min(50vw, 580px));
    animation: heroRingPulse 16s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 130px 0 150px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #cbd5e1;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    background: rgba(15, 23, 42, 0.35);
    animation: fadeInDown 0.75s ease forwards;
}

body.light-theme .hero-kicker {
    color: #334155;
    background: rgba(255, 255, 255, 0.72);
}

.hero-title-cool {
    margin-bottom: 12px;
}

.title-line {
    display: block;
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.08;
    background: linear-gradient(115deg, #ffffff 8%, #c4b5fd 35%, #7dd3fc 72%, #fdba74 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-wrap: balance;
    animation: fadeInUp 0.85s ease forwards 0.12s;
    opacity: 0;
}

body.light-theme .title-line {
    background: linear-gradient(115deg, #0f172a 8%, #4f46e5 35%, #0369a1 72%, #c2410c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-cool {
    max-width: 720px;
    margin: 0 auto 34px;
    color: #a5b4c7;
    font-size: clamp(1rem, 2.3vw, 1.28rem);
    line-height: 1.8;
    white-space: pre-line;
    text-wrap: pretty;
    animation: fadeInUp 0.8s ease forwards 0.3s;
    opacity: 0;
}

body.light-theme .hero-subtitle-cool {
    color: #475569;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto 34px;
    padding: 14px 20px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease forwards 0.48s;
    opacity: 0;
}

body.light-theme .hero-stats {
    background: rgba(255, 255, 255, 0.65);
}

.stat-item {
    min-width: 104px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--hero-accent-a), var(--hero-accent-b));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 0.9rem;
}

body.light-theme .stat-label {
    color: #64748b;
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.55), transparent);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    animation: fadeInUp 0.8s ease forwards 0.66s;
    opacity: 0;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.3);
}

.btn-shine {
    position: absolute;
    inset: 0;
    width: 44%;
    transform: skewX(-20deg) translateX(-160%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: shine 3.2s ease-in-out infinite;
    pointer-events: none;
}

.btn-magnetic {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-magnetic:hover {
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.22);
}

.hero-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 0;
    z-index: 2;
    pointer-events: none;
    background: transparent;
}

body.light-theme .hero-divider {
    background: transparent;
}

@keyframes heroAuroraDriftA {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(40px, 24px, 0) scale(1.1); }
}

@keyframes heroAuroraDriftB {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-34px, -24px, 0) scale(1.07); }
}

@keyframes heroAuroraDriftC {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-12px, -26px, 0) scale(1.12); }
}

@keyframes heroRingPulse {
    0%, 100% { opacity: 0.26; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.035); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% { transform: skewX(-20deg) translateX(-160%); }
    70%, 100% { transform: skewX(-20deg) translateX(320%); }
}

@media (max-width: 992px) {
    .hero-content {
        padding: 110px 0 130px;
    }

    .hero-stats {
        gap: 14px;
    }

    .stat-item {
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 98px 0 118px;
    }

    .hero-kicker {
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }

    .hero-stats {
        flex-direction: column;
        max-width: 320px;
        gap: 12px;
    }

    .stat-divider {
        width: 64px;
        height: 1px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: min(92vw, 300px);
    }

    .hero-divider {
        height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-aurora,
    .hero-ring,
    .btn-shine,
    .title-line,
    .hero-subtitle-cool,
    .hero-stats,
    .hero-buttons,
    .hero-kicker {
        animation: none !important;
    }
}

/* ==================== 首页模块酷炫区 ==================== */
.home-cool-zone {
    position: relative;
    padding: 4px 0 30px;
}

.home-cool-zone::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 15%, rgba(139, 92, 246, 0.14), transparent 36%),
        radial-gradient(circle at 82% 28%, rgba(14, 165, 233, 0.12), transparent 34%),
        radial-gradient(circle at 52% 86%, rgba(249, 115, 22, 0.1), transparent 32%);
}

.home-cool-zone .home-module-block {
    position: relative;
    z-index: 1;
    padding-top: 26px !important;
    padding-bottom: 42px !important;
}

.home-cool-zone .home-module-block + .home-module-block {
    margin-top: -8px;
}

.home-cool-zone .module-header-shell {
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.5), rgba(2, 6, 23, 0.35));
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
}

.home-cool-zone .module-header-shell .section-title {
    margin-bottom: 0 !important;
    font-size: clamp(1.28rem, 2.8vw, 1.7rem);
}

.home-cool-zone .module-header-shell .text-secondary {
    margin-top: 6px;
}

.home-cool-zone .module-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    background: rgba(30, 27, 75, 0.26);
}

.home-cool-zone .module-more-btn:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.9);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.86), rgba(6, 182, 212, 0.6));
}

.home-cool-zone .software-card,
.home-cool-zone .tool-grid-item,
.home-cool-zone .waterfall-card,
.home-cool-zone .article-list-item {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.54));
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.28);
}

.home-cool-zone .software-card:hover,
.home-cool-zone .tool-grid-item:hover,
.home-cool-zone .waterfall-card:hover {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 20px 44px rgba(76, 29, 149, 0.3);
}

.home-cool-zone .software-card .card-img-top,
.home-cool-zone .waterfall-image-wrapper {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.home-cool-zone .tool-grid-item {
    border-radius: 14px;
    min-height: 186px;
}

.home-cool-zone .tool-grid-item .tool-name {
    font-weight: 600;
}

.home-cool-zone .article-list-item {
    margin-bottom: 10px;
    padding: 1.1rem 1rem;
    border-radius: 14px;
}

.home-cool-zone .article-list-item:last-child {
    margin-bottom: 0;
}

.home-cool-zone .article-list-item .article-title a:hover {
    color: #c4b5fd;
}

.home-cool-zone .waterfall-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.78));
}

.home-cool-zone .module-card {
    display: block;
    height: 100%;
    padding: 1.6rem 1.35rem;
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(170deg, rgba(15, 23, 42, 0.75), rgba(17, 24, 39, 0.55));
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-cool-zone .module-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 18px 36px rgba(76, 29, 149, 0.26);
}

.home-custom-module {
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.7), rgba(17, 24, 39, 0.52));
}

.home-cool-zone .module-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #e2e8f0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.7), rgba(14, 165, 233, 0.5));
    margin-bottom: 14px;
}

.home-cool-zone .module-title {
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 10px;
}

.home-cool-zone .module-desc {
    color: #94a3b8;
    margin-bottom: 0;
}

.home-about-cool {
    position: relative;
    z-index: 1;
    padding-top: 26px !important;
    padding-bottom: 54px !important;
}

.home-about-panel {
    padding: 30px 28px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(170deg, rgba(15, 23, 42, 0.72), rgba(30, 27, 75, 0.48));
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.3);
}

.home-about-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.home-about-head .section-title::after {
    max-width: 180px;
}

.home-about-btn {
    flex-shrink: 0;
}

.home-about-content {
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(165deg, rgba(2, 6, 23, 0.36), rgba(30, 41, 59, 0.18));
}

.home-about-text {
    margin: 0;
    line-height: 1.9;
    color: #cbd5e1 !important;
}

.home-about-text p {
    margin-bottom: 0.75rem;
}

.home-about-text ul,
.home-about-text ol {
    padding-left: 1.25rem;
    margin-bottom: 0.85rem;
}

.home-about-text > *:last-child {
    margin-bottom: 0;
}

.home-about-text-preview {
    position: relative;
    max-height: 11.2em;
    overflow: hidden;
}

.home-about-text-preview::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.6rem;
    background: linear-gradient(to bottom, rgba(13, 20, 45, 0), rgba(13, 20, 45, 0.95));
    pointer-events: none;
}

.home-about-panel .btn {
    border-color: rgba(139, 92, 246, 0.6);
}

.home-about-panel .btn:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.9);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(6, 182, 212, 0.58));
}

.about-page-cool {
    position: relative;
    z-index: 1;
    padding-top: 42px !important;
    padding-bottom: 56px !important;
}

.about-shell {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.about-main-panel,
.about-contact-panel {
    border-radius: 22px;
    overflow: visible;
}

.about-panel-head {
    align-items: flex-end;
    margin-bottom: 18px;
}

.about-panel-head .section-title::after {
    max-width: 260px;
}

.about-page-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    white-space: nowrap;
}

.about-main-content {
    padding: 24px;
}

.about-detail-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #cbd5e1;
}

.about-detail-content > *:last-child {
    margin-bottom: 0;
}

.about-empty-state {
    text-align: center;
    padding: 24px 12px;
}

.about-empty-state i {
    font-size: 2.8rem;
    color: #a78bfa;
    margin-bottom: 14px;
}

.about-empty-state h3 {
    margin-bottom: 10px;
}

.about-empty-state p {
    margin-bottom: 10px;
    color: #94a3b8;
}

.about-empty-state .btn {
    margin-top: 10px;
}

.about-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.about-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    text-decoration: none;
    background: linear-gradient(165deg, rgba(2, 6, 23, 0.34), rgba(30, 41, 59, 0.2));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-contact-link:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.68);
    box-shadow: 0 10px 24px rgba(30, 41, 59, 0.24);
}

.about-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.88), rgba(14, 165, 233, 0.58));
}

.about-contact-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.about-contact-icon iconpark-icon {
    display: inline-flex;
    line-height: 1;
}

.about-contact-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-contact-name {
    color: #f8fafc;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.about-contact-type {
    color: #94a3b8;
    font-size: 0.85rem;
}

.about-contact-arrow {
    margin-left: auto;
    color: #a78bfa;
    font-size: 0.85rem;
}

.about-empty-contact {
    border: 1px dashed rgba(148, 163, 184, 0.38);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    color: #94a3b8;
}

body.light-theme .home-cool-zone::before {
    background:
        radial-gradient(circle at 20% 15%, rgba(79, 70, 229, 0.14), transparent 36%),
        radial-gradient(circle at 82% 28%, rgba(2, 132, 199, 0.12), transparent 34%),
        radial-gradient(circle at 52% 86%, rgba(251, 146, 60, 0.1), transparent 32%);
}

body.light-theme .home-cool-zone .module-header-shell {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.8));
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.22);
}

body.light-theme .home-cool-zone .module-more-btn {
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(224, 231, 255, 0.58);
}

body.light-theme .home-cool-zone .module-more-btn:hover {
    color: #fff;
}

body.light-theme .home-cool-zone .software-card,
body.light-theme .home-cool-zone .tool-grid-item,
body.light-theme .home-cool-zone .waterfall-card,
body.light-theme .home-cool-zone .article-list-item,
body.light-theme .home-custom-module,
body.light-theme .home-cool-zone .module-card,
body.light-theme .home-about-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9));
    border-color: rgba(148, 163, 184, 0.32);
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.22);
}

body.light-theme .home-cool-zone .module-title {
    color: #0f172a;
}

body.light-theme .home-cool-zone .module-desc,
body.light-theme .home-cool-zone .article-summary,
body.light-theme .home-cool-zone .tool-desc,
body.light-theme .home-cool-zone .waterfall-desc {
    color: #475569;
}

body.light-theme .home-about-content {
    background: linear-gradient(165deg, rgba(241, 245, 249, 0.95), rgba(248, 250, 252, 0.9));
    border-color: rgba(148, 163, 184, 0.28);
}

body.light-theme .home-about-text {
    color: #334155 !important;
}

body.light-theme .home-about-text-preview::after {
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.96));
}

body.light-theme .about-page-subtitle {
    color: #64748b;
}

body.light-theme .about-detail-content {
    color: #334155;
}

body.light-theme .about-empty-state p,
body.light-theme .about-empty-contact,
body.light-theme .about-contact-type {
    color: #475569;
}

body.light-theme .about-contact-link {
    border-color: rgba(148, 163, 184, 0.32);
    background: linear-gradient(165deg, rgba(241, 245, 249, 0.95), rgba(248, 250, 252, 0.9));
}

body.light-theme .about-contact-link:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 12px 22px rgba(148, 163, 184, 0.22);
}

body.light-theme .about-contact-name {
    color: #0f172a;
}

@media (max-width: 768px) {
    .home-cool-zone .home-module-block {
        padding-top: 38px !important;
        padding-bottom: 28px !important;
    }

    .home-cool-zone .module-header-shell {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 10px;
    }

    .home-cool-zone .module-more-btn {
        width: 100%;
        justify-content: center;
    }

    .home-about-panel {
        padding: 24px 18px;
    }

    .home-about-head {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .home-about-btn {
        width: 100%;
    }

    .home-about-content {
        padding: 16px;
    }

    .about-page-cool {
        padding-top: 26px !important;
        padding-bottom: 42px !important;
    }

    .about-panel-head {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .about-page-subtitle {
        white-space: normal;
    }

    .about-main-content {
        padding: 16px;
    }

    .about-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 辅助类 ==================== */
.text-accent {
    color: var(--accent-secondary) !important;
}

.bg-accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover)) !important;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title .module-title-icon-image {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
    display: inline-block;
}

.section-title iconpark-icon {
    display: inline-flex;
    line-height: 1;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: var(--spacing-sm);
}
