/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e88e5;
    --secondary-color: #43a047;
    --accent-color: #ff6f00;
    --text-primary: #212121;
    --text-secondary: #616161;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* 头部 */
.site-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* 焦点新闻 */
.hero-section {
    background: #fff;
    padding: 24px 0;
    margin-bottom: 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.hero-main a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.hero-image {
    position: relative;
    padding-top: 56.25%;
}

.hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
}

.hero-content h1 {
    font-size: 1.75rem;
    margin: 12px 0;
    line-height: 1.3;
}

.hero-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-hot {
    background: var(--accent-color);
    color: #fff;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-item {
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.sidebar-item h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.sidebar-item time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 平台推荐 */
.platform-strip {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
    margin-bottom: 24px;
}

.platform-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.platform-strip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    background: #f5f7fa;
    border: 1px solid #e8eaed;
    transition: all 0.2s ease;
}

.platform-strip-btn:hover {
    background: #eef1f5;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.platform-strip-btn .ps-icon {
    font-size: 1.1rem;
}

.platform-strip-divider {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
}

.platform-strip-note {
    text-align: center;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
}

/* 平台列表页 */
.page-content {
    padding: 40px 0;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.page-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.platform-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.platform-item:hover {
    transform: translateY(-2px);
}

.platform-info h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.platform-info p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.platform-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-tags .tag {
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.platform-link {
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.platform-link:hover {
    background: #1565c0;
    color: #fff;
}

.disclaimer-box {
    padding: 24px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: var(--radius);
}

.disclaimer-box h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #856404;
}

.disclaimer-box p {
    color: #856404;
    line-height: 1.8;
}

/* 资讯列表 */
.news-section {
    padding: 24px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 16px;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 专题区域 */
.topics-section {
    padding: 32px 0;
    background: #fff;
    margin-top: 24px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.topic-card {
    text-align: center;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.topic-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.topic-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.topic-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 页脚 */
.site-footer {
    background: #263238;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-section a:hover {
    opacity: 1;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom p {
    margin: 4px 0;
}

.icp a {
    color: #fff;
    text-decoration: underline;
}

/* 面包屑 */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 分类页 */
.category-page {
    padding: 24px 0;
}

.category-header {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    text-align: center;
}

.category-header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.category-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* 文章详情 */
.article-detail {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.article-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body h2 {
    font-size: 1.35rem;
    margin: 28px 0 12px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.article-body p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.article-body ul {
    margin: 16px 0;
    padding-left: 2em;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-tags {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.article-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 4px;
    margin: 4px;
    font-size: 0.85rem;
}

.article-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.article-nav a {
    color: var(--primary-color);
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 相关推荐 */
.related-articles {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.related-articles h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: transform 0.2s;
}

.related-card:hover {
    transform: translateY(-2px);
}

.related-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 静态页面内容 */
.page-content h1 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.page-content h2 {
    font-size: 1.25rem;
    margin: 24px 0 12px;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.page-content ul {
    margin: 16px 0;
    padding-left: 2em;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
    }
    
    .main-nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 1.25rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-strip-inner {
        flex-direction: column;
        gap: 12px;
    }
    
    .platform-strip-divider {
        width: 40px;
        height: 1px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 1.35rem;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-nav a {
        max-width: 100%;
    }
    
    .category-header {
        padding: 20px;
    }
    
    .category-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .main-nav a {
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 1.1rem;
    }
    
    .card-content h3 {
        font-size: 1rem;
    }
}

/* 三列焦点区域 */
.hero-grid-3col {
    display: grid;
    grid-template-columns: 180px 1fr 280px;
    gap: 20px;
    align-items: start;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

.hero-feature-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-feature-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius);
    transition: background 0.3s;
}

.hero-feature-card:nth-child(2) a {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-feature-card:nth-child(3) a {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.hero-feature-card .feature-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.hero-feature-card .feature-label {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

/* 浮动推广按钮（左上角） */
.floating-promo {
    position: fixed;
    top: 80px;
    left: 12px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-promo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-promo-btn:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 3px 12px rgba(245, 87, 108, 0.4);
}

.floating-promo-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 5px 18px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.floating-promo-btn:nth-child(2):hover {
    box-shadow: 0 5px 18px rgba(245, 87, 108, 0.5);
}

.floating-promo-icon {
    font-size: 1.3rem;
}

.floating-promo-text {
    font-size: 1rem;
}

/* 浮动工具按钮（右上角） */
.floating-utility {
    position: fixed;
    top: 80px;
    right: 12px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-utility-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.floating-utility-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

/* 浮动按钮响应式 */
@media (max-width: 1024px) {
    .hero-grid-3col {
        grid-template-columns: 1fr;
    }
    
    .hero-features {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-feature-card {
        flex: 1;
        max-width: 180px;
    }
    
    .floating-promo {
        top: auto;
        bottom: 80px;
        left: 12px;
    }
    
    .floating-utility {
        top: auto;
        bottom: 80px;
        right: 12px;
    }
}

@media (max-width: 768px) {
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-feature-card {
        max-width: 100%;
        width: 100%;
    }
    
    .floating-promo-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .floating-promo-text {
        display: none;
    }
    
    .floating-promo-icon {
        font-size: 1.2rem;
    }
    
    .floating-promo-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
}

/* CTA浮动按钮（右上角红色醒目） */
.floating-cta {
    position: fixed;
    top: 130px;
    right: 12px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: #e53935;
    border: none;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.5);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-cta-btn:nth-child(2) {
    background: #ff6f00;
    box-shadow: 0 3px 12px rgba(255, 111, 0, 0.4);
}

.floating-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 5px 18px rgba(229, 57, 53, 0.6);
    color: #fff;
}

.floating-cta-btn:nth-child(2):hover {
    box-shadow: 0 5px 18px rgba(255, 111, 0, 0.5);
}

.floating-cta-icon {
    font-size: 1.2rem;
}

.floating-cta-text {
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .floating-cta {
        top: auto;
        bottom: 140px;
        right: 12px;
    }
}

@media (max-width: 768px) {
    .floating-cta-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    .floating-cta-text {
        display: none;
    }
    .floating-cta-icon {
        font-size: 1.2rem;
    }
    .floating-cta-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
}
