/**
 * 小红书引流官网 - 样式表
 */

:root {
    --primary-color: #c41e3a;
    --primary-hover: #a01729;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f8f8f8;
    --border-color: #e5e5e5;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--primary-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; }

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn-primary { background: var(--primary-color); }
.btn-secondary { background: #666; }
.btn-secondary:hover { background: #555; }

.btn-wechat { background: #07c160; color: #fff; padding: 8px 16px; border-radius: 4px; }
.btn-wechat:hover { background: #06ad56; color: #fff; }

/* 导航栏 */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar { padding: 15px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.navbar-brand a {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}
.navbar-toggler span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
}

.navbar-menu { flex: 1; margin-left: 40px; }
.nav-list { display: flex; list-style: none; gap: 30px; }
.nav-list a {
    color: var(--text-dark);
    font-size: 15px;
    padding: 5px 0;
    position: relative;
}
.nav-list a:hover, .nav-list a.active { color: var(--primary-color); }
.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.navbar-action { display: flex; gap: 10px; }

/* 主内容区 */
.main-content { min-height: calc(100vh - 200px); padding: 30px 0; }

/* 首页首屏 */
.hero {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 15px;
}
.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* 区块标题 */
.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* 服务区块 */
.services { padding: 60px 0; background: var(--bg-light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.service-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
.service-icon { font-size: 40px; margin-bottom: 15px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-light); margin-bottom: 15px; }
.btn-link { color: var(--primary-color); margin-right: 10px; }
.btn-wechat-small {
    background: #07c160;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* 适合人群 */
.target-audience { padding: 60px 0; }
.audience-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.audience-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}
.audience-icon { font-size: 30px; margin-bottom: 10px; }
.audience-item span:last-child { font-size: 14px; color: var(--text-dark); }

/* 为什么选择我们 */
.why-us { padding: 60px 0; background: var(--bg-light); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.why-item {
    display: flex;
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.why-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 20px;
    opacity: 0.3;
}
.why-item h3 { font-size: 18px; margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--text-light); }

/* 最新文章 */
.latest-articles { padding: 60px 0; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.article-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    transition: box-shadow 0.3s;
}
.article-card:hover { box-shadow: var(--shadow); }
.article-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.article-category { color: var(--primary-color); margin-right: 10px; }
.article-title { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.article-title a { color: var(--text-dark); }
.article-title a:hover { color: var(--primary-color); }
.article-desc { font-size: 14px; color: var(--text-light); margin-bottom: 15px; }
.article-link { font-size: 14px; color: var(--primary-color); }

/* 常见问题 */
.faq { padding: 60px 0; background: var(--bg-light); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.faq-question {
    padding: 20px 25px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after { content: '+'; font-size: 20px; color: var(--text-muted); }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer { display: none; padding: 0 25px 20px; font-size: 14px; color: var(--text-light); }
.faq-item.active .faq-answer { display: block; }

/* 联系CTA */
.contact-cta { padding: 60px 0; background: linear-gradient(135deg, var(--primary-color) 0%, #8b1538 100%); color: #fff; }
.cta-content { text-align: center; }
.cta-content h2 { font-size: 32px; margin-bottom: 15px; }
.cta-content > p { margin-bottom: 30px; opacity: 0.9; }
.cta-wechat { display: flex; align-items: center; justify-content: center; gap: 30px; }
.cta-qrcode { width: 150px; height: 150px; border-radius: var(--radius); background: #fff; padding: 10px; }
.cta-info { text-align: left; }
.cta-wechat-id { font-size: 18px; margin-bottom: 10px; }
.cta-remark { font-size: 14px; opacity: 0.8; margin-top: 10px; }

/* 文章卡片 */
.article-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}
.article-card-intro { background: #fff5f5; border-left: 4px solid var(--primary-color); }
.article-card-middle { background: #f5f5f5; padding: 15px; border-radius: 4px; margin: 20px 0; }
.article-card-end { background: #fff5f5; padding: 25px; border-radius: var(--radius); margin-top: 30px; }
.article-card-end h3 { color: var(--primary-color); margin-bottom: 15px; }
.article-card-end ul { margin: 10px 0; padding-left: 20px; }
.article-card-end li { margin: 5px 0; }
.wechat-contact { text-align: center; margin-top: 15px; }
.wechat-contact img { max-width: 150px; margin-bottom: 10px; }

/* 面包屑 */
.breadcrumb ol { display: flex; list-style: none; flex-wrap: wrap; font-size: 14px; }
.breadcrumb li { color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: ' /'; margin: 0 8px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary-color); }

/* 文章详情 */
.article-detail { padding: 30px 0; }
.article-header { margin: 30px 0; text-align: center; }
.article-header h1 { font-size: 32px; margin-bottom: 15px; color: var(--text-dark); }
.article-info { font-size: 14px; color: var(--text-muted); }
.article-info span { margin-right: 20px; }
.article-content { font-size: 16px; line-height: 1.8; }
.article-content h2 { font-size: 22px; margin: 30px 0 15px; color: var(--text-dark); }
.article-content h3 { font-size: 18px; margin: 25px 0 10px; color: var(--text-dark); }
.article-content p { margin-bottom: 15px; }
.article-content ul, .article-content ol { margin: 15px 0; padding-left: 25px; }
.article-content li { margin: 8px 0; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 20px 0; }
.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--bg-light);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-nav { display: flex; justify-content: space-between; margin: 40px 0; padding: 20px 0; border-top: 1px solid var(--border-color); }
.article-prev, .article-next { font-size: 14px; }
.related-articles { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border-color); }
.related-articles h2 { font-size: 20px; margin-bottom: 20px; }
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-item { display: flex; justify-content: space-between; padding: 12px 15px; background: var(--bg-light); border-radius: 4px; font-size: 14px; }
.related-item:hover { background: #f0f0f0; }
.related-title { color: var(--text-dark); }
.related-date { color: var(--text-muted); }

/* 栏目列表 */
.category-page, .articles-page { padding: 30px 0; }
.category-header { text-align: center; margin: 30px 0; }
.category-header h1 { font-size: 28px; margin-bottom: 10px; }
.category-desc { color: var(--text-light); }
.articles-list { display: flex; flex-direction: column; gap: 20px; }
.article-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    transition: box-shadow 0.3s;
}
.article-item:hover { box-shadow: var(--shadow); }
.article-item .article-title { font-size: 20px; }
.article-readmore { font-size: 14px; color: var(--primary-color); }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 30px 0; }
.page-link { padding: 8px 14px; border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-dark); font-size: 14px; }
.page-link:hover { border-color: var(--primary-color); color: var(--primary-color); }
.page-link.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.page-ellipsis { color: var(--text-muted); }

/* 侧边栏 */
.articles-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; }
.articles-sidebar { position: sticky; top: 100px; height: fit-content; }
.sidebar-section { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; }
.sidebar-section h3 { font-size: 16px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); }
.category-list { list-style: none; }
.category-list li { margin-bottom: 10px; }
.category-list a { color: var(--text-dark); display: flex; justify-content: space-between; }
.category-list a:hover { color: var(--primary-color); }
.category-list .count { color: var(--text-muted); font-size: 12px; }

/* 联系页面 */
.contact-page { padding: 30px 0; }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 30px 0; }
.contact-wechat h2 { font-size: 24px; margin-bottom: 10px; }
.wechat-display { margin-top: 20px; text-align: center; }
.wechat-qrcode-large img { max-width: 200px; border-radius: var(--radius); margin-bottom: 15px; }
.wechat-qrcode-placeholder {
    width: 200px;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: var(--radius);
}
.wechat-info p { margin-bottom: 10px; }
.wechat-tip { font-size: 14px; color: var(--text-muted); }
.contact-info h2 { font-size: 24px; margin-bottom: 20px; }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 20px; }
.contact-icon { font-size: 24px; margin-right: 15px; }
.contact-note {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
    margin-top: 30px;
}
.contact-note h3 { margin-bottom: 15px; }
.contact-note ul { padding-left: 20px; }

/* 页面通用 */
.page-content { padding: 30px 0; }
.page-article { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px; margin: 30px 0; }
.page-article h2 { font-size: 24px; margin: 30px 0 15px; }
.page-article h3 { font-size: 18px; margin: 25px 0 10px; }
.page-article p { margin-bottom: 15px; }
.page-article ul, .page-article ol { margin: 15px 0; padding-left: 25px; }
.page-contact { text-align: center; padding: 40px 0; background: var(--bg-light); border-radius: var(--radius); margin-top: 30px; }
.page-contact h2 { font-size: 24px; margin-bottom: 10px; }
.contact-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 20px; }

/* 关于页面 */
.about-page { padding: 30px 0; }
.about-content { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px; margin: 30px 0; }
.about-values { margin: 40px 0; }
.about-values h2 { font-size: 24px; margin-bottom: 25px; text-align: center; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.value-item { background: var(--bg-light); padding: 25px; border-radius: var(--radius); text-align: center; }
.value-item h3 { font-size: 18px; margin-bottom: 10px; color: var(--primary-color); }

/* 隐私页面 */
.privacy-page { padding: 30px 0; }
.privacy-content { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px; margin: 30px 0; max-width: 800px; }
.privacy-content h1 { font-size: 28px; margin-bottom: 30px; }
.privacy-content h2 { font-size: 20px; margin: 30px 0 15px; color: var(--primary-color); }

/* 404页面 */
.error-page { padding: 100px 0; text-align: center; }
.error-content h1 { font-size: 100px; color: var(--primary-color); margin-bottom: 20px; }
.error-content h2 { font-size: 28px; margin-bottom: 15px; }
.error-content p { color: var(--text-light); margin-bottom: 30px; }
.error-buttons { display: flex; gap: 15px; justify-content: center; }

/* 底部 */
.site-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #222 100%);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c41e3a, #ff6b6b, #c41e3a);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}
.footer-col { padding: 0 10px; }
.footer-col:first-child { border-right: 1px solid #333; padding-left: 0; }
.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #c41e3a;
}
.footer-col p { font-size: 14px; color: #aaa; margin-bottom: 12px; line-height: 1.6; }
.footer-col p:empty { display: none; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #aaa;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}
.footer-links a:hover { color: #c41e3a; padding-left: 5px; }
.footer-contact { margin-top: 15px; }
.footer-contact p { display: flex; align-items: center; gap: 8px; }
.footer-contact .icon { color: #c41e3a; }
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}
.footer-bottom p { margin-bottom: 8px; }
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #c41e3a; }
.footer-bottom .icp { color: #666; font-size: 12px; }
.footer-wechat {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}
.footer-wechat p { color: #c41e3a; font-size: 14px; margin-bottom: 10px; }
.footer-wechat-code {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
}

/* 悬浮微信 */
.float-wechat { position: fixed; right: 20px; bottom: 100px; z-index: 99; }
.float-wechat-btn {
    width: 50px;
    height: 50px;
    background: #07c160;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
}
.float-wechat-btn:hover { background: #06ad56; }

/* 手机端悬浮 */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 10px 20px;
    z-index: 100;
    justify-content: space-around;
}
.mobile-contact-bar a {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    margin: 0 5px;
    font-size: 14px;
}
.mobile-contact-bar a:last-child { background: #07c160; }

/* 微信弹窗 */
.wechat-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}
.wechat-popup.active { display: block; }
.wechat-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}
.wechat-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    max-width: 400px;
    width: 90%;
    text-align: center;
}
.wechat-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}
.wechat-popup-content h3 { font-size: 20px; margin-bottom: 10px; color: var(--primary-color); }
.wechat-desc { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.wechat-popup-content .wechat-qrcode img { max-width: 200px; border-radius: var(--radius); margin-bottom: 15px; }
.wechat-id { font-size: 16px; margin-bottom: 15px; }
.btn-copy-wechat {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}
.btn-copy-wechat:hover { background: var(--primary-hover); }
.wechat-tip { font-size: 12px; color: var(--text-muted); margin-top: 15px; }
.wechat-qrcode-placeholder {
    width: 200px;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: var(--radius);
}

/* 响应式 */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .audience-grid { grid-template-columns: repeat(3, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar-toggler { display: block; }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: var(--shadow);
    }
    .navbar-menu.active { display: block; }
    .nav-list { flex-direction: column; gap: 15px; }
    .navbar-action { display: none; }
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 28px; }
    .hero-subtitle { font-size: 16px; }
    .services-grid { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .articles-layout { grid-template-columns: 1fr; }
    .articles-sidebar { position: static; }
    .contact-content { grid-template-columns: 1fr; }
    .cta-wechat { flex-direction: column; }
    .values-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .float-wechat { display: none; }
    .mobile-contact-bar { display: flex; }
    .article-nav { flex-direction: column; gap: 15px; }
}
