/* 全站基础样式 - 极简阅读风格 */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --accent-color: #e8453c;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --sidebar-bg: #fafbfc;
    --font-serif: "Noto Serif SC", "Source Han Serif CN", serif;
    --font-sans: "Noto Sans SC", "Source Han Sans CN", -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --content-width: 780px;
    --sidebar-width: 320px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* 导航栏 */
.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.site-logo:hover {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* 面包屑导航 */
.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 0.4rem;
}

/* 主体布局 */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* 文章卡片 */
.post-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.post-card:first-child {
    padding-top: 0;
}

.post-card-thumb {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    flex: 1;
}

.post-card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.post-card-title a {
    color: var(--text-color);
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.post-card-meta time {
    margin-right: 1rem;
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar-widget {
    background: var(--sidebar-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.sidebar-widget-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* 官方入口按钮 */
.cta-button {
    display: block;
    width: 100%;
    padding: 0.9rem 1.2rem;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.cta-button-primary:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.cta-button-accent {
    background: var(--accent-color);
    color: #ffffff;
}

.cta-button-accent:hover {
    background: #d03a32;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 69, 60, 0.3);
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: #e8f0fe;
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* 公告模块 */
.notice-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.notice-box strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #856404;
}

/* 文章详情页 */
.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-content {
    font-size: 1.05rem;
    line-height: 2;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
    font-size: 1.2rem;
    margin: 2rem 0 0.8rem;
}

.article-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content .inline-cta {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    margin: 2rem auto;
    max-width: 400px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.article-content .inline-cta:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.3);
}

/* 常见问题 */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
}

/* 留言板 */
.comment-item {
    padding: 1.2rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 网址列表 */
.url-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border-color);
}

.url-list-item .url-info {
    flex: 1;
}

.url-list-item .url-status {
    padding: 0.3rem 0.8rem;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.url-list-item .url-status.offline {
    background: #f8d7da;
    color: #721c24;
}

/* 页脚 */
.site-footer {
    background: #1a1a2e;
    color: #cccccc;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: #aaaaaa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-bottom .age-badge {
    background: var(--accent-color);
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* App下载页面 */
.app-hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #ffffff;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.app-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.app-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.app-download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.app-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s;
}

.app-download-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

.app-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.app-feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.app-feature-card h3 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
}

.app-feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.app-feature-icon {
    font-size: 2.5rem;
}

.app-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.app-screenshots img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 标签聚合页 */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
}

.tags-grid a {
    display: block;
    padding: 0.6rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s;
}

.tags-grid a:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* 分类页 */
.category-header {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* 关于页面 */
.author-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 2rem;
    align-items: center;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-main {
        flex-direction: column;
        padding: 1rem;
    }

    .sidebar {
        width: 100%;
    }

    .post-card {
        flex-direction: column;
    }

    .post-card-thumb {
        width: 100%;
        height: 180px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .header-inner {
        position: relative;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-title {
        font-size: 1.5rem;
    }

    .app-features {
        grid-template-columns: 1fr;
    }

    .app-screenshots {
        grid-template-columns: 1fr;
    }

    .app-hero h1 {
        font-size: 1.6rem;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .tags-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* 更新时间标识 */
.update-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.pagination .current {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}
