:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #457b9d;
    --bg-color: #f1faee;
    --text-color: #1d3557;
    --shadow: 0 4px 6px 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", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

/* ========== 头部导航 ========== */
.header {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========== 英雄区域 ========== */
.hero {
    background: linear-gradient(rgba(29, 53, 87, 0.9), rgba(29, 53, 87, 0.8)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23457b9d" width="100" height="100"/></svg>');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 4rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    background: #fff;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    font-size: 0.9rem;
}

.breadcrumb-list a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb-list span {
    color: #666;
}

/* ========== 主要内容区 ========== */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* ========== 文章区域 ========== */
.article-section {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.article-meta {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-body {
    padding: 2rem;
}

.article-body h2 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

.article-body h3 {
    color: var(--accent-color);
    margin: 1.5rem 0 0.8rem;
}

.article-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

.article-body ul,
.article-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: linear-gradient(135deg, #fff3f3, #ffe0e0);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 关键词强调样式 */
.keyword {
    color: var(--primary-color);
    font-weight: 600;
}

.keyword-highlight {
    background: linear-gradient(120deg, #ffd70033 0%, #ffd70033 100%);
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

/* ========== 功能特性卡片 ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ========== 侧边栏 ========== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: #fff;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.widget-content {
    padding: 1rem;
}

/* 热门关键词云 */
.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    background: #f0f0f0;
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

.keyword-tag.hot {
    background: #ff6b6b;
    color: #fff;
}

/* 相关文章列表 */
.related-list {
    list-style: none;
}

.related-list li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #eee;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.related-list a:hover {
    color: var(--primary-color);
}

.related-list .num {
    background: var(--accent-color);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* 下载按钮组 */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.download-btn {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: #fff;
    padding: 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.download-btn.secondary {
    background: linear-gradient(135deg, var(--accent-color), #5a9bb8);
}

/* ========== 长尾词推荐区 ========== */
.long-tail-section {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
    padding: 2rem;
}

.section-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 2px;
}

.long-tail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.long-tail-item {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.long-tail-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.long-tail-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.long-tail-item a:hover {
    color: var(--primary-color);
}

/* ========== 页脚 ========== */
.footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 3rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========== 结构化数据标记 ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 泛站群特征：动态内容占位符 ========== */
.dynamic-content {
    /* 此区域内容将通过程序动态替换 */
    /* 支持变量: {city}, {tool_name}, {version}, {feature} */
}

/* 城市分站标识 */
.city-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* 工具状态标签 */
.tool-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #d4edda;
    color: #155724;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 1rem;
}

.tool-status::before {
    content: '●';
    color: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}