/* 主样式文件 */
@import url('reset.css');

:root {
    --primary-color: #f60;
    --primary-dark: #e85d00;
    --secondary-color: #666;
    --border-color: #eee;
    --bg-color: #f5f5f5;
    --header-height: 50px;
    --max-width: 640px;
    --tab-height: 40px;
}

/* 移动适配 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .logo-img {
        height: 20px;
    }
    
    .logo-image {
        height: 20px;
    }
    
    .logo-search {
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 18px;
        flex-shrink: 0;
    }
    
    .logo-image {
        height: 18px;
    }
    
    .logo-download a {
        font-size: 11px;
        padding: 0 8px;
    }
}

/* 通用布局 */
.page-container {
    width: 100%;
    max-width: 640px;
    min-height: 100vh;
    background-color: #fff;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

body {
    background-color: #f8f8f8;
}

/* 头部样式 */
.header-fix {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-white {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    background-color: #fff;
    padding: 0 10px;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
    width: 100%;
}

.logo-img {
    height: 20px;
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.logo-image {
    height: 20px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.logo-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 40%;
    height: 30px;
    border-radius: 6px;
    background-color: #f1f1f1;
    padding: 0 10px;
    margin: 0 10px;
    color: var(--secondary-color);
}

.logo-search i {
    color: #999;
    margin-right: 5px;
    font-size: 13px;
}

.logo-search input {
    flex: 1;
    height: 100%;
    font-size: 12px;
    color: #999;
    background-color: transparent;
}

.logo-download {
    padding-right: 0;
    margin-right: 10px;
    flex-shrink: 0;
}

.logo-download a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: linear-gradient(112deg,#ff724b 3%,#e62828);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* 标签导航 */
.header-tab {
    width: 100%;
    height: 38px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.channel-list {
    flex: 1;
    height: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.channel-list::-webkit-scrollbar {
    display: none;
}

.channel-list ul {
    display: flex;
    height: 100%;
    padding-left: 10px;
}

.channel-list li {
    height: 100%;
    padding: 0 8px;
}

.channel-list a {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 14px;
    color: #333;
    position: relative;
}

.channel-list a.active {
    color: #e62828;
    font-weight: bold;
    position: relative;
}

.channel-list a.active:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #e62828;
    box-shadow: 0 1px 2px rgba(230, 40, 40, 0.2);
}

.all-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 100%;
    background-color: #f5f5f5;
    border-left: 1px solid #eee;
    flex-shrink: 0;
}

.all-tabs a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.all-tabs i {
    font-size: 13px;
    margin-right: 3px;
}

/* 文章标题 */
.post-title {
    padding: 15px 15px 10px;
    text-align: left;
}

.details-title {
    width: 100%;
}

.title-post {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #333;
    text-align: left;
}

.grey {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    color: #333;
    text-align: left;
    margin: 10px 0;
    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 10px 8px 10px 8px;
    position: relative;
}

.grey a {
    display: flex;
    text-decoration: none;
}

.author-avatar-container {
    position: relative;
    width: 58px;
    height: 58px;
    margin-right: 12px;
    display: inline-block;
}

.author-avatar {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    max-width: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 58px;
    height: 58px;
    max-width: none;
}

.author-v-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    z-index: 2;
    border-radius: 0;
}

.author {
    color: #333;
    font-weight: 400;
    font-size: 12px;
}
.author-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.author-header {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.author-username {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.line {
    display: inline-block;
    width: 1px;
    height: 12px;
    background-color: #ddd;
    margin: 0 5px;
    vertical-align: middle;
}

.time {
    color: #999;
    font-size: 11px;
}

/* VIP徽章 */
.vip-badge {
    width: 22px;
    height: 12px;
    border-radius: 10%;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    object-fit: cover;
    display: inline-block;
}

/* 作者关注按钮 */
.go-focus {
    display: flex;
    align-items: center;
    padding: 0 8px;
    height: 22px;
    border-radius: 11px;
    background: linear-gradient(112deg,#ff724b 3%,#e62828);
    color: #fff;
    font-size: 11px;
    text-align: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
    position: absolute;
    right: 12px;
    top: 12px;
}

.go-focus i {
    margin-right: 2px;
    font-size: 9px;
}

/* 详情横幅 */
.detail-banner {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* 文章内容 */
.article-wrapper {
    padding: 0 15px;
    text-align: left;
}

.article {
    font-size: 20px;
    line-height: 1.8;
    color: #333;
}

.article p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.article h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 25px 0 15px;
    color: #333;
}

.article h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 15px;
    color: #333;
}

.article blockquote {
    padding: 10px 15px;
    margin: 15px 0;
    border-left: 3px solid var(--primary-color);
    background-color: #f9f9f9;
    color: #666;
}

.article strong {
    font-weight: bold;
}

.article .img_desc {
    display: block;
    margin: 15px 0;
    text-align: center;
}

.article .img_desc img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article .img_desc_text {
    display: block;
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 5px;
}

/* 标签列表 */
.tags-wrapper-news {
    display: flex;
    flex-wrap: wrap;
    padding: 5px 15px 20px;
}

.tags-wrapper-news li {
    margin-right: 10px;
    margin-bottom: 10px;
}

.tag-container {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 12px;
}

.tag-container i {
    margin-right: 4px;
    font-size: 14px;
}

/* 评论区 */
.module-waper {
    margin-top: 15px;
    background-color: #fff;
    border-top: 10px solid #f5f5f5;
}

.module-title {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;
    border-bottom: 1px solid var(--border-color);
}

.module-title i {
    font-size: 18px;
    margin-right: 10px;
    color: var(--primary-color);
}

.module-title span {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.comment-wrapper {
    padding: 15px;
}

.comment-list {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.comment-detail {
    display: flex;
}

.avatar {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.comment-info {
    flex: 1;
}

.comment-info-user {
    display: block;
}

.comment-top {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.nickname {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.comment-other {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-left {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.ip {
    margin-left: 10px;
}

.zan {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.zan-count {
    margin-right: 4px;
}

.second-comment-list {
    display: block;
    padding: 10px;
    margin-top: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.second-comment-list p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    color: var(--primary-color);
    font-size: 14px;
}

.arrow-icon {
    margin-left: 5px;
    font-size: 12px;
}

/* 底部留白 */
.article-end-space {
    height: 20px;
}

/* 兴趣卡片 */
.interest-card-container {
    margin: 10px 0;
}

.interest-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    background-color: #f7f7f7;
}

.interest-card-left {
    display: flex;
    align-items: center;
}

.interest-card-left i {
    color: #f04d4e;
    font-size: 13px;
    margin-right: 5px;
}

.interest-text {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.interest-text span {
    display: flex;
    align-items: center;
}

.divider {
    width: 1px;
    height: 10px;
    background-color: #0a0a0a;
    margin: 0 5px;
}

.interest-card-right {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #333;
}

.interest-card-right span {
    margin-right: 10px;
}

.interest-card-right .cancel-link {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.interest-card-right i {
    margin-left: 3px;
    font-size: 10px;
}

/* 评论点赞按钮样式 */
.comment-other .zan {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.comment-other .zan-count {
    margin-right: 5px;
    font-size: 12px;
    color: #999;
}

.comment-other .zan i {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/basic/zan.png') no-repeat center center;
    background-size: contain;
    transition: all 0.3s ease;
}

.comment-other .zan:hover i {
    background-image: url('../images/basic/zan-hover.png');
}

.comment-other .zan:hover .zan-count {
    color: #e62828;
}

.comment-other .zan.active i {
    background-image: url('../images/basic/zan-hover.png');
}

.comment-other .zan.active .zan-count {
    color: #e62828;
}

/* 商品卡片样式 */
.v-zdm-card {
    display: block;
    padding: 12px 12px 14px;
    background-color: #fff;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.v-zdm-card-thumb {
    width: 100px;
    height: 100px;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
    float: left;
    background-color: #fff;
    position: relative;
}

.v-zdm-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-icon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 1px 4px;
    font-size: 10px;
    color: #fff;
    background-color: #e1251b;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.v-zdm-card-con {
    margin-left: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
    padding-top: 2px;
}

.v-zdm-card-title {
    font-size: 14px;
    line-height: 1.4;
    max-height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #333;
    margin-bottom: 12px;
    font-weight: normal;
}

.product-price-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 18px;
}

.price-block {
    display: flex;
    align-items: baseline;
}
.product-price {
    font-size: 16px;
    font-weight: 500;
    color: #e62828;
    color: var(--color-e62828,#e62828);
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    vertical-align: bottom
}

.go-buy {
    display: inline-block;
    background-color: #ff6000;
    background: linear-gradient(112deg,#ff724b 3%,#e62828);
    color: #fff;
    font-size: 12px;
    padding: 1px 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: normal;
    transition: all 0.3s ease;
    display: flex;
}

.go-buy:hover {
    background-color: #e55600;
    background: linear-gradient(112deg,#ff835e 3%,#f03a3a);
}

/* 分类按钮样式 */
.category-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.category-link i {
    margin-right: 5px;
}

/* 作者标签样式 */
.author-tags {
    display: flex;
    font-size: 11px;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.author-tag {
    display: flex;
    align-items: center;
    color: #999;
}

.author-tag i {
    font-size: 12px;
    margin-right: 3px;
}

.author-tag:first-child i {
    color: #ff724b;
    margin-right: 4px;
}

.author-tag.stats {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-tag.stats i {
    color: #ff724b;
    margin-right: 4px;
    font-size: 12px;
}

.author-link {
    display: flex;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    text-decoration: none;
    overflow: hidden;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #a4a4a4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    opacity: 0.8;
}

.back-to-top i {
    color: #fff;
    font-size: 18px;
    pointer-events: none;
}

.back-to-top:hover {
    background-color: #8f8f8f;
    transform: translateY(-3px);
    opacity: 1;
}

.back-to-top:active {
    transform: translateY(0);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 36px;
        height: 36px;
    }
    
    .back-to-top i {
        font-size: 16px;
    }
}

/* 底部固定菜单 */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.bottom-menu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.bottom-menu .menu-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

.bottom-menu .menu-item .count {
    font-size: 12px;
}

.bottom-menu .menu-item:hover {
    color: #e62828;
}

.bottom-menu .menu-item.active {
    color: #e62828;
}

/* 适配返回顶部按钮位置 */
.back-to-top {
    bottom: 70px;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .bottom-menu {
        height: 50px;
    }

    .bottom-menu .menu-item i {
        font-size: 18px;
    }

    .bottom-menu .menu-item .count {
        font-size: 10px;
    }
} 