/* ============================================
   盐业公司网站样式 - 纯净·专业·可靠
   主色调: 白色, 浅蓝色, 深蓝色
   辅助色: 灰色, 金色点缀
   设计理念: 纯净、可靠、专业
   Version: 1.1 (Fixed Responsive & Layout)
============================================ */

/* --- 1. 全局变量与基础样式 --- */
:root {
    --salt-white: #ffffff;
    --salt-blue-light: #e6f2ff;
    --salt-blue: #1a6fb0;
    --salt-blue-dark: #0d4a7a;
    --salt-gray-light: #f5f7fa;
    --salt-gray: #6c7a8c;
    --salt-gray-dark: #36404a;
    --salt-gold: #d4af37;
    --salt-teal: #2a9d8f;
    
    --primary-color: var(--salt-blue);
    --secondary-color: var(--salt-teal);
    --accent-color: var(--salt-gold);
    --dark-color: var(--salt-blue-dark);
    --light-color: var(--salt-gray-light);
    --text-color: var(--salt-gray-dark);
    --border-color: #d1d9e6;
    --white-color: var(--salt-white);
    --shadow: 0 4px 12px rgba(26, 111, 176, 0.08); /* 稍微调淡阴影，更清透 */
    --shadow-heavy: 0 8px 25px rgba(13, 74, 122, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* 字体渲染优化 */
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* 确保容器宽度 */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.5rem;
    overflow-wrap: break-word; /* 防止长单词溢出 */
}

section {
    padding: 90px 0;
    position: relative;
}

/* 交替背景色 */
section:nth-of-type(odd) {
    background-color: var(--light-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: var(--white-color);
}

.btn:active {
    transform: translateY(-1px);
}

/* --- 2. 头部与导航 --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(13, 74, 122, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(209, 217, 230, 0.5);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 50px;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--primary-color);
}

.logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%; /* 也可以改为 border-radius: 8px 做成圆角矩形，更像盐晶 */
    box-shadow: 0 0 0 6px rgba(26, 111, 176, 0.1);
}

.logo::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--white-color);
    border-radius: 4px;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background-color: var(--light-color);
}

/* --- 3. 英雄区域 --- */
#hero {
    background: linear-gradient(135deg, var(--salt-blue-light) 0%, #ffffff 100%);
    color: var(--dark-color);
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(26, 111, 176, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 157, 143, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

#hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--salt-gray);
    line-height: 1.8;
}

/* 海浪装饰效果 */
#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    /* 保持原有SVG波浪 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%231a6fb0'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%231a6fb0'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%231a6fb0'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* --- 4. 解决方案 --- */
#solutions {
    position: relative;
    overflow: hidden;
}

#solutions::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(26, 111, 176, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.solutions-grid {
    display: grid;
    /* 修正：将最小宽度从320px降至280px，适应小屏手机 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.solution-card {
    background-color: var(--white-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(209, 217, 230, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 2;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.solution-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: var(--salt-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(26, 111, 176, 0.15);
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

/* 统一图标风格：几何感/晶体感 (适应盐业主题，即使类名是Tech) */

/* 盐晶/云图标 */
.icon-cloud::before {
    content: '';
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    /* 六边形晶体结构 */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.icon-cloud::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white-color);
    /* 内部小晶体 */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.5;
}

/* 数据图标 - 盐堆/层叠 */
.icon-data::before {
    content: '';
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    position: absolute;
    transform: translate(-8px, -8px);
    border-radius: 4px;
    opacity: 0.6;
}

.icon-data::after {
    content: '';
    width: 36px;
    height: 36px;
    background-color: var(--secondary-color);
    position: absolute;
    transform: translate(4px, 4px);
    border-radius: 4px;
}

/* 安全图标 - 盾牌/结实 */
.icon-security::before {
    content: '';
    width: 34px;
    height: 40px;
    background-color: var(--primary-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.icon-security::after {
    content: '✓';
    color: var(--white-color);
    font-weight: bold;
    font-size: 22px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* AI图标 - 修正为统一底色，内部为核心晶体 */
.icon-ai {
    /* 修正：移除原来的渐变背景，保持统一 */
    background-color: var(--salt-blue-light); 
}

.solution-card:hover .icon-ai {
    background-color: var(--primary-color);
}

.icon-ai::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    box-sizing: border-box;
}

.solution-card:hover .icon-ai::before {
    border-color: var(--white-color);
}

.icon-ai::after {
    content: '';
    width: 16px;
    height: 16px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 0 4px var(--white-color);
}

/* 物联网图标 - 连接节点 */
.icon-iot::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    box-shadow: 
        16px -16px 0 var(--secondary-color),
        -16px 16px 0 var(--secondary-color);
}

.solution-card:hover .icon-iot::before {
    background-color: var(--white-color);
    box-shadow: 
        16px -16px 0 var(--white-color),
        -16px 16px 0 var(--white-color);
}

.icon-iot::after {
    content: '';
    width: 44px;
    height: 44px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    opacity: 0.5;
}

.solution-card:hover .icon-iot::after {
    border-color: var(--white-color);
}

/* 咨询图标 */
.icon-consult::before {
    content: '';
    width: 36px;
    height: 26px;
    background-color: var(--primary-color);
    border-radius: 4px 4px 4px 0;
    position: absolute;
    top: 24px;
    left: 20px;
}

.icon-consult::after {
    content: '';
    width: 26px;
    height: 18px;
    background-color: var(--secondary-color);
    border-radius: 4px 4px 0 4px;
    position: absolute;
    top: 36px;
    left: 34px;
    border: 2px solid var(--white-color);
}

.solution-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.solution-card p {
    color: var(--salt-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- 5. 关于我们 --- */
#about {
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(42, 157, 143, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-visual {
    flex: 1;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: move-salt 30s linear infinite;
    z-index: 0;
}

@keyframes move-salt {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

.about-visual span {
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
}

.about-action {
    margin-top: 2.5rem;
}

/* --- 6. 最新动态 --- */
.news-grid {
    display: grid;
    /* 修正：最小宽度调整，防止小屏溢出 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 1px solid rgba(209, 217, 230, 0.5);
    height: 100%; /* 确保同排卡片等高 */
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

/* 图片容器 */
.news-cover {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.news-card:nth-child(2n) .news-cover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.news-card:nth-child(3n) .news-cover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* 盐晶背景图案 */
.news-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

/* 图片样式 */
.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    position: relative;
    z-index: 2;
}

.news-card:hover .news-cover img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-content h4 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s;
    display: block;
}

.news-content h4 a:hover {
    color: var(--primary-color);
}

.news-meta {
    font-size: 0.9rem;
    color: var(--salt-gray);
    margin-bottom: 1.2rem;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 分类链接样式 */
.news-meta a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 10px;
    background-color: var(--salt-blue-light);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.85rem;
}

.news-meta a:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
}

.news-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--salt-gray);
    line-height: 1.6;
}

.read-more-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: var(--dark-color);
    gap: 12px;
}

.read-more-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more-link:hover::after {
    transform: translateX(5px);
}

/* --- 7. 分页 --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    background-color: var(--white-color);
}

.page-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-current {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    font-weight: 700;
    color: var(--dark-color);
    background-color: var(--salt-blue-light);
    border-radius: 8px;
}

/* --- 8. FAQ --- */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 30px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--salt-blue-light);
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-weight: 300;
    min-width: 24px;
    text-align: center;
    line-height: 1;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 30px;
    background-color: var(--white-color);
}

.faq-item.active .faq-answer {
    /* JS会设置maxHeight, 但padding需要这里配合 */
    padding-bottom: 30px;
}

.faq-answer p {
    color: var(--salt-gray);
    font-size: 1rem;
    line-height: 1.7;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* --- 9. Footer --- */
.main-footer {
    background-color: var(--dark-color);
    color: var(--salt-gray-light);
    padding: 70px 0 30px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h4 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.footer-column p {
    color: #b0c4d9;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #b0c4d9;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.footer-column ul li a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: #8fa3bf;
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* --- CMS 页面样式 --- */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.95rem;
    color: var(--salt-gray);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--border-color);
}

.page-container {
    /* 修正：顶部内边距增加到130px，避免被80px的固定Header遮挡，预留出更多呼吸感 */
    padding: 130px 0 120px;
}

.page-header {
    margin-bottom: 50px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

.page-meta {
    color: var(--salt-gray);
    font-size: 1rem;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    background-color: var(--salt-blue-light);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.page-meta a:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
}

.center-header {
    text-align: center;
}

.single-post-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Markdown 内容样式 */
.markdown-body {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 100%;
    overflow-x: hidden;
    overflow-wrap: break-word; /* 修正：强制长单词换行 */
}

.markdown-body h2 {
    font-size: 1.9rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
    text-align: left;
}

.markdown-body h2::after {
    display: none;
}

.markdown-body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.markdown-body p {
    margin-bottom: 1.5rem;
}

.markdown-body ul, .markdown-body ol {
    padding-left: 25px;
    margin-bottom: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: var(--shadow);
}

.markdown-body blockquote {
    border-left: 4px solid var(--primary-color);
    background-color: var(--salt-blue-light);
    padding: 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--dark-color);
    position: relative;
}

.markdown-body blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(26, 111, 176, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.markdown-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 111, 176, 0.3);
    transition: all 0.3s ease;
}

.markdown-body a:hover {
    border-bottom-color: var(--primary-color);
    color: var(--dark-color);
}

.markdown-body hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 40px 0;
}

.markdown-body pre {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.post-tags {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.tag-pill {
    display: inline-block;
    background: var(--salt-blue-light);
    padding: 8px 18px;
    border-radius: 25px;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    font-weight: 500;
}

.tag-pill:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.nav-next, .nav-prev {
    max-width: 45%;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
}

.nav-next:hover, .nav-prev:hover {
    color: var(--primary-color);
    background-color: var(--salt-blue-light);
}

.nav-next span, .nav-prev span {
    display: block;
    font-size: 0.9rem;
    color: var(--salt-gray);
    font-weight: normal;
    margin-bottom: 8px;
}

.error-page {
    text-align: center;
    padding: 120px 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-page h1 {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1;
    text-shadow: 0 5px 15px rgba(26, 111, 176, 0.2);
}

.error-page p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--salt-gray);
    max-width: 600px;
}

.no-content {
    text-align: center;
    padding: 60px;
    color: var(--salt-gray);
    background: var(--light-color);
    border-radius: 10px;
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* --- 响应式设计 --- */
@media (max-width: 1100px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    #hero h1 { font-size: 3rem; }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-visual {
        height: 300px;
        width: 100%;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-column {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.6rem;
        padding-left: 45px;
    }
    
    .logo::before {
        width: 36px;
        height: 36px;
    }
    
    .logo::after {
        width: 20px;
        height: 20px;
        left: 8px;
    }
    
    .menu-toggle {
        display: flex; /* 改为flex以居中汉堡图标 */
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        /* 修正：增加过渡效果平滑度，防止菜单突然跳动 */
        transition: max-height 0.4s ease-in-out, box-shadow 0.3s;
        z-index: 999;
        /* 默认无阴影 */
        box-shadow: none;
    }
    
    .main-nav.active {
        /* 修正：计算最大高度，防止菜单过长无法滚动 */
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }
    
    .main-nav ul li {
        margin: 0;
        text-align: center;
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav ul li:last-child a {
        border-bottom: none;
    }
    
    .main-nav ul li a::after {
        display: none;
    }
    
    #hero {
        height: auto;
        min-height: 500px;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero p {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 70px 0;
    }
    
    .solution-card {
        padding: 30px 20px;
    }
    
    .news-grid {
        /* 已经是280px minmax，这里不需要再覆盖 */
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-next, .nav-prev {
        max-width: 100%;
        text-align: left;
    }
    
    .nav-next {
        text-align: right;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column ul li a:hover {
        padding-left: 0;
        color: var(--accent-color);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; margin-bottom: 2.5rem; }
    h3 { font-size: 1.5rem; }
    
    #hero h1 { font-size: 2rem; }
    #hero p { font-size: 1rem; }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .error-page h1 {
        font-size: 6rem;
    }
    
    .error-page p {
        font-size: 1.2rem;
    }
    
    .logo {
        padding-left: 40px; /* 小屏微调logo间距 */
    }
    .logo::before {
        width: 32px;
        height: 32px;
    }
}