/* 基础样式：高端土黄色系适配 + 按钮基础样式统一 */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, sans-serif; }
body { 
    background-color: #f5f0e6; /* 主背景：浅土黄（高端柔和） */
    color: #5d4037; /* 主文字色：深棕（与土黄协调） */
    line-height: 1.6; 
}
.container { width: 85%; max-width: 1200px; margin: 0 auto; }

/* 按钮基础样式（统一复用，减少冗余） */
.btn { 
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px; 
    border: none; 
    border-radius: 50px; 
    font-weight: 600; 
    text-decoration: none; 
    cursor: pointer; 
    transition: background 0.3s; 
    justify-content: center;
}
/* 移动端按钮（原btn样式） */
.btn-mobile {
    background: #c19a6b; /* 赭石色 */
    color: white;
}
.btn-mobile:hover { background: #8b5a2b; /* 深棕hover */ }
/* PC按钮（差异化样式） */
.btn-pc {
    background: #8b5a2b; /* 深棕色 */
    color: white;
    margin-left: 15px; /* 与移动端按钮间距（桌面端） */
}
.btn-pc:hover { background: #6d4c41; /* 更深棕hover */ }
/* 下载按钮（复用基础样式，仅改颜色） */
.btn-download {
    background: white;
    color: #c19a6b;
}
.btn-download:hover { background: #f9f3e9; }

.section { padding: 80px 0; }
.section-title { 
    font-size: 2.2rem; 
    text-align: center; 
    margin-bottom: 50px; 
    color: #8b5a2b; /* 标题色：深棕 */
    font-weight: 700; 
}
.card { 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    padding: 30px; 
    margin-bottom: 30px; 
    border: 1px solid #e8dcc8; /* 卡片边框：浅土黄 */
}

/* 头部导航：响应式适配 */
header { 
    background: white; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 0; 
}
.logo { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: #c19a6b; /* Logo色：赭石色 */
    text-decoration: none; 
}
.nav-links { 
    display: flex; 
    gap: 30px; 
}
.nav-links a { 
    text-decoration: none; 
    color: #5d4037; 
    font-weight: 500; 
    transition: color 0.3s; 
}
.nav-links a:hover { color: #c19a6b; }
.menu-toggle { 
    display: none; 
    font-size: 1.8rem; 
    color: #8b5a2b; 
    cursor: pointer; 
}

/* Hero区：土黄色系适配，按钮组flex布局 */

/* .hero { 
    background: linear-gradient(135deg, #f9f3e9 0%, #f0e6d2 100%); 
    padding: 120px 0; 
    text-align: center; 
    position: relative; 
    overflow: hidden; 
}
.hero-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem; 
    color: rgba(193, 154, 107, 0.06); 
    z-index: 0; 
}
.hero-content {
    position: relative;
    z-index: 1; 
}
.hero h1 { 
    font-size: 3rem; 
    color: #8b5a2b; 
    margin-bottom: 20px; 
    line-height: 1.2; 
}
.hero p { 
    font-size: 1.2rem; 
    color: #6d4c41; 
    max-width: 700px; 
    margin: 0 auto 40px; 
} */
 /* -------------------------- Hero区背景图样式（核心变动） -------------------------- */
.hero {
    /* 1. 替换背景图：只需修改url中的路径（本地/在线图片均可） */
    background-image: url("../blog/images/index.jpg"); /* 本地图片（放在项目images文件夹） */
    /* 或用在线图片：background-image: url("https://xxx.com/hero-bg.jpg"); */
    
    background-color: #f0e6d2; /* 背景图加载失败时的备用色 */
    background-size: cover; /* 背景图自适应容器（铺满不拉伸） */
    background-position: center; /* 背景图居中显示 */
    background-repeat: no-repeat; /* 背景图不重复 */
    background-attachment: fixed; /* 可选：滚动时背景图固定（视差效果），不想固定则改为scroll */
    
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 可选：添加半透明遮罩（避免背景图过亮影响文字可读性） */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 230, 210, 0.7); /* 遮罩颜色+透明度（0.7为70%透明） */
    z-index: 0; /* 遮罩在背景图之上，内容之下 */
}

/* 原有内容层级调整（确保文字在最上层） */
.hero-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    color: rgba(255,255,255,0.1);
    z-index: 1; /* 图标在遮罩之上 */
}

.hero-content {
    position: relative;
    z-index: 2; /* 文字在最上层 */
    max-width: 800px;
    margin: 0 auto;
}
/* Hero区按钮组（无额外容器，直接flex） */
.hero-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* 平台定位：土黄色系文字适配 */
.platform-intro { 
    text-align: center; 
    max-width: 900px; 
    margin: 0 auto; 
}
.platform-intro p { 
    font-size: 1.1rem; 
    color: #5d4037; 
    margin-bottom: 30px; 
}
.platform-intro span { 
    color: #c19a6b; 
    font-weight: 600; 
}

/* 核心功能：土黄色系图标适配 */
.features { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 100px; 
}
.feature-card { text-align: center; }
.feature-icon { 
    font-size: 2.5rem; 
    color: #c19a6b; 
    margin-bottom: 20px; 
}
.feature-card h3 { 
    font-size: 1.3rem; 
    color: #8b5a2b; 
    margin-bottom: 15px; 
}
.feature-card p { color: #6d4c41; }

/* 用户故事：土黄色系背景适配 */
.success-stories { 
    background-color: #f0e6d2; 
}
.story-card { max-width: 800px; margin: 0 auto; }
.story-card .user-info { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin-bottom: 20px; 
}
.user-avatar { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    background: #e8dcc8; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    color: #8b5a2b; 
    font-weight: 700; 
}
.user-details h4 { 
    font-size: 1.2rem; 
    color: #8b5a2b; 
}
.user-details p { color: #6d4c41; }
.story-content { 
    font-style: italic; 
    color: #5d4037; 
    line-height: 1.8; 
}

/* 目标人群：土黄色系适配 */
.audience { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
}
.audience-card h3 { 
    font-size: 1.5rem; 
    color: #c19a6b; 
    margin-bottom: 20px; 
}
.audience-card ul { list-style: none; }
.audience-card li { 
    margin-bottom: 15px; 
    display: flex; 
    align-items: start; 
    gap: 10px; 
    color: #6d4c41; 
}
.audience-card li::before { 
    content: "✓"; 
    color: #c19a6b; 
    font-weight: 700; 
}

/* APP优势：土黄色系背景适配 */
.app-advantages { 
    background-color: #f9f3e9; 
}
.advantages-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}
.advantage-item { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}
.advantage-icon { 
    font-size: 1.8rem; 
    color: #c19a6b; 
}
.advantage-content h4 { 
    color: #8b5a2b; 
    margin-bottom: 5px; 
}
.advantage-content p { 
    color: #6d4c41; 
    font-size: 0.95rem; 
}

/* 行动召唤：下载区（按钮组统一flex） */
.cta { 
    background: #c19a6b; 
    color: white; 
    text-align: center; 
    padding: 90px 0; 
}
.cta h2 { 
    font-size: 2.5rem; 
    margin-bottom: 25px; 
}
.cta p { 
    font-size: 1.1rem; 
    max-width: 700px; 
    margin: 0 auto 40px; 
    opacity: 0.9; 
}
.download-buttons { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 15px; 
}

/* 底部信息：土黄色系深色适配 */
footer { 
    background: #5d4037; 
    color: white; 
    padding: 60px 0 30px; 
}
.footer-content { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 40px; 
    margin-bottom: 40px; 
}
.footer-column h4 { 
    font-size: 1.2rem; 
    margin-bottom: 20px; 
    color: #e8dcc8; 
}
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }
.footer-column a { 
    color: #f0e6d2; 
    text-decoration: none; 
    transition: color 0.3s; 
}
.footer-column a:hover { color: white; }
.copyright { 
    text-align: center; 
    padding-top: 30px; 
    border-top: 1px solid #6d4c41; 
    color: #e8dcc8; 
    font-size: 0.9rem; 
}

/* 响应式适配：移动端（768px以下） */
@media (max-width: 768px) {
    /* 导航栏适配 */
    .nav-links { 
        position: fixed; 
        top: 70px; 
        left: -100%; 
        flex-direction: column; 
        background: white; 
        width: 100%; 
        height: calc(100vh - 70px); 
        padding: 30px; 
        gap: 20px; 
        transition: 0.3s; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.05); 
    }
    .nav-links.active { left: 0; }
    .menu-toggle { display: block; }
    
    /* 文字大小适配 */
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .section-title { font-size: 1.8rem; }
    .feature-card h3 { font-size: 1.2rem; }
    .audience-card h3 { font-size: 1.3rem; }
    .cta h2 { font-size: 2rem; }
    
    /* 间距适配 */
    .section { padding: 60px 0; }
    .hero { padding: 100px 0; }
    .features { gap: 20px; }
    .audience { gap: 30px; }
    
    /* 按钮适配（统一宽度） */
    .btn { width: 80%; }
    .btn-pc { margin-left: 0; }
}

/* 响应式适配：小屏手机（480px以下） */
@media (max-width: 480px) {
    .logo { font-size: 1.5rem; }
    .hero h1 { font-size: 1.8rem; }
    .btn { width: 90%; }
}
/* -------------------------- 新增：博客列表页面样式 -------------------------- */
/* 列表容器 */
.blog-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
/* 列表卡片（复用card类，仅补差异） */
.blog-list-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e8dcc8;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.blog-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
/* 列表卡片封面图 */
.blog-list-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0e6d2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5a2b;
}
/* 列表卡片内容区 */
.blog-list-content {
    padding: 25px;
}
/* 列表卡片元信息 */
.blog-list-meta {
    display: flex;
    gap: 15px;
    color: #6d4c41;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
/* 列表卡片标题 */
.blog-list-title {
    font-size: 1.4rem;
    color: #8b5a2b;
    margin-bottom: 12px;
    line-height: 1.3;
}
/* 列表卡片摘要 */
.blog-list-excerpt {
    color: #5d4037;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 阅读更多按钮 */
.blog-read-more {
    display: inline-block;
    color: #c19a6b;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.blog-read-more:hover {
    color: #8b5a2b;
}
/* 列表页面响应式 */
@media (max-width: 768px) {
    .blog-list-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .blog-list-img {
        height: 180px;
    }
    .blog-list-content {
        padding: 20px;
    }
    .blog-list-title {
        font-size: 1.3rem;
    }
}
/* -------------------------- 新增/修改：博客页面图片居中样式 -------------------------- */
/* 1. 单篇博客文章内的图片（.blog-post-text 下的所有img） */
.blog-post-text img {
    display: block; /* 转为块级元素才能用margin: 0 auto居中 */
    margin: 30px auto; /* 上下间距30px，左右自动（实现居中） */
    max-width: 100%; /* 防止图片超出文章容器宽度 */
    height: auto; /* 保持图片宽高比，避免变形 */
    border-radius: 8px; /* 可选：添加轻微圆角，与整体风格统一 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); /* 可选：添加轻微阴影，提升质感 */
}

/* 2. 单篇博客封面图（.blog-post-img 容器内的图片）- 若需居中（默认已填充容器，可选） */
.blog-post-img {
    display: flex;
    align-items: center;
    justify-content: center; /* 确保封面图在容器内居中（若图片尺寸小于容器） */
    overflow: hidden; /* 防止图片溢出容器 */
}
.blog-post-img img {
    object-fit: cover; /* 保持图片比例，填充容器（若需完全居中显示而非填充，可改为object-fit: contain） */
}

/* 3. 博客列表页封面图（可选：若需列表封面图也居中填充） */
.blog-list-img {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.blog-list-img img {
    object-fit: cover; /* 列表封面图居中填充容器，避免拉伸 */
}