/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 30px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    text-align: center;
    padding: 10rem 0 5rem;
    margin-top: 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    margin: 5px;
}

.btn:hover {
    background: #c0392b;
}

/* 功能特性样式 */
.features {
    padding: 5rem 0;
    background: #ecf0f1;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* 系统架构样式 */
.architecture {
    padding: 5rem 0;
    background: white;
}

.architecture h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.architecture-content {
    text-align: center;
}

.architecture-content ul {
    list-style-type: none;
    margin: 1rem 0;
    text-align: left;
    display: inline-block;
}

.architecture-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.architecture-content ul li:last-child {
    border-bottom: none;
}

.architecture-content ul li strong {
    color: #2c3e50;
}

.architecture-diagram {
    margin-top: 2rem;
    text-align: center;
}

.architecture-svg {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 协议支持样式 */
.protocols {
    padding: 5rem 0;
    background: #ecf0f1;
}

.protocols h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.protocol-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

.protocol-list li {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 20px;
}

/* 代理客户端样式 */
.proxy {
    padding: 5rem 0;
    background: white;
}

.proxy h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.proxy-content ul {
    list-style-type: none;
    margin: 1rem 0;
}

.proxy-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.proxy-content ul li:last-child {
    border-bottom: none;
}

.proxy-content ul li strong {
    color: #2c3e50;
}

/* 联系方式样式 */
.contact {
    padding: 5rem 0;
    background: #ecf0f1;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* 代理客户端页面样式 */
.content {
    padding: 8rem 0 3rem;
    background: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.content-main h2 {
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.content-main p {
    margin-bottom: 1rem;
}

.feature-list {
    list-style-type: none;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li strong {
    color: #2c3e50;
}

.specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.spec-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #eee;
}

.spec-item h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #eee;
}

.content-sidebar .sidebar-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.content-sidebar .sidebar-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.content-sidebar .sidebar-card ul {
    list-style-type: none;
}

.content-sidebar .sidebar-card ul li {
    padding: 0.3rem 0;
}

.content-sidebar .sidebar-card ul li a {
    color: #3498db;
    text-decoration: none;
}

.content-sidebar .sidebar-card ul li a:hover {
    text-decoration: underline;
}

/* 文档页面样式 */
.documentation-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

.toc {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    border: 1px solid #eee;
    position: sticky;
    top: 80px;
    align-self: start;
}

.toc h2 {
    margin-top: 0;
    color: #2c3e50;
}

.toc ul {
    list-style-type: none;
}

.toc ul li {
    padding: 0.3rem 0;
}

.toc ul li a {
    color: #3498db;
    text-decoration: none;
}

.toc ul li a:hover {
    text-decoration: underline;
}

.documentation-content {
    background: #fff;
}

.doc-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.doc-section:last-child {
    border-bottom: none;
}

.doc-section h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
}

.doc-section h3 {
    color: #34495e;
    margin: 1.5rem 0 1rem;
}

.doc-section h4 {
    color: #7f8c8d;
    margin: 1rem 0 0.5rem;
}

.doc-section ul, .doc-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

pre code {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    display: block;
    border: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-img {
        height: 25px;
        margin-right: 10px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .specs {
        grid-template-columns: 1fr;
    }
    
    .documentation-grid {
        grid-template-columns: 1fr;
    }
    
    .toc {
        position: static;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.25rem;
    }
    
    .protocol-list li {
        padding: 8px 16px;
        margin: 5px;
        font-size: 0.9rem;
    }
}