@charset "UTF-8";

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f6fa;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
}



/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #4a90d9 0%, #2b6cb0 100%);
    padding: 22px 16px 26px;
}

.page-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* 主卡片区域 */
.main-card {
    margin: -10px 16px 16px;
    background: linear-gradient(135deg, #fef9e7 0%, #fcf3cf 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.card-header {
    text-align: center;
    margin-bottom: 16px;
}

.card-header h2 {
    font-size: 18px;
    color: #8b6914;
    font-weight: 600;
    margin-bottom: 10px;
}

.header-tags {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #a0823e;
}

.tag-icon {
    width: 14px;
    height: 14px;
    background: #d4a574;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 8px;
}

/* 福利卡片 */
.benefit-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}

.benefit-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 12px;
}

.benefit-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
}

.benefit-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-section {
    display: flex;
    flex-direction: column;
}

.rate-value {
    font-size: 32px;
    color: #e74c3c;
    font-weight: 700;
    line-height: 1;
}

.rate-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.features-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.feature-icon {
    width: 14px;
    height: 14px;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #999;
}

.benefit-btn {
    background: linear-gradient(135deg, #f5d491 0%, #e8c070 100%);
    color: #8b6914;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: #fff;
    margin: 0 16px 16px;
    border-radius: 12px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
}

.nav-icon.blue {
    background: #e3f2fd;
    color: #2196f3;
}

.nav-icon.orange {
    background: #fff3e0;
    color: #ff9800;
}

.nav-icon.red {
    background: #ffebee;
    color: #f44336;
}

.nav-icon.coral {
    background: #fce4ec;
    color: #e91e63;
}

.nav-icon.purple {
    background: #f3e5f5;
    color: #9c27b0;
}

.new-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.nav-label {
    font-size: 13px;
    color: #333;
}

/* 产品推荐区域 */
.products-section {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.product-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 12px;
}

.product-tag.hot {
    background: #ffebee;
    color: #e53935;
}

.product-tag.star {
    background: #e3f2fd;
    color: #1976d2;
}

.product-name {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-rate {
    font-size: 22px;
    color: #e53935;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-rate.green {
    color: #43a047;
}

.product-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.product-detail {
    font-size: 13px;
    color: #e53935;
    line-height: 1.5;
}

.product-detail.gray {
    color: #666;
}

/* 服务列表区域 */
.service-section {
    padding: 0 16px;
    margin-bottom: 80px;
}

.section-title {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-item {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:active {
    transform: scale(0.98);
}

.service-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.service-image {
    width: 100px;
    height: 135px;
    border-radius: 8px;
    object-fit: cover;
}

.service-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
}

.service-badge.demand {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
}

.service-badge.service {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.service-title {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.service-tag {
    padding: 3px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-date {
    font-size: 13px;
    color: #999;
}

.service-btn {
    padding: 5px 14px;
    border: 1px solid #2196f3;
    border-radius: 16px;
    font-size: 13px;
    color: #2196f3;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-btn:hover {
    background: #2196f3;
    color: #fff;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #f0f0f0;
}

.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bottom-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bottom-icon.gray {
    color: #999;
}

.bottom-icon.orange {
    color: #ff9800;
}

.bottom-label {
    font-size: 11px;
    color: #999;
}

.bottom-label.active {
    color: #ff9800;
    font-weight: 500;
}

/* ==================== 文章详情页样式 ==================== */

/* 文章页面基础 */
.article-page {
    background: #fff;
    padding-bottom: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item.static {
    color: #999;
    cursor: default;
}

.breadcrumb-separator {
    color: #ccc;
    font-size: 12px;
}

.breadcrumb-item.link {
    color: #2196f3;
    text-decoration: none;
}

.breadcrumb-item.link:hover {
    text-decoration: underline;
}

/* 文章标题 */
.article-header {
    padding: 16px;
    background: #fff;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

/* 作者信息 */
.author-section {
    padding: 0 16px 16px;
    background: #fff;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.author-badge {
    padding: 2px 10px;
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}

.author-time {
    font-size: 13px;
    color: #999;
}

/* 文章内容 */
.article-content {
    padding: 0 16px 20px;
    background: #fff;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
    text-align: justify;
}

/* 文章内容中的图片 */
.article-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px 0;
}

/* 免责声明 */
.disclaimer-box {
    margin: 0 16px 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #e0e0e0;
}

.disclaimer-box i {
    color: #90a4ae;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.disclaimer-box span {
    font-size: 13px;
    color: #78909c;
    line-height: 1.6;
}

/* 互动区域 */
.interaction-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
}

.likers-avatars {
    display: flex;
    align-items: center;
}

.liker-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-left: -8px;
}

.liker-avatar:first-child {
    margin-left: 0;
}

.likers-count {
    margin-left: 8px;
    font-size: 14px;
    color: #999;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.like-btn:hover {
    background: #ebebeb;
}

.like-btn.liked {
    background: #ffebee;
    color: #e53935;
}

.like-btn i {
    font-size: 16px;
}

/* 星星粒子动画 */
.star-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: starFly 1s ease-out forwards;
}

@keyframes starFly {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), calc(var(--ty) - 30px)) scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* 分享栏 */
.share-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
}

.share-platforms {
    display: flex;
    gap: 16px;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.share-icon:hover {
    transform: scale(1.1);
}

.share-icon.wechat {
    background: #e8f5e9;
    color: #4caf50;
}

.share-icon.weibo {
    background: #ffebee;
    color: #e53935;
}

.share-icon.star {
    background: #fff8e1;
    color: #ffc107;
}

.share-actions {
    display: flex;
    gap: 16px;
}

.share-action {
    font-size: 13px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.share-action:hover {
    color: #666;
}

.share-action i {
    font-size: 14px;
}

/* 评论区 */
.comment-section {
    padding: 16px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.comment-input {
    width: 100%;
    padding: 10px 70px 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.comment-input:focus {
    border-color: #2196f3;
}

.comment-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 16px;
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.comment-submit.show {
    opacity: 1;
    visibility: visible;
}

.comment-submit:hover {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.comment-submit:active {
    transform: translateY(-50%) scale(0.95);
}

/* 提示弹窗 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 16px 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast i {
    font-size: 20px;
    color: #4caf50;
}
