/* ==========================================================================
   TxtPress Theme: Heavy Industry & Pipe Solutions (重工业与管业专属主题)
   ========================================================================== */

/* --- 1. 全局变量与基础样式 (工业级色彩与质感) --- */
:root {
    /* 核心色彩 - 工业蓝与安全橙 */
    --primary-color: #0B192C; /* 极深工业蓝 */
    --secondary-color: #1E3E62; /* 钢管蓝 */
    --accent-color: #FF6500; /* 安全警示橙 / 铜管色 */
    --accent-hover: #CC5200;
    
    /* 中性灰度 - 金属与混凝土质感 */
    --text-main: #2D3748;
    --text-muted: #718096;
    --bg-body: #F4F6F8; /* 浅灰基底 */
    --bg-surface: #FFFFFF;
    --border-light: #E2E8F0;
    --border-dark: #A0AEC0;
    
    /* 质感与视觉属性 */
    --radius-sm: 2px; /* 更硬朗的直角/小圆角 */
    --radius-md: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 2px 4px rgba(11, 25, 44, 0.08);
    --shadow-md: 0 6px 12px rgba(11, 25, 44, 0.12);
    --shadow-lg: 0 15px 30px rgba(11, 25, 44, 0.15);
    --transition: all 0.3s ease-in-out;

    /* 纯CSS金属管材渐变预设 */
    --pipe-gradient-steel: linear-gradient(90deg, #A0AEC0 0%, #EDF2F7 40%, #FFFFFF 50%, #E2E8F0 60%, #718096 100%);
    --pipe-gradient-copper: linear-gradient(90deg, #C05621 0%, #F6AD55 40%, #FEEBC8 50%, #ED8936 60%, #9C4221 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: "Segoe UI", "Microsoft YaHei", Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-body);
    /* 纯CSS背景：隐约的工程图纸网格 */
    background-image: 
        linear-gradient(rgba(11, 25, 44, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 25, 44, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }

h1, h2, h3, h4, h5, h6 { 
    color: var(--primary-color); 
    font-weight: 800; 
    line-height: 1.3; 
}

h2 { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 4rem; 
    position: relative; 
    text-transform: uppercase;
    letter-spacing: 2px;
}
/* 标题底部的"管道"修饰 */
h2::after { 
    content: ''; 
    position: absolute; 
    bottom: -18px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 80px; 
    height: 6px; 
    background: var(--pipe-gradient-copper); 
    border-radius: 10px; 
    box-shadow: 0 2px 4px rgba(255, 101, 0, 0.3);
}

section { padding: 100px 0; }
section:nth-of-type(even) { background-color: var(--bg-surface); }

/* 全局按钮样式：硬朗工业风 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background-color: var(--accent-color);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-size: 1.05rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-45deg);
    transition: left 0.4s ease;
    z-index: -1;
}
.btn:hover::before { left: 100%; }
.btn:hover { 
    background-color: var(--accent-hover); 
    border-color: var(--accent-hover);
    box-shadow: var(--shadow-md); 
}

/* --- 2. 头部导航 (厚重基建风格) --- */
.main-header { 
    background-color: var(--bg-surface); 
    border-bottom: 4px solid var(--accent-color);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%; 
    box-shadow: var(--shadow-md);
}
.main-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 90px; 
}
.logo { 
    font-size: 1.8rem; 
    font-weight: 900; 
    color: var(--primary-color); 
    text-decoration: none; 
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Logo旁边的纯CSS徽标(象征管口) */
.logo::before {
    content: '';
    display: inline-block;
    width: 32px; height: 32px;
    border: 6px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    transform: rotate(45deg);
}

.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(--primary-color); 
    font-weight: 700; 
    font-size: 1.05rem;
    transition: var(--transition);
    padding: 10px 0;
}
.main-nav ul li a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 3px; background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.main-nav ul li a:hover, .main-nav ul li a.active { color: 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(--primary-color); font-family: inherit; }

/* --- 3. 首页 Hero 区域 (重工业管道交织背景) --- */
#hero {
    background-color: var(--primary-color);
    position: relative;
    color: #FFFFFF; 
    height: 80vh; 
    min-height: 650px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 0 20px;
    overflow: hidden;
    z-index: 1;
}
/* 背景巨型 CSS 管道与工程条纹 */
#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 警示条纹 + 金属质感底色 */
    background: 
        repeating-linear-gradient( 45deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2) 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 40px ),
        radial-gradient(circle at 50% 50%, var(--secondary-color) 0%, var(--primary-color) 100%);
    z-index: -2;
}
/* 贯穿屏幕的 CSS "巨型主管道" */
#hero::after {
    content: '';
    position: absolute;
    bottom: -150px; right: -100px;
    width: 600px; height: 600px;
    border: 120px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: -1;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px;
    background: rgba(11, 25, 44, 0.6);
    border-left: 8px solid var(--accent-color);
    backdrop-filter: blur(10px);
}
#hero h1 { 
    font-size: 4.5rem; 
    color: #FFFFFF; 
    margin-bottom: 1.5rem; 
    letter-spacing: 2px;
    font-weight: 900;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}
#hero p { 
    font-size: 1.3rem; 
    color: #E2E8F0;
    margin: 0 auto 3.5rem; 
    font-weight: 400;
    line-height: 1.8;
}
#hero .btn { font-size: 1.1rem; padding: 16px 45px; }

/* --- 4. 核心服务 (稳固金属铭牌卡片) --- */
#solutions { background-color: var(--bg-body); }
.solutions-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px; 
}
.solution-card { 
    background-color: var(--bg-surface); 
    padding: 50px 40px; 
    border-radius: var(--radius-sm); 
    box-shadow: var(--shadow-sm); 
    border: 1px solid var(--border-light);
    border-bottom: 6px solid var(--secondary-color); /* 底部厚重基座 */
    transition: var(--transition);
    position: relative;
}
.solution-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg); 
    border-bottom-color: var(--accent-color);
}
.solution-card h3 { 
    font-size: 1.4rem; 
    margin-bottom: 15px;
    color: var(--primary-color); 
}
.solution-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- 纯CSS 重绘管业专属图标 (覆写原有class) --- */
.solution-icon { 
    width: 64px; height: 64px; 
    margin-bottom: 30px; 
    position: relative; 
    background: transparent;
    color: var(--accent-color);
}
.solution-icon::before, .solution-icon::after { 
    content: ''; position: absolute; box-sizing: border-box; 
    /* 重置原始样式 */ border: none; background: none; border-radius: 0; box-shadow: none; transform: none; top: auto; left: auto; bottom: auto; right: auto; width: auto; height: auto;
}

/* 原云服务 -> L型拼接管件 */
.icon-cloud::before { 
    width: 45px; height: 45px; 
    border-bottom: 12px solid var(--accent-color); 
    border-left: 12px solid var(--accent-color); 
    border-radius: 0 0 0 16px; /* 管道弯头 */
    top: 10px; left: 10px; 
}
.icon-cloud::after { /* 管口法兰盘 */
    width: 24px; height: 6px; background: var(--secondary-color);
    top: 5px; left: 5px; border-radius: 2px;
    box-shadow: 33px 44px 0 var(--secondary-color); /* 利用阴影画另一个管口 */
}

/* 原数据分析 -> 并排多管与流体 */
.icon-data::before { 
    width: 14px; height: 50px; background: var(--secondary-color);
    bottom: 5px; left: 10px; border-radius: 2px;
    box-shadow: 20px 0 0 var(--secondary-color), 40px 0 0 var(--secondary-color);
}
.icon-data::after { /* 连接横管 */
    width: 54px; height: 14px; background: var(--accent-color);
    bottom: 22px; left: 5px; border-radius: 2px;
}

/* 原AI -> 工业阀门轮盘 */
.icon-ai::before {
    width: 50px; height: 50px; border: 8px solid var(--secondary-color); border-radius: 50%;
    top: 7px; left: 7px;
}
.icon-ai::after { /* 十字阀门骨架 */
    width: 8px; height: 50px; background: var(--secondary-color);
    top: 7px; left: 28px;
    box-shadow: 0 0 0 0 var(--secondary-color); /* 清除旧阴影 */
}
.icon-ai { /* 伪造水平交叉杠 */
    background: linear-gradient(transparent 28px, var(--secondary-color) 28px, var(--secondary-color) 36px, transparent 36px);
}

/* 原安全防护 -> 工业六角螺母/加固件 */
.icon-security::before { 
    width: 56px; height: 32px; background: transparent;
    border-top: 16px solid var(--accent-color); border-bottom: 16px solid var(--accent-color);
    top: 16px; left: 4px;
}
.icon-security::after {
    width: 32px; height: 56px; background: var(--bg-surface); border: 8px solid var(--accent-color); border-radius: 50%;
    top: 4px; left: 16px;
}

/* 原物联网 -> 循环流通/过滤环 */
.icon-iot::before { 
    width: 48px; height: 48px; border: 6px solid var(--secondary-color); border-radius: 50%;
    top: 8px; left: 8px; background: transparent;
    border-top-color: transparent; border-bottom-color: transparent;
}
.icon-iot::after { 
    width: 24px; height: 24px; background: var(--accent-color); border-radius: 50%;
    top: 20px; left: 20px; border: none; transform: none;
}

/* 原咨询 -> 工程图纸/规制板 */
.icon-consult::before { 
    width: 40px; height: 50px; border: 4px solid var(--secondary-color); border-radius: 0;
    top: 5px; left: 12px;
}
.icon-consult::after { /* 图纸内部刻度线 */
    width: 20px; height: 4px; background: var(--accent-color);
    top: 15px; left: 22px; transform: none; border: none;
    box-shadow: 0 10px 0 var(--accent-color), 0 20px 0 var(--accent-color);
}

/* --- 5. 关于我们 (纯CSS 3D管道交错视觉) --- */
#about { background-color: var(--bg-surface); }
#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; color: var(--primary-color); }
.about-text p { margin-bottom: 1.2rem; color: var(--text-main); font-size: 1.1rem; }
.about-action { margin-top: 3rem; }

/* 纯CSS 绘制立体管道穿插网 */
.about-visual {
    flex: 1; 
    height: 450px; 
    background: var(--primary-color);
    border-radius: var(--radius-sm); 
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    box-shadow: inset 0 0 0 10px var(--secondary-color);
}
/* 垂直钢管 */
.about-visual::before {
    content: ''; position: absolute;
    width: 100px; height: 120%;
    background: var(--pipe-gradient-steel);
    left: 25%; top: -10%;
    box-shadow: 15px 0 30px rgba(0,0,0,0.6);
    border-left: 2px solid #FFFFFF;
    z-index: 1;
}
/* 水平铜管 (穿过钢管) */
.about-visual::after {
    content: ''; position: absolute;
    height: 120px; width: 90%;
    background: var(--pipe-gradient-copper);
    top: 35%; right: -5%;
    border-radius: 60px 0 0 60px; /* 管道封头效果 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    border-top: 2px solid #FBD38D;
    z-index: 0;
}
.about-visual span { 
    z-index: 2; 
    color: #FFFFFF; 
    font-size: 2rem; 
    font-weight: 900; 
    letter-spacing: 4px;
    background: var(--primary-color);
    padding: 20px 40px;
    border: 4px solid var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* --- 6. 资讯中心 (硬派工程风格卡片) --- */
#news, #content { background-color: var(--bg-body); }
.news-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); 
    gap: 40px; 
}
.news-card {
    background-color: var(--bg-surface); 
    border: 1px solid var(--border-light);
    border-radius: 0; /* 直角显硬朗 */
    box-shadow: var(--shadow-sm);
    overflow: hidden; 
    display: flex; flex-direction: column; 
    transition: var(--transition);
}
.news-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-lg); 
}

/* 无图片时的工程底纹封面 */
.news-cover {
    height: 240px; width: 100%; 
    overflow: hidden; position: relative;
    background-color: var(--secondary-color);
    display: flex; align-items: center; justify-content: center;
}
/* 利用工业警示条纹与金属拉丝充当默认封面图 */
.news-card:nth-child(3n+1) .news-cover { background: repeating-linear-gradient(45deg, #1E3E62, #1E3E62 15px, #0B192C 15px, #0B192C 30px); }
.news-card:nth-child(3n+2) .news-cover { background: var(--pipe-gradient-steel); }
.news-card:nth-child(3n+3) .news-cover { background: repeating-linear-gradient(-45deg, #FF6500, #FF6500 20px, #2D3748 20px, #2D3748 40px); }

.news-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s ease;
}
.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: 10px; 
    text-transform: uppercase; font-weight: bold;
}
.news-meta a { color: var(--accent-color); text-decoration: none; }
.news-meta a:hover { text-decoration: underline; }

.news-content h4 { font-size: 1.4rem; margin-bottom: 15px; line-height: 1.4; }
.news-content h4 a { text-decoration: none; color: var(--primary-color); transition: color 0.2s; }
.news-content h4 a:hover { color: var(--accent-color); }

.news-content p { flex-grow: 1; margin-bottom: 25px; font-size: 1.05rem; color: var(--text-muted); }
.read-more-link { 
    text-decoration: none; color: var(--primary-color); 
    font-weight: 800; font-size: 1rem; align-self: flex-start; 
    display: inline-flex; align-items: center; transition: var(--transition);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}
.read-more-link:hover { color: var(--accent-color); padding-right: 10px; }

/* --- 7. FAQ 工程折叠面板 --- */
#faq { background-color: var(--bg-surface); }
.faq-accordion { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item { 
    background: var(--bg-body);
    border: 2px solid var(--border-light);
    border-left: 8px solid var(--secondary-color); /* 左侧加粗识别带 */
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active { border-left-color: var(--accent-color); box-shadow: var(--shadow-md); background: var(--bg-surface); }
.faq-question {
    width: 100%; background: none; border: none; text-align: left; padding: 25px 30px;
    font-size: 1.2rem; font-weight: 700; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; color: var(--primary-color);
    font-family: inherit; /* 修正：让按钮继承全局的重工业风字体 */
}
/* 纯CSS 十字形开关 (类似螺丝/阀门) */
.faq-question::after { 
    content: '+'; 
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    background: var(--border-light); color: var(--primary-color);
    border-radius: 50%; font-size: 1.5rem; font-weight: normal;
    transition: all 0.3s ease;
}
.faq-item.active .faq-question::after { 
    content: '−'; background: var(--accent-color); color: #FFF; transform: rotate(180deg);
}
.faq-answer { 
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease; 
}
.faq-item.active .faq-answer { border-top: 1px dashed var(--border-dark); }
.faq-answer p {
    color: var(--text-main); font-size: 1.05rem; padding: 25px 30px; margin: 0;
}

/* --- 8. Footer (硬派底部装甲底座) --- */
.main-footer { 
    background-color: var(--primary-color); 
    color: #CBD5E1; 
    padding: 100px 0 30px; 
    margin-top: auto; 
    border-top: 10px solid var(--accent-color); 
    position: relative;
}
/* 底部铆钉装饰效果 */
.main-footer::before {
    content: ''; position: absolute; top: -10px; left: 0; width: 100%; height: 10px;
    background-image: radial-gradient(circle at 10px 5px, rgba(0,0,0,0.5) 3px, transparent 4px);
    background-size: 40px 10px;
}
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 50px; margin-bottom: 60px; }
.footer-column { flex: 1; min-width: 250px; }
.footer-column h4 { color: #FFFFFF; margin-bottom: 1.8rem; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-column p { font-size: 1rem; line-height: 1.8; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 15px; }
.footer-column ul li a { 
    color: #CBD5E1; text-decoration: none; font-size: 1rem; 
    transition: color 0.3s ease; display: inline-block;
}
.footer-column ul li a::before { content: '▸ '; color: var(--accent-color); font-weight: bold;}
.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.1); font-size: 0.95rem; }

/* --- 9. 内容页 (CMS文章页面) 大气排版 --- */
.page-container { padding: 60px 0 120px; background-color: var(--bg-body); }

/* 单页宽度拉伸，背景使用极简白加硬边框 */
.single-post-wrapper { 
    max-width: 960px; 
    margin: 0 auto; 
    background: var(--bg-surface); 
    padding: 60px; 
    border-top: 8px solid var(--secondary-color);
    box-shadow: var(--shadow-md); 
}

.breadcrumb { padding-bottom: 25px; font-size: 1rem; color: var(--text-muted); margin-bottom: 40px; font-weight: bold; }
.breadcrumb a { color: var(--primary-color); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-color); }
.breadcrumb span { margin: 0 15px; color: var(--border-dark); }

.page-header { text-align: left; margin-bottom: 50px; padding-bottom: 30px; border-bottom: 2px solid var(--border-light); }
.center-header { text-align: center; border-bottom: none; }
.page-header h1 { font-size: 3rem; color: var(--primary-color); letter-spacing: 1px; }
.page-meta { color: var(--text-muted); font-size: 1.05rem; margin-top: 20px; text-transform: uppercase; font-weight: 600;}
.page-meta a { color: var(--accent-color); text-decoration: none; }
.page-meta a:hover { border-bottom: 1px solid var(--accent-color); }

/* Markdown 工业风图文排版 */
.markdown-body { color: var(--text-main); font-size: 1.15rem; line-height: 1.9; word-wrap: break-word; }
.markdown-body h2 { font-size: 2rem; margin: 3rem 0 1.5rem; text-align: left; color: var(--primary-color); letter-spacing: 0; }
.markdown-body h2::after { display: none; }
.markdown-body h3 { font-size: 1.6rem; margin: 2.5rem 0 1.2rem; color: var(--secondary-color); border-left: 5px solid var(--accent-color); padding-left: 15px;}
.markdown-body p { margin-bottom: 1.8rem; }
.markdown-body ul, .markdown-body ol { padding-left: 25px; margin-bottom: 1.8rem; color: var(--text-main); }
.markdown-body li { margin-bottom: 0.8rem; }
.markdown-body img { max-width: 100%; height: auto; border: 4px solid var(--border-light); margin: 2.5rem auto; display: block; }
/* 引用块设计为工程图纸说明框 */
.markdown-body blockquote { 
    border-left: 6px solid var(--accent-color); 
    background-color: var(--bg-body); 
    padding: 25px 30px; margin: 2.5rem 0; 
    color: var(--primary-color); font-weight: 600; font-style: normal;
}
.markdown-body a { color: var(--accent-color); text-decoration: none; border-bottom: 2px solid rgba(255,101,0,0.3); transition: all 0.2s; }
.markdown-body a:hover { border-bottom-color: var(--accent-color); background: rgba(255,101,0,0.05); }
.markdown-body hr { border: 0; height: 4px; background: var(--border-light); margin: 4rem 0; }
.markdown-body pre { background: var(--primary-color); color: #E2E8F0; padding: 25px; border-radius: var(--radius-sm); border-left: 4px solid var(--secondary-color); overflow-x: auto; margin-bottom: 2.5rem; font-size: 1rem; }
.markdown-body code { font-family: Consolas, "Courier New", monospace; background: var(--bg-body); color: #C05621; padding: 2px 8px; font-weight: bold; font-size: 0.9em; }
.markdown-body pre code { background: none; color: inherit; padding: 0; font-weight: normal; }

.post-tags { margin-top: 60px; padding-top: 40px; border-top: 2px solid var(--border-light); display: flex; flex-wrap: wrap; gap: 15px; }
.tag-pill { 
    display: inline-block; background: var(--bg-surface); padding: 10px 20px; 
    border: 1px solid var(--border-dark); color: var(--accent-color); text-decoration: none; 
    font-size: 0.95rem; font-weight: bold; transition: var(--transition); text-transform: uppercase;
}
/* 修正：移除了 tag-pill:before 生成的双井号，因为 index.php 内部已经自带了 # 符号 */
.tag-pill:hover { background: var(--primary-color); color: #FFFFFF; border-color: var(--primary-color); }

.post-navigation { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 40px; border-top: 2px solid var(--border-light); }
.nav-next, .nav-prev { max-width: 48%; text-decoration: none; color: var(--primary-color); font-weight: 800; font-size: 1.1rem; line-height: 1.5; transition: color 0.2s; }
.nav-next:hover, .nav-prev:hover { color: var(--accent-color); }
.nav-next span, .nav-prev span { display: block; font-size: 0.9rem; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.nav-next { text-align: right; }

/* 分页控件：仪表盘式的硬朗设计 */
.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: 48px; height: 48px; border: 2px solid var(--border-dark); 
    background: var(--bg-surface); color: var(--primary-color); 
    text-decoration: none; transition: var(--transition); font-weight: bold; font-size: 1.2rem;
}
.page-btn:hover { background-color: var(--primary-color); color: #FFF; border-color: var(--primary-color); }
.page-current { display: inline-flex; align-items: center; height: 48px; padding: 0 25px; font-weight: 900; color: #FFF; background: var(--secondary-color); letter-spacing: 2px; }

/* 404 & 无内容 */
.error-page { text-align: center; padding: 150px 0; }
.error-page h1 { font-size: 8rem; color: var(--accent-color); margin-bottom: 20px; font-weight: 900; text-shadow: 4px 4px 0 var(--border-dark); }
.error-page p { font-size: 1.5rem; margin-bottom: 50px; color: var(--text-main); font-weight: bold; }

.no-content { 
    grid-column: 1 / -1; text-align: center; padding: 80px 20px; 
    color: var(--text-muted); font-size: 1.2rem; font-weight: bold;
    background: var(--bg-surface); border: 2px dashed var(--border-dark); 
}

/* --- 10. 响应式适配 --- */
@media (max-width: 1024px) { 
    h2 { font-size: 2.2rem; } 
    #hero h1 { font-size: 3.5rem; }
    .about-visual { height: 350px; }
    .single-post-wrapper { padding: 40px 30px; }
}

@media (max-width: 768px) {
    .main-header .container { height: 80px; }
    .logo { font-size: 1.5rem; }
    .menu-toggle { display: block; }
    
    .main-nav { 
        position: absolute; top: 80px; left: 0; width: 100%; 
        background-color: var(--primary-color); flex-direction: column; 
        max-height: 0; overflow: hidden; transition: max-height 0.5s ease; 
        box-shadow: var(--shadow-md); border-top: 4px solid var(--accent-color);
    }
    /* 修正：提升了移动端展开菜单的最大高度阈值，防止以后客户加新分类时被切断 */
    .main-nav.active { max-height: 800px; }
    .main-nav ul { flex-direction: column; padding: 0; }
    .main-nav ul li { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .main-nav ul li:last-child { border-bottom: none; }
    .main-nav ul li a { display: block; padding: 20px 24px; color: #FFF; }
    .main-nav ul li a::after { display: none; }
    .main-nav ul li a:hover, .main-nav ul li a.active { background: rgba(255,255,255,0.05); color: var(--accent-color); }
    
    #hero { height: auto; padding: 150px 20px 100px; }
    #hero::after { display: none; } /* 移动端隐藏过大的背景圆环 */
    #hero h1 { font-size: 2.8rem; }
    #hero p { font-size: 1.1rem; }
    .hero-content { padding: 40px 25px; }
    
    #about .about-content { flex-direction: column; gap: 50px; }
    .footer-content { flex-direction: column; gap: 40px; }
    
    .single-post-wrapper { padding: 30px 20px; border-top-width: 5px; }
    .page-header h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) { 
    section { padding: 70px 0; } 
    h2 { font-size: 1.8rem; margin-bottom: 3rem; } 
    .news-cover { height: 200px; }
    .page-header h1 { font-size: 1.8rem; }
    .post-navigation { flex-direction: column; gap: 30px; }
    .nav-next, .nav-prev { max-width: 100%; }
    .nav-next { text-align: left !important; }
}