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

/* 移除移动端a标签点击的透明白色过渡效果 */
a {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff8f0;
}

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

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 998;
    background-color: #fff8f0;
    border-bottom: 2px solid #ff9a48;
    max-width: 750px;
    margin: 0 auto;
}

.nav-container {
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

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

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff6b35;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #ff6b35;
    border-radius: 10px;
}

/* 主要内容 */
main {
    margin-top: 60px;
    padding-bottom: 40px;
}

/* 媒体查询 - 移动端 */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 80%;
        max-width: 300px;
        /* height: calc(100vh - 60px); */
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 20px 0;
        transition: right 0.3s ease-in-out;
    }
    
    .nav-links li {
        margin: 0 !important;
        width: 100% !important;
        text-align: center !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .nav-links li a {
        font-size: 16px !important;
    }
}

/* 简介部分 */
.intro-section {
    padding: 60px 0;
    background-color: #fff;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background-image: url('../images/gadebg.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    text-align: center;
    position: relative;
}

.intro-section .app-icon {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: block;
    margin: 0 auto 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.intro-section h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.intro-section .tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.intro-section .tag {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

.intro-section .tag-free {
    background-color: #4CAF50;
}

.intro-section .tag-reader {
    background-color: #2196F3;
}

.intro-section .tag-mobile {
    background-color: #FF9800;
}

.intro-section .app-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
}

.intro-section .app-info .info-item {
    display: flex;
    align-items: center;
}

.intro-section .app-info .info-label {
    margin-right: 5px;
    color: #999;
}

.intro-section .app-info .info-value {
    color: #333;
}

.intro-section .app-info .highlight {
    color: #ff6b35;
    font-weight: bold;
}

.intro-section .download-btn-primary {
    display: inline-block;
    background-color: #ff6b35;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 30px;
}

.intro-section .download-btn-primary:hover {
    background-color: #ff5722;
}

/* 应用简介部分 */
.app-intro-section {
    margin: 30px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.app-intro-section h2 {
    font-size: 24px;
    color: #ff6b35;
    margin-bottom: 20px;
    text-align: center;
}

.app-intro-content {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.app-intro-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
    text-align: left;
}

/* 应用展示部分 */
.app-section {
    margin: 30px 0;
}

.app-section h2 {
    font-size: 24px;
    color: #ff6b35;
    margin-bottom: 20px;
    text-align: center;
}

.screenshot-scroll {
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    gap: 20px;
    /* padding: 20px 0; */
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.screenshot-scroll::-webkit-scrollbar {
    height: 6px;
}

.screenshot-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.screenshot-scroll::-webkit-scrollbar-thumb {
    background: #ff9a48;
    border-radius: 10px;
}

.screenshot-scroll::-webkit-scrollbar-thumb:hover {
    background: #ff6b35;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 200px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.screenshot-item img:hover {
    transform: scale(1.05);
}

/* 同类应用部分 */
.similar-apps-section {
    margin: 30px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.similar-apps-section h2 {
    font-size: 24px;
    color: #ff6b35;
    margin-bottom: 20px;
    text-align: center;
}

.view-more-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* 专题合集部分 */
.topics-section {
    margin: 30px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.topics-section h2 {
    font-size: 24px;
    color: #ff6b35;
    margin-bottom: 20px;
    text-align: center;
}

.topics-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

.topic-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-width: 0;
}

.topic-card h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.topic-card h3 a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.topic-image {
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    text-decoration: none;
    transition: transform 0.3s;
}

.topic-image:hover {
    transform: scale(1.02);
}

.topic-image img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
    display: block;
}

.topic-apps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.app-icon-mini {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s;
}

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

.app-icon-mini img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topic-card p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-more {
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.view-more:hover {
    color: #ff5722;
    text-decoration: none;
}

.similar-apps-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.similar-apps-tabs .tab {
    padding: 8px 20px;
    margin: 0 10px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.similar-apps-tabs .tab.active {
    background-color: #ff6b35;
    color: #fff;
}

.similar-apps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.similar-app-item {
    display: none !important;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.similar-app-item:hover {
    background-color: transparent;
}

.similar-app-item.active {
    display: flex !important;
}

.app-link {
    text-decoration: none;
    color: inherit;
}

.app-icon-small {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-right: 15px;
}

.similar-app-item .app-info {
    flex: 1;
    min-width: 0;
}

.similar-app-item h3 {
    font-size: 15px;
    margin-bottom: 5px;
    color: #333;
    font-weight: normal;
    text-shadow: none;
}

/* 响应式调整 - 仅在移动端应用省略号 */
@media (max-width: 768px) {
    .similar-app-item h3 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.app-category {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.app-date {
    font-size: 12px;
    color: #999;
}

.view-btn {
    padding: 6px 16px;
    background-color: #fff;
    border: 1px solid #ff6b35;
    border-radius: 16px;
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.view-btn:hover {
    background-color: #ff6b35;
    color: #fff;
}

/* 下载部分 */
.download-section {
    background-color: #fff8f0;
    padding: 40px 0;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.download-section h2 {
    font-size: 24px;
    color: #ff6b35;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    background-color: #ff6b35;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.download-btn:hover {
    background-color: #ff5722;
}

/* 底部 */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 30px;
    max-width: 750px;
    margin: 0px auto;
}

/* 应用卡片网格 */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.app-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

.app-card-content {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-card-content h3 {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-meta {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
}

.app-rating {
    margin-bottom: 8px;
}

.app-rating .star {
    font-size: 14px;
    color: #FFD700;
    letter-spacing: 1px;
}

.app-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.app-tags .tag {
    padding: 3px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.app-update {
    font-size: 12px;
    color: #999;
}

.app-card-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.app-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
}

.download-btn-small {
    padding: 6px 16px;
    background: #FF9800;
    color: #fff;
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.download-btn-small:hover {
    text-decoration: none;
}

.footer-content {
    width: 100%;
    padding: 0 20px;
}



.footer-content h3 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: normal;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #555;
}

.friend-links a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.friend-links a:hover {
    color: #ff6b35;
}

.footer-content p {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .intro-section h1 {
        font-size: 24px;
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: 1fr !important;
    }
    
    .topics-grid {
        grid-template-columns: 1fr !important;
    }
    
    .app-card {
        align-items: center;
    }
    
    .app-card-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
}