/* ============================================
   婚礼公司主题样式 - 浪漫、优雅、温馨
   主色调：玫瑰金、香槟色、浅粉色、白色
   ============================================ */

/* --- 1. 全局变量与基础样式 --- */
:root {
    --primary-color: #d4a574;          /* 香槟金/玫瑰金 */
    --secondary-color: #f7e8dd;        /* 浅米色/奶油色 */
    --accent-color: #e8b4b8;           /* 淡粉色/玫瑰粉 */
    --dark-color: #8b6b4d;             /* 深棕色 */
    --light-color: #fffaf5;            /* 极浅米色 */
    --text-color: #5d4037;             /* 深棕色文字 */
    --border-color: #e0c9b8;           /* 浅棕色边框 */
    --white-color: #ffffff;            /* 纯白色 */
    --shadow: 0 4px 20px rgba(212, 165, 116, 0.15); /* 柔和阴影 */
    --shadow-strong: 0 8px 30px rgba(212, 165, 116, 0.25); /* 较强阴影 */
    --gradient-romantic: linear-gradient(135deg, #f7e8dd 0%, #f8f0e9 100%); /* 浪漫渐变 */
    --gradient-gold: linear-gradient(135deg, #d4a574 0%, #e8b4b8 100%); /* 金色渐变 */
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    /* 正文使用易读的衬线或无衬线混搭 */
    font-family: 'Georgia', 'Times New Roman', "PingFang SC", "Microsoft YaHei", serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--light-color);
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(232, 180, 184, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 85% 30%, rgba(212, 165, 116, 0.05) 0%, transparent 20%);
}

main { 
    flex: 1; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

h1, h2, h3, h4 { 
    color: var(--dark-color); 
    margin-bottom: 1rem; 
    font-weight: 600;
    letter-spacing: 0.5px;
    /* 标题强制使用衬线体，包含中文衬线体以保持优雅 */
    font-family: 'Playfair Display', 'Georgia', "Songti SC", "SimSun", "STSong", serif;
}

h2 { 
    font-size: 2.8rem; 
    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: 100px; 
    height: 3px; 
    background: var(--gradient-gold);
    border-radius: 3px; 
}

section { 
    padding: 90px 0; 
    position: relative;
}

section:nth-of-type(even) { 
    background-color: var(--secondary-color); 
}

section:nth-of-type(even)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--gradient-gold);
}

.btn {
    display: inline-block; 
    padding: 14px 32px; 
    background: var(--gradient-gold);
    color: var(--white-color); 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 600;
    transition: all 0.4s ease; 
    border: none; 
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-strong);
    color: #fff;
    letter-spacing: 1.5px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::after {
    left: 100%;
}

/* --- 2. 头部与导航 --- */
.main-header { 
    background-color: rgba(255, 255, 255, 0.95); 
    box-shadow: 0 2px 15px rgba(139, 107, 77, 0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%;
    backdrop-filter: blur(10px);
}

.main-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 80px; 
}

.logo { 
    font-size: 2rem; 
    font-weight: 700; 
    color: var(--dark-color); 
    text-decoration: none; 
    font-family: 'Playfair Display', 'Georgia', serif;
    position: relative;
    padding-right: 10px;
}

.logo::after {
    content: '❤';
    color: var(--accent-color);
    font-size: 1.8rem;
    position: absolute;
    top: -5px;
    right: -15px;
}

.main-nav ul { 
    display: flex; 
    list-style: none; 
}

.main-nav ul li { 
    margin-left: 40px; 
}

.main-nav ul li a { 
    text-decoration: none; 
    color: var(--text-color); 
    font-weight: 500; 
    position: relative; 
    padding: 5px 0; 
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.main-nav ul li a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--gradient-gold);
    transition: width 0.4s ease; 
}

.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); 
}

/* --- 3. 英雄区域 --- */
#hero {
    background: var(--gradient-romantic);
    color: var(--text-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-content {
    position: relative;
    z-index: 2;
}

#hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    opacity: 0.15;
    border-radius: 50%;
}

#hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    opacity: 0.15;
    border-radius: 50%;
}

#hero h1 { 
    font-size: 4rem; 
    color: var(--dark-color); 
    margin-bottom: 1.5rem; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

#hero p { 
    font-size: 1.3rem; 
    max-width: 700px; 
    margin: 0 auto 2.5rem; 
    line-height: 1.8;
}

/* --- 4. 解决方案 (PHP使用科技类名，这里映射为婚礼图标) --- */
#solutions {
    position: relative;
}

.solutions-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
}

.solution-card { 
    background-color: var(--white-color); 
    padding: 40px 30px; 
    border-radius: 15px; 
    box-shadow: var(--shadow); 
    text-align: center; 
    transition: all 0.4s ease;
    border: 1px solid rgba(224, 201, 184, 0.3);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-gold);
}

.solution-card:hover { 
    transform: translateY(-15px); 
    box-shadow: var(--shadow-strong);
}

.solution-icon { 
    width: 80px; 
    height: 80px; 
    margin: 0 auto 25px; 
    background: var(--gradient-romantic); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
    border: 2px solid var(--primary-color);
    transition: all 0.4s ease;
}

.solution-card:hover .solution-icon {
    transform: rotate(10deg) scale(1.05);
    background: var(--gradient-gold);
}

/* --- 图标映射与重绘 --- */
.solution-icon::before, .solution-icon::after {
    transition: all 0.4s ease;
}

/* 1. PHP类: icon-cloud -> 视觉: 心形 (Heart) */
.icon-cloud::before, .icon-cloud::after { 
    content: ''; 
    position: absolute; 
    background-color: var(--primary-color); 
    border-radius: 50%;
}
.icon-cloud::before {
    width: 26px; height: 26px;
    top: 26px; left: 26px;
    transform: rotate(45deg);
    border-radius: 0;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
}
.icon-cloud::after {
    width: 26px; height: 26px;
    top: 26px; left: 14px;
    transform: rotate(45deg);
    border-radius: 0;
    border-bottom-left-radius: 50%;
    border-top-left-radius: 50%;
    background-color: var(--primary-color); 
    /* 修正心形拼接 */
    transform-origin: center right;
    display: none; /* 原代码逻辑较复杂，简化如下 */
}
/* 重新绘制标准CSS心形 */
.icon-cloud::before {
    background: var(--primary-color);
    width: 25px; height: 40px;
    border-radius: 25px 25px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
    top: 18px; left: 38px;
}
.icon-cloud::after {
    content: '';
    display: block;
    background: var(--primary-color);
    width: 25px; height: 40px;
    border-radius: 25px 25px 0 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
    top: 18px; left: 18px;
    box-shadow: none; /* 清除原有阴影干扰 */
}

/* 2. PHP类: icon-data -> 视觉: 钻戒 (Ring) */
.icon-data::before {
    content: '';
    width: 36px; height: 36px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 25px; left: 22px;
}
.icon-data::after {
    content: '✦'; /* 使用星形代替纯emoji，更优雅 */
    font-size: 28px;
    position: absolute;
    top: 12px; left: 38px;
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
}

/* 3. PHP类: icon-ai -> 视觉: 婚礼蛋糕 (Wedding Cake) */
.icon-ai { background: var(--gradient-romantic); }
.icon-ai::before {
    content: '';
    width: 40px; height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 42px; left: 20px;
}
.icon-ai::after {
    content: '';
    width: 28px; height: 14px;
    background: var(--accent-color);
    border-radius: 2px 2px 0 0;
    position: absolute;
    top: 28px; left: 26px;
    box-shadow: 0 14px 0 var(--primary-color); /* 增加中间层 */
}

/* 4. PHP类: icon-security -> 视觉: 婚纱 (Wedding Dress) */
.icon-security::before {
    content: '';
    width: 20px; height: 15px;
    background: var(--primary-color);
    position: absolute;
    top: 22px; left: 30px;
    border-radius: 0 0 5px 5px; /* 上身束胸 */
}
.icon-security::after {
    content: '';
    width: 44px; height: 28px;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    position: absolute;
    top: 37px; left: 18px;
    border-radius: 15px 15px 5px 5px; /* 蓬松裙摆 */
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

/* 5. PHP类: icon-iot -> 视觉: 场地/殿堂 (Venue) */
.icon-iot::before {
    content: '';
    width: 40px; height: 2px;
    background: var(--primary-color);
    position: absolute;
    bottom: 25px; left: 20px;
    box-shadow: 0 -25px 0 var(--primary-color); /* 屋顶线 */
}
.icon-iot::after {
    content: '🏛'; /* 使用unicode建筑符号 */
    font-size: 32px;
    position: absolute;
    top: 20px; left: 24px;
    color: var(--primary-color);
}

/* 6. PHP类: icon-consult -> 视觉: 沟通/爱语 (Chat) */
.icon-consult::before {
    content: '';
    width: 40px; height: 32px;
    border: 2px solid var(--primary-color);
    border-radius: 50% 50% 0 50%;
    position: absolute;
    top: 22px; left: 20px;
}
.icon-consult::after {
    content: '♥';
    font-size: 16px;
    position: absolute;
    top: 25px; left: 32px;
    color: var(--accent-color);
}

.solution-card h3 { 
    font-size: 1.6rem; 
    color: var(--dark-color); 
    margin-bottom: 15px;
}

.solution-card p { 
    color: #7a6c61;
    line-height: 1.7;
}

/* --- 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(--dark-color); 
    margin-bottom: 1.5rem;
}

.about-text p { 
    margin-bottom: 1.5rem; 
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-visual {
    flex: 1; 
    height: 350px; 
    background: var(--gradient-gold);
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--white-color); 
    font-size: 1.8rem; 
    font-weight: bold; 
    box-shadow: var(--shadow-strong);
    position: relative; 
    overflow: hidden;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.about-visual::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s linear infinite;
}

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(-30px, -30px); }
}

.about-visual span { 
    z-index: 1; 
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.about-action { 
    margin-top: 2.5rem; 
}

/* --- 6. 最新动态/新闻 --- */
.news-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
}

.news-card {
    background-color: var(--white-color); 
    border-radius: 15px; 
    box-shadow: var(--shadow);
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: all 0.4s ease;
    border: 1px solid rgba(224, 201, 184, 0.3);
    position: relative;
}

.news-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-strong);
}

/* 图片容器 */
.news-cover {
    height: 220px; 
    width: 100%; 
    overflow: hidden; 
    position: relative;
    background: var(--gradient-romantic);
}

.news-card:nth-child(odd) .news-cover { 
    background: linear-gradient(135deg, #f7e8dd 0%, #e8b4b8 100%); 
}

.news-card:nth-child(even) .news-cover { 
    background: linear-gradient(135deg, #d4a574 0%, #f7e8dd 100%); 
}

/* 图片样式 */
.news-cover img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.8s ease;
}

.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.4rem; 
    margin-bottom: 0.8rem; 
    line-height: 1.4;
}

.news-content h4 a { 
    text-decoration: none; 
    color: var(--dark-color); 
    transition: color 0.3s; 
    font-family: 'Playfair Display', 'Georgia', serif;
}

.news-content h4 a:hover { 
    color: var(--primary-color); 
}

.news-meta { 
    font-size: 0.85rem; 
    color: #9e8e7e; 
    margin-bottom: 1.2rem; 
    display: flex; 
    gap: 10px; 
    align-items: center;
}

.news-meta a { 
    color: inherit; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    padding: 3px 10px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 20px;
}

.news-meta a:hover { 
    color: var(--primary-color); 
    background: rgba(212, 165, 116, 0.2);
}

.news-content p { 
    flex-grow: 1; 
    margin-bottom: 1.5rem; 
    font-size: 0.95rem; 
    color: #7a6c61; 
    line-height: 1.7; 
}

.read-more-link { 
    text-decoration: none; 
    color: var(--primary-color); 
    font-weight: 600; 
    align-self: flex-start; 
    position: relative;
    padding-bottom: 5px;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.read-more-link:hover::after {
    width: 100%;
}

/* --- 7. FAQ --- */
.faq-accordion { 
    max-width: 900px; 
    margin: 0 auto; 
}

.faq-item { 
    border-bottom: 1px solid var(--border-color); 
    background: var(--white-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%; 
    background: var(--gradient-romantic); 
    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-color);
    transition: all 0.3s ease;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f7e8dd 0%, #f0d9c9 100%);
}

.faq-question::after { 
    content: '+'; 
    font-size: 1.8rem; 
    color: var(--primary-color); 
    transition: all 0.3s ease; 
    font-weight: 300;
}

.faq-item.active .faq-question::after { 
    transform: rotate(45deg); 
    content: '−';
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: all 0.5s ease; 
    padding: 0 30px; 
}

.faq-item.active .faq-answer { 
    padding: 0 30px 30px; 
}

.faq-answer p {
    color: #7a6c61;
    font-size: 1rem;
    line-height: 1.9;
    padding: 20px 0;
    border-top: 1px dashed rgba(212, 165, 116, 0.3);
    margin-top: 15px;
}

/* --- 8. 页脚 --- */
.main-footer { 
    background: linear-gradient(135deg, #8b6b4d 0%, #5d4037 100%); 
    color: var(--light-color); 
    padding: 70px 0 30px; 
    margin-top: auto; 
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-gold);
}

.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: 200px; 
}

.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: 2px;
    background: var(--primary-color);
}

.footer-column ul { 
    list-style: none; 
}

.footer-column ul li { 
    margin-bottom: 12px; 
}

.footer-column ul li a { 
    color: #e0c9b8; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    padding-left: 5px;
    position: relative;
}

.footer-column ul li a:hover { 
    color: var(--white-color); 
    padding-left: 10px;
}

.footer-column ul li a::before {
    content: '♥';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.footer-column ul li a:hover::before {
    opacity: 1;
    left: -10px;
}

.footer-bottom { 
    text-align: center; 
    padding-top: 30px; 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    font-size: 0.9rem; 
    color: #e0c9b8; 
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: #e0c9b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--white-color);
    text-decoration: underline;
}

/* --- CMS 页面样式 --- */
.breadcrumb { 
    padding: 20px 0; 
    font-size: 0.9rem; 
    color: #9e8e7e; 
    border-bottom: 1px solid var(--border-color); 
    margin-bottom: 40px; 
}

.breadcrumb a { 
    color: var(--text-color); 
    text-decoration: none; 
    transition: color 0.3s ease;
}

.breadcrumb a:hover { 
    color: var(--primary-color); 
}

.breadcrumb span { 
    margin: 0 10px; 
    color: #d4a574; 
}

.page-container { 
    padding: 70px 0 100px; 
}

.page-header { 
    text-align: left; 
    margin-bottom: 50px; 
}

.page-header h1 { 
    font-size: 2.8rem; 
    color: var(--dark-color); 
}

.page-meta { 
    color: #9e8e7e; 
    font-size: 0.95rem; 
    margin-top: 15px; 
}

.page-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 3px 8px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 4px;
}

.page-meta a:hover {
    color: var(--primary-color);
    background: rgba(212, 165, 116, 0.2);
}

.pagination { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-top: 60px; 
}

.page-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 45px; 
    height: 45px; 
    border: 1px solid var(--border-color); 
    border-radius: 50%; 
    color: var(--text-color); 
    text-decoration: none; 
    transition: all 0.3s; 
    font-weight: 600;
    background: var(--white-color);
}

.page-btn:hover { 
    background: var(--gradient-gold); 
    color: #fff; 
    border-color: var(--primary-color); 
    transform: translateY(-3px);
}

.page-current { 
    display: inline-flex; 
    align-items: center; 
    height: 45px; 
    padding: 0 20px; 
    font-weight: bold; 
    color: var(--dark-color); 
    background: var(--gradient-romantic);
    border-radius: 25px;
}

.markdown-body { 
    color: var(--text-color); 
    font-size: 1.1rem; 
    line-height: 1.9; 
    max-width: 100%; 
    overflow-x: hidden; 
}

.markdown-body h2 { 
    font-size: 2rem; 
    margin-top: 2.5rem; 
    margin-bottom: 1.5rem; 
    padding-bottom: 10px; 
    border-bottom: 2px solid var(--border-color); 
    text-align: left; 
}

.markdown-body h2::after { 
    display: none; 
}

.markdown-body h3 { 
    font-size: 1.5rem; 
    margin-top: 2rem; 
    margin-bottom: 1rem; 
    color: var(--primary-color);
}

.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.8rem; 
    position: relative;
}

.markdown-body li::before {
    content: '♥';
    color: var(--accent-color);
    position: absolute;
    left: -20px;
    top: 2px;
    font-size: 0.8rem;
}

.markdown-body img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 10px; 
    margin: 25px 0; 
    box-shadow: var(--shadow); 
}

.markdown-body blockquote { 
    border-left: 4px solid var(--primary-color); 
    background-color: rgba(212, 165, 116, 0.05); 
    padding: 25px; 
    margin: 25px 0; 
    border-radius: 0 10px 10px 0; 
    font-style: italic; 
    color: #7a6c61; 
    position: relative;
}

.markdown-body blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: rgba(212, 165, 116, 0.2);
    font-family: Georgia, serif;
}

.markdown-body a { 
    color: var(--primary-color); 
    text-decoration: none; 
    border-bottom: 1px dashed var(--primary-color); 
    transition: all 0.3s ease;
}

.markdown-body a:hover { 
    border-bottom-style: solid; 
    color: var(--dark-color);
}

.markdown-body hr { 
    border: 0; 
    height: 2px; 
    background: var(--gradient-gold);
    margin: 40px 0; 
    border-radius: 2px;
}

.markdown-body pre { 
    background: #2d2824; 
    color: #f7e8dd; 
    padding: 25px; 
    border-radius: 10px; 
    overflow-x: auto; 
    margin-bottom: 25px; 
    border-left: 4px solid var(--primary-color);
}

.post-tags { 
    margin-top: 50px; 
    padding-top: 25px; 
    border-top: 1px solid var(--border-color); 
}

.tag-pill { 
    display: inline-block; 
    background: var(--gradient-romantic); 
    padding: 8px 18px; 
    border-radius: 25px; 
    color: #7a6c61; 
    text-decoration: none; 
    font-size: 0.9rem; 
    margin-right: 12px; 
    margin-bottom: 12px; 
    border: 1px solid rgba(212, 165, 116, 0.3);
    transition: all 0.3s ease; 
}

.tag-pill:hover { 
    background: var(--gradient-gold); 
    color: #fff; 
    border-color: var(--primary-color); 
    transform: translateY(-3px);
}

.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; 
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--gradient-romantic);
}

.nav-next:hover, .nav-prev:hover { 
    color: var(--primary-color); 
    background: rgba(212, 165, 116, 0.1);
    transform: translateY(-3px);
}

.nav-next span, .nav-prev span { 
    display: block; 
    font-size: 0.85rem; 
    color: #9e8e7e; 
    font-weight: normal; 
    margin-bottom: 8px; 
}

.error-page { 
    text-align: center; 
    padding: 120px 0; 
}

.error-page h1 { 
    font-size: 8rem; 
    color: var(--primary-color); 
    margin-bottom: 0; 
    text-shadow: 5px 5px 0 rgba(212, 165, 116, 0.1);
}

.error-page p { 
    font-size: 1.8rem; 
    margin-bottom: 40px; 
    color: #7a6c61;
}

.no-content { 
    text-align: center; 
    padding: 60px; 
    color: #9e8e7e; 
    background: var(--gradient-romantic); 
    border-radius: 15px; 
    border: 1px dashed var(--border-color);
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 1100px) { 
    h2 { font-size: 2.5rem; } 
    #hero h1 { font-size: 3.2rem; } 
}

@media (max-width: 768px) {
    .logo { font-size: 1.6rem; }
    
    .menu-toggle { display: block; }
    
    .main-nav { 
        position: fixed; 
        /* 修正：使用 top: 100% 确保菜单紧贴 Header 底部，避免 80px 硬编码造成的缝隙 */
        top: 80px; 
        left: 0; 
        width: 100%; 
        background-color: rgba(255, 255, 255, 0.98); 
        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);
        backdrop-filter: blur(10px);
        z-index: 999;
    }
    
    .main-nav.active { max-height: 500px; }
    
    .main-nav ul { 
        flex-direction: column; 
        padding: 20px 0; 
    }
    
    .main-nav ul li { 
        margin: 0; 
        text-align: center; 
    }
    
    .main-nav ul li a { 
        display: block; 
        padding: 18px 20px; 
        font-size: 1.1rem;
    }
    
    #about .about-content { flex-direction: column; }
    
    .footer-content { flex-direction: column; text-align: left; }
    
    .solutions-grid { grid-template-columns: 1fr; }
    
    .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) { 
    #hero h1 { font-size: 2.5rem; } 
    #hero p { font-size: 1.1rem; } 
    section { padding: 70px 0; } 
    h2 { font-size: 2rem; } 
    .solution-card { padding: 30px 20px; }
    .error-page h1 { font-size: 6rem; }
    .error-page p { font-size: 1.5rem; }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solution-card, .news-card, .faq-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* 增加延迟以匹配FAQ的8个项目 */
.solution-card:nth-child(1) { animation-delay: 0.1s; }
.solution-card:nth-child(2) { animation-delay: 0.2s; }
.solution-card:nth-child(3) { animation-delay: 0.3s; }
.solution-card:nth-child(4) { animation-delay: 0.4s; }
.solution-card:nth-child(5) { animation-delay: 0.5s; }
.solution-card:nth-child(6) { animation-delay: 0.6s; }

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }