/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 应用动画 */
.hero {
    animation: fadeIn 1s ease-out;
}

.category-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

.post-card {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }

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

/* 头部样式 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 24px;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #555;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.main-nav a:hover {
    background: #f0f0f0;
    color: #2c3e50;
}

/* 主内容区 */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

/* 页脚 */
.site-footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* 首页样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.search-box {
    max-width: 600px;
    margin: 30px auto 0;
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
}

/* 分类网格 */
.categories {
    margin-bottom: 50px;
}

.categories h3 {
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
    color: #2c3e50;
    position: relative;
}

.categories h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: #fff;
    padding: 0;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.category-card-header {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.category-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    /* 默认渐变背景，当图片不存在时显示 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 不同分类的默认背景 */
.category-secondhand .category-card-bg {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
}

.category-house .category-card-bg {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
}

.category-job .category-card-bg {
    background: linear-gradient(135deg, #2196f3 0%, #03a9f4 100%);
}

.category-service .category-card-bg {
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
}

.category-vehicle .category-card-bg {
    background: linear-gradient(135deg, #f44336 0%, #ff5722 100%);
}

.category-education .category-card-bg {
    background: linear-gradient(135deg, #3f51b5 0%, #673ab7 100%);
}

.category-card:hover .category-card-bg {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon {
    font-size: 48px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-card-body {
    padding: 20px;
    text-align: center;
}

.category-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.category-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #999;
}

/* 特定分类的背景色 */
.category-card.category-secondhand .category-card-overlay {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.8) 0%, rgba(255, 193, 7, 0.8) 100%);
}

.category-card.category-house .category-card-overlay {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.8) 0%, rgba(139, 195, 74, 0.8) 100%);
}

.category-card.category-job .category-card-overlay {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.8) 0%, rgba(3, 169, 244, 0.8) 100%);
}

.category-card.category-service .category-card-overlay {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.8) 0%, rgba(233, 30, 99, 0.8) 100%);
}

.category-card.category-vehicle .category-card-overlay {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.8) 0%, rgba(255, 87, 34, 0.8) 100%);
}

.category-card.category-education .category-card-overlay {
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.8) 0%, rgba(103, 58, 183, 0.8) 100%);
}

/* 信息网格 */
.latest-posts {
    margin-bottom: 50px;
}

.latest-posts h3 {
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
    color: #2c3e50;
    position: relative;
}

.latest-posts h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.post-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.post-image {
    height: 180px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.post-content {
    padding: 20px;
}

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

.post-category {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category.cat-secondhand {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: #fff;
}

.post-category.cat-house {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: #fff;
}

.post-category.cat-job {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
    color: #fff;
}

.post-category.cat-service {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
    color: #fff;
}

.post-category.cat-vehicle {
    background: linear-gradient(135deg, #f44336, #ff5722);
    color: #fff;
}

.post-category.cat-education {
    background: linear-gradient(135deg, #3f51b5, #673ab7);
    color: #fff;
}

.post-type {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.post-type.personal {
    background: #f3e5f5;
    color: #7b1fa2;
}

.post-type.merchant {
    background: #e8f5e9;
    color: #388e3c;
}

.post-title {
    margin-bottom: 12px;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-title a:hover {
    color: #667eea;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.post-meta-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
    
    display:none;
}

.post-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 热门商品样式 */
.popular-products {
    margin-bottom: 50px;
}

.popular-products h3 {
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
    color: #2c3e50;
    position: relative;
}

.popular-products h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.product-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.product-content {
    padding: 20px;
}

.product-title {
    margin-bottom: 12px;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: #667eea;
}

.product-price {
    margin-bottom: 12px;
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 8px;
    font-weight: normal;
}

.product-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.product-merchant {
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.product-merchant a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-merchant a:before {
    content: '🏪';
    font-size: 14px;
}

.product-merchant a:hover {
    color: #667eea;
}

.section-footer {
    text-align: center;
    margin-top: 30px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* 购物车相关样式 */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 消息提示样式 */
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 信息列表 */
.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 28px;
    color: #2c3e50;
}

.filter-bar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-input, .filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-input {
    flex: 1;
    min-width: 200px;
}

.posts-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item-cover {
    flex: 0 0 140px;
    width: 140px;
    height: 105px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
}

.post-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-item-cover-empty {
    font-size: 28px;
    line-height: 1;
}

.post-item-body {
    flex: 1;
    min-width: 0;
}

.post-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.post-item-title {
    margin: 0;
}

.post-item-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 20px;
}

.post-item-title a:hover {
    color: #667eea;
}

.post-item-excerpt {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #999;
}

@media (max-width: 640px) {
    .post-item-cover {
        flex-basis: 96px;
        width: 96px;
        height: 72px;
    }

    .post-item-title a {
        font-size: 16px;
    }
}

.post-author a {
    color: #667eea;
    text-decoration: none;
}

.post-price {
    color: #e74c3c;
    font-weight: bold;
}

/* 信息详情 */
.post-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-detail-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.post-detail-header h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.post-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #999;
}

.post-detail-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 富文本内容样式 */
.post-detail-content h1,
.post-detail-content h2,
.post-detail-content h3,
.post-detail-content h4,
.post-detail-content h5,
.post-detail-content h6 {
    margin: 1.5em 0 0.5em 0;
    color: #2c3e50;
    font-weight: 600;
}

.post-detail-content h1 { font-size: 2em; }
.post-detail-content h2 { font-size: 1.5em; }
.post-detail-content h3 { font-size: 1.17em; }

.post-detail-content p {
    margin: 1em 0;
}

.post-detail-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 16px;
    margin: 16px 0;
    color: #666;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 4px;
    font-style: italic;
}

.post-detail-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-detail-content pre {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    margin: 16px 0;
}

.post-detail-content pre code {
    background: none;
    padding: 0;
}

.post-detail-content a {
    color: #667eea;
    text-decoration: none;
}

.post-detail-content a:hover {
    text-decoration: underline;
}

.post-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-detail-content ul,
.post-detail-content ol {
    padding-left: 24px;
    margin: 16px 0;
}

.post-detail-content li {
    margin: 8px 0;
}

.post-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-detail-content table th,
.post-detail-content table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.post-detail-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.post-detail-content table tr:hover {
    background: #f8f9fa;
}

.post-detail-content strong {
    font-weight: 600;
    color: #2c3e50;
}

.post-detail-content em {
    font-style: italic;
    color: #666;
}

.post-price-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 18px;
    color: #856404;
}

.post-contact, .post-merchant {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.post-contact h3, .post-merchant h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.post-contact p, .post-merchant p {
    margin-bottom: 10px;
}

/* 商家列表 */
.merchants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.merchant-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.merchant-name {
    margin-bottom: 15px;
}

.merchant-name a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 20px;
}

.merchant-desc {
    color: #666;
    margin-bottom: 15px;
}

.merchant-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* 商家详情 */
.merchant-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.merchant-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.merchant-badge {
    background: #4caf50;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
}

.merchant-detail-desc, .merchant-detail-contact {
    margin-bottom: 30px;
}

.merchant-detail-desc h3, .merchant-detail-contact h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

/* 商家简介富文本内容样式 */
.merchant-desc-content {
    font-size: 16px;
    line-height: 1.6;
}

.merchant-desc-content h1,
.merchant-desc-content h2,
.merchant-desc-content h3,
.merchant-desc-content h4,
.merchant-desc-content h5,
.merchant-desc-content h6 {
    margin: 1.2em 0 0.5em 0;
    color: #2c3e50;
    font-weight: 600;
}

.merchant-desc-content p {
    margin: 1em 0;
}

.merchant-desc-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 16px;
    margin: 16px 0;
    color: #666;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 4px;
    font-style: italic;
}

.merchant-desc-content ul,
.merchant-desc-content ol {
    padding-left: 24px;
    margin: 12px 0;
}

.merchant-desc-content li {
    margin: 6px 0;
}

.merchant-desc-content a {
    color: #667eea;
    text-decoration: none;
}

.merchant-desc-content a:hover {
    text-decoration: underline;
}

.merchant-desc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}

.merchant-desc-content strong {
    font-weight: 600;
    color: #2c3e50;
}

.merchant-desc-content em {
    font-style: italic;
    color: #666;
}

.merchant-posts {
    margin-top: 40px;
}

.merchant-posts h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn:hover {
    background: #5568d3;
}

.btn-primary {
    background: #667eea;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 表单 */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-form {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-form h2, .post-form h2 {
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

textarea.form-control {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
}

/* 提示信息 */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 12px;
    background: #fff;
    color: #667eea;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.page-link:hover {
    background: #f0f0f0;
}

.page-link.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* 用户中心 */
.dashboard {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.user-info h3 {
    margin-bottom: 15px;
}

.user-info p {
    margin-bottom: 10px;
}

.my-posts h3 {
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .main-nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .nav-dropdown-menu {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
    }
    
    .hero {
        padding: 40px 15px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .search-box form {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .post-grid, .merchants-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card {
        margin: 0 10px;
    }
    
    .post-image {
        height: 200px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .post-meta-right {
        align-self: flex-end;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-input {
        width: 100%;
    }
    
    .categories h3, .latest-posts h3 {
        font-size: 24px;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card-header {
        height: 100px;
    }
    
    .category-icon {
        font-size: 36px;
    }
    
    .post-image {
        height: 160px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
}

/* 联系方式锁定样式 */
.contact-locked {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed #ddd;
}

.contact-locked p {
    margin-bottom: 15px;
}

.contact-locked strong {
    color: #667eea;
    font-size: 18px;
}

.contact-locked .btn {
    margin: 10px 5px;
}

.vip-tip {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

.vip-tip a {
    color: #ff9800;
    text-decoration: underline;
}

.text-error {
    color: #e74c3c;
    font-weight: bold;
}

/* 用户统计卡片 */
.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-box:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.stat-action {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.stat-action:hover {
    background: rgba(255,255,255,0.3);
}

/* 商家功能菜单 */
.merchant-menu {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.merchant-menu h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.merchant-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.merchant-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.merchant-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.action-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.action-text {
    font-weight: 500;
    font-size: 14px;
}

/* 用户功能菜单 */
.user-menu {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 结算提示 */
.checkout-tip {
    background: #e7f3ff;
    color: #0066cc;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #0066cc;
}

.user-menu h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.user-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.user-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.user-action {
    position: relative;
}

.action-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 仪表板操作按钮 */
.dashboard-actions {
    display: flex;
    gap: 10px;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
}

/* 轮播图样式 */
.post-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

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

.carousel-item {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    padding: 15px;
    background: rgba(0,0,0,0.3);
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active, .dot:hover {
    background: #fff;
}

/* 用户信息头部 */
.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.info-header h3 {
    margin: 0;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

/* 导航下拉菜单 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown-toggle::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    font-size: 14px;
}

.nav-dropdown-menu a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding-left: 25px;
}

.nav-dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.nav-dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

/* 固定购物车按钮 */
.fixed-cart-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

.cart-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.cart-btn:active {
    transform: scale(0.95);
}

.cart-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.cart-text {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* 个人中心签到状态样式 */
.stat-action.disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.stat-box .stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fixed-cart-btn {
        right: 15px;
        bottom: 80px;
        top: auto;
        transform: none;
    }
    
    .cart-btn {
        width: 55px;
        height: 55px;
    }
    
    .cart-icon {
        font-size: 18px;
    }
    
    .cart-text {
        font-size: 9px;
    }
    
    .cart-count {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }
}

@media (max-width: 480px) {
    .fixed-cart-btn {
        right: 10px;
        bottom: 70px;
    }
    
    .cart-btn {
        width: 50px;
        height: 50px;
    }
    
    .cart-icon {
        font-size: 16px;
    }
    
    .cart-text {
        font-size: 8px;
    }
}

/* 避免与其他固定元素冲突 */
.fixed-cart-btn {
    pointer-events: auto;
}

.cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.cart-btn:hover::before {
    transform: translateX(100%);
}
/* 网站底部样式 */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #3498db;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-section strong {
    color: #ecf0f1;
    font-weight: 600;
}

.footer-left {
    padding-right: 20px;
}

.footer-right {
    padding-left: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    flex-direction: column;
    gap: 10px;
}

.footer-copyright p {
    margin: 0;
    color: #95a5a6;
    font-size: 14px;
    text-align: center;
}

.footer-icp a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-icp a:hover {
    color: #ecf0f1;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 15px;
        margin-top: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-left,
    .footer-right {
        padding: 0;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 16px;
    }
    
    .footer-bottom {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 25px 0 15px;
    }
    
    .footer-content {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 14px;
    }
    
    .footer-copyright p,
    .footer-icp a {
        font-size: 13px;
    }
}

/* 管理员设置页面样式优化 */
.settings-form h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin: 30px 0 20px 0;
    font-size: 18px;
}

.settings-form h3:first-of-type {
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.4;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* 设置表单响应式 */
@media (max-width: 768px) {
    .settings-form {
        padding: 0 10px;
    }
    
    .settings-form h3 {
        font-size: 16px;
        margin: 25px 0 15px 0;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-control {
        padding: 8px 10px;
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* =========================================================
   Portal 商城+信息布局（原创样式，追加于通用 CSS 末尾）
   ========================================================= */

.portal-body {
    background: #f5f5f5;
    color: #333;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

.portal-wrap {
    width: 1200px;
    margin: 0 auto;
}

.portal-main {
    padding: 0 0 40px;
    min-height: calc(100vh - 320px);
    background: #f5f5f5;
}

/* 顶栏 */
.portal-topbar {
    background: #f7f7f7;
    border-bottom: 1px solid #ececec;
    font-size: 12px;
    color: #999;
    line-height: 1;
}

.portal-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
}

.portal-welcome {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-account {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.portal-account a {
    color: #666;
    text-decoration: none;
}

.portal-account a:hover,
.portal-register-link {
    color: #e3393c;
}

.portal-account-name {
    color: #666;
}

/* 中部品牌搜索区 */
.portal-header {
    background: #fff;
    padding: 22px 0 18px;
}

.portal-header-row {
    display: flex;
    align-items: center;
    gap: 28px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.portal-brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-height: 52px;
}

.portal-brand-logo img {
    display: block;
    max-height: 52px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.portal-brand-mark {
    width: 46px;
    height: 46px;
    position: relative;
    flex-shrink: 0;
}

.portal-brand-mark i {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.portal-brand-mark i:nth-child(1) { left: 4px; top: 4px; background: #ff8a00; }
.portal-brand-mark i:nth-child(2) { right: 4px; top: 4px; background: #2db84d; }
.portal-brand-mark i:nth-child(3) { left: 4px; bottom: 4px; background: #2f6bff; }
.portal-brand-mark i:nth-child(4) { right: 4px; bottom: 4px; background: #e3393c; }

.portal-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.portal-brand-text strong {
    font-size: 24px;
    line-height: 1.15;
    color: #e3393c;
    font-weight: 700;
    white-space: nowrap;
}

.portal-brand-text em {
    font-style: normal;
    font-size: 12px;
    color: #888;
}

.portal-search {
    flex: 1;
    display: flex;
    height: 40px;
    border: 2px solid #e3393c;
    background: #fff;
}

.portal-search input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.portal-search button {
    width: 88px;
    border: 0;
    background: #e3393c;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.portal-search button:hover {
    background: #c92a2d;
}

.portal-publish {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    font-size: 15px;
    min-width: 110px;
    justify-content: flex-end;
}

.portal-publish:hover {
    color: #e3393c;
}

.portal-publish-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #e3393c;
}

/* 红色主导航 */
.portal-nav {
    background: #e3393c;
    height: 44px;
}

.portal-nav-inner {
    display: flex;
    align-items: stretch;
    height: 44px;
}

.portal-cat-trigger {
    position: relative;
    width: 190px;
    background: #c92a2d;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
}

.portal-cat-trigger > span::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    border: 5px solid transparent;
    border-top-color: #fff;
    transform: translateY(2px);
}

.portal-cat-panel {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 220px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 8px 0;
}

.portal-cat-trigger:hover .portal-cat-panel {
    display: block;
}

.portal-cat-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.portal-cat-panel a:hover {
    background: #fff5f5;
    color: #e3393c;
}

.portal-cat-ico {
    width: 20px;
    text-align: center;
}

.portal-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 8px;
}

.portal-nav-links > a,
.portal-nav-drop > a {
    color: #fff;
    text-decoration: none;
    padding: 0 18px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 15px;
}

.portal-nav-links > a:hover,
.portal-nav-drop > a:hover {
    background: rgba(0,0,0,0.08);
}

.portal-nav-drop {
    position: relative;
}

.portal-nav-drop-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 140px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
    z-index: 50;
}

.portal-nav-drop:hover .portal-nav-drop-menu {
    display: block;
}

.portal-nav-drop-menu a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
}

.portal-nav-drop-menu a:hover {
    background: #fff5f5;
    color: #e3393c;
}

/* 首页主体 */
.portal-home {
    padding-top: 16px;
}

.portal-showcase {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 12px;
    margin-bottom: 18px;
}

.portal-banner {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: #fff;
}

.portal-banner-track {
    height: 100%;
    position: relative;
}

.portal-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 56px;
    overflow: hidden;
}

.portal-banner-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.portal-banner-slide.tone-a {
    background: linear-gradient(120deg, #d62828 0%, #f07167 55%, #ffb703 100%);
}

.portal-banner-slide.tone-b {
    background: linear-gradient(120deg, #1d3557 0%, #457b9d 50%, #a8dadc 100%);
}

.portal-banner-slide.tone-c {
    background: linear-gradient(120deg, #6a040f 0%, #dc2f02 45%, #f48c06 100%);
}

.portal-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.portal-banner-slide.mode-image {
    padding: 0;
}

.portal-banner-slide.mode-both {
    background: #222;
}

.portal-banner-slide.mode-both::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.08) 100%);
    pointer-events: none;
}

.portal-banner-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.portal-banner-copy h2 {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 14px;
    font-weight: 700;
}

.portal-banner-copy p {
    font-size: 18px;
    margin: 0 0 24px;
    opacity: 0.95;
}

.portal-banner-cta {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(255,255,255,0.95);
    color: #e3393c;
    font-weight: 600;
    border-radius: 2px;
}

.portal-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.portal-banner-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    padding: 0;
}

.portal-banner-dots button.is-active {
    background: #2f6bff;
}

.portal-side-cats {
    background: #fff;
    border: 1px solid #ececec;
    height: 360px;
    overflow: hidden;
}

.portal-side-cats h3 {
    margin: 0;
    padding: 14px 16px 10px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.portal-side-cats ul {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.portal-side-cats li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.portal-side-cats li:last-child a {
    border-bottom: 0;
}

.portal-side-cats li a:hover {
    color: #e3393c;
    background: #fff8f8;
}

.portal-side-ico {
    width: 22px;
    text-align: center;
    color: #999;
}

/* 通用区块 */
.portal-block {
    background: #fff;
    border: 1px solid #ececec;
    margin-bottom: 18px;
    padding: 18px 18px 8px;
}

.portal-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    min-height: 28px;
}

.portal-block-head h3 {
    margin: 0;
    font-size: 20px;
    color: #222;
    padding-left: 10px;
    border-left: 4px solid #e3393c;
    line-height: 1.2;
}

.portal-block-tabs {
    display: flex;
    align-items: center;
    gap: 18px;
}

.portal-block-tabs a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-left: 10px;
}

.portal-block-tabs a.is-current {
    color: #e3393c;
}

.portal-block-tabs a.is-current::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: #e3393c;
}

.portal-more {
    color: #999;
    text-decoration: none;
    font-size: 13px;
}

.portal-more:hover {
    color: #e3393c;
}

/* 商品网格 */
.portal-goods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.portal-goods-follow {
    border-top: 1px dashed #eee;
    padding-top: 14px;
}

.portal-goods-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
    padding: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-goods-card:hover {
    border-color: #e3393c;
    box-shadow: 0 4px 14px rgba(227, 57, 60, 0.08);
}

.portal-goods-cover {
    height: 200px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.portal-goods-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-goods-empty {
    color: #ccc;
    font-size: 14px;
}

.portal-goods-card h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    height: 40px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.portal-goods-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.portal-goods-price strong {
    color: #e3393c;
    font-size: 18px;
    font-weight: 700;
}

.portal-goods-price span {
    color: #aaa;
    font-size: 12px;
    text-decoration: line-through;
}

/* 分类信息 */
.portal-info-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.portal-info-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
    padding: 8px;
}

.portal-info-card:hover {
    border-color: #e3393c;
}

.portal-info-card-cover {
    height: 110px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
    font-size: 28px;
}

.portal-info-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-info-card h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    height: 36px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.portal-info-card strong {
    color: #e3393c;
    font-size: 14px;
}

.portal-info-card em {
    font-style: normal;
    color: #999;
    font-size: 12px;
}

.portal-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.portal-info-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
    padding: 12px;
}

.portal-info-row:hover {
    border-color: #e3393c;
}

.portal-info-thumb {
    height: 110px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 32px;
}

.portal-info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-info-body h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #222;
}

.portal-info-body p {
    margin: 0 0 10px;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
    height: 42px;
    overflow: hidden;
}

.portal-info-meta {
    display: flex;
    gap: 16px;
    color: #999;
    font-size: 12px;
    align-items: center;
}

.portal-info-meta strong {
    margin-left: auto;
    color: #e3393c;
    font-size: 16px;
}

/* 店铺 */
.portal-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 12px;
}

.portal-shop-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.portal-shop-card:hover {
    border-color: #e3393c;
}

.portal-shop-cover {
    height: 160px;
    background: #fafafa;
    overflow: hidden;
}

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

.portal-shop-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.portal-shop-meta {
    display: flex;
    gap: 10px;
    padding: 12px;
    align-items: center;
}

.portal-shop-logo {
    width: 42px;
    height: 42px;
    border: 1px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
}

.portal-shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-shop-logo span {
    font-weight: 700;
    color: #666;
}

.portal-shop-meta strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.portal-shop-meta p {
    margin: 0;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* 页脚 */
.portal-footer {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    margin-top: 10px;
    color: #666;
}

.portal-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 36px 0 28px;
}

.portal-footer-col h4 {
    margin: 0 0 14px;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.portal-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-footer-col li {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.portal-footer-col a {
    color: #666;
    text-decoration: none;
}

.portal-footer-col a:hover {
    color: #e3393c;
}

.portal-footer-contact li {
    color: #777;
}

.portal-footer-bottom {
    border-top: 1px solid #f0f0f0;
    padding: 18px 0 24px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.portal-footer-bottom p {
    margin: 0 0 6px;
}

.portal-footer-bottom a {
    color: #999;
    text-decoration: none;
}

.portal-footer-bottom a:hover {
    color: #e3393c;
}

/* 内页内容区与新头尾衔接 */
.portal-main > .container {
    width: 1200px;
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ececec;
    box-sizing: border-box;
}


/* =========================================================
   首页分类信息：多文字 / 少图片布局
   ========================================================= */

.portal-info-text-block .portal-block-head {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.portal-info-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 10px;
}

.portal-info-col-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    padding-left: 10px;
    border-left: 3px solid #e3393c;
}

.portal-info-col-title a {
    color: #222;
    text-decoration: none;
}

.portal-info-col-title a:hover {
    color: #e3393c;
}

.portal-info-text-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-info-text-list li {
    margin: 0;
    line-height: 2;
}

.portal-info-text-list a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-info-text-list a:hover {
    color: #e3393c;
}

.portal-info-housing-block .portal-block-head {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.portal-info-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
    padding-bottom: 12px;
}

.portal-info-pair-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.portal-info-pair-item:hover h4 {
    color: #e3393c;
}

.portal-info-pair-thumb {
    width: 120px;
    height: 90px;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-info-pair-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-info-pair-fallback {
    font-size: 28px;
    color: #ccc;
}

.portal-info-pair-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.portal-info-pair-body h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-info-pair-body p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #888;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.portal-info-pair-meta {
    margin-top: auto;
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #aaa;
}

/* 首页自定义图文版块 */
.portal-custom-ad-block {
    margin-bottom: 20px;
}

.portal-custom-ad {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
}

.portal-custom-ad-media img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.portal-custom-ad-body {
    padding: 16px 20px;
}

.portal-custom-ad-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #222;
}

.portal-custom-ad-body p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.portal-banner-slide.has-image .portal-banner-copy {
    text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

/* ---------- 首页版块样式变体 ---------- */
.portal-showcase-wide {
    grid-template-columns: 1fr;
}

.portal-banner-wide {
    height: 380px;
}

.portal-showcase-compact .portal-banner-compact {
    height: 280px;
}

.portal-showcase-compact .portal-banner-copy h2 {
    font-size: 30px;
}

.portal-showcase-compact .portal-banner-copy p {
    font-size: 15px;
    margin-bottom: 16px;
}

.portal-info-columns.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.portal-info-columns.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.portal-info-pair.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.portal-goods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-goods-list-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 10px;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.portal-goods-list-item:hover {
    border-color: #e3393c;
}

.portal-goods-list-cover {
    height: 90px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portal-goods-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-goods-list-body h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.portal-goods-list-cat {
    margin: 0 0 8px;
    font-size: 12px;
    color: #999;
}

.portal-info-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.portal-info-thumb-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.portal-info-thumb-card:hover h4 {
    color: #e3393c;
}

.portal-info-thumb-card-media {
    height: 140px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portal-info-thumb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-info-thumb-card-media span {
    font-size: 28px;
    color: #ccc;
}

.portal-info-thumb-card-body {
    padding: 12px;
}

.portal-info-thumb-card-body h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-info-thumb-card-body p {
    margin: 0 0 8px;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.portal-info-title-list {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
}

.portal-info-title-list.cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 28px;
}

.portal-info-title-list.cols-2 li {
    border-top: 1px dashed #eee;
}

.portal-info-title-list.cols-2 li:nth-child(-n+2) {
    border-top: 0;
}

.portal-info-title-list li + li {
    border-top: 1px dashed #eee;
}

.portal-info-title-list.cols-2 li + li {
    border-top: 1px dashed #eee;
}

.portal-info-title-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: #333;
    min-width: 0;
}

.portal-info-title-list a:hover span {
    color: #e3393c;
}

.portal-info-title-list em {
    flex-shrink: 0;
    font-style: normal;
    font-size: 12px;
    color: #e3393c;
    background: #fff5f5;
    padding: 2px 8px;
}

.portal-info-title-list span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.portal-info-title-list time {
    flex-shrink: 0;
    font-size: 12px;
    color: #aaa;
}

.portal-info-compact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 8px;
}

.portal-info-compact-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border: 1px solid #f0f0f0;
}

.portal-info-compact-item:hover h4 {
    color: #e3393c;
}

.portal-info-compact-thumb {
    width: 96px;
    height: 72px;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-info-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-info-compact-body h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #222;
}

.portal-info-compact-body p {
    margin: 0;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    max-height: 36px;
    overflow: hidden;
}

.portal-info-compact-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #aaa;
    text-align: right;
    white-space: nowrap;
}

.portal-shop-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.portal-shop-row .portal-shop-card {
    flex: 0 0 260px;
}

.portal-shop-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-shop-list-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.portal-shop-list-item:hover {
    border-color: #e3393c;
}

.portal-shop-list-cover {
    height: 110px;
    background: #fafafa;
    overflow: hidden;
}

.portal-shop-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-shop-list-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 0;
}

.portal-shop-list-body strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: #222;
}

.portal-shop-list-body p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.portal-shop-logo-wall {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding-bottom: 8px;
}

.portal-shop-logo-wall-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.portal-shop-logo-wall-item:hover {
    border-color: #e3393c;
}

.portal-shop-logo-wall-item img,
.portal-shop-logo-wall-item > span {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border: 1px dashed #eee;
    font-size: 20px;
    font-weight: 700;
    color: #666;
}

.portal-shop-logo-wall-item em {
    font-style: normal;
    font-size: 12px;
    color: #555;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.portal-custom-ad-card-block {
    display: flex;
    justify-content: center;
}

.portal-custom-ad-card {
    max-width: 720px;
    width: 100%;
    text-align: center;
}

.portal-custom-ad-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
}

.portal-custom-ad-split .portal-custom-ad-media {
    min-height: 180px;
}

.portal-custom-ad-split .portal-custom-ad-media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.portal-custom-ad-split .portal-custom-ad-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-custom-ad-html-only {
    border: 1px solid #eee;
    background: #fff;
    padding: 16px 20px;
}

.portal-custom-ad-desc {
    margin: 0 0 12px;
    color: #666;
    font-size: 14px;
}

@media (max-width: 1000px) {
    .portal-info-columns.cols-4,
    .portal-info-thumb-grid,
    .portal-shop-logo-wall {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-info-pair.cols-3 {
        grid-template-columns: 1fr;
    }

    .portal-custom-ad-split,
    .portal-shop-list-item,
    .portal-info-compact-item {
        grid-template-columns: 1fr;
    }

    .portal-info-compact-meta {
        text-align: left;
        flex-direction: row;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .portal-info-columns.cols-2,
    .portal-info-columns.cols-4,
    .portal-info-thumb-grid,
    .portal-shop-logo-wall,
    .portal-info-title-list.cols-2 {
        grid-template-columns: 1fr;
    }

    .portal-goods-list-item {
        grid-template-columns: 90px 1fr;
    }
}

/* ========== 信息详情页（原创布局） ========== */
.info-page {
    padding: 18px 0 40px;
    background: #f3f4f6;
    min-height: 60vh;
}

.info-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #888;
}

.info-crumb a {
    color: #666;
    text-decoration: none;
}

.info-crumb a:hover {
    color: #e3393c;
}

.info-crumb em {
    font-style: normal;
    color: #333;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.info-panel {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    padding: 22px 24px;
    margin-bottom: 14px;
}

.info-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.info-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.35;
    color: #1a1a1a;
    font-weight: 700;
}

.info-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    font-size: 13px;
    color: #999;
}

.info-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #fff1f0;
    color: #e3393c;
    border-radius: 2px;
    text-decoration: none;
    font-size: 12px;
}

.info-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    background: #f5f5f5;
    color: #666;
}

.info-type-merchant {
    background: #e8f5e9;
    color: #2e7d32;
}

.info-type-personal {
    background: #f3e5f5;
    color: #7b1fa2;
}

.info-gallery {
    position: relative;
    margin: 0 0 18px;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    max-width: none;
}

.info-gallery-stage {
    height: 420px;
    background: #111;
}

.info-gallery .carousel-item img {
    object-fit: contain;
    background: #111;
}

.info-gallery .carousel-prev,
.info-gallery .carousel-next {
    padding: 10px 14px;
    font-size: 22px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.45);
}

.info-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #1a1a1a;
    overflow-x: auto;
}

.info-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    background: #333;
    opacity: 0.65;
}

.info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-thumb.is-active,
.info-thumb.active {
    border-color: #e3393c;
    opacity: 1;
}

.info-price-bar {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #fff8f7;
    border: 1px solid #ffe0de;
    border-radius: 4px;
    
    display:none;
}

.info-price-label {
    font-size: 13px;
    color: #999;
}

.info-price-num {
    font-size: 26px;
    color: #e3393c;
    font-weight: 700;
}

.info-section {
    margin-top: 8px;
}

.info-section-title {
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 3px solid #e3393c;
    font-size: 16px;
    color: #222;
    font-weight: 600;
    line-height: 1.2;
}

.info-body {
    font-size: 15px;
    line-height: 1.85;
    color: #333;
    margin-bottom: 0;
}

.info-publisher-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

.info-publisher-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3393c, #ff7a45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.info-publisher-name {
    display: block;
    color: #222;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 4px;
}

.info-publisher-card p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.info-publisher-link {
    margin-left: auto;
    padding: 6px 14px;
    border: 1px solid #e3393c;
    color: #e3393c;
    border-radius: 2px;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.info-publisher-link:hover {
    background: #e3393c;
    color: #fff;
}

.info-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-related-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

.info-related-list li:last-child {
    border-bottom: none;
}

.info-related-list a {
    color: #333;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-related-list a:hover {
    color: #e3393c;
}

.info-related-list span {
    color: #bbb;
    font-size: 12px;
    flex-shrink: 0;
}

.info-side-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    padding: 18px;
    margin-bottom: 14px;
}

.info-side-card h2,
.info-side-card h3 {
    margin: 0 0 14px;
    font-size: 16px;
    color: #222;
}

.info-contact-card {
    position: sticky;
    top: 12px;
}

.info-contact-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f3f3;
    font-size: 14px;
}

.info-contact-row span {
    color: #999;
    flex-shrink: 0;
}

.info-contact-row strong {
    color: #222;
    text-align: right;
    word-break: break-all;
}

.info-phone {
    color: #e3393c !important;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.info-call-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 11px 12px;
    text-align: center;
    background: #e3393c;
    color: #fff !important;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.info-call-btn:hover {
    background: #c62f32;
}

.info-call-btn-alt {
    background: #fa8c16;
}

.info-call-btn-alt:hover {
    background: #d46b08;
}

.info-contact-empty,
.info-lock-tip,
.info-lock-points,
.info-lock-warn,
.info-lock-sub {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.6;
}

.info-lock-tip strong {
    color: #e3393c;
    font-size: 18px;
}

.info-lock-warn {
    color: #e3393c;
    font-weight: 600;
}

.info-lock-sub a {
    color: #e3393c;
}

.info-side-tips ul {
    margin: 0;
    padding-left: 18px;
    color: #888;
    font-size: 13px;
    line-height: 1.8;
}

.info-side-back {
    display: block;
    text-align: center;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    padding: 8px;
}

.info-side-back:hover {
    color: #e3393c;
}

@media (max-width: 960px) {
    .info-layout {
        grid-template-columns: 1fr;
    }

    .info-contact-card {
        position: static;
    }

    .info-gallery-stage {
        height: 280px;
    }

    .info-title {
        font-size: 20px;
    }

    .info-panel {
        padding: 16px;
    }
}

