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

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 首页横幅样式 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
}

.banner-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: #fff;
    color: #667eea;
    border: 2px solid #fff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #667eea;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

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

/* 接入文档样式 */
.docs {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.docs-content {
    display: flex;
    gap: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.docs-nav {
    flex: 0 0 250px;
    background-color: #f9f9f9;
    padding: 30px 0;
    border-right: 1px solid #e0e0e0;
}

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

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

.docs-nav a {
    display: block;
    padding: 10px 30px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.docs-nav a:hover,
.docs-nav a.active {
    background-color: #e8f4f8;
    color: #3498db;
    border-left-color: #3498db;
}

.docs-main {
    flex: 1;
    padding: 30px;
}

.docs-section {
    display: none;
}

.docs-section.active {
    display: block;
}

.docs-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.docs-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
    margin: 25px 0 15px;
}

.docs-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.docs-section ul,
.docs-section ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.docs-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.docs-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.docs-section th,
.docs-section td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.docs-section th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #2c3e50;
}

.docs-section tr:last-child td {
    border-bottom: none;
}

/* API文档样式 */
.api {
    padding: 80px 0;
    background-color: #fff;
}

.api-content {
    max-width: 800px;
    margin: 0 auto;
}

.api-item {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.api-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.api-info {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.api-method {
    padding: 5px 12px;
    background-color: #3498db;
    color: #fff;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
}

.api-url {
    font-family: 'Courier New', Courier, monospace;
    color: #e74c3c;
    font-weight: 600;
}

.api-item table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.api-item th,
.api-item td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.api-item th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #2c3e50;
}

.api-item tr:last-child td {
    border-bottom: none;
}

.api-item pre {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

.api-item code {
    font-family: 'Courier New', Courier, monospace;
}

/* 下载中心样式 */
.download {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.download-item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.download-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

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

/* 常见问题样式 */
.faq {
    padding: 80px 0;
    background-color: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #e8f4f8;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.faq-toggle {
    font-size: 20px;
    font-weight: bold;
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #7f8c8d;
}

/* 联系我们样式 */
.contact {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3,
.contact-form h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info strong {
    color: #34495e;
    margin-right: 10px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-logo h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-logo p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .banner-content h2 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .banner-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }

    .docs-content {
        flex-direction: column;
    }

    .docs-nav {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .contact-content {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

    .download-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}