/* 隐藏页脚下方的翻译工具栏 */
#translate {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* 顶部导航栏样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.search-bar {
    max-width: 600px;
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    margin-left: auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-btn {
    padding: 12px 20px;
    background: #ff6b35;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #ff5722;
}

/* 导航栏 */
.nav {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-item-link {
    color: white;
    text-decoration: none;
    padding: 12px 0;
    display: block;
    transition: opacity 0.3s;
}

.nav-item-link:hover,
.nav-item.active .nav-item-link {
    opacity: 0.8;
    border-bottom: 2px solid white;
}

/* 下拉菜单 */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 12px;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 10px 0;
    min-width: 220px;
    max-height: 600px;
    overflow-y: auto;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.language-select {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    min-width: 120px;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-select option {
    background: #2c3e50;
    color: white;
    padding: 10px;
}

/* 下拉菜单滚动条 */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 面包屑导航 */
.breadcrumb {
    background: white;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
}

.breadcrumb .container {
    white-space: nowrap;
}

.breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #0d47a1;
}

/* 页面标题 */
.page-header {
    background: white;
    padding: 30px 0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 100%;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.brand-logo img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.brand-name {
    font-weight: 600;
    color: #333;
}

.page-header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
}

/* 主容器布局 */
.main-container {
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 100%;
    overflow-x: hidden;
}

/* 左侧筛选器 */
.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.clear-filters {
    background: transparent;
    border: none;
    color: #1a73e8;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s;
}

.clear-filters:hover {
    color: #0d47a1;
}

/* 筛选部分 */
.filter-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.filter-section:last-child {
    border-bottom: none;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.reset-btn {
    background: transparent;
    border: none;
    color: #1a73e8;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    user-select: none;
}

.filter-title h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.toggle-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s;
}

.filter-title.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-content.active {
    max-height: 500px;
    padding-top: 10px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.3s;
}

.filter-option:hover {
    color: #1a73e8;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* 价格筛选 */
.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.price-input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.price-input:focus {
    border-color: #1a73e8;
}

.apply-price-btn {
    padding: 8px 20px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.apply-price-btn:hover {
    background: #0d47a1;
}

/* 优惠信息 */
.deals-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

.deals-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.stat-label {
    color: #666;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

.alert-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s;
}

.alert-btn:hover {
    transform: scale(1.02);
}

/* 相关链接 */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.related-link {
    padding: 6px 12px;
    background: #e3f2fd;
    color: #1a73e8;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    transition: background 0.3s;
}

.related-link:hover {
    background: #bbdefb;
}

/* 右侧商品列表 */
.products-main {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

/* 工具栏 */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.results-count span {
    font-weight: 600;
    color: #333;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    background: white;
}

.sort-select:focus {
    border-color: #1a73e8;
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-width: 100%;
    overflow-x: hidden;
}

/* 商品卡片 */
.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b35;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

.product-store {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    z-index: 10;
}

.product-image-wrapper {
    position: relative;
    padding: 20px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: flex;
    justify-content: center;
}

.product-image img{
    padding: 10px;
    width: 100%;
    height: 100%;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 40px;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #1a73e8;
}

.product-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-discount {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.product-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-engagement {
    display: flex;
    gap: 12px;
}

.product-engagement .time{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #c4c4c4;
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-shipping {
    font-size: 12px;
    color: #52c41a;
    font-weight: 500;
}

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

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    border-color: #1a73e8;
    color: #1a73e8;
}

.page-btn.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0 5px;
    color: #999;
}

/* 移动端筛选按钮 */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    z-index: 999;
    align-items: center;
    gap: 8px;
}

.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.filter-overlay.active {
    display: block;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 250px 1fr;
        gap: 20px;
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        max-width: 100%;
    }
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header {
        width: 100%;
        max-width: 100vw;
    }

    .header-top {
        position: relative;
        flex-wrap: wrap;
        width: 100%;
        gap: 12px;
        padding: 12px 0;
    }

    .logo {
        order: 1;
        flex-shrink: 0;
        width: 100%;
    }

    .search-bar {
        order: 2;
        flex: 1;
        max-width: none;
        width: calc(100% - 115px);
        margin-left: 0;
    }

    .language-switcher {
        order: 3;
        margin-left: 8px;
        flex-shrink: 0;
    }

    .language-select {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 100px;
        white-space: nowrap;
    }

    .nav {
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
    }

    .nav-list {
        gap: 15px;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        padding: 0;
    }

    .dropdown-menu {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        margin-top: 0;
        border-radius: 0;
        max-height: 60vh;
    }

    .dropdown-content {
        max-height: 60vh;
    }

    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown.active .dropdown-menu {
        transform: translateY(0);
    }

    .nav-item.dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }

    .page-header {
        width: 100%;
        max-width: 100%;
    }

    .page-header h1 {
        font-size: 22px;
        word-wrap: break-word;
    }

    .main-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .content-layout {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .filters-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
        border-radius: 0;
    }

    .filters-sidebar.active {
        left: 0;
    }

    .mobile-filter-btn {
        display: flex;
    }

    .products-main {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }

    .results-count {
        width: 100%;
    }

    .sort-options {
        width: 100%;
        justify-content: space-between;
    }

    .sort-select {
        flex: 1;
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
    }

    .product-image-wrapper {
        height: 150px;
        padding: 15px;
        width: 100%;
    }

    .product-info {
        padding: 12px;
        width: 100%;
        max-width: 100%;
    }

    .product-title {
        font-size: 13px;
        min-height: 36px;
        word-wrap: break-word;
    }

    .product-price {
        font-size: 18px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        max-width: 100%;
    }

    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 10px;
        max-width: 100%;
    }

    .page-header {
        padding: 20px 0;
        width: 100%;
        max-width: 100%;
    }

    .brand-logo img {
        width: 50px;
        height: 50px;
    }

    .page-header h1 {
        font-size: 18px;
        word-wrap: break-word;
    }

    .products-main {
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }

    .products-toolbar {
        width: 100%;
        max-width: 100%;
    }

    .products-grid {
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }

    .product-card {
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
    }

    .product-image-wrapper {
        height: 130px;
        padding: 10px;
        width: 100%;
    }

    .product-info {
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }

    .product-pricing {
        flex-wrap: wrap;
    }

    .pagination {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.4s ease-out;
}

/* 滚动条样式 */
.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===================================
   优惠券页面样式
   =================================== */

/* 优惠券页面布局 */
.coupon-page {
    padding: 30px 0;
    background: #f5f5f5;
}

.coupon-page-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* 优惠券侧边栏 */
.coupon-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* 侧边栏链接 */
.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.sidebar-links a:hover {
    background: #f8f9fa;
    color: #667eea;
}

/* 评分组件 */
.rating-widget {
    text-align: center;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 15px 0;
    font-size: 24px;
}

.rating-stars .star {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #ffc107;
}

.rating-text {
    font-size: 13px;
    color: #666;
}

/* 编辑信息 */
.editor-widget {
    text-align: center;
}

.editor-avatar {
    margin-bottom: 15px;
}

.editor-avatar svg {
    border-radius: 50%;
}

.editor-widget h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.editor-title {
    font-size: 13px;
    color: #667eea;
    margin-bottom: 10px;
}

.editor-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 使用步骤 */
.usage-steps {
    list-style: none;
}

.usage-steps li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
}

/* 支付方式 */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
}

/* 热门商家和相关品牌 */
.popular-stores,
.related-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.store-link,
.brand-link {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.store-link:hover,
.brand-link:hover {
    background: #667eea;
    color: white;
}

/* 主内容区域 */
.coupon-main-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

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

/* 顶部优惠卡片 */
.top-deal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    color: white;
}

.top-deal-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-deal-discount {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.top-deal-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coupon-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.top-deal-info h3 {
    font-size: 18px;
    font-weight: 600;
}

.copy-coupon-btn {
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.copy-coupon-btn.copied {
    background: #4caf50;
    color: white;
}

/* 标签筛选 */
.coupon-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: none;
    border-radius: 25px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

/* 优惠券列表 */
.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 优惠券卡片 */
.coupon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: all 0.3s;
}

.coupon-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.coupon-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
}

.coupon-discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.discount-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.discount-label {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

.coupon-info {
    flex: 1;
}

.coupon-type-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.coupon-type-badge.coupon {
    background: #e3f2fd;
    color: #1976d2;
}

.coupon-type-badge.offer {
    background: #fff3e0;
    color: #f57c00;
}

.coupon-type-badge.promo {
    background: #fce4ec;
    color: #c2185b;
}

.coupon-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.coupon-expire {
    font-size: 13px;
    color: #999;
}

.coupon-expire.expiring-soon {
    color: #ff5722;
    font-weight: 600;
}

.coupon-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.coupon-btn {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.coupon-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.coupon-btn.view-deal {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.coupon-btn.view-deal:hover {
    background: #667eea;
    color: white;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .coupon-page-wrapper {
        grid-template-columns: 1fr;
    }

    .coupon-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 30px;
    }

    .coupon-discount {
        min-width: 80px;
        padding: 12px;
    }

    .discount-value {
        font-size: 28px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .coupon-page {
        padding: 20px 0;
    }

    .coupon-main-content {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }

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

    /* 顶部优惠卡片 */
    .top-deal-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .top-deal-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .top-deal-discount {
        font-size: 36px;
    }

    .copy-coupon-btn {
        width: 100%;
        justify-content: center;
    }

    /* 优惠券卡片 */
    .coupon-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .coupon-left {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .coupon-discount {
        width: 100%;
        padding: 15px;
    }

    .coupon-info {
        text-align: center;
    }

    .coupon-action {
        width: 100%;
        align-items: stretch;
    }

    .coupon-btn {
        width: 100%;
        text-align: center;
    }

    /* 标签筛选 */
    .coupon-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 80px;
    }

    /* 侧边栏 */
    .coupon-sidebar {
        padding: 15px;
    }

    .payment-methods,
    .popular-stores,
    .related-brands {
        justify-content: center;
    }
}

/* 复制成功提示动画 */
@keyframes copySuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.copy-coupon-btn.copied {
    animation: copySuccess 0.3s ease-out;
}

/* 优惠券卡片进入动画 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.coupon-card {
    animation: slideInRight 0.4s ease-out;
}

/* ===================================
   商品资讯页面样式
   =================================== */

/* 资讯页面布局 */
.news-page {
    background: #f5f5f5;
}

/* 精选资讯section - 全宽独立区块 */
.featured-news-section {
    background: #ffffff;
    padding: 30px 0;
    margin-bottom: 30px;
}


.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ff6b35;
}

/* PC端新闻网格容器 */
.news-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

/* 移动端新闻网格 */
.mobile-news-section {
    display: none;
}

/* 新闻卡片基础样式 */
.news-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 大卡片 - 占据2行2列 */
.news-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* 中等卡片 - 占据1行1列 */
.news-card-medium {
    grid-column: span 1;
    grid-row: span 1;
}

/* 小卡片 - 占据1行1列 */
.news-card-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* 新闻卡片图片 */
.news-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

/* 卡片内容 - 底部叠加 */
.news-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    color: white;
    z-index: 1;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-small .news-card-title {
    font-size: 15px;
    -webkit-line-clamp: 2;
}

.news-card-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-small .news-card-description {
    display: none;
}

/* 收藏按钮 */
.news-favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
}

.news-favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.news-favorite-btn svg {
    color: #333;
}

.news-favorite-btn:hover svg {
    fill: #ff6b35;
    color: #ff6b35;
}

/* 移动端新闻卡片样式 */
.mobile-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mobile-news-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 180px;
}

.mobile-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mobile-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    color: white;
}

.mobile-news-content h3 {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-news-content p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-news-card .news-favorite-btn {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
}

/* ===================================
   文章列表区域样式
   =================================== */

.articles-list-section {
    background: #ffffff;
    padding: 40px 0;
}

.articles-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* 文章列表主内容 */
.articles-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-item {
    position: relative;
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.article-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.article-image {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
}

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

.article-favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.article-favorite-btn:hover {
    background: #fff;
    border-color: #ff6b35;
    transform: scale(1.1);
}

.article-favorite-btn svg {
    color: #999;
}

.article-favorite-btn:hover svg {
    fill: #ff6b35;
    color: #ff6b35;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.3s;
}

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

.article-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

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

.article-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.article-date {
    font-size: 13px;
    color: #999;
}

.article-comments {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.article-comments:hover {
    color: #5568d3;
}

/* 文章侧边栏 */
.articles-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

/* 热门商家 */
.popular-merchants {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.merchant-item {
    background: white;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

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

.merchant-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* 社交关注 */
.social-follow {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: #1DA1F2;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.social-btn:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

/* 文章分页 */
.articles-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 2px solid #e0e0e0;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-number:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
}

.pagination-number.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.pagination-dots {
    padding: 0 8px;
    color: #999;
    font-size: 14px;
}

/* Older Blog Posts */
.older-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.older-posts-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.older-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.older-post-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.older-post-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
}

.older-post-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
}

.older-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.older-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.older-post-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.older-post-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.older-post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.older-post-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.3s;
}

.older-post-link:hover {
    color: #5568d3;
}

/* ===================================
   全新优惠券页面样式 (deals.html)
   =================================== */

/* 主容器 */
.deals-main-wrapper {
    background: #f5f5f5;
    padding: 30px 0;
}

.deals-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* 左侧边栏 */
.deals-sidebar-left {
    background: white;
    border-radius: 8px;
    padding: 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.deals-brand-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.deals-brand-logo img {
    width: 100%;
    height: auto;
}

.deals-info-section {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.deals-section-heading {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.deals-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deals-quick-links li {
    margin-bottom: 10px;
}

.deals-link-item {
    display: block;
    padding: 8px 12px;
    color: #0066FF;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.3s;
}

.deals-link-item:hover {
    background: #f0f7ff;
}

/* 评分区域 */
.deals-rating-box {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.deals-star-rating {
    font-size: 24px;
    margin: 10px 0;
}

.deals-star {
    color: #ffc107;
    cursor: pointer;
}

.deals-rating-info {
    font-size: 12px;
    color: #666;
}

/* 编辑卡片 */
.deals-editor-card {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.deals-editor-avatar {
    margin-bottom: 15px;
}

.deals-editor-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.deals-editor-role {
    font-size: 13px;
    color: #0066FF;
    margin-bottom: 10px;
}

.deals-editor-bio {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.deals-help-link {
    display: block;
    color: #0066FF;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 0;
}

.deals-help-link:hover {
    text-decoration: underline;
}

/* 支付方式列表 */
.deals-payment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deals-payment-list li {
    padding: 6px 0;
    font-size: 13px;
    color: #666;
}

/* 优惠码表格 */
.deals-promo-table {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.deals-codes-table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.deals-codes-table th {
    background: #f8f9fa;
    padding: 8px 5px;
    text-align: left;
    font-weight: 600;
    font-size: 10px;
    color: #666;
}

.deals-codes-table td {
    padding: 8px 5px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

/* 商店网格 */
.deals-stores-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.deals-store-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f7ff;
    color: #0066FF;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.deals-store-badge:hover {
    background: #0066FF;
    color: white;
}

/* 主内容区域 */
.deals-content-main {
    background: white;
    border-radius: 8px;
    padding: 30px;
}

.deals-page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.deals-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.deals-main-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.deals-update-time {
    font-size: 13px;
    color: #999;
}

/* 顶部优惠 */
.deals-top-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: white;
}

.deals-top-offer-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.deals-top-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.deals-top-discount {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.deals-top-discount span {
    font-size: 14px;
    font-weight: 400;
}

.deals-top-text h3 {
    font-size: 18px;
    font-weight: 600;
}

.deals-copy-button {
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.deals-copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 筛选标签 */
.deals-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.deals-tab-button {
    padding: 10px 20px;
    background: #f8f9fa;
    border: none;
    border-radius: 25px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.deals-tab-button:hover {
    background: #e9ecef;
}

.deals-tab-button.active {
    background: #0066FF;
    color: white;
}

/* 优惠列表 */
.deals-offers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deals-offer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.deals-offer-item:hover {
    border-color: #0066FF;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.1);
}

.deals-offer-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.deals-offer-discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.deals-offer-discount.special {
    background: #000000;
}

.deals-discount-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.deals-discount-label {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

.deals-offer-details {
    flex: 1;
}

.deals-offer-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #fff3e0;
    color: #ff9800;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.deals-offer-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* 操作按钮 */
.deals-action-button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.deals-action-button.primary {
    background: #0066FF;
    color: white;
}

.deals-action-button.primary:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.deals-action-button.secondary {
    background: white;
    color: #0066FF;
    border: 2px solid #0066FF;
}

.deals-action-button.secondary:hover {
    background: #0066FF;
    color: white;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .deals-container {
        grid-template-columns: 1fr;
    }

    .deals-sidebar-left {
        position: static;
        max-height: none;
        margin-bottom: 20px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .deals-main-wrapper {
        padding: 15px 0;
    }

    .deals-content-main {
        padding: 20px;
    }

    .deals-main-title {
        font-size: 24px;
    }

    .deals-top-offer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .deals-top-offer-content {
        flex-direction: column;
    }

    .deals-copy-button {
        width: 100%;
    }

    .deals-offer-item {
        flex-direction: column;
        gap: 15px;
    }

    .deals-offer-left {
        flex-direction: column;
        width: 100%;
    }

    .deals-offer-discount {
        width: 100%;
    }

    .deals-action-button {
        width: 100%;
    }

    .deals-filter-tabs {
        flex-wrap: wrap;
    }
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .articles-layout {
        grid-template-columns: 1fr;
    }

    .articles-sidebar {
        position: static;
    }

    .popular-merchants {
        grid-template-columns: repeat(2, 1fr);
    }

    .older-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .articles-list-section {
        padding: 20px 0;
    }

    .article-item {
        flex-direction: column;
        padding: 15px;
    }

    .article-image {
        width: 100%;
        height: 200px;
    }

    .article-title {
        font-size: 16px;
    }

    .article-excerpt {
        -webkit-line-clamp: 2;
    }

    .popular-merchants {
        grid-template-columns: 1fr;
    }

    .sidebar-section {
        padding: 15px;
    }

    /* 分页响应式 */
    .articles-pagination {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 30px;
        padding-top: 20px;
    }

    .pagination-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    /* 隐藏部分页码在手机端 */
    .pagination-numbers button:nth-child(n+4):nth-last-child(n+3) {
        display: none;
    }

    /* Older Posts 响应式 */
    .older-posts-section {
        margin-top: 40px;
        padding-top: 30px;
    }

    .older-posts-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .older-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .older-post-card {
        flex-direction: column;
    }

    .older-post-image {
        width: 100%;
        height: 150px;
    }

    .older-post-title {
        font-size: 15px;
    }
}

/* 最新文章列表 */
.latest-news-section {
    margin-bottom: 30px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.news-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.news-item-image {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .news-item-image img {
    transform: scale(1.1);
}

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

.news-item-header {
    margin-bottom: 10px;
}

.news-item-category {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.news-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.read-more-btn {
    padding: 8px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: #5568d3;
    transform: translateX(5px);
}


/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .news-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .news-card-large {
        grid-column: span 2;
        grid-row: span 2;
    }

}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .news-page {
        background: #f5f5f5;
    }

    .featured-news-section {
        padding: 15px 0;
        margin-bottom: 15px;
        background: #f5f5f5;
    }

    .featured-news-section .container {
        padding: 0 12px;
    }

    /* 隐藏PC端网格 */
    .news-grid-container {
        display: none;
    }

    /* 显示移动端网格 */
    .mobile-news-section {
        display: block;
    }

}

/* 新闻卡片进入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-news-card,
.news-item {
    animation: fadeInUp 0.5s ease-out;
}

.featured-news-card:nth-child(1) {
    animation-delay: 0.1s;
}

.featured-news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.featured-news-card:nth-child(3) {
    animation-delay: 0.3s;
}

.news-item:nth-child(1) {
    animation-delay: 0.1s;
}

.news-item:nth-child(2) {
    animation-delay: 0.2s;
}

.news-item:nth-child(3) {
    animation-delay: 0.3s;
}

.news-item:nth-child(4) {
    animation-delay: 0.4s;
}

.news-item:nth-child(5) {
    animation-delay: 0.5s;
}
