/* ============================================
   零食公司主题样式 - FreshSnack Co.
   适配系统：TxtPress Theme (Universal Tech Structure)
   修改记录：修正Hero背景冲突、移动端菜单对齐、层级优化
=============================================== */

/* --- 1. 全局与基础样式 --- */
:root {
    --primary-orange: #FF8A3D;
    --secondary-pink: #FF6B8B;
    --fresh-green: #7ECB54;
    --dark-brown: #5D4037;
    --light-cream: #FFF8F0;
    --warm-yellow: #FFD166;
    --text-dark: #4A342E;
    --border-light: #FFE5D4;
    --white-color: #FFFFFF;
    --shadow-soft: 0 6px 20px rgba(255, 138, 61, 0.15);
    --shadow-hover: 0 10px 30px rgba(255, 138, 61, 0.25);
    --gradient-snack: linear-gradient(135deg, var(--primary-orange), var(--secondary-pink));
    --gradient-fresh: linear-gradient(135deg, var(--fresh-green), #A8E6CF);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-cream);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 214, 102, 0.1) 0px, transparent 50px),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 139, 0.1) 0px, transparent 50px);
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}
main { flex: 1; }
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
    position: relative;
}

h1, h2, h3, h4 { 
    color: var(--dark-brown); 
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
h2 { 
    font-size: 2.8rem; 
    text-align: center; 
    margin-bottom: 3.5rem; 
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
h2::before, h2::after {
    content: '•';
    color: var(--primary-orange);
    position: absolute;
    top: 50%;
    font-size: 1.8rem;
    transform: translateY(-50%);
}
h2::before { left: -50px; }
h2::after { right: -50px; }

section { 
    padding: 90px 0; 
    position: relative;
}

/* 修正：排除 #hero，防止Hero区的渐变背景被白色覆盖 */
section:not(#hero):nth-of-type(odd) { 
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
}

.btn {
    display: inline-block; 
    padding: 16px 36px; 
    background: var(--gradient-snack);
    color: var(--white-color); 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease; 
    border: none; 
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(255, 138, 61, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-pink), var(--primary-orange));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50px;
}
.btn:hover { 
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 138, 61, 0.4);
}
.btn:hover::before {
    opacity: 1;
}

/* --- 零食主题装饰元素 --- */
.snack-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--primary-orange) 3px, transparent 3px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: -1;
}
.snack-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--light-cream);
    border-radius: 50% 50% 0 0;
}

/* --- 2. 头部与导航 --- */
.main-header { 
    background-color: rgba(255, 255, 255, 0.95); 
    box-shadow: 0 4px 20px rgba(255, 138, 61, 0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%; 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}
.main-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 85px; 
}
.logo { 
    font-size: 2.2rem; 
    font-weight: 900; 
    color: var(--primary-orange); 
    text-decoration: none; 
    position: relative;
    padding-right: 15px;
}
.logo::after {
    content: '🍬';
    position: absolute;
    right: -5px;
    top: -5px;
    font-size: 1.8rem;
}
.main-nav ul { 
    display: flex; 
    list-style: none; 
}
.main-nav ul li { 
    margin-left: 40px; 
    position: relative;
}
.main-nav ul li a { 
    text-decoration: none; 
    color: var(--dark-brown); 
    font-weight: 600; 
    font-size: 1.05rem;
    position: relative; 
    padding: 8px 0;
    transition: color 0.3s ease;
}
.main-nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-snack);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.main-nav ul li a:hover { 
    color: var(--primary-orange);
}
.main-nav ul li a:hover::before,
.main-nav ul li a.active::before { 
    width: 100%; 
}
.main-nav ul li a.active { 
    color: var(--primary-orange); 
}
.menu-toggle { 
    display: none; 
    cursor: pointer; 
    background: none; 
    border: none; 
    font-size: 1.8rem; 
    color: var(--primary-orange); 
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.menu-toggle:hover {
    background-color: rgba(255, 138, 61, 0.1);
}

/* --- 3. 英雄区域 --- */
#hero {
    background: var(--gradient-snack);
    color: var(--white-color); 
    height: 85vh;
    min-height: 600px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0px, transparent 100px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0px, transparent 120px);
}
/* 新增：确保内容层级高于背景装饰 */
.hero-content {
    position: relative;
    z-index: 2;
}

#hero h1 { 
    font-size: 4.2rem; 
    color: var(--white-color); 
    margin-bottom: 1.5rem; 
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}
#hero p { 
    font-size: 1.4rem; 
    max-width: 750px; 
    margin: 0 auto 3rem; 
    opacity: 0.95; 
    font-weight: 300;
    line-height: 1.8;
}
#hero .btn {
    background: var(--white-color);
    color: var(--primary-orange);
    font-size: 1.2rem;
    padding: 18px 45px;
}
#hero .btn:hover {
    background: var(--light-cream);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* --- 4. 解决方案 --- */
#solutions {
    position: relative;
}
#solutions h2 {
    color: var(--dark-brown);
}
.solutions-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
}
.solution-card { 
    background-color: var(--white-color); 
    padding: 40px 30px; 
    border-radius: 20px; 
    box-shadow: var(--shadow-soft); 
    text-align: center; 
    transition: all 0.4s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-snack);
}
.solution-card:hover { 
    transform: translateY(-15px); 
    box-shadow: var(--shadow-hover);
    border-color: var(--border-light);
}
.solution-icon { 
    width: 80px; 
    height: 80px; 
    margin: 0 auto 25px; 
    background: var(--gradient-snack);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
    box-shadow: 0 8px 20px rgba(255, 138, 61, 0.3);
}
/* 零食主题图标设计 - 保持原样，将科技概念转化为零食形状 */
.solution-icon::before, .solution-icon::after { 
    content: ''; 
    position: absolute; 
    background-color: var(--white-color); 
    border-radius: 4px;
}
.icon-cloud::before {
    width: 40px;
    height: 25px;
    background: var(--white-color);
    border-radius: 15px 15px 0 0;
    top: 22px;
    left: 20px;
}
.icon-cloud::after {
    width: 20px;
    height: 20px;
    background: var(--white-color);
    border-radius: 50%;
    top: 18px;
    left: 40px;
}
.icon-data::before {
    width: 12px;
    height: 35px;
    background: var(--white-color);
    left: 22px;
    bottom: 15px;
}
.icon-data::after {
    width: 12px;
    height: 25px;
    background: var(--white-color);
    left: 42px;
    bottom: 15px;
}
.icon-data span {
    width: 12px;
    height: 45px;
    background: var(--white-color);
    left: 62px;
    bottom: 15px;
    position: absolute;
    border-radius: 4px;
}
.icon-security::before {
    width: 40px;
    height: 40px;
    border: 6px solid var(--white-color);
    border-top: none;
    border-radius: 0 0 20px 20px;
    top: 15px;
}
.icon-security::after {
    content: '✓';
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 24px;
    top: 25px;
}
.icon-ai { 
    background: var(--gradient-fresh);
}
.icon-ai::before {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid var(--white-color);
    top: 22px;
    left: 18px;
}
.icon-ai::after {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid var(--white-color);
    margin-left: 15px;
    top: 22px;
    left: 38px;
}
.icon-iot::before {
    width: 25px;
    height: 25px;
    background: var(--white-color);
    border-radius: 50%;
    top: 22px;
    left: 18px;
}
.icon-iot::after {
    content: '';
    width: 35px;
    height: 35px;
    border: 3px solid var(--white-color);
    border-radius: 50%;
    position: absolute;
    top: 12px;
    left: 12px;
}
.icon-consult::before {
    width: 40px;
    height: 25px;
    background: var(--white-color);
    border-radius: 10px;
    top: 25px;
}
.icon-consult::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 15px solid var(--white-color);
    position: absolute;
    top: 50px;
    left: 20px;
}
.solution-card h3 { 
    font-size: 1.6rem; 
    color: var(--dark-brown); 
    margin-bottom: 15px;
}
.solution-card p { 
    color: #777; 
    line-height: 1.8;
    font-size: 1rem;
}

/* --- 5. 关于我们 --- */
#about {
    position: relative;
}
#about .about-content { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
}
.about-text { 
    flex: 1; 
}
.about-text h3 {
    font-size: 2.2rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}
.about-text p { 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem;
    line-height: 1.9;
}
.about-visual {
    flex: 1; 
    height: 350px; 
    background: var(--gradient-snack);
    border-radius: 25px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--white-color); 
    font-size: 1.8rem; 
    font-weight: bold; 
    box-shadow: var(--shadow-hover);
    position: relative; 
    overflow: hidden;
}
.about-visual::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 2px);
    background-size: 40px 40px, 60px 60px;
    animation: rotate 30s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.about-visual span { 
    z-index: 1; 
    background: rgba(255, 255, 255, 0.2);
    padding: 20px 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}
.about-action { 
    margin-top: 2.5rem; 
}

/* --- 6. 最新动态/资讯中心 --- */
#news, #content {
    position: relative;
}
.news-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
    gap: 35px; 
}
.news-card {
    background-color: var(--white-color); 
    border-radius: 18px; 
    box-shadow: var(--shadow-soft);
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: all 0.4s ease;
    border: 1px solid var(--border-light);
}
.news-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-hover);
}

/* 图片容器 */
.news-cover {
    height: 220px; 
    width: 100%; 
    overflow: hidden; 
    position: relative;
    background: var(--gradient-snack);
}
.news-card:nth-child(2n) .news-cover { 
    background: var(--gradient-fresh); 
}
.news-card:nth-child(3n) .news-cover { 
    background: linear-gradient(135deg, var(--warm-yellow), #FFB347); 
}
.news-card:nth-child(4n) .news-cover { 
    background: linear-gradient(135deg, #A8E6CF, #6ED3D9); 
}

/* 图片样式 */
.news-cover img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.7s ease;
}
.news-card:hover .news-cover img { 
    transform: scale(1.12); 
}

.news-content { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}
.news-content h4 { 
    font-size: 1.4rem; 
    margin-bottom: 0.8rem; 
    line-height: 1.4;
}
.news-content h4 a { 
    text-decoration: none; 
    color: var(--dark-brown); 
    transition: color 0.3s; 
}
.news-content h4 a:hover { 
    color: var(--primary-orange); 
}
.news-meta { 
    font-size: 0.85rem; 
    color: #888; 
    margin-bottom: 1.2rem; 
    display: flex; 
    gap: 12px;
    align-items: center;
}
.news-meta a { 
    color: inherit; 
    text-decoration: none; 
    transition: color 0.3s ease; 
    font-weight: 600;
}
.news-meta a:hover { 
    color: var(--primary-orange); 
    text-decoration: underline; 
}
.news-content p { 
    flex-grow: 1; 
    margin-bottom: 1.5rem; 
    font-size: 1rem; 
    color: #666; 
    line-height: 1.7; 
}
.read-more-link { 
    text-decoration: none; 
    color: var(--primary-orange); 
    font-weight: 700; 
    align-self: flex-start; 
    position: relative;
    padding-bottom: 3px;
}
.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}
.read-more-link:hover { 
    color: var(--secondary-pink); 
}
.read-more-link:hover::after {
    width: 100%;
}

/* --- 7. FAQ --- */
#faq {
    position: relative;
}
.faq-accordion { 
    max-width: 850px; 
    margin: 0 auto; 
}
.faq-item { 
    border-bottom: 2px solid var(--border-light); 
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.faq-question {
    width: 100%; 
    background: none; 
    border: none; 
    text-align: left; 
    padding: 25px 30px;
    font-size: 1.2rem; 
    font-weight: 600; 
    cursor: pointer; 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    color: var(--dark-brown);
    transition: background-color 0.3s;
}
.faq-question:hover {
    background-color: rgba(255, 138, 61, 0.05);
}
.faq-question::after { 
    content: '+'; 
    font-size: 1.8rem; 
    color: var(--primary-orange); 
    transition: transform 0.4s ease; 
    font-weight: 300;
}
.faq-item.active .faq-question::after { 
    transform: rotate(45deg); 
    content: '−';
}
.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.5s ease, padding 0.5s ease; 
    padding: 0 30px; 
}
.faq-item.active .faq-answer { 
    padding: 0 30px 25px; 
}

/* FAQ 回答段落样式优化 */
.faq-answer p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.9;
    border-top: 2px dashed rgba(255, 138, 61, 0.2); 
    padding: 20px 0 0;
    margin-top: 15px;
}

/* --- 8. Footer --- */
.main-footer { 
    background: var(--dark-brown); 
    color: var(--light-cream); 
    padding: 70px 0 25px; 
    margin-top: auto; 
    position: relative;
}
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--gradient-snack);
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 40px; 
    margin-bottom: 50px; 
}
.footer-column { 
    flex: 1; 
    min-width: 220px; 
}
.footer-column h4 { 
    color: var(--primary-orange); 
    margin-bottom: 1.5rem; 
    font-size: 1.4rem; 
    position: relative;
    padding-bottom: 10px;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 2px;
}
.footer-column ul { 
    list-style: none; 
}
.footer-column ul li { 
    margin-bottom: 14px; 
}
.footer-column ul li a { 
    color: #D7CCC8; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    display: inline-block;
    padding: 2px 0;
}
.footer-column ul li a:hover { 
    color: var(--primary-orange); 
    transform: translateX(5px);
}
.footer-column ul li:before {
    content: '• ';
    color: var(--primary-orange);
    margin-right: 8px;
}
.footer-bottom { 
    text-align: center; 
    padding-top: 25px; 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    font-size: 0.95rem; 
    color: #BCAAA4; 
}
.footer-bottom a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-bottom a:hover {
    color: var(--secondary-pink);
    text-decoration: underline;
}

/* --- CMS 页面样式 --- */
.breadcrumb { 
    padding: 25px 0; 
    font-size: 0.95rem; 
    color: #888; 
    border-bottom: 2px solid var(--border-light); 
    margin-bottom: 40px; 
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumb a { 
    color: var(--dark-brown); 
    text-decoration: none; 
    transition: color 0.3s;
    font-weight: 500;
}
.breadcrumb a:hover { 
    color: var(--primary-orange); 
}
.breadcrumb span { 
    margin: 0 12px; 
    color: #CCC; 
}
.page-container { 
    padding: 70px 0 110px; 
}
.page-header { 
    text-align: left; 
    margin-bottom: 50px; 
}
.page-header.center-header {
    text-align: center;
}
.page-header h1 { 
    font-size: 2.8rem; 
    color: var(--dark-brown); 
    position: relative;
    display: inline-block;
}
.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--gradient-snack);
    border-radius: 3px;
}
.center-header .page-header h1::after {
    left: 50%;
    transform: translateX(-50%);
}
.page-meta { 
    color: #888; 
    font-size: 1rem; 
    margin-top: 15px; 
}
.page-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}
.page-meta a:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

.pagination { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-top: 60px; 
}
.page-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 50px; 
    height: 50px; 
    border: 2px solid var(--border-light); 
    border-radius: 50%; 
    color: var(--text-dark); 
    text-decoration: none; 
    transition: all 0.3s; 
    font-weight: 700;
    font-size: 1.1rem;
}
.page-btn:hover { 
    background: var(--gradient-snack); 
    color: #fff; 
    border-color: transparent; 
    transform: scale(1.1);
}
.page-current { 
    display: inline-flex; 
    align-items: center; 
    height: 50px; 
    padding: 0 20px; 
    font-weight: bold; 
    color: var(--dark-brown); 
    font-size: 1.1rem;
}
.markdown-body { 
    color: var(--text-dark); 
    font-size: 1.1rem; 
    line-height: 1.9; 
    max-width: 100%; 
    overflow-x: hidden; 
}
.markdown-body h2 { 
    font-size: 2rem; 
    margin-top: 3rem; 
    margin-bottom: 1.8rem; 
    padding-bottom: 15px; 
    border-bottom: 3px solid var(--border-light); 
    text-align: left; 
}
.markdown-body h2::after { 
    display: none; 
}
.markdown-body h2::before {
    display: none;
}
.markdown-body h3 { 
    font-size: 1.6rem; 
    margin-top: 2.5rem; 
    margin-bottom: 1.2rem; 
    color: var(--primary-orange);
}
.markdown-body p { 
    margin-bottom: 1.8rem; 
}
.markdown-body ul, .markdown-body ol { 
    padding-left: 25px; 
    margin-bottom: 1.8rem; 
}
.markdown-body li { 
    margin-bottom: 0.8rem; 
    position: relative;
}
.markdown-body ul li::before {
    content: '•';
    color: var(--primary-orange);
    font-weight: bold;
    position: absolute;
    left: -20px;
}
.markdown-body img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 15px; 
    margin: 25px 0; 
    box-shadow: var(--shadow-soft); 
    border: 5px solid white;
}
.markdown-body blockquote { 
    border-left: 5px solid var(--primary-orange); 
    background-color: rgba(255, 138, 61, 0.05); 
    padding: 25px 30px; 
    margin: 30px 0; 
    border-radius: 0 15px 15px 0; 
    font-style: italic; 
    color: #666; 
    font-size: 1.15rem;
    line-height: 1.8;
}
.markdown-body a { 
    color: var(--primary-orange); 
    text-decoration: none; 
    border-bottom: 2px dotted var(--primary-orange); 
    padding-bottom: 2px;
    font-weight: 600;
}
.markdown-body a:hover { 
    border-bottom-style: solid; 
    color: var(--secondary-pink);
}
.markdown-body hr { 
    border: 0; 
    height: 3px; 
    background: var(--gradient-snack); 
    margin: 50px 0; 
    border-radius: 3px;
}
.markdown-body pre { 
    background: #2D3748; 
    color: #FFF; 
    padding: 25px; 
    border-radius: 10px; 
    overflow-x: auto; 
    margin-bottom: 25px; 
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}
.post-tags { 
    margin-top: 50px; 
    padding-top: 25px; 
    border-top: 2px solid var(--border-light); 
}
.tag-pill { 
    display: inline-block; 
    background: rgba(255, 138, 61, 0.1); 
    padding: 10px 20px; 
    border-radius: 50px; 
    color: var(--primary-orange); 
    text-decoration: none; 
    font-size: 0.9rem; 
    margin-right: 12px; 
    margin-bottom: 12px; 
    border: 1px solid rgba(255, 138, 61, 0.3); 
    transition: all 0.3s; 
    font-weight: 600;
}
.tag-pill:hover { 
    background: var(--primary-orange); 
    color: #fff; 
    border-color: var(--primary-orange); 
    transform: translateY(-3px);
}
.post-navigation { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 50px; 
    padding-top: 30px; 
    border-top: 2px solid var(--border-light); 
}
.nav-next, .nav-prev { 
    max-width: 48%; 
    text-decoration: none; 
    color: var(--dark-brown); 
    font-weight: 700; 
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s;
    background: rgba(255, 138, 61, 0.05);
}
.nav-next:hover, .nav-prev:hover { 
    color: var(--primary-orange); 
    background: rgba(255, 138, 61, 0.1);
    transform: translateY(-5px);
}
.nav-next span, .nav-prev span { 
    display: block; 
    font-size: 0.9rem; 
    color: #999; 
    font-weight: normal; 
    margin-bottom: 8px; 
}
.error-page { 
    text-align: center; 
    padding: 120px 0; 
}
.error-page h1 { 
    font-size: 6rem; 
    color: var(--primary-orange); 
    margin-bottom: 0; 
    text-shadow: 0 10px 20px rgba(255, 138, 61, 0.3);
}
.error-page p { 
    font-size: 1.8rem; 
    margin-bottom: 40px; 
    color: var(--dark-brown);
}
.no-content { 
    text-align: center; 
    padding: 60px; 
    color: #AAA; 
    background: var(--light-cream); 
    border-radius: 15px; 
    font-size: 1.2rem;
    border: 2px dashed var(--border-light);
}

/* 响应式设计 */
@media (max-width: 1100px) { 
    h2 { font-size: 2.5rem; } 
    #hero h1 { font-size: 3.5rem; } 
}

@media (max-width: 900px) {
    #about .about-content {
        flex-direction: column;
    }
    .about-visual {
        width: 100%;
        order: -1;
    }
}

@media (max-width: 768px) {
    .logo { 
        font-size: 1.8rem; 
    }
    .logo::after {
        font-size: 1.5rem;
        top: -3px;
    }

    .menu-toggle { 
        display: block; 
    }
    .main-nav { 
        position: absolute; 
        top: 85px; 
        /* 修正：考虑到父容器.container有24px padding，设置负margin使其全屏对齐 */
        left: -24px; 
        width: calc(100% + 48px); 
        background-color: var(--white-color); 
        flex-direction: column; 
        max-height: 0; 
        overflow: hidden; 
        transition: max-height 0.5s ease-in-out; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
        border-top: 1px solid var(--border-light);
        border-radius: 0 0 20px 20px;
        z-index: 1001; /* 确保菜单层级够高 */
    }
    .main-nav.active { 
        max-height: 500px; 
        padding: 20px 0;
    }
    .main-nav ul { 
        flex-direction: column; 
        padding: 0;
    }
    .main-nav ul li { 
        margin: 0; 
        text-align: center; 
        width: 100%;
    }
    .main-nav ul li a { 
        display: block; 
        padding: 18px 20px; 
        width: 100%;
        border-bottom: 1px solid rgba(255, 138, 61, 0.1);
    }
    .main-nav ul li a::before { 
        display: none; 
    }
    #hero h1 { 
        font-size: 2.8rem; 
    }
    #hero p { 
        font-size: 1.2rem; 
    }
    .footer-content { 
        flex-direction: column; 
        text-align: center; 
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-column ul li:before {
        display: none;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    .nav-next, .nav-prev {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) { 
    #hero h1 { 
        font-size: 2.2rem; 
    } 
    #hero p { 
        font-size: 1.1rem; 
    } 
    section { 
        padding: 70px 0; 
    } 
    h2 { 
        font-size: 2rem; 
    }
    h2::before, h2::after {
        display: none;
    }
    .solutions-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}