/* ============================================
   WG15 - 渐变流光风格 (MacCMS版本)
   Gradient Flow Theme v1.0 - MacCMS Edition
   ============================================ */

/* ============================================
   CSS 变量
   ============================================ */
:root {
    --purple: #8b5cf6;
    --pink: #ec4899;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --orange: #f97316;
    
    --dark: #0f0f1a;
    --dark-100: #1a1a2e;
    --dark-200: #25253a;
    
    --light: #ffffff;
    --light-90: rgba(255,255,255,0.9);
    --light-70: rgba(255,255,255,0.7);
    --light-50: rgba(255,255,255,0.5);
    --light-20: rgba(255,255,255,0.2);
    --light-10: rgba(255,255,255,0.1);
    --light-05: rgba(255,255,255,0.05);
    
    --grad-main: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #3b82f6 100%);
    --grad-warm: linear-gradient(135deg, #f472b6 0%, #fb923c 100%);
    --grad-cool: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --grad-bg: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 50%, #1e1e3f 100%);
    
    --glow-purple: 0 0 30px rgba(139,92,246,0.4);
    --glow-pink: 0 0 30px rgba(236,72,153,0.4);
    --glow-blue: 0 0 30px rgba(59,130,246,0.4);
    
    --glass: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.12);
    
    --max-w: 1200px;
    --nav-h: 70px;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --radius-full: 50px;
    
    --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.35s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--light-90);
    background: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.box {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* 渐变文字 */
.gd-text {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   背景装饰
   ============================================ */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-glow::before,
.bg-glow::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: floatGlow 15s ease-in-out infinite;
}

.bg-glow::before {
    width: 500px;
    height: 500px;
    background: var(--purple);
    top: -200px;
    left: -100px;
}

.bg-glow::after {
    width: 400px;
    height: 400px;
    background: var(--pink);
    bottom: -150px;
    right: -100px;
    animation-delay: -7s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.1); }
}

/* ============================================
   隐藏公告栏
   ============================================ */
.mac_notice,
.notice-bar,
.announcement,
.top-notice,
.marquee,
[class*="notice"],
[class*="announcement"] {
    display: none !important;
}

/* ============================================
   顶部导航
   ============================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(15,15,26,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.topbar-inner {
    max-width: var(--max-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 1000;
}

.logo img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--light);
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* 移动端默认隐藏 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}

.main-nav a {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--light-70);
    border-radius: var(--radius-full);
    transition: all var(--dur) var(--ease-out);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--light);
    background: var(--glass);
}

.top-btn {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--light);
    background: var(--grad-main);
    border-radius: var(--radius-full);
    box-shadow: var(--glow-purple);
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.top-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--glow-pink);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--glass);
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   首页 - 头部区域
   ============================================ */
.intro {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    z-index: 10;
}

.intro .box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-left {
    max-width: 520px;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    background: rgba(6,182,212,0.15);
    border: 1px solid rgba(6,182,212,0.3);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.intro-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--light);
    margin-bottom: 20px;
}

.intro-desc {
    font-size: 17px;
    color: var(--light-70);
    line-height: 1.7;
    margin-bottom: 32px;
}

.intro-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--dur) var(--ease);
}

.btn-gd {
    color: var(--light);
    background: var(--grad-main);
    box-shadow: var(--glow-purple);
}

.btn-gd:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(139,92,246,0.5);
}

.btn-glass {
    color: var(--light-90);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--light-10);
    border-color: var(--light-20);
}

/* 右侧卡片组 */
.intro-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    padding: 28px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    transition: all var(--dur) var(--ease);
}

.stat-card:hover {
    transform: translateY(-6px);
    background: var(--light-10);
    box-shadow: var(--glow-purple);
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.stat-card .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stat-card h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card p {
    font-size: 14px;
    color: var(--light-50);
}

/* ============================================
   功能区块
   ============================================ */
.feat {
    position: relative;
    padding: 100px 0;
    z-index: 10;
}

.sect-head {
    text-align: center;
    margin-bottom: 50px;
}

.sect-head span {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pink);
    background: rgba(236,72,153,0.15);
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}

.sect-head h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 10px;
}

.sect-head p {
    font-size: 16px;
    color: var(--light-50);
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feat-card {
    padding: 30px 22px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--dur) var(--ease);
}

.feat-card:hover {
    transform: translateY(-8px);
    background: var(--light-10);
    border-color: var(--purple);
    box-shadow: var(--glow-purple);
}

.feat-card .ico {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-main);
    border-radius: var(--radius-sm);
}

.feat-card .ico img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.feat-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 8px;
}

.feat-card p {
    font-size: 13px;
    color: var(--light-50);
    line-height: 1.5;
}

/* ============================================
   数据展示
   ============================================ */
.data {
    position: relative;
    padding: 80px 0;
    background: var(--grad-main);
    z-index: 10;
}

.data-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.data-item {
    text-align: center;
    color: var(--light);
}

.data-item .pic {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 3px solid var(--light-20);
}

.data-item .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.data-item strong {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.data-item span {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   文章列表
   ============================================ */
.posts {
    position: relative;
    padding: 100px 0;
    z-index: 10;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.post-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--dur) var(--ease);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--pink);
    box-shadow: 0 8px 30px rgba(236,72,153,0.3);
}

.post-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--dark-200);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s var(--ease-out);
}

.post-card:hover .post-thumb img {
    transform: scale(1.08);
}

.post-thumb time {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--light);
    background: rgba(15,15,26,0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid var(--light-20);
}

.post-body {
    padding: 20px;
}

.post-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 10px;
    line-height: 1.6;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.post-body h3 a {
    transition: color var(--dur) var(--ease-out);
}

.post-body h3:hover a {
    color: var(--pink);
}

.post-body p {
    font-size: 13px;
    color: var(--light-50);
    line-height: 1.7;
    margin-bottom: 16px;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    margin-top: auto;
    padding-top: 4px;
}

.post-link svg {
    transition: transform var(--dur) var(--ease);
    flex-shrink: 0;
}

.post-link:hover {
    color: var(--pink);
}

.post-link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   CTA 区域
   ============================================ */
.callout {
    position: relative;
    padding: 100px 0;
    z-index: 10;
}

.callout-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
}

.callout-card h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 14px;
}

.callout-card > p {
    font-size: 16px;
    color: var(--light-50);
    margin-bottom: 28px;
}

.callout-card .btn {
    padding: 16px 32px;
}

.callout-tips {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.callout-tips span {
    font-size: 14px;
    color: var(--cyan);
}

/* ============================================
   页脚
   ============================================ */
.ft {
    position: relative;
    padding: 60px 0 24px;
    background: var(--dark-100);
    border-top: 1px solid var(--glass-border);
    z-index: 1;
}

.ft-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 60px 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    align-items: start;
}

.ft-brand {
    grid-column: 1 / 2;
}

.ft-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ft-brand .logo img {
    height: 32px;
    width: auto;
}

.ft-brand .logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--light);
}

.ft-brand p {
    font-size: 14px;
    color: var(--light-50);
    line-height: 1.7;
    margin: 16px 0 20px;
}

.ft-social {
    display: flex;
    gap: 10px;
}

.ft-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border-radius: var(--radius-xs);
    font-size: 16px;
    transition: all var(--dur) var(--ease);
}

.ft-social a:hover {
    background: var(--grad-main);
    transform: translateY(-2px);
}

.ft-col {
    min-width: 0;
    padding-left: 10px;
}

.ft-col h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 18px;
    white-space: nowrap;
}

.ft-col a {
    display: block;
    font-size: 14px;
    color: var(--light-50);
    padding: 5px 0;
    transition: color var(--dur);
    word-break: break-word;
    line-height: 1.6;
}

.ft-col a:hover {
    color: var(--pink);
}

.ft-bottom {
    padding-top: 24px;
    text-align: center;
}

.ft-bottom p {
    font-size: 13px;
    color: var(--light-50);
    line-height: 1.6;
    word-break: break-word;
}

/* ============================================
   列表页 - 横幅
   ============================================ */
.page-top {
    position: relative;
    padding: 120px 0 50px;
    z-index: 1;
}

.page-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--light-50);
    margin-bottom: 16px;
}

.page-crumb a:hover {
    color: var(--pink);
}

.page-top h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 10px;
}

.page-top > .box > p {
    font-size: 15px;
    color: var(--light-50);
    max-width: 550px;
}

/* ============================================
   列表页 - 内容区
   ============================================ */
.list-area {
    position: relative;
    padding: 50px 0 80px;
    z-index: 1;
}

.list-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: flex-start;
}

.list-content {
    min-width: 0;
}

.list-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    margin-bottom: 40px;
}

.l-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--dur) var(--ease);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.l-card:hover {
    transform: translateY(-6px);
    border-color: var(--purple);
    box-shadow: 0 8px 30px rgba(139,92,246,0.35);
}

.l-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--dark-200);
}

.l-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s var(--ease-out);
}

.l-card:hover .l-card-img img {
    transform: scale(1.08);
}

.l-card-img .cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--light);
    background: var(--grad-main);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(139,92,246,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.l-card-info {
    padding: 20px;
}

.l-card-info time {
    display: inline-block;
    font-size: 11px;
    color: var(--light-50);
    padding: 3px 10px;
    background: var(--light-05);
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.l-card-info h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--light);
    margin: 10px 0;
    line-height: 1.6;
    min-height: 51px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.l-card-info h2 a {
    transition: color var(--dur) var(--ease-out);
}

.l-card-info h2:hover a {
    color: var(--pink);
}

.l-card-info p {
    font-size: 13px;
    color: var(--light-50);
    line-height: 1.7;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* 分页 */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
}

.pager a,
.pager span.dots {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--light-70);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: all var(--dur) var(--ease);
}

.pager span.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.pager a:hover {
    color: var(--light);
    background: var(--light-10);
    border-color: var(--light-20);
    transform: translateY(-2px);
}

.pager a.cur {
    color: var(--light);
    background: var(--grad-main);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139,92,246,0.4);
    cursor: default;
}

.pager .page-info {
    margin-left: 10px;
    padding: 0 12px;
    font-size: 13px;
    color: var(--light-50);
    background: transparent;
    border: none;
}

/* ============================================
   侧边栏
   ============================================ */
.sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.widget {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 22px;
}

.widget-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

/* 热门列表 */
.hot-list li {
    margin-bottom: 14px;
}

.hot-list li:last-child {
    margin-bottom: 0;
}

.hot-list a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hot-list .thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.hot-list .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-list .txt {
    flex: 1;
    min-width: 0;
}

.hot-list .txt h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--light-90);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-list a:hover .txt h4 {
    color: var(--pink);
}

.hot-list .txt time {
    font-size: 12px;
    color: var(--light-50);
}

/* 标签云 */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list a {
    padding: 6px 14px;
    font-size: 13px;
    color: var(--light-70);
    background: var(--light-05);
    border-radius: var(--radius-full);
    transition: all var(--dur) var(--ease);
}

.tag-list a:hover {
    color: var(--light);
    background: var(--grad-main);
}

/* 联系 widget */
.widget-cta {
    background: var(--grad-main);
    border: none;
    text-align: center;
}

.widget-cta .widget-head {
    justify-content: center;
    border-bottom-color: var(--light-20);
}

.widget-cta p {
    font-size: 14px;
    color: var(--light-90);
    margin-bottom: 4px;
}

.widget-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--purple);
    background: var(--light);
    border-radius: var(--radius-full);
    transition: all var(--dur) var(--ease);
}

.widget-cta .cta-btn:hover {
    transform: scale(1.05);
}

/* ============================================
   内容页
   ============================================ */
.article-area {
    position: relative;
    padding: 40px 0 80px;
    z-index: 1;
}

.article-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: flex-start;
}

.article-main {
    min-width: 0;
}

.article-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px;
}

.article-head {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.article-head h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--light);
    line-height: 1.4;
    margin-bottom: 14px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
    color: var(--light-50);
}

.article-meta a {
    color: var(--cyan);
}

/* 摘要 */
.article-summary {
    display: flex;
    gap: 12px;
    padding: 18px;
    background: var(--light-05);
    border-left: 4px solid var(--purple);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    margin-bottom: 24px;
}

.article-summary i {
    font-style: normal;
    font-size: 18px;
}

.article-summary p {
    font-size: 14px;
    color: var(--light-70);
    line-height: 1.7;
}

/* 正文 */
.article-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--light-90);
}

.article-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--light);
    margin: 36px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--purple);
}

.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--light);
    margin: 28px 0 12px;
}

.article-body p {
    margin: 14px 0;
    color: var(--light-70);
}

.article-body img {
    border-radius: var(--radius-sm);
    margin: 22px 0;
}

.article-body a {
    color: var(--cyan);
    text-decoration: underline;
}

.article-body ul,
.article-body ol {
    padding-left: 22px;
    margin: 14px 0;
}

.article-body li {
    margin: 6px 0;
    color: var(--light-70);
}

.article-body blockquote {
    margin: 22px 0;
    padding: 18px 22px;
    background: var(--light-05);
    border-left: 4px solid var(--pink);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    color: var(--light-70);
}

.article-body table {
    width: 100%;
    margin: 22px 0;
    border-collapse: collapse;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article-body th {
    background: var(--grad-main);
    color: var(--light);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
}

.article-body td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--light-70);
}

.article-body tr:hover {
    background: var(--light-05);
}

/* 文章底部 */
.article-foot {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.article-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.article-btns button {
    padding: 10px 18px;
    font-size: 14px;
    color: var(--light-70);
    background: var(--light-05);
    border-radius: var(--radius-full);
    transition: all var(--dur) var(--ease);
}

.article-btns button:hover {
    color: var(--light);
    background: var(--grad-main);
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags strong {
    font-size: 14px;
    color: var(--light);
}

.article-tags a {
    padding: 5px 12px;
    font-size: 13px;
    color: var(--light-70);
    background: var(--light-05);
    border-radius: var(--radius-full);
    transition: all var(--dur) var(--ease);
}

.article-tags a:hover {
    color: var(--light);
    background: var(--grad-main);
}

/* 相关推荐 */
.related {
    margin-top: 40px;
}

.related h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 20px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: all var(--dur) var(--ease);
}

.related-item:hover {
    background: var(--light-10);
    border-color: var(--pink);
}

.related-item .thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.related-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item .txt h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--light);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item:hover .txt h4 {
    color: var(--pink);
}

.related-item .txt time {
    font-size: 12px;
    color: var(--light-50);
}

/* 作者 widget */
.widget-author {
    text-align: center;
}

.widget-author .avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--purple);
}

.widget-author .avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--dark);
}

.widget-author h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 4px;
}

.widget-author p {
    font-size: 13px;
    color: var(--light-50);
    margin-bottom: 14px;
}

.widget-author .follow {
    display: inline-flex;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--light);
    background: var(--grad-main);
    border-radius: var(--radius-full);
    transition: all var(--dur) var(--ease);
}

.widget-author .follow:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

/* ============================================
   MacCMS 图片自动居中优化
   ============================================ */
.article-body img,
.detail-content img,
.content img {
    max-width: 100% !important;
    height: auto !important;
    margin: 28px auto !important;
    display: block !important;
    border-radius: 12px;
}

.article-body p img,
.detail-content p img,
.content p img {
    margin-left: auto !important;
    margin-right: auto !important;
}

.article-body p:has(img),
.detail-content p:has(img),
.content p:has(img) {
    text-align: center;
}

/* ============================================
   响应式 - 平板
   ============================================ */
@media (max-width: 1200px) {
    .ft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 50px;
    }
    
    .ft-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .intro .box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .intro-left {
        max-width: 100%;
    }
    
    .intro-actions {
        justify-content: center;
    }
    
    .intro-right {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .list-wrap,
    .article-wrap {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   响应式 - 移动端
   ============================================ */
@media (max-width: 768px) {
    .topbar .main-nav {
        display: none !important;
    }
    
    .topbar .main-nav.active {
        display: flex !important;
    }
    :root {
        --nav-h: 60px;
    }
    
    .box {
        padding: 0 16px;
    }
    
    /* 移动端导航 */
    .main-nav {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - var(--nav-h));
        background: rgba(15,15,26,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 20px;
        overflow-y: auto;
        z-index: 1000;
        margin: 0;
    }
    
    .main-nav.active {
        display: flex !important;
    }
    
    .main-nav a {
        width: 100%;
        padding: 16px 20px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
        border-radius: 0 !important;
        font-size: 16px;
        color: var(--light-90) !important;
        display: block;
        background: transparent;
    }
    
    .main-nav a:hover {
        background: var(--light-10) !important;
        color: var(--light) !important;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .top-btn {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* 首页 */
    .intro {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .intro-title {
        font-size: 30px;
    }
    
    .intro-desc {
        font-size: 15px;
    }
    
    .intro-actions {
        flex-direction: column;
    }
    
    .intro-actions .btn {
        width: 100%;
    }
    
    .intro-right {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px 16px;
    }
    
    .stat-card h3 {
        font-size: 26px;
    }
    
    /* 功能 */
    .feat {
        padding: 60px 0;
    }
    
    .sect-head h2 {
        font-size: 24px;
    }
    
    .feat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    
    .feat-card {
        padding: 22px 16px;
    }
    
    .feat-card h4 {
        font-size: 14px;
    }
    
    .feat-card p {
        font-size: 12px;
    }
    
    /* 数据 */
    .data {
        padding: 50px 0;
    }
    
    .data-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .data-item .pic {
        width: 70px;
        height: 70px;
    }
    
    .data-item strong {
        font-size: 28px;
    }
    
    .data-item span {
        font-size: 13px;
    }
    
    /* 文章 */
    .posts {
        padding: 60px 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-body h3 {
        font-size: 16px;
        min-height: auto;
    }
    
    .post-body p {
        font-size: 14px;
        min-height: auto;
    }
    
    /* CTA */
    .callout {
        padding: 60px 0;
    }
    
    .callout-card {
        padding: 40px 20px;
    }
    
    .callout-card h2 {
        font-size: 22px;
    }
    
    .callout-tips {
        flex-direction: column;
        gap: 10px;
    }
    
    /* 列表页 */
    .page-top {
        padding: 90px 0 30px;
    }
    
    .page-top h1 {
        font-size: 26px;
    }
    
    .list-area {
        padding: 30px 0 50px;
    }
    
    .list-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .l-card-info h2 {
        font-size: 16px;
        min-height: auto;
    }
    
    .l-card-info p {
        font-size: 14px;
        min-height: auto;
    }
    
    .l-card-img .cat {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .sidebar {
        display: none;
    }
    
    .pager {
        gap: 8px;
        padding: 15px 0;
    }
    
    .pager a,
    .pager span.dots {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .pager .page-info {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        margin-left: 0;
    }
    
    /* 内容页 */
    .article-card {
        padding: 24px 16px;
    }
    
    .article-head h1 {
        font-size: 20px;
    }
    
    .article-meta {
        gap: 12px;
    }
    
    .article-body h2 {
        font-size: 18px;
    }
    
    .article-body h3 {
        font-size: 16px;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    /* 页脚 */
    .ft {
        padding: 50px 0 20px;
    }
    
    .ft-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 30px;
    }
    
    .ft-brand {
        max-width: 100%;
    }
    
    .ft-col h5 {
        margin-bottom: 12px;
    }
    
    .ft-bottom {
        padding-top: 20px;
    }
    
    .ft-bottom p {
        font-size: 12px;
        line-height: 1.8;
    }
}

/* ============================================
   小屏幕
   ============================================ */
@media (max-width: 480px) {
    .intro-title {
        font-size: 26px;
    }
    
    .intro-right {
        grid-template-columns: 1fr;
    }
    
    .feat-grid {
        grid-template-columns: 1fr;
    }
    
    .data-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .sect-head h2 {
        font-size: 22px;
    }
    
    .page-top h1 {
        font-size: 22px;
    }
    
    .article-head h1 {
        font-size: 18px;
    }
}