/* 纸飞机|Telegram网站统一CSS样式文件 */
/* 包含首页、功能介绍页、FAQ页、资讯列表页和详情页的所有样式 */

:root {
    --primary-color: #3390ec;
    --secondary-color: #0088cc;
    --dark-color: #17212b;
    --light-color: #f5f5f5;
    --text-color: #333;
    --border-radius: 8px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== 通用样式 ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.text-center {
    text-align: center;
}

/* ===== 头部导航 ===== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

/* ===== 主视觉区域 ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 10px;
    color: #999;
}

/* ===== 功能卡片样式 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.feature-card p {
    margin-bottom: 15px;
    color: #555;
}

.feature-list {
    margin-top: 15px;
    padding-left: 20px;
}

.feature-list li {
    margin-bottom: 8px;
    color: #666;
}

/* ===== 平台下载卡片 ===== */
.platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.platform-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.platform-card h3 {
    margin-bottom: 15px;
}

.platform-card p {
    margin-bottom: 20px;
    color: #666;
}

/* ===== FAQ样式 ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--light-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 1.1rem;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: #555;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-question span:last-child {
    transition: transform 0.3s;
}

.faq-item.active .faq-question span:last-child {
    transform: rotate(180deg);
}

/* ===== 搜索框样式 ===== */
.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
}

/* ===== 分类筛选样式 ===== */
.faq-categories, .filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.category-btn, .filter-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active, .category-btn:hover, 
.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== 对比表格样式 ===== */
.comparison {
    background-color: #f0f8ff;
}

.comparison-table {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--light-color);
    font-weight: 600;
}

.yes {
    color: #2ecc71;
    font-weight: 600;
}

.no {
    color: #e74c3c;
}

.partial {
    color: #f39c12;
}

/* ===== 详细功能介绍样式 ===== */
.detail-item {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.detail-item:nth-child(even) {
    flex-direction: row-reverse;
}

.detail-content {
    flex: 1;
}

.detail-image {
    flex: 1;
    text-align: center;
}

.detail-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.detail-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.detail-content p {
    margin-bottom: 15px;
    color: #555;
}

.detail-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.detail-content li {
    margin-bottom: 8px;
    color: #666;
}

/* ===== 资讯列表页样式 ===== */
.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.news-filters {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 200px;
    flex-shrink: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.news-category, .article-category {
    color: var(--primary-color);
    font-weight: 500;
}

.news-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.news-card h3 a {
    color: var(--dark-color);
    text-decoration: none;
}

.news-card h3 a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: #555;
    margin-bottom: 15px;
}

.news-sidebar {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.popular-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.popular-content h4 a {
    color: var(--dark-color);
    text-decoration: none;
}

.popular-content h4 a:hover {
    color: var(--primary-color);
}

.popular-meta {
    font-size: 0.8rem;
    color: #666;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.pagination a.active, .pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== 资讯详情页样式 ===== */
.article-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.article-main {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.article-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-image {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 25px 0 12px;
    color: var(--dark-color);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.tag {
    background: #f0f8ff;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.article-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 30px;
}

.article-nav {
    display: flex;
    justify-content: space-between;
}

.article-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* ===== 评论区域样式 ===== */
.comments-section {
    margin-top: 50px;
}

.comments-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.comment-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.comment {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.comment-meta strong {
    color: var(--dark-color);
}

/* ===== 联系支持样式 ===== */
.contact-section {
    background-color: #f0f8ff;
    text-align: center;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 250px;
}

.contact-card h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* ===== 合规声明样式 ===== */
.compliance {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.compliance p {
    max-width: 800px;
    margin: 0 auto 20px;
}

/* ===== 页脚样式 ===== */
footer {
    background-color: #111;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .news-container, .article-container {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        order: -1;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .detail-item, .detail-item:nth-child(even) {
        flex-direction: column;
        gap: 20px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .article-title {
        font-size: 1.7rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    .faq-categories, .filter-options {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
}