/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

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

/* Mobile Navigation Styles */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-nav {
    position: fixed;
    top: 5.5rem;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: #ffd166; /* 温暖的黄色 */
}

.nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-content {
    padding: 1rem 0;
}

.nav-menu {
    list-style: none;
    margin-bottom: 1rem;
}

.nav-menu li {
    margin-bottom: 0.2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #ff6b35;
    border-left-color: #ff6b35;
}

.nav-link.active {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    border-left-color: #ff6b35;
    font-weight: 600;
}

.nav-link i {
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-link span {
    font-size: 0.95rem;
}

.nav-divider {
    height: 1px;
    background: #e9ecef;
    margin: 1rem 0;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s;
    margin-right: 1rem;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-icon {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
    padding-left: 1rem;
}

.nav-dropdown.active .nav-submenu {
    max-height: 500px; /* 足够大的值以容纳所有子项 */
}

.nav-submenu .nav-link {
    padding: 0.6rem 1rem 0.6rem 2rem;
    font-size: 0.9rem;
}

.nav-submenu .nav-link:hover {
    background: #e9ecef;
}

/* 移动端滚动支持 */
.mobile-nav {
    overflow-y: auto;
}

.nav-content {
    padding: 1rem 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
/* Header Styles */
.header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    color: #ffd166;
}
.logo a {
    display: inline-block;
    margin-right: 0.5rem;
    font-size:1.6rem;
    color: #16d71d;
}
.search-box {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: #333;
    background: transparent;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background: #ff6b35; /* 使用主题主色 */
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 50px;
}

.search-box button:hover {
    background: #d8572a; /* 使用主题深色 */
}

.search-box button:active {
    background: #da5729; /* 使用更深的色调 */
}

/* Carousel Styles */
.carousel-section {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    height: 500px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    /*height: 100%;*/
    position: relative;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    background-size:cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/*.carousel-slide:nth-child(2) {*/
/*    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);*/
/*}*/

/*.carousel-slide:nth-child(3) {*/
/*    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);*/
/*}*/

/*.carousel-slide:nth-child(4) {*/
/*    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);*/
/*}*/

/*.carousel-slide:nth-child(5) {*/
/*    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);*/
/*}*/

.carousel-content {
    max-width: 600px;
    z-index: 2;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.carousel-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-button:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #ff6b35;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Main Content */
.main-content {
    padding: 1.5rem 0;
}

.section {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    color: #333;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.section-header h2 i {
    margin-right: 0.5rem;
    color: #ff6b35;
    font-size: 1.2rem;
}

.view-more {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(255, 107, 53, 0.1);
}

.view-more:hover {
    color: #d8572a;
    background: rgba(216, 87, 42, 0.1);
}

.view-more i {
    margin-left: 0.3rem;
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.view-more:hover i {
    transform: translateX(3px);
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.app-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.app-card:active {
    transform: translateY(-1px);
}

.app-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-radius: 12px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}
.app-icon img {width:100%;border-radius: 0.5rem;}
.app-name {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.3;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-category {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    height: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    gap: 0.3rem;
}

.stars {
    color: #ffc107;
    font-size: 0.8rem;
}

.rating-text {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
}

.download-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #d8572a 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    text-align: center;
}

.download-btn:hover {
    background: linear-gradient(135deg, #d8572a 0%, #ff6b35 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.download-btn:active {
    transform: scale(0.98);
}
/* 应用标签样式 */
.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.app-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #ff6b35;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 实心标签样式 */
.app-tag.solid {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
}

.app-tag.solid:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
}

/* 边框标签样式 */
.app-tag.outline {
    background: transparent;
    border: 1px solid #ff6b35;
    color: #ff6b35;
}

.app-tag.outline:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Footer */
.footer {
    background: #d8572a; /* 使用主题色的深色调 */
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}
.footer a,p{
    color: white;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-size: 1rem;
}

.footer-section p {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

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

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #ffd166; /* 悬停时使用黄色 */
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e07a5f;
    color: #bdc3c7;
    font-size: 0.85rem;
}
.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}
.footer-bottom a:hover {
    color: #ffd166; /* 悬停时使用黄色 */
}
/*top_info*/
.merchant-ranking {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.merchant-ranking h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.merchant-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.merchant-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.merchant-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #ff6b35;
}

.rank-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ff6b35;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
}
.rank-2 .rank-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #d8572a 100%);
    color: #fff;
}
.rank-3 .rank-badge {
    background: linear-gradient(135deg, #d8572a 0%, #ff6b35 100%);
    color: #fff;
}
.rank-4 .rank-badge,
.rank-5 .rank-badge,
.rank-6 .rank-badge,
.rank-7 .rank-badge,
.rank-8 .rank-badge,
.rank-9 .rank-badge,
.rank-10 .rank-badge {
    background: #ff6b35;
    color: white;
}

.merchant-logo {
    margin-right: 15px;
    font-size: 24px;
    color: #ff6b35;
}

.gold { color: #FFD700; }
.silver { color: #C0C0C0; }
.bronze { color: #CD7F32; }

.merchant-info {
    flex: 1;
}

.merchant-info h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.merchant-rating {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.merchant-rating .stars {
    color: #ffc107;
    margin-right: 10px;
}

.merchant-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}
.merchant-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 15px;
}

.merchant-link:last-child {
    margin-bottom: 0;
}

.merchant-link .merchant-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.merchant-link:hover .merchant-item {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
    border-color: #ff6b35;
}
.brand-detail {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.brand-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.brand-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    flex-shrink: 0;
}

.brand-basic-info {
    flex: 1;
}

.brand-basic-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.brand-slogan {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.brand-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-rating .stars {
    color: #ffc107;
    font-size: 1rem;
}

.rating-text {
    font-size: 0.9rem;
    color: #666;
}

.brand-description {
    margin-bottom: 2rem;
}

.brand-description h2,
.ecommerce-links h2,
.brand-specifications h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.brand-description p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

.ecommerce-links {
    margin-bottom: 2rem;
}

.shop-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #ffffff;
    border: 1px solid #e9ecef;
}

.shop-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.shop-link.taobao:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.shop-link.jd:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.shop-link.tmall:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}
.shop-link.taobao {
    background: linear-gradient(135deg, #ff6b35 0%, #d8572a 100%);
}

.shop-link.jd {
    background: linear-gradient(135deg, #ff6b35 0%, #d8572a 100%);
}

.shop-link.tmall {
    background: linear-gradient(135deg, #ff6b35 0%, #d8572a 100%);
}
.brand-specifications {
    margin-bottom: 2rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.spec-item h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.spec-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

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

    .shop-links {
        flex-direction: column;
    }
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .container {
        padding: 0 12px;
    }

    .header {
        padding: 0.6rem 0;
    }

    .header-content {
        flex-direction: row;
        gap: 0.8rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .search-box {
        width: 100%;
        max-width: none;
        min-width: auto;
    }
    #search_form {
        width: 100%;
        max-width: none;
        min-width: auto;
    }
    .search-box input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }

    .search-box button {
        padding: 12px 15px;
    }

    /* Carousel Mobile Styles */
    .carousel-container {
        height: 250px;
    }

    .carousel-slide {
        padding: 1.5rem;
    }

    .carousel-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .carousel-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .carousel-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .main-content {
        padding: 1rem 0;
    }

    .section {
        margin-bottom: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .app-card {
        padding: 0.8rem;
    }

    .app-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .app-name {
        font-size: 0.85rem;
        height: 2.4rem;
    }

    .app-category {
        font-size: 0.75rem;
    }

    .download-btn {
        padding: 7px 10px;
        font-size: 0.8rem;
    }
    .app-tags {
        gap: 0.3rem;
        margin: 0.3rem 0;
    }

    .app-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.3rem;
    }

    .search-box input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .search-box button {
        padding: 10px 12px;
    }

    /* Carousel Small Mobile Styles */
    .carousel-container {
        height: 200px;
    }

    .carousel-slide {
        padding: 1rem;
    }

    .carousel-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .carousel-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .carousel-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .app-card {
        padding: 0.6rem;
    }

    .app-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .app-name {
        font-size: 0.8rem;
        height: 2.2rem;
    }

    .app-category {
        font-size: 0.7rem;
    }

    .download-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    .view-more {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 360px) {
    .carousel-container {
        height: 180px;
    }

    .carousel-title {
        font-size: 1.3rem;
    }

    .carousel-subtitle {
        font-size: 0.8rem;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .app-card {
        padding: 0.5rem;
    }

    .app-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .app-name {
        font-size: 0.75rem;
        height: 2rem;
    }

    .app-category {
        font-size: 0.65rem;
    }

    .download-btn {
        padding: 5px 6px;
        font-size: 0.7rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .app-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .download-btn:hover {
        transform: none;
        background: linear-gradient(135deg, #ff6b35 0%, #d8572a 100%);
    }

    .view-more:hover {
        color: #ff6b35;
        background: rgba(102, 126, 234, 0.1);
    }

    .view-more:hover i {
        transform: none;
    }

    .carousel-button:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        transform: none;
        box-shadow: none;
    }

    .carousel-nav:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-50%);
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 0.4rem 0;
    }

    .header-content {
        flex-direction: row;
        gap: 0.5rem;
    }

    .search-box {
        max-width: 300px;
    }

    .carousel-container {
        height: 200px;
    }

    .carousel-title {
        font-size: 1.5rem;
    }

    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/*左右布局*/
.content-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.content-main {
    flex: 2;
}

.content-sidebar {
    flex: 1;
}

.sidebar-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-section h2 {
    font-size:0.8rem;
    margin-bottom: 15px;
    color: #333;
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-item-small {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.2rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.app-item-small:hover {
    background-color: #f5f7fa;
}

.app-icon-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.app-info-small {
    flex: 1;
}

.app-title-small {
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.app-rating-small {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.app-rating-small .fas.fa-star {
    color: #ffc107;
}
.app-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
    text-decoration: none;
    color: inherit;
}

.app-link:hover {
    background-color: #f5f7fa;
}
.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    display: inline-block;
    background-color: #ff8c42;
    color: #fff;
    margin: 0.2rem;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background-color: #ff6b35;
    cursor: pointer;
    color: white;
    transform: translateY(-2px);
}
/*右边布局end*/
/* App Detail Styles */
.app-detail {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.app-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.app-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}
.app-icon-large img{width: 100%;border-radius: inherit;}
.app-info {
    flex: 1;
}

.app-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.app-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.app-meta span {
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
}

.app-rating-detail {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.app-rating-detail .stars {
    color: #ffc107;
    font-size: 1rem;
}

.rating-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.download-btn.large {
    padding: 12px 24px;
    font-size: 1.1rem;
    min-width: 180px;
}

/* Screenshots Styles */
.app-screenshots {
    margin-bottom: 2rem;
}

.app-screenshots h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.screenshots-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.screenshots-container::-webkit-scrollbar {
    height: 8px;
}

.screenshots-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.screenshots-container::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

.screenshot-wrapper {
    flex: 0 0 auto;
    position: relative;
}

.screenshot {
    width: 200px;
    height: 400px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.modal-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ccc;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.modal-prev,
.modal-next {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255,255,255,0.3);
}

/* Responsive styles for screenshots */
@media (max-width: 768px) {
    .content-layout {
        flex-direction: column;
    }

    .content-main,
    .content-sidebar {
        width: 100%;
    }
    .screenshots-container {
        gap: 0.5rem;
    }

    .screenshot {
        width: 150px;
        height: 300px;
    }

    .close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }

    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .screenshots-container {
        gap: 0.3rem;
    }

    .screenshot {
        width: 120px;
        height: 240px;
    }

    .app-screenshots h2 {
        font-size: 1.2rem;
    }
}


.app-description,
.app-updates,
.app-additional-info {
    margin-bottom: 2rem;
    word-wrap: break-word; /* 允许在长单词内换行 */
    word-break: break-all; /* 在任何地方都可以换行 */
}

.app-description p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

.app-description ul,
.app-updates ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.app-description li,
.app-updates li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555;
}

.update-version {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* Responsive styles for app detail */
@media (max-width: 768px) {
    .app-detail {
        padding: 1rem;
    }

    .app-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }

    .app-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .app-title {
        font-size: 1.5rem;
    }

    .app-meta {
        justify-content: center;
    }

    .app-rating-detail {
        justify-content: center;
    }

    .download-btn.large {
        width: 100%;
        min-width: auto;
    }

    .screenshots-container {
        gap: 0.5rem;
    }

    .screenshot {
        width: 150px;
        height: 300px;
    }

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

@media (max-width: 480px) {
    .app-detail {
        padding: 0.8rem;
    }

    .app-icon-large {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .app-title {
        font-size: 1.3rem;
    }

    .app-meta span {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }

    .app-rating-detail {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .screenshots-container {
        gap: 0.3rem;
    }

    .screenshot {
        width: 120px;
        height: 240px;
    }

    .app-screenshots h2,
    .app-description h2,
    .app-updates h2,
    .app-additional-info h2 {
        font-size: 1.2rem;
    }
}
/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #d8572a;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
    font-size: 0.7rem;
}

.breadcrumb-current {
    color: #666;
}

/* Responsive styles for breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.8rem 0;
        font-size: 0.85rem;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 0.6rem 0;
        font-size: 0.8rem;
    }
}


/* List Page Styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Category Filter */
.category-filter {
    margin-bottom: 2rem;
}

.category-filter h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.category-tag {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-tag:hover,
.category-tag.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
}
/* Responsive styles for category filter */
.category-tags.collapsed .category-tag:nth-child(n+10) {display: none;}
.toggle-categories { background: none; border: none;  color: #ff6b35; cursor: pointer; font-size: 0.9rem; margin: 0.5rem auto; padding: 0.5rem 1rem; border-radius: 20px; transition: all 0.3s ease; display: block; text-align: center; }
.toggle-categories:hover { background: #f8f9fa; }
/* 添加到 style.css 中 */
.toggle-categories-btn {
    background: none;
    border: none;
    color: #ff6b35;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: none; /* 默认隐藏 */
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-categories-btn:hover {
    color: #764ba2;
}

.toggle-categories-btn .show-less-text {
    display: none;
}

.toggle-categories-btn.expanded .show-more-text {
    display: none;
}

.toggle-categories-btn.expanded .show-less-text {
    display: flex;
}



/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #333;
}

.sort-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 0.9rem;
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e9ecef;
}

/* App List */
.app-list {
    margin-bottom: 2rem;
}
.app-list-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.app-list-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
}
.app-list-icon img {width:100%;border-radius: 0.5rem;}
.app-size {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}
.app-list-item {
    display: flex;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.app-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.app-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-list-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.app-list-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.app-list-category {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.app-list-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width:auto;
}

.app-list-rating .stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.app-list-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

.app-list-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.8rem;
    margin-left: 1rem;
}

.app-list-actions .download-btn.small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    text-align: center;
}

.app-size {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}
/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 0;
}
.pagination-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: #ff5825;
    color: white;
    border-color: #ff6b35;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-number:hover,
.page-number.active {
    background: #ff6b35;
    color: white;
}

/* Responsive styles for list page */
@media (max-width: 768px) {

    .category-tags.collapsible .category-tag:nth-child(n+5) {
        display: none;
    }

    .category-tags.collapsible .category-tag.active {
        display: inline-flex; /* 保持活动标签可见 */
    }

    .toggle-categories-btn {
        color: #ff6b35;
        display: inline-flex;
    }
    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .app-list-item {
        flex-direction: column;
        padding: 1rem;
    }

    .app-list-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .app-list-content {
        margin-bottom: 1rem;
    }

    .app-list-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .app-list-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-left: 0;
        width: 100%;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

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

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.4rem;
    }

    .category-tags {
        gap: 0.5rem;
    }

    .category-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .app-list-item {
        padding: 0.8rem;
    }

    .app-list-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .app-list-title {
        font-size: 1.1rem;
    }

    .app-list-actions .download-btn.small {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
/*搜索板块*/
.list_relate{}
.goods-item{padding-top: 0.5rem;overflow: hidden;}
.goods-item ul{list-style:none}
.goods-item ul li{float: left;width: 9.7rem;/* height: 230px; */margin:0.3rem;border: 1px solid #ff6b35;padding: 0.5rem;background: #fff;border-radius: 0.5rem;}
.goods-item ul li a{text-decoration-line:none;}
.goods-item .thumb{position: relative;/* height: 156px; *//* width: 156px; */}
.goods-item .thumb img{width:100%;}
.goods-item .goods-title{/* height:auto; *//* padding: 3px 0px 0px 5px; */color: #ff6b35;/* font-weight: 400; */font-size: 0.8rem;line-height: 20px;/* word-break: break-all; */-webkit-box-sizing: border-box;box-sizing: border-box;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;}
.goods-item .goods-info{margin-top: 8px;overflow: hidden;}
.goods-item .goods-info .price{float: left;color: #ff6b35;font-size: 13px;}
.goods-item .goods-info .go {float: right;width: 60px;height: 24px;margin-top: 5px;border-radius: 3px;background: #de2a2a;color: #fff;text-align: center;font-size: 12px;line-height: 23px;}

