/**
 * 门户前台样式文件
 * 配色方案：渐变蓝紫年轻化风格
 * 主色渐变：#667eea → #764ba2
 * 辅助色：#667eea
 * 强调色：#f093fb
 */

/* ==================== CSS Reset + 基础 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f0f2f5;
    color: #2d3436;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ==================== 顶部导航 .header ==================== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 22px;
    font-weight: bold;
    /* 渐变色文字 */
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav a {
    margin-left: 24px;
    color: #636e72;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #667eea;
}

/* ==================== Hero搜索区 .hero ==================== */
.hero {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0 0 24px 24px;
    padding: 60px 20px 80px;
    text-align: center;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
}

/* 搜索框样式 */
.search-form {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

.search-form input[type="text"] {
    flex: 1;
    border: none;
    padding: 16px 28px;
    font-size: 15px;
    outline: none;
    background: transparent;
    color: #2d3436;
}

.search-form input[type="text"]::placeholder {
    color: #b2bec3;
}

.search-form button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border: none;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.search-form button:hover {
    opacity: 0.85;
}

/* 简化版hero（商户列表页使用） */
.hero.hero-sm {
    padding: 40px 20px 60px;
}

.hero.hero-sm .hero-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.hero.hero-sm .hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
}

/* ==================== 统计区 .stats ==================== */
.stats {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stats-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* 左侧渐变色装饰条 */
.stats-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 4px 0 0 4px;
}

.stats-number {
    font-size: 32px;
    font-weight: bold;
    /* 渐变色数字 */
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 16px;
}

.stats-label {
    font-size: 14px;
    color: #636e72;
    margin-top: 4px;
    margin-left: 16px;
}

/* ==================== 内容区 .section ==================== */
.section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

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

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #2d3436;
    padding-left: 14px;
    /* 左侧渐变色竖条 */
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #667eea, #764ba2) 1;
    display: flex;
    align-items: center;
}

.section-more {
    font-size: 14px;
    color: #667eea;
    font-weight: normal;
    transition: color 0.3s;
}

.section-more:hover {
    color: #764ba2;
}

/* ==================== 商户卡片网格 .merchant-grid ==================== */
.merchant-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.merchant-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.merchant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

/* 商户头像/封面区域 */
.merchant-avatar {
    height: 160px;
    /* 渐变色背景 */
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 48px;
    font-weight: bold;
    border-radius: 8px;
    margin: 16px 16px 0;
    flex-shrink: 0;
}

/* 兼容旧class名 */
.card-cover {
    height: 160px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 48px;
    font-weight: bold;
    border-radius: 8px;
    margin: 16px 16px 0;
    flex-shrink: 0;
}

.merchant-name {
    font-size: 18px;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 兼容旧class名 */
.card-name {
    font-size: 18px;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-desc {
    font-size: 14px;
    color: #636e72;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 兼容旧class名 */
.card-desc {
    font-size: 14px;
    color: #636e72;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.merchant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.merchant-tags span {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

.merchant-info {
    margin-top: auto;
    padding: 12px 16px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #636e72;
}

/* 卡片内容区域 */
.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==================== 商户详情 .detail-page ==================== */
.detail-page {
    min-height: calc(100vh - 64px);
}

.breadcrumb {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    font-size: 14px;
    color: #636e72;
}

.breadcrumb a {
    color: #667eea;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #764ba2;
    text-decoration: underline;
}

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

.detail-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 32px;
    margin-bottom: 24px;
}

.detail-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    flex-shrink: 0;
}

.detail-name {
    font-size: 24px;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 8px;
}

.detail-meta {
    font-size: 14px;
    color: #636e72;
    line-height: 1.8;
}

.detail-body {
    color: #2d3436;
    font-size: 15px;
    line-height: 1.8;
    margin-top: 16px;
}

/* 商户信息卡片（兼容旧class） */
.merchant-info.detail-card {
    padding: 32px;
}

.merchant-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.merchant-avatar.detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    flex-shrink: 0;
}

.merchant-meta {
    flex: 1;
}

.merchant-name.detail-name {
    font-size: 24px;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 8px;
}

.merchant-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
    margin-left: 12px;
    vertical-align: middle;
    font-weight: 500;
}

.merchant-desc {
    color: #636e72;
    font-size: 15px;
    line-height: 1.8;
    margin-top: 12px;
}

/* 信息表格 */
.info-table {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #f0f2f5;
}

.info-table td {
    padding: 14px 0;
    font-size: 14px;
}

.info-table td:first-child {
    width: 120px;
    color: #636e72;
    font-weight: 500;
}

.info-table td:last-child {
    color: #2d3436;
}

/* 公众号展示区域 */
.wechat-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 32px;
    margin-bottom: 24px;
}

.wechat-section .section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #667eea, #764ba2) 1;
}

.wechat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wechat-card {
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

.wechat-card:hover {
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
}

.wechat-card .qrcode {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    background: #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b2bec3;
    font-size: 14px;
    overflow: hidden;
}

.wechat-card .qrcode img {
    max-width: 100%;
    max-height: 100%;
}

.wechat-card .wechat-name {
    font-size: 15px;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 4px;
}

.wechat-card .wechat-type {
    font-size: 13px;
    color: #636e72;
}

.wechat-empty {
    text-align: center;
    padding: 48px 20px;
    color: #b2bec3;
    font-size: 14px;
}

/* 返回按钮 */
.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: #ffffff;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    color: #636e72;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.back-btn:hover {
    border-color: #667eea;
    color: #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
}

/* ==================== 列表信息 ==================== */
.list-info {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-info .count {
    color: #636e72;
    font-size: 14px;
}

.list-info .count span {
    color: #667eea;
    font-weight: bold;
}

/* ==================== 商户列表简单样式 ==================== */
.merchant-list-simple {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.merchant-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

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

.merchant-item-name {
    flex: 0 0 200px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
}

.merchant-item-addr {
    flex: 1;
    font-size: 14px;
    color: #636e72;
    padding: 0 20px;
}

.merchant-item-contact {
    flex: 0 0 150px;
    font-size: 14px;
    color: #636e72;
    text-align: right;
}

@media (max-width: 768px) {
    .merchant-item {
        flex-wrap: wrap;
    }
    .merchant-item-name {
        flex: 0 0 100%;
        margin-bottom: 8px;
    }
    .merchant-item-addr {
        flex: 0 0 100%;
        padding: 0;
        margin-bottom: 4px;
    }
    .merchant-item-contact {
        flex: 0 0 100%;
        text-align: left;
    }
}

/* ==================== 分页 .pagination ==================== */
.pagination {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pagination .page-item {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    color: #636e72;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.pagination .page-item:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.04);
}

.pagination .page-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border-color: transparent;
}

.pagination .page-item.disabled {
    color: #b2bec3;
    cursor: not-allowed;
    border-color: #f0f2f5;
}

.pagination .page-item.disabled:hover {
    border-color: #f0f2f5;
    color: #b2bec3;
    background: transparent;
}

.pagination .page-ellipsis {
    display: inline-block;
    padding: 8px 8px;
    margin: 0 4px;
    color: #b2bec3;
}

.pagination .page-info {
    display: inline-block;
    margin-left: 12px;
    font-size: 13px;
    color: #b2bec3;
}

/* ==================== 空状态 .empty ==================== */
.empty {
    text-align: center;
    padding: 80px 20px;
    color: #b2bec3;
}

.empty .icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty .text {
    font-size: 16px;
    color: #636e72;
}

/* ==================== 页脚 .footer ==================== */
.footer {
    background: #2d3436;
    text-align: center;
    padding: 32px 20px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffffff;
}

/* ==================== 响应式 @media ==================== */

/* 768px以下：平板及手机 */
@media (max-width: 768px) {
    .header-inner {
        height: 56px;
    }

    .hero {
        padding: 40px 20px 60px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .merchant-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stats {
        margin-top: -30px;
    }

    .detail-header,
    .merchant-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .wechat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .section-title {
        font-size: 18px;
    }
}

/* 480px以下：小屏手机 */
@media (max-width: 480px) {
    .merchant-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-form {
        flex-direction: column;
        border-radius: 16px;
    }

    .search-form input[type="text"] {
        padding: 14px 20px;
    }

    .search-form button {
        padding: 14px;
        border-radius: 0 0 16px 16px;
    }

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

    .stats-number {
        font-size: 24px;
    }

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

    .detail-card {
        padding: 20px;
    }

    .wechat-section {
        padding: 20px;
    }

    .pagination .page-item {
        padding: 6px 12px;
        margin: 0 2px;
        font-size: 13px;
    }
}

/* ==================== 动画效果 ==================== */

/* 商户卡片hover动画 */
.merchant-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merchant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

/* 分页按钮hover动画 */
.pagination .page-item {
    transition: all 0.2s ease;
}

/* 渐变按钮hover透明度变化 */
.search-form button {
    transition: opacity 0.3s ease;
}

.search-form button:hover {
    opacity: 0.85;
}

/* 返回按钮动画 */
.back-btn {
    transition: all 0.3s ease;
}

/* 公众号卡片动画 */
.wechat-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* 导航链接动画 */
.nav a {
    transition: color 0.3s ease;
}

/* Logo动画 */
.logo {
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

/* ========== 商户详情 - 门面照片 ========== */
.detail-cover {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 20px -20px;
}
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== 商品照片网格 ========== */
.photos-section {
    margin-top: 24px;
}
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.photo-item {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.photo-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.photo-title {
    padding: 8px 12px;
    font-size: 13px;
    color: #2d3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 新闻预览列表 ========== */
.news-entry-section {
    margin-top: 24px;
}
.news-preview-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.news-preview-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}
.news-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.news-preview-img {
    width: 160px;
    min-width: 160px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}
.news-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
    line-height: 1.4;
}
.news-preview-summary {
    font-size: 14px;
    color: #636e72;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-preview-date {
    font-size: 12px;
    color: #b2bec3;
}

/* ========== 首页新闻网格 ========== */
.news-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-home-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}
.news-home-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.news-home-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.news-home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-home-item:hover .news-home-img img {
    transform: scale(1.05);
}
.news-home-img-placeholder {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-home-img-placeholder span {
    font-size: 36px;
    color: #fff;
    font-weight: 700;
}
.news-home-info {
    padding: 16px;
}
.news-home-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-home-merchant {
    font-size: 13px;
    color: #667eea;
    margin-right: 12px;
}
.news-home-date {
    font-size: 13px;
    color: #b2bec3;
}

/* ========== 新闻列表页 ========== */
.news-list-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.news-list-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}
.news-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.news-list-img {
    width: 200px;
    min-width: 200px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
}
.news-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-list-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
    line-height: 1.4;
}
.news-list-summary {
    font-size: 14px;
    color: #636e72;
    margin: 8px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-list-meta {
    font-size: 13px;
    color: #b2bec3;
}
.news-list-meta span {
    margin-right: 16px;
}

/* ========== 新闻详情页 ========== */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.article-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 32px;
}
.article-cover {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}
.article-cover img {
    width: 100%;
    display: block;
}
.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 16px 0;
    line-height: 1.4;
}
.article-meta {
    font-size: 14px;
    color: #b2bec3;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
}
.article-meta span {
    margin-right: 20px;
}
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3436;
}
.article-content p {
    margin: 0 0 16px 0;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-preview-item {
        flex-direction: column;
    }
    .news-preview-img {
        width: 100%;
        min-width: auto;
        height: 160px;
    }
    .news-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-list-item {
        flex-direction: column;
    }
    .news-list-img {
        width: 100%;
        min-width: auto;
        height: 180px;
    }
    .detail-cover {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .news-home-grid {
        grid-template-columns: 1fr;
    }
    .article-card {
        padding: 20px;
    }
    .article-title {
        font-size: 20px;
    }
}
