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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 页面头部 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.logo h1 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.logo p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #3498db;
    background-color: #ecf0f1;
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: flex;
    gap: 40px;
}

.blog-content {
    flex: 3;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #7f8c8d;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    color: #2c3e50;
    padding-top: 20px;
}

.post-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 15px;
    color: #34495e;
}

.post-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content .note {
    background-color: #fff8e1;
    padding: 15px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.download-table thead {
    background-color: #3498db;
    color: white;
}

.download-table th,
.download-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.download-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.download-table tbody tr:hover {
    background-color: #e3f2fd;
}

.download-table .btn-small {
    padding: 5px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* 侧边栏 */
.sidebar {
    flex: 1;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-width: 250px;
}

.sidebar-widget {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    margin-bottom: 10px;
}

.sidebar-nav ul li a {
    text-decoration: none;
    color: #34495e;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    color: #3498db;
}

.related-downloads {
    list-style: none;
}

.related-downloads li {
    margin-bottom: 10px;
}

.related-downloads li a {
    text-decoration: none;
    color: #34495e;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.related-downloads li a:hover {
    color: #3498db;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #fff;
    color: #3498db;
}

.btn-primary:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

/* 首屏横幅 */
.hero-banner {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-banner .sub-text {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* 平台介绍 */
.platform-intro {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    margin: 15px auto;
    border-radius: 3px;
}

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

.platform-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #f8f9fa;
}

.platform-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.platform-icon i,
.client-logo i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #3498db;
}

.platform-img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.platform-item h3,
.client-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Clash客户端介绍 */
.clients-intro {
    padding: 80px 0;
    background-color: #ecf0f1;
}

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

.client-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.client-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-logo {
    font-size: 3rem;
    margin-bottom: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.client-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.client-item p {
    margin-bottom: 20px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* 什么是Clash */
.clash-intro {
    padding: 80px 0;
    background-color: #fff;
}

.clash-content {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.clash-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.clash-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 20px;
    color: #2c3e50;
}

/* 特性表格 */
.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.feature-table thead {
    background-color: #3498db;
    color: white;
}

.feature-table th,
.feature-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.feature-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.feature-table tbody tr:hover {
    background-color: #e3f2fd;

}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

/* 下载区域 */
.download-section {
    padding: 80px 0;
    background-color: #ecf0f1;
}

.download-tabs {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.tab-btn {
    flex: 1;
    padding: 15px 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: #7f8c8d;
}

.tab-btn:hover {
    background-color: #e0e0e0;
}

.tab-btn.active {
    background-color: #3498db;
    color: white;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.download-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.download-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.download-links {
    margin-bottom: 25px;
}

.btn-download {
    background-color: #3498db;
    color: white;
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.install-guide h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #2c3e50;
}

.install-guide ol {
    padding-left: 20px;
}

.install-guide li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 功能特点 */
.features-section {
    padding: 80px 0;
    background-color: #fff;
}

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #3498db;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 页脚 */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

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

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        position: static;
        width: 100%;
        order: 2;
        max-width: 100%;
    }
    
    .blog-content {
        order: 1;
    }
    
    .download-table {
        font-size: 0.85rem;
    }
    
    .download-table th,
    .download-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .logo-img {
        height: 40px;
        margin-right: 10px;
    }
    
    .logo h1 a {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        padding: 5px 0;
    }
    
    .main-nav ul li {
        margin: 5px 5px;
    }
    
    .hero-banner h2 {
        font-size: 2rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid #eee;
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .btn-download {
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .main-nav ul {
        font-size: 0.9rem;
    }
    
    .main-nav ul li {
        margin: 3px 3px;
    }
    
    .main-nav ul li a {
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .hero-banner {
        padding: 50px 0;
    }
    
    .hero-banner h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .blog-content {
        padding: 20px 15px;
    }
    
    .blog-content h1 {
        font-size: 1.6rem;
    }
    
    .download-table {
        font-size: 0.8rem;
    }
    
    .main-nav ul {
        font-size: 0.8rem;
    }
    
    .main-nav ul li {
        margin: 2px 2px;
    }
    
    .main-nav ul li a {
        padding: 3px 5px;
    }
}

/* 友情链接样式 */
.friend-links {
    background-color: #fff;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.friend-links .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.friend-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.friend-links ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.friend-links li {
    margin: 0;
}

.friend-links a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s;
    font-size: 1rem;
}

.friend-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 页脚法律声明样式 */
.footer-section ul {
    list-style: none;
    padding-left: 0;
}

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

/* 页脚Logo样式 */
.footer-logo {
    height: 24px;
    vertical-align: middle;
    margin-right: 10px;
}