/* ==========================================================================
   TxtPress Theme: EdTech Future (教育科技专属主题)
   Style: 现代、圆润、流光幻彩、纯CSS绘图
   ========================================================================== */

/* --- 1. 全局变量与基础设定 --- */
:root {
    /* 核心色彩 - 智慧与活力的碰撞 */
    --primary-color: #2E1065;   /* 深邃宇宙紫 (科技基调) */
    --secondary-color: #0D9488; /* 智慧青绿色 (教育生机) */
    --accent-color: #F97316;    /* 活力亮橙色 (强调交互) */
    
    /* 背景与文字 */
    --bg-body: #F4F7FB;         /* 极淡的护眼蓝白 */
    --bg-surface: #FFFFFF;      /* 卡片纯白 */
    --text-main: #334155;
    --text-muted: #64748B;
    
    /* 边框与阴影 */
    --border-light: rgba(13, 148, 136, 0.1);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 100px;
    
    /* 浮雕与悬浮阴影 (Soft UI) */
    --shadow-soft: 0 10px 30px -10px rgba(46, 16, 101, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(13, 148, 136, 0.2);
    --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: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; overflow-x: hidden; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* 排版标题 */
h1, h2, h3, h4, h5, h6 { 
    color: var(--primary-color); 
    font-weight: 800; 
    line-height: 1.4; 
}

h2 { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 4rem; 
    position: relative;
    letter-spacing: 1px;
}
/* 标题底部的点缀圆点 */
h2::after { 
    content: ''; 
    position: absolute; 
    bottom: -18px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 12px; 
    height: 12px; 
    background-color: var(--accent-color); 
    border-radius: 50%; 
    box-shadow: -20px 0 0 var(--secondary-color), 20px 0 0 var(--secondary-color);
}

section { padding: 100px 0; }

/* 现代药丸形按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--secondary-color), #14B8A6);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(20, 184, 166, 0.4);
}
.btn:hover { 
    transform: translateY(-3px) scale(1.02); 
    box-shadow: 0 12px 25px -6px rgba(20, 184, 166, 0.6); 
}

/* --- 2. 悬浮玻璃态头部导航 --- */
.main-header { 
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky; 
    top: 20px; 
    z-index: 1000; 
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 20px auto -100px auto; /* 负边距让下方内容顶上来 */
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5);
    transition: var(--transition);
}
.main-header .container { 
    display: flex; justify-content: space-between; align-items: center; height: 70px; padding: 0 30px;
}
/* 渐变Logo文字 */
.logo { 
    font-size: 1.5rem; font-weight: 900; 
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none; 
    letter-spacing: 1px;
}

.main-nav ul { display: flex; list-style: none; gap: 30px; }
.main-nav ul li a { 
    text-decoration: none; color: var(--text-main); 
    font-weight: 600; font-size: 0.95rem; position: relative; padding: 5px 0;
}
.main-nav ul li a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 3px; background: var(--secondary-color);
    border-radius: 3px; transition: width 0.3s ease;
}
.main-nav ul li a:hover::after, .main-nav ul li a.active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--primary-color); cursor: pointer; }

/* --- 3. Hero首屏 (纯CSS流光溢彩) --- */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
#hero {
    background: linear-gradient(-45deg, #1E1B4B, #2E1065, #0F766E, #0D9488);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    padding-top: 150px; /* 为悬浮导航留出空间 */
    min-height: 90vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
/* 添加纯CSS点阵装饰 */
#hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 40px 40px; pointer-events: none;
}
/* 漂浮发光球(纯CSS) */
#hero::after {
    content: ''; position: absolute; top: 20%; right: 10%;
    width: 300px; height: 300px; background: var(--accent-color);
    border-radius: 50%; filter: blur(100px); opacity: 0.4;
    animation: float 6s ease-in-out infinite; pointer-events: none;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    position: relative; z-index: 2; max-width: 900px;
    background: rgba(255, 255, 255, 0.05);
    padding: 60px 40px; border-radius: var(--radius-lg);
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
}
#hero h1 { 
    font-size: 4.5rem; color: #FFFFFF; margin-bottom: 1.5rem; 
    line-height: 1.1; letter-spacing: -1px; text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
#hero p { 
    font-size: 1.25rem; color: rgba(255,255,255,0.85); 
    margin: 0 auto 3rem; max-width: 700px; font-weight: 300;
}
#hero .btn { background: #FFFFFF; color: var(--primary-color); }
#hero .btn:hover { background: var(--accent-color); color: #FFF; box-shadow: 0 10px 30px rgba(249, 115, 22, 0.5); }

/* --- 4. 解决方案 (果冻感圆润卡片) --- */
.solutions-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; 
}
.solution-card { 
    background-color: var(--bg-surface); 
    padding: 50px 40px; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-soft); 
    transition: var(--transition);
    border: 1px solid #FFF;
    text-align: center;
}
.solution-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--border-light);
}
.solution-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--primary-color); }
.solution-card p { color: var(--text-muted); font-size: 0.95rem; }

/* 纯CSS 重绘教育科技风几何图标 (色彩叠加风) */
.solution-icon { 
    width: 70px; height: 70px; margin: 0 auto 30px; position: relative; 
    display: flex; align-items: center; justify-content: center;
}
.solution-icon::before, .solution-icon::after { content: ''; position: absolute; }

/* 1. 云服务 (交叠圆圈) */
.icon-cloud::before { 
    width: 40px; height: 40px; background: rgba(13, 148, 136, 0.2); border-radius: 50%; 
    left: 10px; top: 15px;
}
.icon-cloud::after { 
    width: 50px; height: 50px; background: var(--secondary-color); border-radius: 50%; 
    right: 5px; top: 5px; box-shadow: -15px 15px 0 -10px var(--accent-color);
}
/* 2. 数据分析 (立体柱状体) */
.icon-data::before { 
    width: 15px; height: 35px; background: var(--accent-color); border-radius: 8px;
    bottom: 10px; left: 15px;
}
.icon-data::after { 
    width: 15px; height: 50px; background: var(--secondary-color); border-radius: 8px;
    bottom: 10px; left: 40px; box-shadow: -25px 25px 0 -5px rgba(46, 16, 101, 0.1);
}
/* 3. AI系统 (晶体节点) */
.icon-ai::before {
    width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px; transform: rotate(45deg);
}
.icon-ai::after {
    width: 14px; height: 14px; background: #FFF; border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
/* 4. 安全防护 (圆盾与对勾) */
.icon-security::before { 
    width: 50px; height: 56px; background: rgba(46, 16, 101, 0.1); 
    border-radius: 25px 25px 12px 12px; border-bottom: 4px solid var(--primary-color);
}
.icon-security::after {
    width: 12px; height: 24px; border-bottom: 4px solid var(--secondary-color); border-right: 4px solid var(--secondary-color);
    transform: rotate(45deg); margin-top: -10px; margin-left: -5px;
}
/* 5. 物联网云端 (扩散光波) */
.icon-iot::before { 
    width: 20px; height: 20px; background: var(--accent-color); border-radius: 50%; z-index: 2;
}
.icon-iot::after { 
    width: 60px; height: 60px; border: 3px dashed var(--secondary-color); border-radius: 50%;
    animation: rotate 10s linear infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
/* 6. 咨询/定制 (流体对话泡泡) */
.icon-consult::before { 
    width: 45px; height: 35px; background: var(--secondary-color); 
    border-radius: 20px 20px 20px 5px; top: 10px; left: 5px;
}
.icon-consult::after { 
    width: 35px; height: 35px; background: rgba(249, 115, 22, 0.8); 
    border-radius: 20px 20px 5px 20px; bottom: 10px; right: 5px; z-index: -1;
}

/* --- 5. 关于我们 (炫酷变形液态球视觉) --- */
#about { background-color: #FFFFFF; }
.about-content { display: flex; align-items: center; gap: 60px; }
.about-text { flex: 1; padding-right: 20px; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.2rem; color: var(--text-muted); font-size: 1.1rem; }
.about-action { margin-top: 2.5rem; }

/* 纯CSS生成的变形液态网格球 */
@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
.about-visual {
    flex: 1; height: 450px; position: relative;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bg-body), #E0E7FF);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    box-shadow: inset 20px 20px 40px rgba(255,255,255,0.8), inset -20px -20px 40px rgba(13, 148, 136, 0.1);
    border: 4px solid rgba(255,255,255,0.5);
    overflow: hidden;
}
/* 内部科技网纹 */
.about-visual::before {
    content: ''; position: absolute; width: 200%; height: 200%;
    background-image: 
        linear-gradient(rgba(13, 148, 136, 0.1) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(13, 148, 136, 0.1) 1px, transparent 1px);
    background-size: 30px 30px; transform: rotate(15deg);
}
.about-visual span { 
    z-index: 10; color: #FFFFFF; font-size: 1.5rem; font-weight: 800; 
    letter-spacing: 4px; background: var(--primary-color);
    padding: 15px 40px; border-radius: var(--radius-pill);
    box-shadow: 0 10px 25px rgba(46, 16, 101, 0.3);
}

/* --- 6. 资讯/内容聚合区 --- */
.news-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; 
}
.news-card {
    background-color: var(--bg-surface); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-soft);
    overflow: hidden; display: flex; flex-direction: column; 
    transition: var(--transition); border: none;
}
.news-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-hover); }

/* 纯CSS缺省图：锥形渐变与波普圆点艺术生成 */
.news-cover {
    height: 240px; width: 100%; overflow: hidden; position: relative;
    background-color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
}
.news-card:nth-child(3n+1) .news-cover { 
    background: conic-gradient(from 45deg at 50% 50%, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
}
.news-card:nth-child(3n+2) .news-cover { 
    background: repeating-radial-gradient(circle at 0 0, transparent 0, var(--bg-surface) 10px), 
                linear-gradient(to bottom right, var(--secondary-color), var(--primary-color));
}
.news-card:nth-child(3n+3) .news-cover { 
    background: linear-gradient(135deg, var(--accent-color), transparent), 
                repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 10px, transparent 10px, transparent 20px) var(--primary-color);
}
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-cover img { transform: scale(1.1) rotate(1deg); }

.news-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
/* 修复点: 增加 align-items: center 和 flex-wrap 以免原生 HTML 里的 | 符号排版错位 */
.news-meta { font-size: 0.85rem; color: #94A3B8; margin-bottom: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 500; text-transform: uppercase;}
.news-meta a { color: var(--accent-color); text-decoration: none; padding: 2px 10px; background: rgba(249, 115, 22, 0.1); border-radius: 12px;}

.news-content h4 { font-size: 1.3rem; margin-bottom: 15px; line-height: 1.5; }
.news-content h4 a { text-decoration: none; color: var(--text-main); transition: color 0.3s; }
.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: #FFF; background: var(--primary-color);
    padding: 10px 20px; border-radius: var(--radius-pill);
    font-weight: 600; font-size: 0.9rem; align-self: flex-start; 
    transition: var(--transition);
}
.read-more-link:hover { background: var(--secondary-color); padding-left: 25px; padding-right: 15px;}

/* --- 7. 现代悬浮块 FAQ --- */
.faq-accordion { max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item { 
    background: var(--bg-surface); border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); overflow: hidden;
    transition: var(--transition); border: 1px solid transparent;
}
.faq-item:hover { box-shadow: var(--shadow-soft); }
.faq-item.active { border-color: var(--secondary-color); }
.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(--text-main);
}
.faq-question::after { 
    content: '+'; font-size: 1.5rem; color: var(--secondary-color);
    background: rgba(13, 148, 136, 0.1); width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: transform 0.4s ease, background 0.4s;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); background: var(--secondary-color); color: #FFF; }
.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 1s ease-in-out; }
.faq-answer p { color: var(--text-muted); font-size: 1.05rem; padding: 0 30px 25px 30px; margin: 0; }

/* --- 8. 柔和弧线 Footer --- */
.main-footer { 
    background-color: var(--primary-color); color: #FFF; 
    padding: 100px 0 30px; margin-top: 50px; 
    border-top-left-radius: 60px; border-top-right-radius: 60px;
    position: relative;
}
/* 底部渐变光带 */
.main-footer::before {
    content: ''; position: absolute; top: 0; left: 10%; right: 10%;
    height: 4px; background: linear-gradient(90deg, transparent, var(--secondary-color), var(--accent-color), transparent);
}
.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: #FFF; margin-bottom: 1.8rem; font-size: 1.3rem; letter-spacing: 1px; }
.footer-column p { color: #CBD5E1; 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: 1rem; 
    transition: color 0.3s ease; position: relative; padding-left: 15px;
}
.footer-column ul li a::before {
    content: '›'; position: absolute; left: 0; top: -2px; color: var(--secondary-color); font-size: 1.2rem;
}
.footer-column ul li a:hover { color: #FFF; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #64748B; }

/* --- 9. 文章与内部页面优化 --- */
/* 修复点: 彻底解决 header 负边距导致的内页被遮挡问题，大幅增加 padding-top */
.page-container { padding: 140px 0 100px; }

.single-post-wrapper { 
    max-width: 850px; margin: 0 auto; background: var(--bg-surface); 
    padding: 60px; border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-soft);
}
.breadcrumb { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 40px; background: var(--bg-body); padding: 10px 20px; border-radius: var(--radius-pill); display: inline-block;}
.breadcrumb a { color: var(--primary-color); text-decoration: none; font-weight: 600;}
.breadcrumb span { margin: 0 12px; color: #CBD5E1; }

.page-header { margin-bottom: 50px; }
.center-header { text-align: center; }
.page-header h1 { font-size: 2.8rem; color: var(--primary-color); letter-spacing: -1px; }
.page-meta { color: var(--text-muted); font-size: 1rem; margin-top: 20px; display: inline-block; background: rgba(13, 148, 136, 0.1); padding: 5px 15px; border-radius: var(--radius-pill);}
.page-meta a { color: var(--secondary-color); text-decoration: none; font-weight: 700;}

/* Markdown 高级阅读排版 */
.markdown-body { color: #475569; font-size: 1.15rem; line-height: 1.9; }
.markdown-body h2 { font-size: 2rem; margin: 3rem 0 1.5rem; text-align: left; color: var(--primary-color); display: flex; align-items: center;}
.markdown-body h2::before { content: ''; display: inline-block; width: 6px; height: 28px; background: var(--secondary-color); border-radius: 3px; margin-right: 15px; }
.markdown-body h2::after { display: none; }
.markdown-body h3 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--text-main); }
.markdown-body p { margin-bottom: 1.8rem; }
.markdown-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 2.5rem auto; box-shadow: var(--shadow-soft); display: block; }
/* 特色教育风引用块 */
.markdown-body blockquote { 
    background: linear-gradient(to right, rgba(13, 148, 136, 0.1), transparent);
    border-left: 6px solid var(--secondary-color);
    padding: 25px 30px; margin: 2.5rem 0; 
    border-radius: 0 var(--radius-md) var(--radius-md) 0; 
    color: var(--primary-color); font-weight: 500; font-style: italic;
}
.markdown-body a { color: var(--secondary-color); text-decoration: none; border-bottom: 2px solid rgba(13, 148, 136, 0.3); transition: border-color 0.3s; }
.markdown-body a:hover { border-bottom-color: var(--secondary-color); }
.markdown-body pre { background: var(--primary-color); padding: 25px; border-radius: var(--radius-md); overflow-x: auto; margin-bottom: 2rem; box-shadow: inset 0 0 20px rgba(0,0,0,0.5);}
.markdown-body code { font-family: 'Courier New', Courier, monospace; color: var(--accent-color); background: rgba(249, 115, 22, 0.1); padding: 3px 8px; border-radius: 6px; }

/* 标签与翻页 */
.post-tags { margin-top: 60px; padding-top: 40px; border-top: 1px dashed var(--border-light); display: flex; flex-wrap: wrap; gap: 12px; }
.tag-pill { 
    background: #FFF; padding: 8px 20px; border-radius: var(--radius-pill); 
    color: var(--secondary-color); text-decoration: none; font-size: 0.9rem; 
    font-weight: 600; border: 1px solid rgba(13, 148, 136, 0.2); transition: var(--transition); 
}
.tag-pill:hover { background: var(--secondary-color); color: #FFF; transform: translateY(-2px);}

.post-navigation { display: flex; justify-content: space-between; margin-top: 40px; padding: 30px; background: var(--bg-body); border-radius: var(--radius-md);}
.nav-next, .nav-prev { max-width: 45%; text-decoration: none; color: var(--primary-color); font-weight: 700; transition: color 0.3s; }
.nav-next:hover, .nav-prev:hover { color: var(--secondary-color); }
.nav-next span, .nav-prev span { display: block; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.nav-next { text-align: right; }

.pagination { display: flex; justify-content: center; gap: 15px; margin-top: 70px; }
.page-btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    width: 50px; height: 50px; border-radius: 50%; color: var(--text-main); 
    text-decoration: none; background: #FFF; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-weight: 700; transition: var(--transition);
}
.page-btn:hover { background: var(--secondary-color); color: #FFF; transform: scale(1.1); }
.page-current { display: inline-flex; align-items: center; padding: 0 25px; font-weight: 800; color: #FFF; background: var(--primary-color); border-radius: var(--radius-pill); box-shadow: 0 5px 15px rgba(46, 16, 101, 0.3);}

/* 无内容与404 */
.no-content { text-align: center; padding: 80px 20px; color: var(--text-muted); background: rgba(255,255,255,0.5); border-radius: var(--radius-lg); font-size: 1.2rem; }
.error-page { text-align: center; padding: 150px 0; }
.error-page h1 { font-size: 8rem; background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; }

/* --- 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; }
}

@media (max-width: 768px) {
    .main-header { top: 10px; width: calc(100% - 20px); margin-bottom: -80px;}
    .main-header .container { padding: 0 20px; }
    .menu-toggle { display: block; }
    
    /* 修复点: 移动端菜单下拉动画卡顿闪烁修复 */
    .main-nav { 
        position: absolute; top: 80px; left: 0; width: 100%; 
        background-color: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
        border-radius: var(--radius-md); box-shadow: var(--shadow-hover);
        flex-direction: column; max-height: 0; overflow: hidden; 
        transition: max-height 0.4s ease, border-color 0.4s ease;
        border: 1px solid transparent; 
    }
    .main-nav.active { 
        max-height: 400px; 
        border-color: var(--border-light);
    }
    .main-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
    .main-nav ul li a { display: block; padding: 15px 25px; border-bottom: 1px solid var(--bg-body); }
    .main-nav ul li a::after { display: none; }
    
    #hero { padding-top: 120px; min-height: auto; padding-bottom: 80px;}
    #hero h1 { font-size: 2.8rem; }
    
    .page-container { padding: 120px 0 80px; } /* 移动端防遮挡 */
    
    .about-content { flex-direction: column; }
    .about-visual { width: 100%; }
    .footer-content { flex-direction: column; gap: 40px; }
    
    .single-post-wrapper { padding: 30px 20px; border-radius: var(--radius-md); }
    .post-navigation { flex-direction: column; gap: 20px; }
    .nav-next, .nav-prev { max-width: 100%; }
    .nav-next { text-align: left; }
}

@media (max-width: 480px) { 
    section { padding: 70px 0; } 
    .page-container { padding: 100px 0 60px; } /* 移动端防遮挡 */
    h2 { font-size: 1.8rem; }
    #hero h1 { font-size: 2.2rem; }
    .solution-card { padding: 30px 20px; }
    .news-cover { height: 200px; }
    .page-header h1 { font-size: 2rem; }
}