/* ==========================================================================
   TxtPress Theme: Advanced Materials (工程材料/新材料企业主题)
   Design Concept: Precision, Structure, Composite Layers, Technical
   ========================================================================== */

/* --- 1. 核心材料科学变量系统 --- */
:root {
    /* 色彩: 碳灰与琥珀铜 (Carbon & Amber) */
    --mat-obsidian: #111827;     /* 极深灰/黑曜石 - 用于背景和主标题 */
    --mat-steel: #374151;        /* 钢灰 - 用于正文强调 */
    --mat-alloy: #6B7280;        /* 合金灰 - 用于次要文本 */
    --mat-copper: #D97706;       /* 琥珀铜/工业橙 - 核心高亮色 */
    --mat-copper-light: #F59E0B; /* 亮铜色 - 悬停交互 */
    --mat-concrete: #F3F4F6;     /* 混凝土灰白 - 整体背景 */
    --mat-surface: #FFFFFF;      /* 纯白 - 表面/卡片 */
    --mat-border: #E5E7EB;       /* 边框切割线 */
    
    /* 物理属性参数 */
    --radius-sharp: 0px;         /* 锐利直角 */
    --radius-micro: 2px;         /* 极微小圆角，模拟精密切割 */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-bold: 600;
    --weight-heavy: 800;
    
    /* 结构化阴影 (模拟材料的物理厚度) */
    --shadow-flat: 4px 4px 0px rgba(17, 24, 39, 0.1);
    --shadow-flat-hover: 6px 6px 0px rgba(217, 119, 6, 0.2);
    --shadow-depth: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    
    --transition-fast: all 0.2s ease-in-out;
    --transition-mat: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* 带有物理惯性的过渡 */
}

/* --- 全局重置与排版 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--mat-steel);
    background-color: var(--mat-concrete);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
/* 拓宽容器，展现工业大气 */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; width: 100%; }

h1, h2, h3, h4, h5, h6 { 
    color: var(--mat-obsidian); 
    font-weight: var(--weight-bold); 
    line-height: 1.25; 
    letter-spacing: -0.02em;
}

/* 模块标题：带有左侧工业警示线/材料测量线风格 */
h2 { 
    font-size: 2.25rem; 
    text-align: left; 
    margin-bottom: 3rem; 
    position: relative; 
    padding-left: 20px;
    display: flex;
    align-items: center;
}
h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 100%;
    background: var(--mat-copper);
}
h2::after { display: none; } /* 移除旧的居中底线 */

section { padding: 100px 0; border-bottom: 1px solid var(--mat-border); }
section:nth-of-type(even) { background-color: var(--mat-surface); }

/* --- 工业实体风格按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background-color: var(--mat-obsidian);
    color: var(--mat-surface);
    text-decoration: none;
    border-radius: var(--radius-sharp);
    font-weight: var(--weight-bold);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    border: 1px solid var(--mat-obsidian);
    box-shadow: var(--shadow-flat);
    cursor: pointer;
    position: relative;
}
.btn:hover { 
    background-color: var(--mat-surface); 
    color: var(--mat-obsidian); 
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--mat-copper);
}

/* --- 2. 头部导航 (精密测量仪器面板风格) --- */
.main-header { 
    background-color: var(--mat-surface); 
    border-bottom: 3px solid var(--mat-copper); /* 底部铜色加固线 */
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.main-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 80px; 
}
.logo { 
    font-size: 1.6rem; 
    font-weight: var(--weight-heavy); 
    color: var(--mat-obsidian); 
    text-decoration: none; 
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.logo::after { content: '®'; font-size: 0.5em; vertical-align: super; color: var(--mat-copper); }

.main-nav ul { display: flex; list-style: none; }
.main-nav ul li { margin-left: 48px; position: relative; }
.main-nav ul li a { 
    text-decoration: none; 
    color: var(--mat-alloy); 
    font-weight: var(--weight-bold); 
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    padding: 10px 0;
}
.main-nav ul li a:hover, .main-nav ul li a.active { 
    color: var(--mat-obsidian); 
}
/* 导航底部材料刻度线指示器 */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--mat-copper);
    transition: var(--transition-mat);
}
.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: 1.8rem; color: var(--mat-obsidian); }

/* --- 3. 首页 Hero (碳分子/晶格背景结构) --- */
#hero {
    background-color: var(--mat-obsidian);
    /* 纯CSS生成的分子六边形/晶格纹理感 */
    background-image: 
        linear-gradient(30deg, #1f2937 12%, transparent 12.5%, transparent 87%, #1f2937 87.5%, #1f2937),
        linear-gradient(150deg, #1f2937 12%, transparent 12.5%, transparent 87%, #1f2937 87.5%, #1f2937),
        linear-gradient(30deg, #1f2937 12%, transparent 12.5%, transparent 87%, #1f2937 87.5%, #1f2937),
        linear-gradient(150deg, #1f2937 12%, transparent 12.5%, transparent 87%, #1f2937 87.5%, #1f2937),
        linear-gradient(60deg, rgba(217,119,6,0.05) 25%, transparent 25.5%, transparent 75%, rgba(217,119,6,0.05) 75%, rgba(217,119,6,0.05));
    background-size: 40px 70px;
    background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0;
    color: var(--mat-surface); 
    min-height: 80vh;
    display: flex; 
    align-items: center; 
    justify-content: flex-start; /* 左侧对齐，更显工业硬朗 */
    text-align: left; 
    padding: 0;
    position: relative;
    border-bottom: 8px solid var(--mat-copper);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: 10%;
    background: rgba(17, 24, 39, 0.85); /* 深色磨砂玻璃背板 */
    backdrop-filter: blur(5px);
    padding: 60px;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--mat-copper);
}
#hero h1 { 
    font-size: 4.5rem; 
    color: var(--mat-surface); 
    margin-bottom: 1.5rem; 
    line-height: 1.1;
    font-weight: var(--weight-heavy);
}
#hero p { 
    font-size: 1.2rem; 
    color: #9CA3AF;
    margin-bottom: 2.5rem; 
    font-weight: var(--weight-light);
}
#hero .btn { background-color: var(--mat-copper); color: #fff; border-color: var(--mat-copper); box-shadow: none; }
#hero .btn:hover { background-color: var(--mat-surface); color: var(--mat-obsidian); transform: none; box-shadow: 6px 6px 0px rgba(255,255,255,0.2); }

/* --- 4. 解决方案 / 核心产品与服务 --- */
#solutions { background-color: var(--mat-surface); }
.solutions-grid { 
    display: grid; 
    /* 修复漏洞1: 使用 min() 函数完美防止小屏幕出现横向滚动条溢出 */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); 
    gap: 40px; 
}
.solution-card { 
    background-color: var(--mat-concrete); 
    padding: 50px 40px; 
    border-radius: var(--radius-micro); 
    border: 1px solid var(--mat-border);
    transition: var(--transition-mat);
    position: relative;
}
/* 卡片左侧的材料厚度线 */
.solution-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background-color: var(--mat-alloy);
    transition: var(--transition-mat);
}
.solution-card:hover { 
    transform: translateX(5px); 
    background-color: var(--mat-surface);
    box-shadow: var(--shadow-depth); 
    border-color: var(--mat-copper);
}
.solution-card:hover::before { background-color: var(--mat-copper); }

.solution-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--mat-obsidian); }
.solution-card p { color: var(--mat-steel); font-size: 1rem; line-height: 1.7; }

/* === 重绘材料科学主题 CSS 图标 === */
.solution-icon { 
    width: 60px; height: 60px; 
    margin-bottom: 30px; 
    position: relative; 
    color: var(--mat-obsidian);
}
.solution-icon::before, .solution-icon::after { content: ''; position: absolute; box-sizing: border-box; }
.solution-card:hover .solution-icon { color: var(--mat-copper); }

/* 原 cloud -> 高分子链/聚合物结构 */
.icon-cloud::before { 
    width: 16px; height: 16px; border: 3px solid currentColor; border-radius: 50%; top: 22px; left: 0;
    box-shadow: 22px -15px 0 -3px currentColor, 44px 0 0 -3px currentColor;
}
.icon-cloud::after { 
    width: 25px; height: 3px; background: currentColor; top: 28px; left: 14px; transform: rotate(-35deg);
    box-shadow: 20px 14px 0 currentColor;
}

/* 原 data -> 复合材料堆叠切面 */
.icon-data::before {
    width: 40px; height: 12px; border: 2px solid currentColor; top: 10px; left: 10px; transform: skewX(-20deg);
}
.icon-data::after {
    width: 40px; height: 12px; border: 2px solid currentColor; background: currentColor; top: 26px; left: 4px; transform: skewX(-20deg);
    box-shadow: -6px 16px 0 -2px var(--mat-concrete), -6px 16px 0 0 currentColor;
}

/* 原 ai -> 晶体点阵/晶格 */
.icon-ai::before {
    width: 40px; height: 40px; border: 2px solid currentColor; top: 10px; left: 10px; transform: rotate(45deg);
}
.icon-ai::after {
    width: 8px; height: 8px; background: currentColor; border-radius: 50%; top: 26px; left: 26px;
    box-shadow: -20px -20px 0 currentColor, 20px 20px 0 currentColor, 20px -20px 0 currentColor, -20px 20px 0 currentColor;
}

/* 原 security -> 合金铸锭/坚固块体 */
.icon-security::before { 
    width: 30px; height: 40px; border: 3px solid currentColor; top: 10px; left: 15px; border-radius: 2px;
}
.icon-security::after {
    width: 14px; height: 40px; border: 3px solid currentColor; border-left: none; top: 4px; left: 45px; transform: skewY(45deg);
}

/* 原 iot -> 挤出成型/线材加工 */
.icon-iot::before { 
    width: 20px; height: 40px; border: 3px solid currentColor; border-radius: 50%; top: 10px; left: 0;
}
.icon-iot::after { 
    width: 40px; height: 3px; background: currentColor; top: 18px; left: 10px;
    box-shadow: 0 24px 0 currentColor;
}

/* 原 consult -> 粘合剂/材料接合拉伸测试 */
.icon-consult::before { 
    width: 24px; height: 24px; border: 3px solid currentColor; top: 18px; left: 5px; border-radius: 2px;
}
.icon-consult::after { 
    width: 24px; height: 24px; border: 3px solid currentColor; background: repeating-linear-gradient(45deg, transparent, transparent 3px, currentColor 3px, currentColor 6px); top: 18px; left: 31px; border-radius: 2px;
}

/* --- 5. 关于我们 --- */
#about { background-color: var(--mat-concrete); }
#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; color: var(--mat-steel); font-size: 1.1rem; text-align: justify; }
.about-action { margin-top: 3rem; }

/* 纯CSS绘制：工程材料断层/截面图 */
.about-visual {
    flex: 1; 
    height: 450px; 
    background: var(--mat-surface);
    border: 1px solid var(--mat-border);
    position: relative; 
    box-shadow: var(--shadow-flat);
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 30px;
}
/* 层叠的材料块模拟 */
.about-visual::before {
    content: ''; position: absolute;
    width: 60%; height: 70%;
    background: repeating-linear-gradient(0deg, var(--mat-concrete) 0, var(--mat-concrete) 10px, transparent 10px, transparent 20px);
    border: 2px solid var(--mat-obsidian);
    top: 40px; right: 40px;
}
.about-visual::after {
    content: ''; position: absolute;
    width: 50%; height: 60%;
    background: var(--mat-copper);
    top: 80px; right: 80px;
    mix-blend-mode: multiply;
}
.about-visual span { 
    z-index: 10; 
    color: var(--mat-surface); 
    font-size: 1.2rem; 
    font-weight: var(--weight-bold); 
    background: var(--mat-obsidian);
    padding: 15px 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 4px solid var(--mat-copper);
}

/* --- 6. 资讯/内容列表区 (技术简报风格) --- */
#news, #content { background-color: var(--mat-surface); }
.news-grid { 
    display: grid; 
    /* 修复漏洞1 */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); 
    gap: 40px; 
}
.news-card {
    background-color: var(--mat-surface); 
    border: 1px solid var(--mat-border);
    border-radius: var(--radius-sharp); 
    overflow: hidden; 
    display: flex; flex-direction: column; 
    transition: var(--transition-fast);
}
.news-card:hover { 
    border-color: var(--mat-obsidian);
    box-shadow: var(--shadow-flat); 
}

/* 封面：纯CSS工程材料纹理 (无图时显示) */
.news-cover {
    height: 240px; width: 100%; 
    overflow: hidden; position: relative;
    border-bottom: 2px solid var(--mat-obsidian);
}
/* 1. 碳纤维编织纹理 */
.news-card:nth-child(3n+1) .news-cover { 
    background: linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px,
                linear-gradient(207deg, #151515 5px, transparent 5px) 10px 0px,
                linear-gradient(27deg, #222 5px, transparent 5px) 0px 10px,
                linear-gradient(207deg, #222 5px, transparent 5px) 10px 5px,
                linear-gradient(90deg, #1b1b1b 10px, transparent 10px),
                linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
    background-color: #131313; background-size: 20px 20px;
}
/* 2. 拉丝阳极氧化铝 */
.news-card:nth-child(3n+2) .news-cover { 
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 3px),
                linear-gradient(to right, #4A5568, #2D3748, #4A5568);
}
/* 3. 显微镜下的金相组织 */
.news-card:nth-child(3n+3) .news-cover { 
    background: radial-gradient(circle at 30% 30%, rgba(217, 119, 6, 0.2) 0%, transparent 50%), 
                radial-gradient(circle at 70% 80%, rgba(217, 119, 6, 0.15) 0%, transparent 40%),
                #111827;
}

.news-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: grayscale(20%) contrast(1.1); /* 略微去色增加工业感 */
    transition: transform 0.4s ease;
}
.news-card:hover .news-cover img { transform: scale(1.03); }

.news-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.news-meta { font-size: 0.85rem; color: var(--mat-alloy); margin-bottom: 15px; font-family: monospace; text-transform: uppercase; letter-spacing: 1px; }
.news-meta a { color: var(--mat-copper); text-decoration: none; font-weight: bold;}
.news-meta a:hover { text-decoration: underline; }

.news-content h4 { font-size: 1.3rem; margin-bottom: 15px; line-height: 1.5; }
.news-content h4 a { text-decoration: none; color: var(--mat-obsidian); transition: color 0.2s; }
.news-content h4 a:hover { color: var(--mat-copper); }

.news-content p { flex-grow: 1; margin-bottom: 25px; font-size: 1rem; color: var(--mat-steel); }
.read-more-link { 
    text-decoration: none; color: var(--mat-obsidian); 
    font-weight: var(--weight-bold); font-size: 0.9rem; align-self: flex-start; 
    border-bottom: 2px solid var(--mat-copper); padding-bottom: 2px;
    text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition-fast);
}
.read-more-link:hover { color: var(--mat-copper); }

/* --- 7. FAQ 规范化手书面板 --- */
#faq { background-color: var(--mat-concrete); }
.faq-accordion { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--mat-border); background: var(--mat-surface); }
.faq-item { border-bottom: 1px solid var(--mat-border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%; background: none; border: none; text-align: left; padding: 25px 30px;
    font-size: 1.15rem; font-weight: var(--weight-bold); cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; color: var(--mat-obsidian);
    transition: background 0.2s ease;
}
.faq-question:hover { background-color: #F9FAFB; }

/* 修复漏洞3: 修改FAQ动画，旋转代替文字替换，视觉更加平滑专业 */
.faq-question::after { 
    content: '+'; 
    display: inline-block; /* 必须设置以便应用 transform */
    font-size: 1.5rem; font-family: monospace; font-weight: normal;
    color: var(--mat-alloy);
    transition: transform 0.3s ease, color 0.3s ease;
}
.faq-item.active .faq-question::after { 
    transform: rotate(45deg); /* 变为错号(关闭)状态 */
    color: var(--mat-copper); 
}

.faq-answer { 
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; 
    background-color: #F9FAFB;
}
.faq-answer p {
    color: var(--mat-steel); font-size: 1rem; padding: 0 30px 25px; margin: 0; border-left: 3px solid var(--mat-copper); margin-left: 30px;
}

/* --- 8. Footer (参数表/铭牌风格底栏) --- */
.main-footer { 
    background-color: var(--mat-obsidian); 
    color: #9CA3AF; 
    padding: 80px 0 20px; 
    margin-top: auto; 
    border-top: 10px solid var(--mat-steel); 
    position: relative;
}
/* 底部铜色警戒线 */
.main-footer::before {
    content: ''; position: absolute; top: -10px; left: 0; width: 15%; height: 10px; background: var(--mat-copper);
}
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 60px; margin-bottom: 60px; }
.footer-column { flex: 1; min-width: 200px; }
.footer-column h4 { color: var(--mat-surface); margin-bottom: 2rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.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: #9CA3AF; text-decoration: none; font-size: 0.95rem; transition: color 0.2s ease; display: inline-block; }
.footer-column ul li a:hover { color: var(--mat-copper-light); transform: translateX(5px); }
.footer-bottom { 
    text-align: left; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); 
    font-size: 0.85rem; font-family: monospace; text-transform: uppercase; 
    display: flex; justify-content: space-between;
}

/* --- 9. 内容页 (技术白皮书/规格书排版) --- */
.page-container { padding: 60px 0 120px; background-color: var(--mat-concrete); }

.single-post-wrapper { 
    max-width: 900px; /* 加宽以适应技术文档 */
    margin: 0 auto; 
    background: var(--mat-surface); 
    padding: 60px 80px; 
    border: 1px solid var(--mat-border); 
    box-shadow: 10px 10px 0px rgba(17, 24, 39, 0.05); /* 实体文件厚度阴影 */
    position: relative;
}
/* 模拟规格书装订线 */
.single-post-wrapper::before {
    content: ''; position: absolute; top: 0; left: 20px; bottom: 0; width: 1px; background: var(--mat-border);
}

.breadcrumb { font-family: monospace; font-size: 0.85rem; text-transform: uppercase; color: var(--mat-alloy); margin-bottom: 40px; }
.breadcrumb a { color: var(--mat-obsidian); text-decoration: none; font-weight: bold;}
.breadcrumb a:hover { color: var(--mat-copper); }
.breadcrumb span { margin: 0 10px; color: var(--mat-border); }

.page-header { text-align: left; margin-bottom: 50px; border-bottom: 2px solid var(--mat-obsidian); padding-bottom: 30px; }
.center-header { text-align: left; border-bottom: 2px solid var(--mat-obsidian); }
.page-header h1 { font-size: 2.8rem; color: var(--mat-obsidian); letter-spacing: -1px; }
.page-meta { color: var(--mat-alloy); font-size: 0.95rem; margin-top: 20px; font-family: monospace; }
.page-meta a { color: var(--mat-copper); text-decoration: none; font-weight: bold;}

/* Markdown 工程技术文档重排 */
.markdown-body { color: #1F2937; font-size: 1.15rem; line-height: 1.8; word-wrap: break-word; }
.markdown-body h2 { 
    font-size: 1.8rem; margin: 3rem 0 1.5rem; color: var(--mat-obsidian); 
    padding-left: 0; border-bottom: 1px solid var(--mat-border); padding-bottom: 10px;
}
.markdown-body h2::before { display: none; } /* 内页去除左侧粗线 */
.markdown-body h3 { font-size: 1.4rem; margin: 2.5rem 0 1rem; color: var(--mat-obsidian); }
.markdown-body p { margin-bottom: 1.5rem; text-align: justify; }
.markdown-body ul, .markdown-body ol { padding-left: 20px; margin-bottom: 1.5rem; }
.markdown-body li { margin-bottom: 0.5rem; }
.markdown-body img { max-width: 100%; height: auto; border: 1px solid var(--mat-border); padding: 5px; background: #fff; margin: 2.5rem auto; display: block; }
.markdown-body blockquote { 
    border-left: 4px solid var(--mat-copper); 
    background-color: var(--mat-concrete); 
    padding: 25px 30px; margin: 2.5rem 0; 
    color: var(--mat-steel); font-style: normal; font-size: 1.05rem;
}
.markdown-body a { color: var(--mat-copper); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; }
.markdown-body a:hover { border-bottom-color: var(--mat-copper); }
.markdown-body hr { border: 0; height: 1px; background: var(--mat-border); margin: 3.5rem 0; }
/* 数据/代码块模拟技术参数表外框 */
.markdown-body pre { background: var(--mat-obsidian); color: #E5E7EB; padding: 25px; border-radius: var(--radius-sharp); overflow-x: auto; margin: 2.5rem 0; font-family: monospace; font-size: 0.95rem; border-left: 4px solid var(--mat-steel); }
.markdown-body code { font-family: monospace; background: var(--mat-concrete); color: #D97706; padding: 2px 6px; border-radius: 2px; }
.markdown-body pre code { background: none; color: inherit; padding: 0; }

/* 修复漏洞2: 补充工程参数规格表格 (Table) 的样式，这在材料白皮书中极其常用 */
.markdown-body table { 
    width: 100%; border-collapse: collapse; margin: 2.5rem 0; 
    font-size: 0.95rem; font-family: "Segoe UI", sans-serif; 
}
.markdown-body th, .markdown-body td { 
    border: 1px solid var(--mat-border); padding: 14px 18px; text-align: left; 
}
.markdown-body th { 
    background-color: var(--mat-obsidian); color: var(--mat-surface); 
    font-weight: var(--weight-bold); letter-spacing: 0.5px;
}
.markdown-body tr:nth-child(even) { background-color: #F9FAFB; }
.markdown-body tr:hover { background-color: rgba(217, 119, 6, 0.05); }

.post-tags { margin-top: 60px; padding-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill { 
    display: inline-block; background: var(--mat-surface); padding: 6px 14px; 
    border: 1px solid var(--mat-border); color: var(--mat-alloy); 
    text-decoration: none; font-size: 0.85rem; font-family: monospace; 
    transition: var(--transition-fast); text-transform: uppercase;
}
.tag-pill:hover { background: var(--mat-obsidian); color: var(--mat-surface); border-color: var(--mat-obsidian); }

.post-navigation { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 40px; border-top: 2px solid var(--mat-obsidian); }
.nav-next, .nav-prev { max-width: 48%; text-decoration: none; color: var(--mat-obsidian); font-weight: var(--weight-bold); line-height: 1.5; transition: color 0.2s; font-size: 1.1rem; }
.nav-next:hover, .nav-prev:hover { color: var(--mat-copper); }
.nav-next span, .nav-prev span { display: block; font-size: 0.8rem; color: var(--mat-alloy); font-weight: normal; margin-bottom: 8px; text-transform: uppercase; font-family: monospace; letter-spacing: 1px; }
.nav-next { text-align: right; }

/* 规整的工业底部分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 80px; }
.page-btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    width: 44px; height: 44px; border: 1px solid var(--mat-border); 
    background: var(--mat-surface); color: var(--mat-obsidian); 
    text-decoration: none; transition: var(--transition-fast); font-weight: bold;
}
.page-btn:hover { background-color: var(--mat-obsidian); color: var(--mat-surface); }
.page-current { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; font-weight: bold; color: var(--mat-surface); background: var(--mat-copper); font-family: monospace; }

/* 404 & 无内容 */
.error-page { text-align: center; padding: 150px 0; }
.error-page h1 { font-size: 8rem; color: var(--mat-border); margin-bottom: 20px; font-family: monospace; line-height: 1; }
.error-page p { font-size: 1.25rem; margin-bottom: 40px; color: var(--mat-alloy); }
.no-content { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--mat-alloy); background: var(--mat-concrete); border: 1px solid var(--mat-border); font-family: monospace; text-transform: uppercase; }

/* --- 10. 响应式系统 --- */
@media (max-width: 1024px) { 
    h2 { font-size: 2rem; } 
    #hero h1 { font-size: 3.5rem; }
    .single-post-wrapper { padding: 40px 50px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .main-header .container { height: 70px; }
    .logo { font-size: 1.3rem; }
    .menu-toggle { display: block; }
    
    /* 修复漏洞4: 移动端菜单增加高度至 500px 防止栏目过多被截断，并允许内容滚动 */
    .main-nav { 
        position: absolute; top: 70px; left: 0; width: 100%; 
        background-color: var(--mat-obsidian); flex-direction: column; 
        max-height: 0; overflow-y: auto; transition: max-height 0.4s ease-out; 
    }
    .main-nav.active { max-height: 500px; border-bottom: 4px solid var(--mat-copper); }
    .main-nav ul { flex-direction: column; padding: 0; }
    .main-nav ul li { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .main-nav ul li a { display: block; padding: 20px; font-size: 1rem; color: #E5E7EB; }
    .main-nav ul li a:hover, .main-nav ul li a.active { color: var(--mat-copper); background: rgba(0,0,0,0.2); }
    .main-nav ul li a::after { display: none; } /* 移动端隐藏底部细线指示器 */
    
    #hero { min-height: 60vh; border-bottom: 4px solid var(--mat-copper); }
    .hero-content { margin-left: 0; padding: 40px 30px; border-left: none; border-top: 4px solid var(--mat-copper); }
    #hero h1 { font-size: 2.5rem; }
    
    #about .about-content { flex-direction: column; gap: 50px; }
    .about-visual { height: 350px; width: 100%; }
    
    .footer-content { flex-direction: column; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    
    .single-post-wrapper { padding: 30px 20px; box-shadow: none; border-left: none; border-right: none; }
    .single-post-wrapper::before { display: none; }
    .page-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) { 
    section { padding: 60px 0; } 
    h2 { font-size: 1.6rem; margin-bottom: 2rem; } 
    .news-cover { height: 200px; }
    .post-navigation { flex-direction: column; gap: 30px; }
    .nav-next, .nav-prev { max-width: 100%; }
    .nav-next { text-align: left; }
    /* 因为上面使用了 min(100%, 320px) 技术，此处不再需要强制写死 1fr */
}