/* ==========================================================================
   TxtPress Theme: Optical Glass Tech (拟真玻璃科技主题 - 最终优化版)
   Designed for Glass Technology Company
   ========================================================================== */

/* --- 1. 全局变量与光学色彩体系 --- */
:root {
    /* 玻璃体光学色彩 */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-highlight: rgba(255, 255, 255, 1);
    --glass-shadow: 0 8px 32px 0 rgba(14, 30, 37, 0.06);
    --glass-shadow-hover: 0 12px 40px 0 rgba(14, 30, 37, 0.12);
    
    /* 科技感点缀色 (光学蓝/青/紫外光) */
    --primary-color: #0B2447; /* 极深蓝，用于主标题保证对比度 */
    --secondary-color: #0072C6; /* 光学折射蓝 */
    --accent-color: #00D2FF; /* 高能激光青 */
    
    /* 文本与细节 */
    --text-main: #192841;
    --text-muted: #4B5A73;
    --border-light: rgba(255, 255, 255, 0.5);
    
    /* 视觉空间属性 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 全局重置与基础 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

/* 炫光漫反射背景 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: #F0F4F8;
    /* 纯CSS模拟光栅与多重光源折射 */
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 210, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 114, 198, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(138, 43, 226, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 255, 170, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: 100vw 100vh;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* 玻璃态滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.2); }
::-webkit-scrollbar-thumb { background: rgba(0, 114, 198, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 114, 198, 0.6); }

main { flex: 1; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 30px; width: 100%; }

/* 全局标题排版 */
h1, h2, h3, h4, h5, h6 { 
    color: var(--primary-color); 
    font-weight: 700; 
    letter-spacing: -0.5px;
}

h2 { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 4rem; 
    position: relative; 
    background: linear-gradient(135deg, #0B2447, #0072C6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* 标题下的科技刻度线 */
h2::after { 
    content: ''; 
    position: absolute; 
    bottom: -15px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60px; 
    height: 4px; 
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px; 
}

section { padding: 120px 0; position: relative; z-index: 1; }

/* 玻璃高光交互按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 36px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    border: 1px solid var(--glass-highlight);
    box-shadow: 0 4px 15px rgba(0, 114, 198, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
/* 按钮镜面扫光动画 */
.btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: var(--transition);
}
.btn:hover { 
    background: var(--secondary-color); 
    color: #FFFFFF; 
    box-shadow: 0 8px 25px rgba(0, 114, 198, 0.3); 
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}
.btn:hover::before { left: 200%; transition: left 0.8s ease-in-out; }

/* --- 2. 悬浮玻璃导航栏 --- */
.main-header { 
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%; 
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { 
    font-size: 1.6rem; font-weight: 800; 
    background: linear-gradient(135deg, #0B2447, #0072C6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-decoration: none; letter-spacing: 1px;
    position: relative;
}
.main-nav ul { display: flex; list-style: none; }
.main-nav ul li { margin-left: 45px; position: relative; }
.main-nav ul li a { 
    text-decoration: none; color: var(--text-muted); 
    font-weight: 600; font-size: 1rem; transition: var(--transition);
    padding: 10px 0;
}
.main-nav ul li a:hover, .main-nav ul li a.active { color: var(--secondary-color); }
/* 导航游标光效 */
.main-nav ul li a::after {
    content: ''; position: absolute; bottom: -5px; left: 50%;
    width: 0; height: 3px; background: var(--accent-color);
    transition: var(--transition); transform: translateX(-50%);
    border-radius: 5px; box-shadow: 0 0 8px var(--accent-color);
}
.main-nav ul li a:hover::after, .main-nav ul li a.active::after { width: 100%; }
.menu-toggle { display: none; cursor: pointer; background: none; border: none; font-size: 2rem; color: var(--secondary-color); }

/* --- 3. 首屏透视感 Hero 区域 --- */
#hero {
    position: relative;
    height: 90vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden;
}
/* 纯CSS光学漫反射球体 */
#hero::before, #hero::after {
    content: ''; position: absolute; border-radius: 50%; z-index: -1;
    filter: blur(100px); animation: float 12s infinite cubic-bezier(0.4, 0, 0.2, 1) alternate;
}
#hero::before {
    width: 50vw; height: 50vw; background: rgba(0, 114, 198, 0.15);
    top: -10vw; left: -10vw;
}
#hero::after {
    width: 40vw; height: 40vw; background: rgba(0, 210, 255, 0.15);
    bottom: -10vw; right: -5vw; animation-delay: -6s;
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
    background: var(--glass-bg);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-highlight);
    box-shadow: var(--glass-shadow);
    padding: 80px 60px; border-radius: var(--radius-lg);
    max-width: 900px; width: 90%;
    animation: glassFadeUp 1s ease-out;
}
@keyframes glassFadeUp {
    from { opacity: 0; transform: translateY(40px) scale(0.98); backdrop-filter: blur(0px); }
    to { opacity: 1; transform: translateY(0) scale(1); backdrop-filter: blur(24px); }
}
#hero h1 { 
    font-size: 4.5rem; margin-bottom: 1.5rem; font-weight: 800; letter-spacing: -2px;
    background: linear-gradient(to right, #0B2447, #0072C6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
#hero p { font-size: 1.25rem; color: var(--text-muted); margin: 0 auto 3.5rem; max-width: 700px; }
#hero .btn { background: var(--secondary-color); color: #fff; border: none; box-shadow: 0 10px 30px rgba(0, 114, 198, 0.4); padding: 18px 45px; font-size: 1.1rem; }
#hero .btn:hover { background: #005A9E; transform: translateY(-3px) scale(1.02); }

/* --- 4. 解决方案 (毛玻璃矩阵) --- */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }
.solution-card { 
    background: var(--glass-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 50px 40px; 
    border-radius: var(--radius-md); 
    box-shadow: var(--glass-shadow); 
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
/* 卡片悬浮光学光斑 */
.solution-card::before {
    content: ''; position: absolute; top: -50px; right: -50px;
    width: 100px; height: 100px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,210,255,0.2) 0%, transparent 70%);
    transition: var(--transition); opacity: 0;
}
.solution-card:hover { transform: translateY(-10px); background: var(--glass-bg-hover); box-shadow: var(--glass-shadow-hover); border-color: #fff; }
.solution-card:hover::before { opacity: 1; transform: scale(2.5); }

.solution-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--primary-color); position: relative; z-index: 1;}
.solution-card p { color: var(--text-muted); font-size: 1rem; position: relative; z-index: 1;}

/* 重写线条图标 - 光学镭射风格 */
.solution-icon { 
    width: 60px; height: 60px; margin-bottom: 30px; position: relative; 
    color: var(--secondary-color); filter: drop-shadow(0 4px 6px rgba(0, 114, 198, 0.2));
}
.solution-icon::before, .solution-icon::after { content: ''; position: absolute; box-sizing: border-box; transition: var(--transition); }
.solution-card:hover .solution-icon { color: var(--accent-color); transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5)); }
.icon-cloud::before { width: 44px; height: 26px; border: 2.5px solid currentColor; border-radius: 20px; top: 18px; left: 6px; }
.icon-cloud::after { width: 22px; height: 22px; border: 2.5px solid currentColor; border-radius: 50%; top: 7px; left: 18px; border-bottom: none; border-right: none; transform: rotate(45deg); }
.icon-data::before { width: 14px; height: 24px; border: 2.5px solid currentColor; bottom: 8px; left: 12px; border-radius: 3px; background: rgba(0,114,198,0.1); }
.icon-data::after { width: 14px; height: 38px; border: 2.5px solid currentColor; bottom: 8px; left: 32px; border-radius: 3px; background: rgba(0,114,198,0.1); }
.icon-ai::before { width: 34px; height: 34px; border: 2.5px solid currentColor; border-radius: 6px; top: 13px; left: 13px; }
.icon-ai::after { width: 12px; height: 12px; background: currentColor; border-radius: 50%; top: 24px; left: 24px; box-shadow: -18px -18px 0 -3px currentColor, 18px 18px 0 -3px currentColor; }
.icon-security::before { width: 38px; height: 42px; border: 2.5px solid currentColor; border-radius: 0 0 18px 18px; top: 9px; left: 11px; border-top: none; }
.icon-security::after { width: 44px; height: 10px; border-top: 2.5px solid currentColor; border-radius: 50% 50% 0 0; top: 9px; left: 8px; }
.icon-iot::before { width: 14px; height: 14px; background: currentColor; border-radius: 50%; top: 28px; left: 23px; }
.icon-iot::after { width: 36px; height: 36px; border: 2.5px solid currentColor; border-radius: 50%; top: 17px; left: 12px; border-bottom-color: transparent; border-left-color: transparent; transform: rotate(-45deg); }
.icon-consult::before { width: 38px; height: 28px; border: 2.5px solid currentColor; border-radius: 8px; top: 12px; left: 11px; }
.icon-consult::after { width: 12px; height: 12px; border-bottom: 2.5px solid currentColor; border-right: 2.5px solid currentColor; top: 32px; left: 18px; transform: rotate(45deg); }

/* --- 5. 关于我们 (空间折射幻影) --- */
#about .about-content { display: flex; align-items: center; gap: 80px; }
.about-text { flex: 1; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.9; }
.about-action { margin-top: 3rem; }

/* 纯CSS模拟三维错位玻璃面板（替换原图） */
.about-visual {
    flex: 1; height: 450px; 
    position: relative; perspective: 1200px;
    display: flex; align-items: center; justify-content: center;
}
.about-visual::before, .about-visual::after {
    content: ''; position: absolute;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
/* 后置玻璃层 */
.about-visual::before {
    width: 70%; height: 80%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(0, 114, 198, 0.1));
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: rotateY(15deg) rotateZ(-5deg) translateZ(-80px) translateX(30px);
    box-shadow: -20px 20px 40px rgba(0,0,0,0.05);
}
/* 前置玻璃层 */
.about-visual::after {
    width: 65%; height: 75%;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.1));
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transform: rotateY(15deg) rotateZ(5deg) translateZ(40px) translateX(-30px);
    box-shadow: 20px 30px 50px rgba(0,0,0,0.08);
}
.about-visual:hover::before { transform: rotateY(5deg) rotateZ(-2deg) translateZ(-40px) translateX(10px); }
.about-visual:hover::after { transform: rotateY(5deg) rotateZ(2deg) translateZ(20px) translateX(-10px); }
/* 中心文字标识悬浮于最上层 */
.about-visual span { 
    z-index: 2; color: var(--primary-color); font-size: 1.8rem; font-weight: 800; letter-spacing: 4px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
    padding: 20px 40px; border-radius: var(--radius-sm); border: 1px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateZ(100px);
}

/* --- 6. 资讯中心 (透镜卡片) --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }
.news-card {
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-md); 
    box-shadow: var(--glass-shadow); overflow: hidden; 
    display: flex; flex-direction: column; transition: var(--transition);
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--glass-shadow-hover); border-color: #fff; }

/* 封面占位符 - 纯CSS光学渐变代替原背景 */
.news-cover {
    height: 240px; width: 100%; position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
}
/* 封面内模拟玻璃折射的几何块 */
.news-cover::before {
    content: ''; position: absolute; width: 150%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-30deg) translateX(-150%); transition: 0.8s;
}
.news-card:hover .news-cover::before { transform: skewX(-30deg) translateX(150%); }

.news-card:nth-child(3n+1) .news-cover { background: linear-gradient(135deg, #A1C4FD, #C2E9FB); }
.news-card:nth-child(3n+2) .news-cover { background: linear-gradient(135deg, #84FAB0, #8FD3F4); }
.news-card:nth-child(3n+3) .news-cover { background: linear-gradient(135deg, #E0C3FC, #8EC5FC); }

/* 修复图片撑不满的边缘情况 */
.news-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; mix-blend-mode: multiply;}
.news-card:hover .news-cover img { transform: scale(1.08); }

.news-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.news-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; display: flex; gap: 12px; }
.news-meta a { color: var(--secondary-color); text-decoration: none; font-weight: 600; padding: 2px 10px; background: rgba(0, 114, 198, 0.1); border-radius: 20px;}
.news-content h4 { font-size: 1.35rem; margin-bottom: 12px; line-height: 1.4; }
.news-content h4 a { text-decoration: none; color: var(--primary-color); transition: var(--transition); }
.news-content h4 a:hover { color: var(--secondary-color); }
.news-content p { flex-grow: 1; margin-bottom: 25px; font-size: 1rem; color: var(--text-muted); }
.read-more-link { 
    text-decoration: none; color: var(--secondary-color); font-weight: 700; font-size: 0.95rem; 
    align-self: flex-start; display: inline-flex; align-items: center; transition: var(--transition);
}
.read-more-link:hover { transform: translateX(8px); color: var(--primary-color); }

/* --- 7. FAQ 折叠面板 (层叠玻璃质感) --- */
.faq-accordion { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item { 
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow); overflow: hidden; transition: var(--transition);
}
.faq-item:hover { border-color: var(--glass-highlight); }
.faq-question {
    width: 100%; background: none; border: none; text-align: left; padding: 25px 30px;
    font-size: 1.15rem; font-weight: 700; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; color: var(--primary-color);
}
.faq-question::after { 
    content: '+'; font-size: 1.8rem; font-weight: 300; color: var(--secondary-color);
    transition: transform 0.4s ease; line-height: 1;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); color: var(--accent-color); }
/* 由 JS 注入实际高度，避免硬编码 1000px 造成动画延迟 */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0, 1, 0, 1); }
.faq-item.active .faq-answer { transition: max-height 0.8s ease-in-out; }
.faq-answer p { color: var(--text-muted); font-size: 1.05rem; padding: 0 30px 25px; margin: 0; border-top: 1px dashed rgba(0,0,0,0.05); margin-top: -5px; padding-top: 20px;}

/* --- 8. 宽屏晶体内容页 (文章内页/页面) --- */
.page-container { padding: 60px 0 120px; }
.single-post-wrapper { 
    max-width: 960px; /* 放宽排版边界，更具呼吸感 */
    margin: 0 auto; 
    background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding: 60px 80px; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--glass-highlight); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.05); 
}

.breadcrumb { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 40px; display: flex; align-items: center; }
.breadcrumb a { color: var(--secondary-color); text-decoration: none; font-weight: 600; background: rgba(255,255,255,0.5); padding: 4px 12px; border-radius: 12px;}
.breadcrumb a:hover { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.breadcrumb span { margin: 0 12px; color: rgba(0,0,0,0.2); }

.page-header { text-align: left; margin-bottom: 50px; padding-bottom: 30px; border-bottom: 1px solid var(--glass-border); }
.center-header { text-align: center; border-bottom: none; }
.page-header h1 { font-size: 3rem; color: var(--primary-color); }
.page-meta { color: var(--text-muted); font-size: 1rem; margin-top: 15px; display: inline-flex; align-items: center; gap: 15px; }
.page-meta a { color: #fff; background: var(--secondary-color); padding: 2px 12px; border-radius: 20px; text-decoration: none; font-size: 0.9rem;}

/* Markdown 高级定制排版 */
.markdown-body { color: var(--text-main); font-size: 1.15rem; line-height: 1.9; }
.markdown-body h2 { font-size: 2rem; margin: 3rem 0 1.5rem; text-align: left; background: none; -webkit-text-fill-color: var(--primary-color); padding-left: 20px; position: relative;}
.markdown-body h2::after { display: none; }
/* 标题左侧光学指示条 */
.markdown-body h2::before {
    content: ''; position: absolute; left: 0; top: 10%; height: 80%; width: 6px;
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
    border-radius: 3px; box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}
.markdown-body h3 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--primary-color); }
.markdown-body p { margin-bottom: 1.8rem; }
.markdown-body ul, .markdown-body ol { padding-left: 20px; margin-bottom: 1.8rem; }
.markdown-body li { margin-bottom: 0.8rem; }
.markdown-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 2.5rem auto; box-shadow: var(--glass-shadow-hover); border: 4px solid #fff; }
.markdown-body blockquote { 
    border-left: 4px solid var(--secondary-color); 
    background: linear-gradient(to right, rgba(0, 114, 198, 0.05), transparent); 
    padding: 25px 30px; margin: 2.5rem 0; 
    border-radius: 0 var(--radius-md) var(--radius-md) 0; 
    font-style: italic; color: var(--secondary-color);
}
.markdown-body a { color: var(--secondary-color); text-decoration: none; box-shadow: inset 0 -2px 0 rgba(0, 114, 198, 0.3); transition: var(--transition); }
.markdown-body a:hover { background: rgba(0, 114, 198, 0.1); box-shadow: inset 0 -10px 0 rgba(0, 114, 198, 0.1); }
.markdown-body pre { background: var(--primary-color); padding: 25px; border-radius: var(--radius-md); overflow-x: auto; margin-bottom: 2.5rem; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);}
.markdown-body code { font-family: "SFMono-Regular", Consolas, monospace; background: rgba(0,0,0,0.05); color: #D83B01; padding: 3px 8px; border-radius: 6px; font-size: 0.9em; }
.markdown-body pre code { background: none; color: #A1C4FD; padding: 0; }
/* 补充科技风格表格样式 */
.markdown-body table { width: 100%; border-collapse: collapse; margin-bottom: 2.5rem; background: rgba(255,255,255,0.4); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.markdown-body th, .markdown-body td { border: 1px solid var(--glass-border); padding: 15px 20px; text-align: left; }
.markdown-body th { background: rgba(0, 114, 198, 0.1); color: var(--primary-color); font-weight: 700; }
.markdown-body tr:hover td { background: rgba(255,255,255,0.6); }

/* 标签与上下文导航 */
.post-tags { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--glass-border); display: flex; flex-wrap: wrap; gap: 12px; }
.tag-pill { 
    background: rgba(255,255,255,0.7); padding: 8px 20px; 
    border-radius: 30px; color: var(--primary-color); text-decoration: none; 
    font-size: 0.9rem; font-weight: 600; border: 1px solid #fff; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); transition: var(--transition); 
}
.tag-pill:hover { background: var(--secondary-color); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 114, 198, 0.3);}

/* 修复了当只有一篇导航时排版塌陷的问题 */
.post-navigation { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--glass-border); gap: 20px;}
.nav-next, .nav-prev { 
    flex: 1; text-decoration: none; color: var(--primary-color); 
    background: rgba(255,255,255,0.5); padding: 20px 25px; border-radius: var(--radius-md);
    font-weight: 700; line-height: 1.5; transition: var(--transition); border: 1px solid transparent;
}
.nav-next:hover, .nav-prev:hover { background: #fff; border-color: var(--glass-border); box-shadow: var(--glass-shadow); transform: scale(1.02);}
.nav-next { text-align: right; }
.nav-next span, .nav-prev span { display: block; font-size: 0.85rem; color: var(--secondary-color); font-weight: 500; margin-bottom: 8px; text-transform: uppercase; }
.post-navigation > div:not([class]) { flex: 1; } /* 为空缺的导航补齐占位宽度 */

/* 分页组件 (光学按钮) */
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 80px; }
.page-btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    width: 46px; height: 46px; background: rgba(255,255,255,0.5); backdrop-filter: blur(10px);
    border: 1px solid #fff; border-radius: 50%; color: var(--primary-color); 
    text-decoration: none; transition: var(--transition); font-weight: 700; font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.page-btn:hover { background: var(--secondary-color); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 114, 198, 0.3);}
.page-current { display: inline-flex; align-items: center; height: 46px; padding: 0 25px; font-weight: 700; color: #fff; background: var(--secondary-color); border-radius: 30px; box-shadow: 0 8px 20px rgba(0, 114, 198, 0.3); }

/* --- 9. 深色磨砂 Footer 底栏 --- */
.main-footer { 
    background: #0B1120; /* 深邃科技黑 */
    position: relative; overflow: hidden;
    color: #94A3B8; padding: 100px 0 30px; margin-top: auto; 
    border-top: 1px solid rgba(255,255,255,0.1);
}
/* 底部微光点缀 */
.main-footer::before {
    content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 60%; height: 200px; background: radial-gradient(ellipse, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 50px; margin-bottom: 60px; position: relative; z-index: 1;}
.footer-column { flex: 1; min-width: 240px; }
.footer-column h4 { color: #FFFFFF; margin-bottom: 1.8rem; font-size: 1.2rem; font-weight: 700; letter-spacing: 1px;}
.footer-column p { font-size: 0.95rem; line-height: 1.8; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 15px; }
.footer-column ul li a { color: #94A3B8; text-decoration: none; font-size: 0.95rem; transition: var(--transition); display: inline-block;}
.footer-column ul li a:hover { color: var(--accent-color); transform: translateX(5px); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; position: relative; z-index: 1;}

/* 404 及空状态 */
.error-page { text-align: center; padding: 150px 0; }
.error-page h1 { font-size: 8rem; background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; line-height: 1; text-shadow: 0 10px 30px rgba(0,210,255,0.2);}
.error-page p { font-size: 1.5rem; margin-bottom: 50px; color: var(--text-muted); }
.no-content { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--text-muted); background: var(--glass-bg); border: 2px dashed rgba(255,255,255,0.8); border-radius: var(--radius-md); font-size: 1.2rem; }

/* --- 10. 全响应式断点 (优化移动端内边距) --- */
@media (max-width: 1024px) { 
    h2 { font-size: 2.2rem; } 
    #hero h1 { font-size: 3.5rem; }
    .single-post-wrapper { padding: 50px; }
    .about-visual { height: 350px; }
}

@media (max-width: 768px) {
    /* 统一优化平板/移动端安全距离 */
    .container { padding: 0 20px; }
    .main-header .container { height: 75px; }
    .logo { font-size: 1.4rem; }
    .menu-toggle { display: block; }
    
    /* 移动端毛玻璃下拉菜单 */
    .main-nav { 
        position: absolute; top: 75px; left: 0; width: 100%; 
        background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column; max-height: 0; overflow: hidden; 
        transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
        box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-top: 1px solid rgba(255,255,255,0.5);
    }
    .main-nav.active { max-height: 400px; }
    .main-nav ul { flex-direction: column; padding: 10px 0; }
    .main-nav ul li { margin: 0; }
    .main-nav ul li a { display: block; padding: 16px 30px; font-size: 1.1rem; border-bottom: 1px solid rgba(0,0,0,0.03);}
    .main-nav ul li a::after { display: none; } /* 移动端去掉游标 */
    
    #hero { height: auto; min-height: auto; padding: 150px 0 100px; }
    .hero-content { padding: 40px 30px; width: 100%; }
    #hero h1 { font-size: 2.8rem; }
    #hero p { font-size: 1.1rem; }
    
    #about .about-content { flex-direction: column; gap: 50px; }
    .about-visual { width: 100%; max-width: 400px; margin: 0 auto; height: 300px; }
    .footer-content { flex-direction: column; gap: 40px; }
    
    /* 修正移动端文章容器宽度问题，去掉多余margin */
    .single-post-wrapper { padding: 35px 25px; border-radius: var(--radius-md); }
    .page-header h1 { font-size: 2.2rem; }
    .post-navigation { flex-direction: column; }
    .nav-next { text-align: left; }
    .post-navigation > div:not([class]) { display: none; } /* 纵向排列时隐藏占位div */
}

@media (max-width: 480px) { 
    .container { padding: 0 15px; } /* 更小屏幕的安全距离 */
    section { padding: 80px 0; } 
    h2 { font-size: 1.8rem; margin-bottom: 3rem; } 
    .news-cover { height: 200px; }
    .hero-content { padding: 30px 20px; }
    #hero h1 { font-size: 2.2rem; }
    .single-post-wrapper { padding: 30px 20px; }
    .page-header h1 { font-size: 1.8rem; }
    .faq-question { font-size: 1.05rem; padding: 20px; }
    .faq-answer p { padding: 0 20px 20px; }
}