:root {
    --primary-color: #6666FF;
    --secondary-color: #5252cc;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f5f7fa;
    --border-color: #eaeaea;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    --header-height: 70px;
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(115deg, rgb(71, 184, 255) 0%, rgb(102, 66, 255) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}

/* Header */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgb(255 255 255 / 30%);
    backdrop-filter: blur(10px);
    border: 1px solid rgb(255 255 255 / 70%);
    -webkit-box-shadow: 0px 10px 24px 0 rgba(111, 162, 226, 0.08);
    box-shadow: 0px 10px 24px 0 rgba(111, 162, 226, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

.nav ul {
    display: flex;
}

.nav li {
    margin-left: 40px;
}

.nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav a.active, .nav a:hover {
    color: var(--primary-color);
}

.nav a.active:after {
    display: none;
}

.theme-toggle {
    margin-left: 20px;
}

.theme-toggle button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.theme-toggle button:hover {
    color: var(--primary-color);
}

.hero {
    padding: 180px 0 0;
    background-image: url(https://img.uicook.cn/mijidoc/bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to bottom, rgba(244, 248, 255, 0) 0%, rgba(243, 249, 255, 1) 100%);
    z-index: 3;
    pointer-events: none;
}
.title-bg {
    position: absolute;
    top: 120px;
    width: 100%;
    max-width: 1200px;
    height: 288px;
    background-image: url(./assets/image/title-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
}

.hero-image-container {
    width: 100%;
    height: auto;
    margin-bottom: 0;
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    border-radius: 30px;
    border: 6px solid #ffffff;
}

.hero-background {
    position: relative;
    width: 100%;
    z-index: 2;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 60px rgba(211, 226, 240, 0.5);
    border-radius: 30px;
}


.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-buttons {
    margin-bottom: 100px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    padding: 0 40px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    margin: 0 10px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    height: 100%;
    border-radius: 8px;
    opacity: 1;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 102, 255, 0.3);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 版本信息区域样式 */
.version-section {
    padding: 100px 0 0;
}

.version-info {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 80px;
    height: auto;
    padding: 50px 30px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.version-item {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.version-item span:nth-child(2) {
    font-weight: 600;
    color: var(--text-color);
    margin-left: 8px;
}

@media (max-width: 768px) {
    .version-section {
        padding: 80px 12px;
    }

    .version-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }
    
    .version-item {
        justify-content: center;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .version-info {
        gap: 15px;
    }
    
    .version-item {
        font-size: 0.8rem;
    }
}

/* 产品截图轮播模块 */
.screenshots {
    padding: 60px 0;
    background-color: var(--bg-color);
}

/* 修复轮播图样式 */
.screenshot-slider {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
}

.screenshot-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.screenshot-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.screenshot-slide {
    flex: 0 0 calc(33.333% - 20px);
    margin: 30px 10px;
    box-sizing: border-box;
    position: relative;
    padding-top: calc(33.333% * 9 / 16); /* 16:9比例 */
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid rgb(233 240 255);
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.screenshot-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.screenshot-arrow {
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333 !important; /* 强制使用黑色 */
    margin: 0 15px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.screenshot-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #333 !important; /* 悬停时也保持黑色 */
}

.screenshot-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.screenshot-arrow:disabled:hover {
    transform: none;
}


/* 响应式调整 */
@media (max-width: 992px) {
    .screenshot-slide {
        flex: 0 0 calc(50% - 20px);
        padding-top: calc(50% * 9 / 16);
    }
}

@media (max-width: 768px) {
    .screenshot-slide {
        flex: 0 0 calc(100% - 20px);
        padding-top: calc(100% * 9 / 16);
    }
    
    .screenshot-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(rgb(242, 247, 255) 0%, rgb(242, 247, 255) 100%);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: 600;
}

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

@media (min-width: 360px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: linear-gradient(180deg, #f5f5fe 0%, rgb(255, 255, 255) 27.927927927927932%);
    border-radius: 20px;
    box-shadow: 0 5px 12px #7484a30a;
    padding: 30px;
    transition: var(--transition);
    border: 2px solid var(--bg-color);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px #5f6d8a0a;
}

.feature-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Why Typecho Section */
.why-typecho {
    padding: 80px 0;
    background: #fff;
}

.why-typecho-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.why-item {
    border-radius: 16px;
    padding: 30px;
}

.why-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-icon i {
    font-size: 20px;
    color: white;
}

/* 为每个卡片设置不同的颜色主题 */
.why-item:nth-child(1) {
    background-color: #FFF7F7;
}
.why-item:nth-child(1) .why-icon {
    background-color: #FF7875;
}

.why-item:nth-child(2) {
    background-color: #F7FAFF;
}
.why-item:nth-child(2) .why-icon {
    background-color: #597EF7;
}

.why-item:nth-child(3) {
    background-color: #f5fbf3;
}
.why-item:nth-child(3) .why-icon {
    background-color: #73D13D;
}

.why-item:nth-child(4) {
    background-color: #FFFAF8;
}
.why-item:nth-child(4) .why-icon {
    background-color: #FFA940;
}

.why-item:nth-child(5) {
    background-color: #F9F7FF;
}
.why-item:nth-child(5) .why-icon {
    background-color: #9254DE;
}

.why-item:nth-child(6) {
    background-color: #f2fbf9;
}
.why-item:nth-child(6) .why-icon {
    background-color: #36CFC9;
}

.why-item h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-color);
}

.why-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .why-typecho-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-typecho {
        padding: 40px 0;
    }

    .why-typecho-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 12px;
    }

    .why-item {
        padding: 24px;
    }

    .why-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .why-icon i {
        font-size: 18px;
    }

    .why-item h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .why-item p {
        font-size: 0.9rem;
    }
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--bg-color);
}

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

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-color);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-toggle {
    color: var(--text-light);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

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

.faq-item.active .faq-answer {
    display: block;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    text-align: center;
    background-image: url(./assets/image/bottom-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: var(--bg-color);
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.footer-content p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.footer-contact {
    margin-top: 0;
    display: flex;
}

.footer-contact p {
    margin-left: 20px;
    margin-bottom: 0;
}

/* Help Page Styles */
.help-header {
    background: linear-gradient(rgb(242, 247, 255) 0%, rgb(242, 247, 255) 100%);
    margin: 0;
    padding: 160px 0 120px;
    text-align: center;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.help-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(102, 102, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(102, 102, 255, 0.02) 1px, transparent 1px);
    background-size: 12px 12px;
    z-index: 0;
}

.help-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.help-content {
    padding: 0 0 80px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

/* 添加内容卡片样式 */
.help-content-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    padding: 100px 180px;
    position: relative;
}

.help-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.help-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.help-section h2 {
    font-size: 1.375rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-color);
    display: inline-block;
    line-height: 1.3;
    -webkit-box-shadow: 0 -8px 0 0 rgb(102 102 255 / 16%) inset;
    box-shadow: 0 -8px 0 0 rgb(102 102 255 / 16%) inset;
}

.help-section h3 {
    font-size: 1.25rem;
    margin: 10px 0 15px;
    font-weight: 600;
}

.help-section p, .help-section li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.help-section ul, .help-section ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.help-section ul li {
    list-style-type: disc;
}

.help-section ol li {
    list-style-type: decimal;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 1. 所有内容添加间距 */
    .container {
        padding: 0 12px;
    }
    
    /* 2. 首页首屏按钮水平排列 */
    .hero-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        display: inline-block !important; /* 使用!important覆盖冲突样式 */
        width: 120px !important;
        margin: 0 !important;
        padding: 10px 15px;
        font-size: 0.9rem;
        box-sizing: border-box;
    }
    
    /* 3. 版本信息排版优化 */
    .version-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        height: auto;
        padding: 30px 0;
    }
    
    .version-item {
        justify-content: center;
    }
    
    /* 4. 常见问题改为分割线形式 */
    .faq-item {
        margin-bottom: 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }
    
    .faq-item:last-child {
        border-bottom: none;
    }
    
    .faq-question {
        padding: 15px 0;
    }
    
    .faq-answer {
        padding: 0 0 15px 0;
    }
    
    /* 帮助页面内容卡片调整 */
    .help-content-card {
        padding: 30px 30px;
    }
    
    /* 弹窗调整 */
    .modal-content {
        width: calc(100% - 40px);
        padding: 30px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.4;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .typing-container {
        margin-top: 10px;
        height: 40px; /* 固定高度，防止跳动 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        margin: 10px 0 5px;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .feature-icon {
        margin-bottom: 0;
    }
    .logo img {
        max-height: 36px;
    }
    
    .header {
        height: 60px;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .help-header {
        margin-top: 62px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contact {
        flex-direction: column;
        margin-top: 10px;
    }
    
    .footer-contact p {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .hero-img {
        box-shadow: 0 10px 30px rgba(211, 226, 240, 0.4);
    }

    .hero-image-container {
        width: calc(100% - 24px);
        MARGIN: 0 12px;
    }
    .hero-content h1 {
        margin-bottom: 40px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .cta-content h2 {
        font-size: 1.5rem;
    }
    .features {
        padding: 40px 0;
    }
    .faq {
        padding: 40px 0;
        background-color: var(--bg-color);
    }
    .section-title {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 30px;
        font-weight: 600;
    }
    .cta {
        padding: 40px 0;
    }
    .help-header h1 {
        padding: 0 30px;
    }
    .help-content {
        padding: 0 0 20px;
    }
    .nav li {
        margin-left: 30px;
    }
    .help-header h1 {
        font-size: 1.75rem;
    }
    .help-section h2 {
        font-size: 1.5rem;
    }

}

@media (max-width: 480px) {
    /* 超小屏幕额外优化 */
    .hero-buttons .btn {
        font-size: 0.85rem;
    }
    
    .version-info {
        gap: 15px;
    }
    
    .version-item {
        font-size: 0.8rem;
    }
    
    .nav li {
        margin-left: 30px;
    }
    
    .nav a {
        font-size: 14px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .typing-container {
        height: 35px;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
    }
    
    .feature-card p {
        font-size: 0.8rem;
    }
    
    .hero-image-container {
        height: 200px; /* 在更小的屏幕上进一步减小高度 */
    }
    .cta-content h2 {
        font-size: 1.5rem;
    }
    .help-header h1 {
        padding: 0 30px;
    }
    .help-content-card {
        padding: 24px 24px;
    }
    .help-content {
        padding: 0 0 20px;
    }
    .help-header h1 {
        font-size: 1.75rem;
    }
    .help-section h2 {
        font-size: 1.5rem;
    }
}

/* 创建占位图样式 */
[src="placeholder-logo.svg"] {
    background-color: var(--primary-color);
    border-radius: 4px;
    display: inline-block;
}

/* 创建一个简单的动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.feature-card, .faq-item, .hero-content {
    animation: fadeIn 0.5s ease-in-out;
}

/* 添加授权弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    overflow: auto;
    transition: background-color 0.5s ease;
}

.modal.show {
    display: flex !important;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center !important;
    align-items: center;
    height: 100vh; 
}

.modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

body.modal-open {
    overflow: hidden;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.modal-content p {
    margin-bottom: 25px;
    color: var(--text-light);
}

.auth-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d5492d;
    margin: 20px 0 10px 0;
}

.auth-price .currency {
    font-size: 1.8rem;
}

.auth-price .decimal {
    font-size: 1.5rem;
    color: #999;
}

.auth-license {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.qr-code-container {
    width: 200px;
    height: 200px;
    background-color: #f0f0f0;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-image: url(./assets/image/qrcode.png);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.qr-code-container p {
    color: #999;
    margin: 0;
}

.auth-payment-text {
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.auth-contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-contact-info p {
    margin-bottom: 10px;
}

.auth-contact-info p:last-child {
    margin-bottom: 0;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: normal;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-color);
}

/* 移动端导航栏样式 */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav ul {
        display: flex;
        position: static;
        flex-direction: row;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    
    .logo img {
        max-height: 36px;
    }
    
    .header {
        height: 60px;
    }
    
    .hero {
        padding-top: 140px;
    }
    
    .help-header {
        margin-top: 62px;
    }
    .hero-buttons {
        margin-bottom: 80px;
    }
    .hero-description {
        font-size: 1rem;
        padding: 0 40px 40px;
    }
}

@media (max-width: 480px) {

    
    .nav a {
        font-size: 14px;
    }
    .features {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    .faq-question h3 {
        font-size: 1rem;
    }
    .faq {
        padding: 40px 0;
    }
    .cta-content h2 {
        font-size: 1.5rem;
    }
    .cta {
        padding: 40px 0;
    }
    .cta-content p {
        font-size: 0.875rem;
    }
    .footer-content {

        font-size: 0.875rem;
    }
}

/* 重新设计打字效果样式 */
.typing-container {
    display: inline-block;
    position: relative;
}

#typing-text {
    color: var(--primary-color);
    display: inline-block;
    min-width: 4px;
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--primary-color);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 平板和中等屏幕尺寸优化 (769px-1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
    /* 容器内边距优化 */
    .container {
        padding: 0 40px;
        max-width: 100%;
    }
    
    /* 标题和按钮优化 */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
    }
    
    /* 版本信息优化 */
    .version-info {
        gap: 50px;
        height: 120px;
    }
    
    /* 特点卡片优化 */
    .feature-card {
        padding: 25px;
    }
    
    /* 常见问题优化 */
    .faq-container {
        max-width: 90%;
    }
    
    /* 帮助页面内容卡片调整 */
    .help-content-card {
        padding: 60px;
    }
    
    /* 页面各部分间距优化 */
    .features, .faq, .cta {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
}

/* 文章图片样式 */
.article-image {
    margin: 20px 0;
    width: 100%;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    display: block;
}

@media (max-width: 768px) {
    .article-image {
        margin: 15px 0;
    }
}

/* 产品截图轮播模块 - 添加图片查看大图功能 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s ease;
}

.lightbox.show {
    display: flex;
    background-color: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    position: relative;
    transform: scale(0.9); /* 初始缩放更接近最终大小 */
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.05), opacity 0.35s ease; /* 减小回弹幅度和时间 */
}

.lightbox.show .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* 添加灯箱导航按钮 */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-prev {
        left: -60px;
    }
    
    .lightbox-next {
        right: -60px;
    }
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 90%;
    }
    
    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .lightbox-prev {
        left: -45px;
    }
    
    .lightbox-next {
        right: -45px;
    }
}

/* 确保截图幻灯片可点击 */
.screenshot-slide {
    cursor: pointer;
}

/* 当灯箱关闭时，立即隐藏按钮 */
.lightbox:not(.show) .lightbox-close,
.lightbox:not(.show) .lightbox-nav {
    opacity: 0 !important;
    transition: opacity 0.1s ease;
}

/* 博客详情页样式 */
.blog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blog-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 2rem;
}

.blog-nav-card {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 1.4rem;
    background: var(--card-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #eeeeee;
}

.blog-nav-card:hover {
    transform: translateY(-3px);
}

.blog-nav-card.prev {
    text-align: left;
}

.blog-nav-card.next {
    text-align: right;
    justify-content: flex-end;
}

.blog-nav-card i {
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

.blog-nav-card .nav-title {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .blog-navigation {
        flex-direction: column;
    }
    .blog-nav-card {
        width: 100%;
    }
    .blog-navigation {
        gap: 1rem;
    }
    .blog-grid {
        gap: 2rem !important;
        padding: 6rem 0 2rem 0 !important;
    }
}

/* 博客列表页样式 */
.blog-container {
    background-color: var(--bg-color);
    margin: 0 auto;
    padding: 0;
}

.blog-grid {
    max-width: var(--container-width);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding: 8rem 0 2rem 0;
    margin: 0 auto;
    justify-content: center;
}

.blog-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #eeeeee;
    text-decoration: none;
    padding: 30px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.blog-card-summary {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-date {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    margin-top: 100px;
}
.titleline {
    height: 3px;
    width: 20px;
    background: #ddd;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        padding: 16px;
    }
}

.help-content img{
    width: 100%;
}
.price {
    margin-bottom: 12px;
    color: #999;
    font-size: 14px;
}