/*
Theme Name: GEO Base
Author: GEO Team
Description: 专为GEO与SEO优化的Typecho主题，支持后台自定义首页所有文案。
Version: 2.1
*/

/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #1a1a2e;
    background: #f8f9ff;
    line-height: 1.6;
}

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

/* ========== 导航栏 ========== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: #f8f9ff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
    color: white;
}

/* 导航菜单 */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #4f46e5;
}

.desktop-only { display: inline-block; }
.mobile-only { display: none; }

/* 汉堡按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1e1b4b;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========== 主视觉区 ========== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(79,70,229,0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(124,58,237,0.05) 0%, transparent 50%);
    z-index: -1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e1b4b, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.hero p {
    font-size: 18px;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.primary-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79,70,229,0.3);
    color: white;
}

.secondary-btn {
    background: white;
    color: #4f46e5;
    border: 2px solid #4f46e5;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.secondary-btn:hover {
    background: #f5f3ff;
}

.hero-mockup {
    margin-top: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    border-radius: 24px;
    padding: 30px 30px 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    text-align: left;
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-input {
    background: #f3f4f6;
    border: none;
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    font-size: 16px;
    margin-bottom: 20px;
}

.mockup-results {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.result-card {
    background: #faf5ff;
    border-radius: 16px;
    padding: 16px;
    flex: 1;
    min-width: 200px;
}

.result-card h4 {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag {
    background: white;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 4px 4px 4px 0;
    font-size: 13px;
    color: #4f46e5;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* ========== 功能卡片区 ========== */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e1b4b;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 50px;
    font-size: 18px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.02);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1e1b4b;
}

.feature-card p {
    color: #4b5563;
    font-size: 15px;
}

/* ========== 流程步骤 ========== */
.how-it-works {
    padding: 60px 0;
    background: white;
    border-radius: 40px 40px 0 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step h4 {
    color: #1e1b4b;
    margin-bottom: 8px;
}

/* ========== 小程序展示区 ========== */
.mini-program-showcase {
    padding: 80px 0;
    background: #f8f9ff;
}

.showcase-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.qr-code {
    background: white;
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.qr-code img {
    width: 180px;
    height: 180px;
    display: block;
    border-radius: 12px;
    background: #e5e7eb;
    object-fit: cover;
}

.qr-code p {
    margin-top: 12px;
    color: #6b7280;
    font-weight: 500;
}

.showcase-text h2 {
    font-size: 32px;
    color: #1e1b4b;
    margin-bottom: 16px;
}

.showcase-text ul {
    list-style: none;
    padding: 0;
}

.showcase-text li {
    margin: 12px 0;
    font-size: 17px;
    color: #374151;
    display: flex;
    align-items: center;
}

.showcase-text li::before {
    content: '✓';
    color: #4f46e5;
    font-weight: bold;
    margin-right: 12px;
    font-size: 20px;
}

/* ========== 页脚 ========== */
footer {
    padding: 40px 0;
    text-align: center;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
}

/* ========== 文章与页面通用 ========== */
.post-content, .page-content {
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.post-content h1, .page-content h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.post-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.post-body {
    font-size: 16px;
    line-height: 1.8;
}

.post-body h2 {
    font-size: 1.5em;
    margin: 1.5em 0 0.5em;
    color: #1e1b4b;
}

.post-body h3 {
    font-size: 1.2em;
    margin: 1em 0 0.5em;
    color: #1e1b4b;
}

.post-body p {
    margin-bottom: 1.2em;
}

.post-body ul, .post-body ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.post-body blockquote {
    border-left: 4px solid #4f46e5;
    padding-left: 16px;
    margin: 1.5em 0;
    color: #4b5563;
    background: #f8f9ff;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.post-body a {
    color: #4f46e5;
    text-decoration: underline;
}

/* 面包屑 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb a {
    color: #4f46e5;
    text-decoration: none;
}

/* ========== 移动端响应式 ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .steps {
        flex-direction: column;
        align-items: center;
    }
    .showcase-flex {
        flex-direction: column;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 0;
        z-index: 100;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        font-size: 16px;
    }

    .mobile-only .nav-btn {
        margin-top: 10px;
        display: inline-block;
    }

    /* 卡片优化 */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card h2,
    .feature-card h3 {
        font-size: 18px;
    }

    /* 全局容器左右间距，避免贴边 */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* 文章/页面内容区额外微调，保持居中不贴边 */
    .post-content,
    .page-content {
        padding-left: 8px;
        padding-right: 8px;
    }
}

    /* ========== 分页导航 ========== */
.page-navigator {
    list-style: none;
    display: inline-flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.page-navigator li {
    display: inline;
}

.page-navigator a,
.page-navigator span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: white;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: 0.2s;
}

.page-navigator a:hover {
    background: #4f46e5;
    color: white;
}

.page-navigator .current {
    background: #4f46e5;
    color: white;
}

/* ========== 关于我们页面美化 ========== */
.about-page .section-title {
    margin-bottom: 20px;
}
.about-page .post-body {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

/* ========== GEO小助手页面美化 ========== */
.assistant-page .section-title {
    color: #4f46e5;
    margin-bottom: 20px;
}
.assistant-page .post-body {
    background: linear-gradient(135deg, #f5f3ff 0%, #f0f0ff 100%);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e0e7ff;
}

/* 页面通用内容区顶部间距微调 */
.page-content h1 {
    margin-bottom: 0.5em;
}