/* 浏览器兼容性处理 */
/* 支持现代浏览器：Chrome 60+, Firefox 55+, Safari 12+, Edge 79+ */

/* 基础重置和兼容性 */
* {
    box-sizing: border-box;
}

/* 确保所有元素都有正确的盒模型 */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* 兼容性样式 */
.headers{
    background: #005AAC;
    color:white;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    /* backdrop-filter 兼容性处理 */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* 降级处理：不支持backdrop-filter的浏览器 */
@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background: rgba(255, 255, 255, 0.98);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #005AAC;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* 兼容不支持gap的浏览器 */
@supports not (gap: 2rem) {
    .nav-menu li {
        margin-right: 2rem;
    }
    .nav-menu li:last-child {
        margin-right: 0;
    }
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    /* 确保不会被按钮样式影响 */
    border: none !important;
    background: none !important;
    display: inline !important;
    box-shadow: none !important;
}

.nav-menu a:hover {
    color: #005AAC;
}

.nav-menu a[aria-current="page"] {
    color: #005AAC;
    font-weight: 600;
}

.nav-menu a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #005AAC 0%, #316EFE 100%);
    border-radius: 1px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* 英雄区域基础样式优化 */
.hero {
    padding: 120px 0 80px;
    background: 
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%),
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(147, 197, 253, 0.15) 0%, transparent 50%);
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 降级处理：不支持复杂渐变的浏览器 */
@supports not (background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%)) {
    .hero {
        background: #16213e;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #E5F0FA;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 代码块移动端自适应优化 */
.hero-code-example {
    background: rgba(0, 90, 172, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 90, 172, 0.3);
    max-width: 550px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-code-example h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
}

.hero-code-example pre {
    background: rgba(0, 90, 172, 0.4);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    overflow-y: auto;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    /* 进一步增加高度，减少滚动条 */
    height: 450px;
    max-height: 450px;
}

.hero-code-example code {
    color: #e2e8f0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-icon {
    font-size: 15rem;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 产品优势样式 */
.advantages {
    padding: 80px 0;
    background: #f8fafc;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #005AAC 0%, #316EFE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.advantage-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.advantage-item p {
    color: #718096;
    line-height: 1.6;
}

/* 特性区域样式 */
.features {
    padding: 20px 0 80px;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #005AAC;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #005AAC 0%, #316EFE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-highlight {
    background: linear-gradient(135deg, #005AAC 0%, #316EFE 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

/* 应用场景样式 */
.scenarios {
    padding: 40px 0 80px;
    background: #f8fafc;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.scenario-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #005AAC;
}

.scenario-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #005AAC 0%, #316EFE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.scenario-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.scenario-card p {
    color: #718096;
    line-height: 1.6;
}

/* 演示区域样式 */
.demo {
    padding: 80px 0;
    background: white;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.code-example {
    background: #1a202c;
    border-radius: 12px;
    padding: 2rem;
    color: white;
}

.code-example h3 {
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.code-example pre {
    background: #2d3748;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-example code {
    color: #e2e8f0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.demo-preview {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.demo-preview h3 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.preview-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.preview-content h1 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.preview-content p {
    color: #718096;
}

/* 客户案例样式 */
.testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #4a5568;
    line-height: 1.6;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: #718096;
    font-size: 0.9rem;
}

/* 下载区域样式 */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #005AAC 0%, #316EFE 100%);
    color: white;
}

.download .section-title {
    color: white;
}

.download .section-title::after {
    background: white;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 320px; /* 改为最小高度 */
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.download-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.download-card code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-family: 'Fira Code', monospace;
    flex-shrink: 0;
}

/* 移除占位空间，使用flex布局自动对齐 */
.download-card .btn-placeholder {
    display: none;
}

/* 让按钮自动推到底部 */
.download-card .btn {
    margin-top: auto;
    flex-shrink: 0;
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* 页脚样式 */
.footer {
    background: #2d3748;
    color: white;
    padding: 25px 0 10px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section:first-child {
    justify-content: flex-start;
}

.footer-section:last-child {
    justify-content: flex-start;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.75rem;
    color: #e2e8f0;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-social a:hover {
    background: #005AAC;
    transform: translateY(-2px);
}

/* 社交媒体悬浮提示样式 */
.social-tooltip {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 150px;
    text-align: center;
}

.social-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.social-tooltip img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.footer-social a:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

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

.footer-section ul li i {
    margin-right: 0.5rem;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding: 0.75rem 0;
    text-align: center;
    opacity: 0.9;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-bottom p {
    margin: 0;
    color: #a0aec0;
    font-weight: 400;
}

.footer-bottom a {
    color: #a0aec0;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-bottom a:hover {
    color: #e2e8f0;
}

/* 功能预览样式 */
.feature-preview {
    padding: 40px 0 80px;
    background: white;
}

.preview-carousel {
    margin-top: 3rem;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    /* 移除平滑滚动效果 */
    /* scroll-behavior: smooth; */
    -webkit-overflow-scrolling: touch;
}

.carousel-slide {
    flex: 0 0 400px;
    margin-right: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide:last-child {
    margin-right: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.preview-item {
    background: white;
    display: flex;
    flex-direction: column;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.preview-image {
    height: 350px;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

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

/* 大图预览模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
    padding: 40px;
    box-sizing: border-box;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-close:hover {
    transform: scale(1.1);
    color: white;
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

.preview-content {
    height: 150px;
    padding: 1.5rem;
    text-align: center;
    background: white;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.preview-content p {
    color: #718096;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #005AAC 0%, #316EFE 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 90, 172, 0.3);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #005AAC;
    transform: scale(1.2);
}

.dot:hover {
    background: #005AAC;
    opacity: 0.7;
}

/* 8大核心打印JS Api样式 */
.api-features {
    padding: 20px 0 80px;
    background: #f8fafc;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.api-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.api-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #005AAC;
}

.api-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #005AAC 0%, #316EFE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.api-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2d3748;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
}

.api-item p {
    color: #718096;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

.api-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 90, 172, 0.1);
    border-radius: 8px;
    border-left: 4px solid #005AAC;
}

.api-note p {
    color: #2d3748;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.api-note i {
    color: #005AAC;
    font-size: 1.1rem;
}

/* 响应式设计 - 重新优化 */
@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }
    
    .hero {
        padding: 80px 0 50px !important;
        min-height: 60vh !important;
        text-align: center !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
        padding: 0 15px !important;
        justify-items: center !important;
        align-items: center !important;
    }
    
    .hero-content {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin-bottom: 0.8rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero-content h2 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.2rem !important;
        text-align: center !important;
        padding: 0 5px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero-stats {
        justify-content: center !important;
        gap: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        flex-wrap: wrap !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .stat-item {
        min-width: 70px !important;
        text-align: center !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }
    
    .stat-number {
        font-size: 1.6rem !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero-buttons {
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-image {
        text-align: center !important;
        width: 100% !important;
        order: 2 !important;
    }
    
    .hero-code-example {
        max-width: 100% !important;
        padding: 1rem !important;
        margin: 0 auto !important;
        overflow: hidden !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    
    .hero-code-example pre {
        padding: 0.8rem !important;
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        overflow-x: auto !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        min-width: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 6px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-code-example code {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        display: block !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .btn {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
        border-radius: 6px !important;
        transition: all 0.3s ease !important;
        width: auto !important;
        max-width: 250px !important;
        box-sizing: border-box !important;
    }
    
    .btn:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 20px rgba(0, 90, 172, 0.25) !important;
    }
    
    .demo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .download-options {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        padding: 0.75rem 0;
        font-size: 0.85rem;
    }

    .api-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .api-item {
        padding: 1.25rem;
    }
    
    .api-item h3 {
        font-size: 1.1rem;
    }
    
    .api-item p {
        font-size: 0.9rem;
    }
}

/* 手机端优化 (480px以下) */
@media (max-width: 480px) {
    .hero {
        padding: 70px 0 40px !important;
        min-height: 50vh !important;
        text-align: center !important;
    }
    
    .hero-container {
        justify-items: center !important;
        text-align: center !important;
        gap: 1.5rem !important;
        padding: 0 10px !important;
    }
    
    .hero-content {
        text-align: center !important;
        width: 100% !important;
        order: 1 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
        text-align: center !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.1 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero-content h2 {
        font-size: 1.1rem !important;
        text-align: center !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        line-height: 1.4 !important;
        padding: 0 2px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero-stats {
        gap: 1rem !important;
        justify-content: center !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .stat-item {
        text-align: center !important;
        min-width: 60px !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }
    
    .stat-number {
        font-size: 1.4rem !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero-buttons {
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-image {
        text-align: center !important;
        width: 100% !important;
        order: 2 !important;
    }
    
    .hero-code-example {
        padding: 0.8rem !important;
        overflow: hidden !important;
        margin: 0 auto !important;
        border-radius: 6px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-code-example pre {
        padding: 0.6rem !important;
        font-size: 0.65rem !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        min-width: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 4px !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        /* 小屏幕增加高度 */
        height: 320px !important;
        max-height: 320px !important;
    }
    
    .hero-code-example code {
        font-size: 0.6rem !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        display: block !important;
        min-width: 0 !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .btn {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem !important;
        border-radius: 5px !important;
        width: 100% !important;
        max-width: 200px !important;
        box-sizing: border-box !important;
    }
    
    .btn:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 15px rgba(0, 90, 172, 0.2) !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .download-card {
        padding: 1.5rem;
        min-height: 280px;
    }
    
    .download-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .download-card h3 {
        font-size: 1.3rem;
    }
    
    .download-card p {
        font-size: 0.9rem;
    }
    
    .download-card code {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}

/* 超小屏幕优化 (360px以下) */
@media (max-width: 360px) {
    .hero {
        padding: 60px 0 30px !important;
        min-height: 45vh !important;
    }
    
    .hero-container {
        padding: 0 8px !important;
        gap: 1rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.6rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .hero-content h2 {
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 0.8rem !important;
        padding: 0 !important;
    }
    
    .hero-stats {
        gap: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .stat-item {
        min-width: 50px !important;
    }
    
    .stat-number {
        font-size: 1.2rem !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
    }
    
    .hero-code-example {
        padding: 0.6rem !important;
        border-radius: 5px !important;
    }
    
    .hero-code-example pre {
        padding: 0.5rem !important;
        font-size: 0.6rem !important;
        border-radius: 3px !important;
    }
    
    .hero-code-example code {
        font-size: 0.55rem !important;
    }
    
    .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        max-width: 180px !important;
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #718096;
    font-weight: 400;
    opacity: 0.8;
}

/* 无障碍访问样式 */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 焦点样式 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #005AAC;
    outline-offset: 2px;
}

/* 导航项特殊处理 - 去掉focus线框 */
.nav-menu a:focus {
    outline: none !important;
    outline-offset: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* 跳过导航链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #005AAC;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* 额外的移动端优化 */
@media (max-width: 768px) {
    /* 确保容器适配 */
    .container {
        padding: 0 15px !important;
    }
    
    /* 确保所有文本都能正确换行 */
    .hero-content * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 确保代码示例不会溢出 */
    .hero-code-example * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 确保按钮在移动端有合适的触摸区域 */
    .btn {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        touch-action: manipulation !important;
    }
}

@media (max-width: 480px) {
    /* 进一步优化小屏幕 */
    .container {
        padding: 0 10px !important;
    }
    
    /* 确保统计数据在小屏幕上正确显示 */
    .hero-stats {
        justify-content: space-around !important;
    }
    
    .stat-item {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* 确保按钮在小屏幕上更容易点击 */
    .btn {
        min-height: 48px !important;
        font-size: 0.9rem !important;
        padding: 0.8rem 1.5rem !important;
    }
}

@media (max-width: 360px) {
    /* 超小屏幕的额外优化 */
    .container {
        padding: 0 8px !important;
    }
    
    /* 确保所有文本在小屏幕上都能清晰显示 */
    .hero-content h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-content h2 {
        font-size: 0.95rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.75rem !important;
    }
    
    /* 统计数据在超小屏幕上的优化 */
    .hero-stats {
        gap: 0.5rem !important;
    }
    
    .stat-item {
        min-width: 40px !important;
    }
    
    .stat-number {
        font-size: 1.1rem !important;
    }
    
    .stat-label {
        font-size: 0.6rem !important;
    }
    
    /* 代码示例在超小屏幕上的优化 */
    .hero-code-example {
        padding: 0.5rem !important;
    }
    
    .hero-code-example pre {
        padding: 0.4rem !important;
        font-size: 0.55rem !important;
    }
    
    .hero-code-example code {
        font-size: 0.5rem !important;
    }
    
    /* 按钮在超小屏幕上的优化 */
    .btn {
        min-height: 44px !important;
        font-size: 0.8rem !important;
        padding: 0.6rem 1rem !important;
        max-width: 160px !important;
    }
}

/* 确保在所有移动设备上都有良好的触摸体验 */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 90, 172, 0.1) !important;
    }
    
    .hero-code-example {
        -webkit-overflow-scrolling: touch !important;
    }
    
    .hero-code-example pre {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* 覆盖内联样式的移动端优化 */
@media (max-width: 768px) {
    .hero-subtitle[style*="margin-top: 0.5rem"] {
        margin-top: 0.3rem !important;
        font-size: 0.9rem !important;
        opacity: 0.8 !important;
    }
}

@media (max-width: 480px) {
    .hero-subtitle[style*="margin-top: 0.5rem"] {
        margin-top: 0.2rem !important;
        font-size: 0.8rem !important;
        opacity: 0.7 !important;
    }
}

@media (max-width: 360px) {
    .hero-subtitle[style*="margin-top: 0.5rem"] {
        margin-top: 0.1rem !important;
        font-size: 0.7rem !important;
        opacity: 0.6 !important;
    }
}

/* 强制代码块自适应 - 防止横向滚动 */
.hero-code-example,
.hero-code-example pre,
.hero-code-example code {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
}

.hero-code-example pre {
    white-space: pre-wrap !important;
    white-space: -moz-pre-wrap !important;
    white-space: -pre-wrap !important;
    white-space: -o-pre-wrap !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.hero-code-example code {
    white-space: pre-wrap !important;
    white-space: -moz-pre-wrap !important;
    white-space: -pre-wrap !important;
    white-space: -o-pre-wrap !important;
}

/* 移动端强制优化 */
@media (max-width: 768px) {
    .hero-code-example,
    .hero-code-example pre,
    .hero-code-example code {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-all !important;
    }
    
    .hero-code-example pre {
        white-space: pre-wrap !important;
        white-space: -moz-pre-wrap !important;
        white-space: -pre-wrap !important;
        white-space: -o-pre-wrap !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        height: 380px !important;
        max-height: 380px !important;
    }
    
    .hero-code-example code {
        white-space: pre-wrap !important;
        white-space: -moz-pre-wrap !important;
        white-space: -pre-wrap !important;
        white-space: -o-pre-wrap !important;
    }
}

@media (max-width: 480px) {
    .hero-code-example,
    .hero-code-example pre,
    .hero-code-example code {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-all !important;
    }
    
    .hero-code-example pre {
        white-space: pre-wrap !important;
        white-space: -moz-pre-wrap !important;
        white-space: -pre-wrap !important;
        white-space: -o-pre-wrap !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        height: 320px !important;
        max-height: 320px !important;
    }
    
    .hero-code-example code {
        white-space: pre-wrap !important;
        white-space: -moz-pre-wrap !important;
        white-space: -pre-wrap !important;
        white-space: -o-pre-wrap !important;
    }
}

@media (max-width: 360px) {
    .hero-code-example,
    .hero-code-example pre,
    .hero-code-example code {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-all !important;
    }
    
    .hero-code-example pre {
        white-space: pre-wrap !important;
        white-space: -moz-pre-wrap !important;
        white-space: -pre-wrap !important;
        white-space: -o-pre-wrap !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        height: 280px !important;
        max-height: 280px !important;
    }
    
    .hero-code-example code {
        white-space: pre-wrap !important;
        white-space: -moz-pre-wrap !important;
        white-space: -pre-wrap !important;
        white-space: -o-pre-wrap !important;
    }
}
