:root {
    --primary-color: #6B7FF8;
    --secondary-color: #FF8BA7;
    --background-color: #F0F3FF;
    --text-color: #2C3E50;
    --gradient: linear-gradient(135deg, #4B5EE4, #6B7FF8, #8B9FF9);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

.header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(107, 127, 248, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.logo {
    margin-left: 60px;  /* 为汉堡按钮留出空间 */
}

.logo-text {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-text:hover {
    opacity: 0.8;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 6px 12px;
    transition: all 0.3s;
    font-weight: 500;
    border-radius: 16px;
    font-size: 15px;
}

.nav ul li a:hover {
    color: var(--primary-color);
    background: rgba(107, 127, 248, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav ul {
        gap: 10px;
    }
    
    .nav ul li a {
        font-size: 14px;
        padding: 5px 10px;
    }
}

/* 导航栏下载按钮样式 */
.nav ul li a.download-button {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav ul li a.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 127, 248, 0.2);
    opacity: 0.9;
}

.hero {
    background: var(--gradient);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '\f004'; /* Font Awesome heart icon */
    color: #fff;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
    top: 20%;
    left: 10%;
    opacity: 0.5; /* Increased transparency */
}

.hero::after {
    content: '\f004'; /* Font Awesome heart icon */
    color: #fff;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
    top: 30%;
    right: 10%;
    opacity: 0.5; /* Increased transparency */
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero .subtitle {
    color: #fff;
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 30px;
    transition: all 0.3s;
    font-weight: bold;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.6);
    background: #fff;
}

.features {
    padding: 120px 0;
    background: linear-gradient(180deg, #fff 0%, var(--background-color) 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 127, 248, 0.1) 0%, rgba(255, 139, 167, 0.05) 100%);
    border-radius: 50%;
    top: -300px;
    right: -200px;
    z-index: 0;
}

.features::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 139, 167, 0.1) 0%, rgba(107, 127, 248, 0.05) 100%);
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 10px 30px rgba(107, 127, 248, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(107, 127, 248, 0.15),
        0 1px 5px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 25px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(107, 127, 248, 0.2) 0%, rgba(255, 139, 167, 0.1) 100%);
    border-radius: 50%;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon::after {
    width: 60px;
    height: 60px;
    opacity: 1;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 0 0 15px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    max-width: 280px;
    margin: 0 auto;
    opacity: 0.9;
}

.features-list {
    background: var(--background-color);
    padding: 80px 0;
}

.features-list .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(107, 127, 248, 0.1);
    text-align: center;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.footer {
    background: var(--gradient);
    color: #fff;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.footer::before,
.footer::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.footer::before {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -50px;
}

.footer::after {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -50px;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer p {
    text-align: center;
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.footer a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer {
        padding: 25px 0;
    }
    
    .footer p {
        font-size: 14px;
    }
}

/* 产品功能详解样式优化 */
.product-details {
    padding: 120px 0;
    background: linear-gradient(180deg, #fff 0%, var(--background-color) 100%);
    position: relative;
    overflow: hidden;
}

/* 添加背景装饰 */
.product-details::before {
    content: '✨';
    position: absolute;
    top: 60px;
    left: 5%;
    font-size: 40px;
    opacity: 0.2;
    animation: floating 4s ease-in-out infinite;
}

.product-details::after {
    content: '💫';
    position: absolute;
    bottom: 60px;
    right: 5%;
    font-size: 40px;
    opacity: 0.2;
    animation: floating 4s ease-in-out infinite;
    animation-delay: -2s;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.detail-item {
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(107, 127, 248, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(107, 127, 248, 0.1);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.detail-icon {
    font-size: 36px;
    display: inline-block;
    padding: 20px;
    background: var(--background-color);
    border-radius: 20px;
    line-height: 1;
    transition: all 0.3s ease;
}

.detail-item:hover .detail-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(107, 127, 248, 0.1), rgba(255, 139, 167, 0.1));
}

.detail-item h3 {
    font-size: 26px;
    color: var(--primary-color);
    margin: 0;
    position: relative;
}

.detail-item p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
    opacity: 0.9;
}

.detail-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(107, 127, 248, 0.12);
    border-color: rgba(107, 127, 248, 0.2);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 25px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding: 8px 16px;
    position: relative;
    font-size: 15px;
    color: var(--text-color);
    transition: all 0.3s ease;
    background: rgba(107, 127, 248, 0.08);
    border-radius: 20px;
    text-align: center;
}

.feature-list li::before {
    display: none;
}

.feature-list li:hover {
    transform: translateY(-3px);
    background: rgba(107, 127, 248, 0.12);
    box-shadow: 0 4px 12px rgba(107, 127, 248, 0.08);
}

/* 添加动画关键帧 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* FAQ样式 */
.faq {
    padding: 100px 0;
    background: var(--background-color);
}

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

.faq-item {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(107, 127, 248, 0.1);
    overflow: hidden;
}

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

.faq-question:hover {
    background: rgba(107, 127, 248, 0.05);
}

.faq-question h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
}

.toggle-icon {
    font-size: 24px;
    color: var(--secondary-color);
    transition: transform 0.3s;
}

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

.faq-answer {
    padding: 0 30px;
    height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    height: auto;
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 为什么选择妙回输入法样式 */
.why-choose {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, var(--background-color) 100%);
    position: relative;
    overflow: hidden;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

.advantage-item {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(107, 127, 248, 0.1);
    position: relative;
    overflow: hidden;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(107, 127, 248, 0.15);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    animation: floating 3s ease-in-out infinite;
}

.advantage-item h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.advantage-item h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.advantage-item:hover h3::after {
    transform: scaleX(1);
}

.advantage-item p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

/* 下载区域样式 */
.download {
    padding: 100px 0;
    background: #fff;
}

.download-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.download-group {
    text-align: center;
}

.download-group h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 30px;
}

.store-link {
    display: inline-block;
    transition: transform 0.3s;
}

.store-link:hover {
    transform: translateY(-3px);
}

.store-badge {
    height: 40px;
    object-fit: contain;
}

.android-button {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 127, 248, 0.2);
}

.android-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 127, 248, 0.3);
    opacity: 0.9;
}

.android-stores {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.ios-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 500px;
}

.ios-stores .store-link {
    background: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.ios-stores .store-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ios-stores .store-badge {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* 产品介绍模块样式 */
.product-intro {
    padding: 120px 0;
    background: #fff;
    position: relative;
    /* overflow: hidden; */
    z-index: 1;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-content {
    padding-left: 40px;
}

.intro-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
    opacity: 0.9;
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intro-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-dot {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 16px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.feature-dot::before {
    content: '\f00c';  /* Font Awesome 的勾选图标 */
    opacity: 0.8;
}

.feature-dot::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(107, 127, 248, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.intro-feature-item p {
    font-size: 16px;
    color: var(--text-color);
    margin: 0;
}

.intro-image {
    position: relative;
    text-align: right;
    padding: 20px;
}

.product-preview {
    max-width: 300px;
    height: auto;
    border-radius: 30px;
    box-shadow: 
        0 25px 50px rgba(107, 127, 248, 0.2),
        0 0 0 1px rgba(107, 127, 248, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-image::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(107, 127, 248, 0.1) 0%, rgba(255, 139, 167, 0.05) 100%);
    border-radius: 50%;
    top: -40px;
    right: -40px;
    z-index: -1;
}

.intro-image::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 139, 167, 0.1) 0%, rgba(107, 127, 248, 0.05) 100%);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
    z-index: -1;
}

.product-preview:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(107, 127, 248, 0.25),
        0 0 0 2px rgba(107, 127, 248, 0.15);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-content {
        padding-left: 0;
        text-align: center;
    }

    .intro-feature-item {
        justify-content: center;
    }

    .intro-content h2 {
        font-size: 30px;
    }

    .intro-text {
        font-size: 16px;
    }

    .product-preview {
        max-width: 250px;
    }
    
    .intro-image::before,
    .intro-image::after {
        width: 120px;
        height: 120px;
    }

    .intro-image {
        text-align: center;
    }
}

.intro-icon {
    margin-bottom: 24px;
}

.product-icon {
    width: 120px;  /* 从80px增加到120px */
    height: 120px;  /* 从80px增加到120px */
    border-radius: 28px;  /* 相应调整圆角 */
    box-shadow: 0 15px 30px rgba(107, 127, 248, 0.15);
    transition: transform 0.3s ease;
}

.product-icon:hover {
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .intro-icon {
        text-align: center;
    }
    
    .product-icon {
        width: 100px;  /* 从64px增加到100px */
        height: 100px;  /* 从64px增加到100px */
        border-radius: 24px;  /* 相应调整圆角 */
    }
}

/* 优化轮播图样式 */
.intro-slider {
    position: relative;
    padding: 20px;
    max-width: 400px;  /* 控制轮播图最大宽度 */
    margin-left: auto;  /* 靠右对齐 */
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(107, 127, 248, 0.15);
    background: var(--background-color);
    padding: 20px;
}

.slider-container::before,
.slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, rgba(107, 127, 248, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    pointer-events: none;
}

.slider-container::before {
    left: 0;
}

.slider-container::after {
    right: 0;
    background: linear-gradient(270deg, rgba(107, 127, 248, 0.1), transparent);
}

.slider-container:hover::before,
.slider-container:hover::after {
    opacity: 1;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease-out;
    width: 100%;
}

.slide {
    flex: 0 0 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;  /* 确保每个幻灯片宽度一致 */
}

.slide-image {
    width: auto;
    height: 500px;  /* 控制图片高度 */
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(107, 127, 248, 0.1);
    object-fit: contain;  /* 保持图片比例 */
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    padding: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(107, 127, 248, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .intro-slider {
        max-width: 300px;
        margin: 0 auto;  /* 移动端居中 */
    }

    .slide-image {
        height: 400px;  /* 移动端稍微降低高度 */
    }

    .slider-container {
        padding: 15px;
    }

    .slide {
        padding: 5px;
    }
}

/* 优化下载按钮样式 */
.intro-download {
    margin-top: 40px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-link {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 127, 248, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.store-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 127, 248, 0.3);
    opacity: 0.9;
    background: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .intro-download {
        display: flex;
        justify-content: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 280px;
    }

    .store-link {
        text-align: center;
        padding: 14px 24px;
        width: 100%;  /* 确保所有按钮宽度一致 */
    }

    .android-dropdown {
        width: 100%;  /* 确保下拉菜单容器宽度一致 */
    }

    .android-dropdown .store-link {
        width: 100%;  /* 确保安卓按钮宽度一致 */
    }
}

.android-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.android-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.store-link i {
    margin-right: 10px;
}

.view-all-button {
    display: block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 127, 248, 0.2);
    margin: 20px auto;
    text-align: center;
    width: fit-content;
}

.view-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 127, 248, 0.3);
    opacity: 0.9;
}

/* 汉堡菜单按钮样式 */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: absolute;  /* 添加绝对定位 */
    left: 20px;  /* 距离左侧的距离 */
    top: 50%;  /* 垂直居中 */
    transform: translateY(-50%);  /* 确保完全居中 */
}

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

/* 移动端导航样式 */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .logo {
        margin-left: 0;  /* 移除左边距 */
        margin: 0 auto;  /* 居中显示logo */
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav ul li {
        margin: 15px 0;
        width: 100%;
    }

    .nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 18px;
    }

    /* 遮罩层样式优化 */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;  /* 降低遮罩层的层级 */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        z-index: 0;
    }
}

/* 博客模块样式 */
.blog {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

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

.blog-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.blog-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: #007bff;
}

.blog-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-meta time {
    margin-right: 1rem;
}

.blog-categories a {
    color: #666;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.blog-categories a:hover {
    color: #007bff;
}

.blog-excerpt {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card .read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-card .read-more:hover {
    color: #0056b3;
}

.blog-more {
    text-align: center;
    margin-top: 3rem;
}

.view-all-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.view-all-button:hover {
    background-color: #0056b3;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        margin-bottom: 1.5rem;
    }
}

/* 博客文章页面样式 */
.post {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.post-meta time {
    margin-right: 20px;
}

.post-categories a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(107, 127, 248, 0.1);
    transition: all 0.3s ease;
    margin-right: 8px;
}

.post-categories a:hover {
    background: rgba(107, 127, 248, 0.2);
    transform: translateY(-2px);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(107, 127, 248, 0.1);
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(107, 127, 248, 0.1);
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(107, 127, 248, 0.05);
    border-radius: 0 8px 8px 0;
}

.post-content code {
    background: rgba(107, 127, 248, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content ul, .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.8rem;
}

.post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(107, 127, 248, 0.1);
}

.post-tags {
    margin-bottom: 30px;
}

.post-tags span {
    color: #666;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(107, 127, 248, 0.1);
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.post-tags a:hover {
    background: rgba(107, 127, 248, 0.2);
    transform: translateY(-2px);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.post-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(107, 127, 248, 0.1);
    transition: all 0.3s ease;
    max-width: 45%;
}

.post-navigation a:hover {
    background: rgba(107, 127, 248, 0.2);
    transform: translateY(-2px);
}

.post-navigation .prev {
    padding-left: 30px;
    position: relative;
}

.post-navigation .next {
    padding-right: 30px;
    position: relative;
    text-align: right;
}

.post-navigation .prev::before {
    content: '←';
    position: absolute;
    left: 15px;
}

.post-navigation .next::after {
    content: '→';
    position: absolute;
    right: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .post {
        margin-top: 100px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .post-navigation a {
        max-width: 100%;
        text-align: center;
    }

    .post-navigation .prev,
    .post-navigation .next {
        padding: 12px 20px;
    }

    .post-navigation .prev::before,
    .post-navigation .next::after {
        display: none;
    }
}

/* 博客列表页面样式 */
.blog-container {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.tags-cloud {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(107, 127, 248, 0.1);
}

.tags-cloud h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(107, 127, 248, 0.1);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(107, 127, 248, 0.1);
    transition: all 0.3s ease;
    font-size: var(--tag-size, 14px);
}

.tag-item:hover {
    background: rgba(107, 127, 248, 0.2);
    transform: translateY(-2px);
}

.tag-count {
    font-size: 0.8em;
    opacity: 0.8;
}

.blog-main {
    min-width: 0;
}

.blog-header {
    margin-bottom: 40px;
}

.blog-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(107, 127, 248, 0.1);
    transition: all 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 127, 248, 0.15);
}

.blog-item-content {
    padding: 30px;
}

.blog-item h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-item h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-item h2 a:hover {
    color: var(--primary-color);
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-meta time {
    margin-right: 20px;
}

.blog-categories a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(107, 127, 248, 0.1);
    transition: all 0.3s ease;
    margin-right: 8px;
}

.blog-categories a:hover {
    background: rgba(107, 127, 248, 0.2);
    transform: translateY(-2px);
}

.blog-excerpt {
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-tags {
    margin-bottom: 20px;
}

.tag-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(107, 127, 248, 0.1);
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.tag-link:hover {
    background: rgba(107, 127, 248, 0.2);
    transform: translateY(-2px);
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 20px;
}

.pagination-prev,
.pagination-next {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(107, 127, 248, 0.1);
    transition: all 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: rgba(107, 127, 248, 0.2);
    transform: translateY(-2px);
}

.pagination-numbers {
    display: flex;
    gap: 10px;
}

.pagination-numbers a,
.pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-numbers a {
    color: var(--text-color);
    background: rgba(107, 127, 248, 0.1);
}

.pagination-numbers a:hover {
    background: rgba(107, 127, 248, 0.2);
    transform: translateY(-2px);
}

.pagination-current {
    color: #fff;
    background: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
}

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

    .blog-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    .blog-item-content {
        padding: 20px;
    }

    .blog-item h2 {
        font-size: 1.4rem;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-numbers {
        order: -1;
    }
}
