/* 移动端主样式文件 - 主题色 #00BFFF */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00BFFF;
    --primary-dark: #0099CC;
    --primary-light: #87CEEB;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 191, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px; /* 为底部导航留空间 */
}

/* 顶部导航栏 */
.mod_header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.mod_header_content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    max-width: 100%;
}

.mod_logo {
    flex-shrink: 0;
    margin-right: 10px;
}

.mod_logo a {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.mod_search_box {
    flex: 1;
    margin-right: 10px;
}

.mod_search_box form {
    display: flex;
    align-items: center;
}

.mod_search_input {
    flex: 1;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 13px;
    outline: none;
}

.mod_search_btn {
    height: 32px;
    padding: 0 15px;
    margin-left: 5px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
}

.mod_header_right {
    flex-shrink: 0;
}

.mod_user_icon {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
}

/* 主要内容区域 */
.mod_main {
    margin-top: 50px;
    /* padding-bottom: 20px; */
    min-height: calc(100vh - 110px);
}

/* 底部导航栏 */
.mod_footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 60px;
}

.mod_footer_nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 5px 0;
}

.mod_footer_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    flex: 1;
    font-size: 12px;
}

.mod_footer_item.active {
    color: var(--primary-color);
}

.mod_footer_icon {
    font-size: 18px; /* 5个tab时调整图标大小 */
    margin-bottom: 2px;
    color: inherit; /* 继承父元素的颜色 */
}

.mod_footer_text {
    font-size: 10px; /* 5个tab时调整字体大小 */
}

/* 轮播图 */
.mod_carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--white);
    margin-bottom: 10px;
}

.mod_carousel_wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.mod_carousel_item {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.mod_carousel_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mod_carousel_dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.mod_dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.mod_dot.active {
    background: var(--white);
}

/* 分类导航 */
.mod_category_nav {
    background: var(--white);
    padding: 15px 10px;
    margin-bottom: 10px;
}

.mod_category_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.mod_category_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.mod_category_icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    margin-bottom: 8px;
}

.mod_category_icon_default {
    font-size: 18px;
    font-weight: bold;
}

.mod_category_name {
    font-size: 12px;
    text-align: center;
}

/* 热门搜索词 */
.mod_hot_words {
    background: var(--white);
    padding: 15px;
    margin-bottom: 10px;
}

.mod_section_title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 12px;
}

.mod_hot_words_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mod_hot_word_item {
    padding: 6px 12px;
    background: var(--bg-color);
    border-radius: 15px;
    font-size: 13px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.mod_hot_word_item:active {
    background: var(--primary-color);
    color: var(--white);
}

/* 商品区块 */
.mod_product_section {
    background: var(--white);
    padding: 15px;
    margin-bottom: 10px;
}

.mod_section_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mod_section_more {
    color: var(--primary-color);
    font-size: 13px;
    text-decoration: none;
}

.mod_product_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mod_product_item {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s;
}

.mod_product_item:active {
    transform: scale(0.98);
}

.mod_product_image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: var(--white);
}

.mod_product_image_default {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 12px;
}

.mod_product_info {
    padding: 10px;
}

.mod_product_title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-color);
}

.mod_product_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.mod_product_price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

.mod_product_views {
    color: var(--text-light);
    font-size: 11px;
}

/* 商品列表（卡片式） */
.mod_product_list {
    padding: 10px;
}

.mod_product_card {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mod_product_card a {
    text-decoration: none;
    color: var(--text-color);
}

.mod_product_card_content {
    display: flex;
    padding: 12px;
    gap: 12px;
}

.mod_product_card_image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.mod_product_card_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mod_product_card_title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mod_product_card_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.mod_product_card_price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.mod_product_card_views {
    color: var(--text-light);
    font-size: 12px;
}

.mod_product_card_desc {
    color: var(--text-light);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 子分类导航 */
.mod_subcategory_nav {
    background: var(--white);
    padding: 10px;
    margin-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mod_subcategory_list {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.mod_subcategory_item {
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s;
}

.mod_subcategory_item.active {
    background: var(--primary-color);
    color: var(--white);
}

/* 页面头部 */
.mod_page_header {
    background: var(--white);
    padding: 15px;
    margin-bottom: 10px;
}

.mod_page_title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

/* 文章详情页 */
.mod_article_detail {
    background: var(--white);
    padding: 15px;
    margin-bottom: 10px;
}

.mod_article_header {
    margin-bottom: 15px;
}

.mod_article_title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.mod_article_meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.mod_article_price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.mod_article_image_wrapper {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
}

.mod_article_image {
    width: 100%;
    height: auto;
    display: block;
}

.mod_article_content {
    margin: 15px 0;
}

.mod_article_details {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.mod_article_info_list {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
}

.mod_info_item {
    display: flex;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.mod_info_item:last-child {
    border-bottom: none;
}

.mod_info_label {
    color: var(--text-light);
    width: 80px;
}

.mod_info_value {
    color: var(--text-color);
    flex: 1;
}

.mod_article_actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.mod_btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.mod_btn_primary {
    background: var(--primary-color);
    color: var(--white);
}

.mod_btn_primary:active {
    background: var(--primary-dark);
}

.mod_btn_secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.mod_btn_small {
    padding: 8px 16px;
    font-size: 13px;
    flex: 0 0 auto;
}

/* 相关文章 */
.mod_related_articles {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mod_related_title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color);
}

.mod_related_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mod_related_item {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
}

.mod_related_item a {
    text-decoration: none;
    color: var(--text-color);
}

.mod_related_image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.mod_related_info {
    padding: 10px;
}

.mod_related_title_small {
    font-size: 13px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mod_related_price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

/* 搜索页面 */
.mod_search_page {
    padding: 10px;
}

.mod_search_header {
    background: var(--white);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.mod_search_form {
    display: flex;
    gap: 10px;
}

.mod_search_input_large {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.mod_search_submit_btn {
    height: 40px;
    padding: 0 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.mod_hot_words_section {
    background: var(--white);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.mod_search_results {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
}

.mod_results_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.mod_results_title {
    font-size: 16px;
    font-weight: bold;
}

.mod_results_count {
    font-size: 12px;
    color: var(--text-light);
}

/* 会员中心 */
.mod_member_page {
    padding: 10px;
}

.mod_member_card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--white);
}

.mod_member_header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.mod_member_avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid var(--white);
    object-fit: cover;
}

.mod_member_avatar_default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    font-size: 30px;
}

.mod_member_info {
    flex: 1;
}

.mod_member_name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.mod_member_badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 12px;
}

.mod_member_badge_normal {
    background: rgba(255, 255, 255, 0.2);
}

.mod_member_stats {
    display: flex;
    gap: 30px;
}

.mod_stat_item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mod_stat_value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.mod_stat_label {
    font-size: 12px;
    opacity: 0.9;
}

.mod_member_menu {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.mod_menu_item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.mod_menu_item:last-child {
    border-bottom: none;
}

.mod_menu_icon {
    font-size: 20px;
    margin-right: 15px;
}

.mod_menu_text {
    flex: 1;
    font-size: 15px;
}

.mod_menu_arrow {
    color: var(--text-light);
    font-size: 18px;
}

/* 订单列表 */
.mod_member_orders_page,
.mod_member_purchases_page,
.mod_member_collections_page {
    padding: 10px;
}

.mod_orders_list,
.mod_purchases_list,
.mod_collections_list {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.mod_order_card,
.mod_purchase_card,
.mod_collection_card {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mod_order_card:last-child,
.mod_purchase_card:last-child,
.mod_collection_card:last-child {
    border-bottom: none;
}

.mod_order_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mod_order_num {
    font-size: 13px;
    color: var(--text-light);
}

.mod_order_status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.mod_order_status_0 {
    background: #FFF3CD;
    color: #856404;
}

.mod_order_status_1 {
    background: #D4EDDA;
    color: #155724;
}

.mod_order_status_2,
.mod_order_status_3 {
    background: #F8D7DA;
    color: #721C24;
}

.mod_order_info {
    margin-bottom: 12px;
}

.mod_order_item {
    display: flex;
    padding: 6px 0;
    font-size: 13px;
}

.mod_order_label {
    color: var(--text-light);
    width: 80px;
}

.mod_order_value {
    color: var(--text-color);
    flex: 1;
}

.mod_order_price {
    color: var(--primary-color);
    font-weight: bold;
}

.mod_order_actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.mod_purchase_content,
.mod_collection_content {
    display: flex;
    gap: 12px;
}

.mod_purchase_image,
.mod_collection_image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.mod_purchase_info,
.mod_collection_info {
    flex: 1;
}

.mod_purchase_title,
.mod_collection_title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mod_purchase_meta,
.mod_collection_meta {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.mod_purchase_date,
.mod_collection_date {
    font-size: 12px;
    color: var(--text-light);
}

.mod_purchase_action {
    margin-top: 10px;
}

/* 分页 */
.mod_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    margin-top: 10px;
    border-radius: 8px;
}

.mod_page_btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.mod_page_info {
    font-size: 13px;
    color: var(--text-light);
}

/* 空状态 */
.mod_empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    background: var(--white);
    border-radius: 8px;
}

.mod_empty p {
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .mod_category_grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .mod_category_icon {
        width: 45px;
        height: 45px;
    }
    
    .mod_product_grid {
        gap: 8px;
    }
}

/* 微信浏览器优化 */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-tap-highlight-color: transparent;
    }
    
    .mod_btn,
    .mod_product_item,
    .mod_menu_item {
        -webkit-tap-highlight-color: rgba(0, 191, 255, 0.1);
    }
}

