:root {
    --main-color: #5D3FD3;
    --light-purple: #f0edff;
    --dark-purple: #4a2fb8;
    --gradient-primary: linear-gradient(135deg, #5D3FD3 0%, #8D71FF 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 防止整个页面布局抖动 */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* 强制显示滚动条，避免滚动条出现/消失导致布局变化 */
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    /* 防止布局抖动 */
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 顶部导航栏 */
.top-nav {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.2);
}

/* 主导航栏 */
.main-nav {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    /* 移除多余的底部 padding */
    position: relative;
}

.logo {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    opacity: 0.8;
    color: white;
}

/* 导航栏下拉菜单 */
.nav-dropdown {
    position: static;
    /* 更改为static，以便超级菜单可以相对于.nav-container定位 */
    display: inline-block;
}

/* 普通下拉菜单的父级容器保持相对定位 */
.nav-dropdown.nav-dropdown-regular {
    position: relative;
}

/* 超级菜单基础样式 */
.nav-dropdown-content.nav-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    width: 95vw;
    max-width: 1200px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
    margin-top: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    height: auto;
    max-height: 85vh;
}

/* 显示状态的超级菜单 */
.nav-dropdown-content.nav-mega-menu.show {
    display: flex !important;
}

.mega-menu-sidebar {
    width: 200px;
    background-color: #f5f7fa;
    border-right: 1px solid #e9ecef;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.mega-menu-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border-right: 2px solid transparent;
    text-decoration: none;
}

.mega-menu-category:hover {
    background-color: #e9ecef;
    color: var(--main-color);
    text-decoration: none;
}

.mega-menu-category.active {
    background-color: white;
    color: var(--main-color);
    font-weight: bold;
    border-right-color: var(--main-color);
}

.mega-menu-category .fa-chevron-right {
    font-size: 12px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.mega-menu-category:hover .fa-chevron-right,
.mega-menu-category.active .fa-chevron-right {
    opacity: 1;
    transform: translateX(0);
}

.mega-menu-content-wrapper {
    flex: 1;
    background-color: white;
    padding: 25px 35px;
    overflow-y: auto;
}

.mega-menu-pane {
    display: none;
}

.mega-menu-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mega-menu-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.header-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
    margin-right: 10px;
}

.header-tag {
    background-color: #f5f5f5;
    color: #555;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-tag:hover {
    background-color: var(--light-purple);
    color: var(--main-color);
    text-decoration: none;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 35px;
    align-items: start;
}

.mega-menu-content.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mega-menu-content.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.mega-menu-column .column-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    min-height: 22px;
}

.mega-menu-column .column-title:empty {
    border-bottom: 1px solid transparent;
    margin-bottom: 15px;
}

.mega-menu-column .column-link {
    display: block;
    color: #666;
    padding: 8px 0;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mega-menu-column .column-link:hover {
    color: var(--main-color);
    text-decoration: none;
    transform: translateX(5px);
}

/* 为超级菜单添加桥接区域和装饰性箭头 */
.nav-dropdown-content.nav-mega-menu::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.nav-dropdown-content.nav-mega-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background-color: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* 超级菜单显示动画 */
.nav-dropdown-content.nav-mega-menu.show {
    animation: megaMenuFadeIn 0.25s ease;
}

@keyframes megaMenuFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-link.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link.dropdown-trigger i.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

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

/* 搜索栏 */
.search-nav {
    padding: 15px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.search-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* 移除多余的底部 padding */
    display: flex;
    align-items: center;
    gap: 30px;
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 60px 12px 20px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    background-color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    border-color: var(--main-color);
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.15);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(93, 63, 211, 0.2);
}

.search-btn:hover {
    background-color: var(--dark-purple);
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 63, 211, 0.3);
}

/* 价格查询菜单 */
.price-query-menu {
    display: flex;
    gap: 12px;
    align-items: center;
}

.price-query-item {
    position: relative;
    color: var(--main-color);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.price-query-item:hover {
    background-color: var(--light-purple);
    border-color: var(--main-color);
    color: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 63, 211, 0.15);
}

.price-query-item i {
    margin-right: 5px;
}

/* 价格查询下拉菜单 */
.nav-dropdown-regular {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.nav-dropdown-regular:hover .nav-dropdown-content,
.nav-dropdown-content.show {
    display: block;
}

.nav-dropdown-item {
    color: #333;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

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

.nav-dropdown-item:hover {
    background-color: var(--light-purple);
    color: var(--main-color);
    text-decoration: none;
}

.nav-dropdown-item i {
    margin-right: 10px;
    width: 16px;
    color: var(--main-color);
    text-align: center;
}

.nav-dropdown-item .price-hint {
    float: right;
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

/* 下拉菜单箭头 */
.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

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

.hot-icon {
    position: absolute;
    top: -8px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    /* 禁用scale动画，改用颜色动画，避免影响布局 */
    animation: pulse-hot-color 1.5s infinite;
    z-index: 1;
}

@keyframes pulse-hot-color {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    50% {
        opacity: 0.9;
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0);
    }
}

.new-icon {
    position: absolute;
    top: -8px;
    right: -5px;
    background-color: #28a745;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    /* 禁用scale动画，改用颜色动画，避免影响布局 */
    animation: pulse-new-color 1.8s infinite;
    z-index: 1;
}

@keyframes pulse-new-color {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* 主要内容区域 */
.main-container {
    margin: 15px auto;
    /* 减少顶部间距 */
    padding: 0 20px 60px 20px;
    /* 合理的底部padding */
    /* 防止布局抖动 */
    min-height: 0;
    contain: layout style;
    /* 锁定宽度，防止变化 */
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    /* 确保内容可以正常显示 */
    flex: 1 0 auto;
    /* 允许主内容区域扩展以填充可用空间 */
}

/* 内容区域布局 */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    /* 防止布局抖动 */
    min-height: 0;
    contain: layout;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    /* 移除z-index，使用正常文档流 */
}

/* 交易区域和侧边栏布局 */
.trade-section {
    grid-column: 1;
    background: white;
    border-radius: 20px;
    padding: 35px 40px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    /* 锁定布局，防止动态变化 */
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    position: relative;
    /* 移除z-index，使用正常文档流 */
}

.sidebar {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* 锁定布局，防止动态变化 */
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    position: relative;
    /* 移除z-index，使用正常文档流 */
}

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

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.view-more {
    color: var(--main-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s ease;
}

.view-more:hover {
    opacity: 0.8;
    color: var(--main-color);
}

.trade-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.trade-tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.trade-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.3);
}

/* 大类筛选项样式 */
.category-filter {
    margin-bottom: 20px;
    padding: 0 5px;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 100px;
    justify-content: center;
}

.filter-tab:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.15);
}

.filter-tab.active {
    background: var(--gradient-primary);
    border-color: var(--main-color);
    color: white;
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.3);
    transform: translateY(-2px);
}

.filter-tab i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.filter-tab:hover i {
    transform: scale(1.1);
}

.filter-tab.active i {
    transform: scale(1.1);
}

.filter-tab span {
    font-weight: 500;
    white-space: nowrap;
}

.trade-item {
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    /* 预先设置padding，避免hover时变化 */
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* 只过渡需要的属性 */
    margin: 0;
    /* 固定margin，避免hover时变化 */
    position: relative;
}

.trade-item::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: transparent;
    border-radius: 12px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

.trade-item:hover::before {
    background-color: #fafafa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.trade-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.trade-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.trade-title {
    font-size: 15px;
    /* 字体缩小一点 */
    font-weight: 400;
    /* 取消加粗效果 */
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
    flex-grow: 1;
}

.trade-title:hover {
    color: var(--main-color);
}

.trade-info {
    font-size: 14px;
    /* 字体加大一点 */
    color: #666;
    line-height: 1.4;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    /* 添加加粗效果 */
}

.trade-quantity {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: right;
    min-width: 60px;
}

.trade-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color);
    text-align: right;
    min-width: 100px;
}

/* 侧边栏 */
.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-card-nopad {
    padding: 0;
    overflow: hidden;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* 轮播图样式 */
#hero-carousel {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    min-height: 0;
    /* 防止flex布局导致的高度问题 */
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

#hero-carousel .carousel-inner,
#hero-carousel .carousel-item {
    border-radius: 15px;
    height: 100%;
    min-height: 0;
    /* 防止flex布局导致的高度问题 */
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

#hero-carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    width: 100%;
    display: block;
    /* 防止图片底部空白 */
    min-height: 0;
    max-height: 100%;
}

#hero-carousel .carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    text-align: left;
    padding: 20px 20px 10px 20px;
    bottom: 0;
    left: 0;
    right: 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

#hero-carousel .carousel-caption h5 {
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin-bottom: 5px;
}

#hero-carousel .carousel-caption p {
    font-size: 0.8rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

#hero-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#hero-carousel .carousel-indicators .active {
    opacity: 1;
    background-color: var(--main-color);
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announcement-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.announcement-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.announcement-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.announcement-link:hover {
    color: var(--main-color);
}

/* 底部页脚 */
.footer {
    background-color: #2c2c2c;
    color: #ccc;
    padding: 40px 0;
    width: 100%;
    margin: 0;
    clear: both;
    /* 清除浮动 */
    position: relative;
    min-height: 200px;
    display: block;
    box-sizing: border-box;
    flex-shrink: 0;
    /* 防止被 flexbox 压缩 */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* 移除底部padding，页脚不需要额外的底部padding */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
    justify-items: center;
    text-align: center;
}

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        /* 减少移动距离，避免重叠 */
    }

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

.fade-in {
    animation: fadeInUp 0.6s ease;
    /* 确保动画不影响布局 */
    will-change: opacity, transform;
    /* 动画结束后重置 */
    animation-fill-mode: both;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 页面底部左右布局区域 */
.bottom-dual-section {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 40px auto;
    /* 使用合理的间距 */
    padding: 0 20px;
    position: relative;
    flex-shrink: 0;
    /* 确保这个区域不会被压缩 */
}

.bottom-left-section {
    flex: 2;
    min-width: 0;
}

.bottom-right-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .trade-section {
        grid-column: 1;
        padding: 25px 20px;
    }

    .sidebar {
        grid-column: 1;
    }

    .tuangou-section-full .tuangou-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dual-section-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 底部左右布局响应式 */
    .bottom-dual-section {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .bottom-right-section {
        min-width: auto;
    }

    /* 页脚响应式 */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }

    .search-nav-container {
        padding: 0 15px;
    }

    .search-container {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .price-query-menu {
        width: 280px;
        right: 15px;
    }

    .price-query-item {
        padding: 8px 12px;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .filter-tab i {
        font-size: 14px;
    }

    .view-more-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero-section {
        padding: 40px 20px;
    }

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

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

    /* 页脚移动端响应式 */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: left;
    }

    .footer-container {
        padding: 0 15px;
    }

    .category-tabs {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
    }

    .category-tab {
        flex: 1;
        text-align: center;
        padding: 6px 10px;
        font-size: 12px;
    }

    .category-tab i {
        font-size: 11px;
    }

    .trade-tabs {
        gap: 6px;
    }

    .trade-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

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

    .trade-quantity,
    .trade-price {
        text-align: left;
        min-width: auto;
    }

    .sidebar {
        gap: 15px;
    }

    .sidebar-card {
        padding: 15px;
    }

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

    .tuangou-section-full {
        padding: 20px;
    }

    .tuangou-tabs {
        gap: 6px;
    }

    .tuangou-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

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

    .dual-section-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-section-full,
    .chart-section-full {
        padding: 20px;
    }

    .appraisal-case-section {
        padding: 20px;
    }

    .appraisal-case-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .floating-actions {
        right: 15px;
        gap: 12px;
    }

    .floating-action-btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .floating-action-btn::before {
        font-size: 12px;
        padding: 6px 10px;
    }

    .tuangou-item {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        padding: 12px 0;
    }

    .year-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-details {
        font-size: 11px;
    }

    .tuangou-price {
        font-size: 14px;
    }
}

/* 导航栏登录/注册组合样式 */
.nav-auth-group {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    margin-left: 1rem;
    overflow: hidden;
    /* 保证内部元素的hover效果不会溢出圆角 */
}

.nav-auth-group .nav-link {
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: 0;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-auth-group .nav-link:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-auth-group .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 分类筛选标签按钮 */
.category-tabs {
    display: flex;
    gap: 8px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #e9ecef;
    border-radius: 18px;
    background: white;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.category-tab:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 63, 211, 0.15);
}

.category-tab.active {
    background: var(--gradient-primary);
    border-color: var(--main-color);
    color: white;
    box-shadow: 0 4px 12px rgba(93, 63, 211, 0.3);
    transform: translateY(-1px);
}

.category-tab i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-tab:hover i {
    transform: scale(1.1);
}

.category-tab.active i {
    transform: scale(1.1);
}

.category-tab span {
    font-weight: 500;
    white-space: nowrap;
}

/* 交易列表底部 */
.trade-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 63, 211, 0.4);
    color: white;
    text-decoration: none;
}

.view-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(3px);
}

/* 送评团购区域 - 全宽显示 */
.tuangou-section-full {
    background: white;
    border-radius: 20px;
    padding: 35px 40px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 80px;
    /* 增加底部间距 */
    /* 锁定布局，防止动态变化 */
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
    /* 移除z-index，使用正常文档流 */
}

.tuangou-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tuangou-tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.tuangou-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--main-color);
}

.tuangou-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    padding: 20px 15px;
    /* 预先设置padding */
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* 只过渡需要的属性 */
    align-items: center;
    margin: 0;
    /* 固定margin */
    position: relative;
}

.tuangou-item::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: transparent;
    border-radius: 12px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

.tuangou-item:hover::before {
    background-color: #fafafa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tuangou-section-full .tuangou-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 固定3列，避免auto-fit导致布局变化 */
    gap: 25px;
}

/* 响应式：中等屏幕显示2列 */
@media (max-width: 1200px) {
    .tuangou-section-full .tuangou-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tuangou-section-full .tuangou-item {
    background: #fafafa;
    border-radius: 15px;
    padding: 25px;
    border-bottom: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    /* 只过渡需要的属性 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tuangou-section-full .tuangou-item:hover {
    background: white;
    transform: translateY(-3px);
    /* 只使用transform，不影响布局 */
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.15);
    /* 保持margin和padding不变 */
}

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

.year-badge {
    font-weight: bold;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    color: white;
    display: inline-block;
    margin-bottom: 4px;
}

.year-badge.type-dragon {
    background-color: #dc3545;
}

.year-badge.type-snake {
    background-color: #28a745;
}

.year-badge.type-tiger {
    background-color: #fd7e14;
}

.year-badge.type-panda {
    background-color: #6f42c1;
}

.product-code {
    color: #666;
    font-size: 11px;
    font-weight: 500;
}

.tuangou-content {
    flex: 1;
}

.product-name {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.product-name:hover {
    color: var(--main-color);
}

.product-details {
    color: #666;
    font-size: 12px;
    line-height: 1.3;
}

.countdown {
    color: #dc3545;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background-color: #fff5f5;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #fecaca;
    font-size: 11px;
    display: inline-block;
    min-width: 70px;
    /* 固定最小宽度，防止文本变化导致布局抖动 */
    text-align: center;
    box-sizing: border-box;
}

.countdown.urgent {
    /* 禁用scale动画，改用颜色动画，避免影响布局 */
    animation: pulse-urgent-color 1.5s infinite;
    color: #b91c1c;
    background-color: #fef2f2;
    border-color: #fca5a5;
}

@keyframes pulse-urgent-color {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.4);
    }

    50% {
        opacity: 0.9;
        box-shadow: 0 0 0 4px rgba(185, 28, 28, 0);
    }
}

.grade-badge {
    background-color: var(--light-purple);
    color: var(--main-color);
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 4px;
}

.seller-info {
    font-size: 10px;
    color: #666;
}

.seller-link {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
}

.seller-link:hover {
    color: var(--dark-purple);
}

.tuangou-price {
    color: var(--main-color);
    font-weight: bold;
    font-size: 15px;
    text-align: right;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f5f5f5;
}

.filter-btn.active {
    color: var(--main-color);
    border-color: var(--main-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 120px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

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

.dropdown-item:hover {
    background-color: var(--light-purple);
    color: var(--main-color);
}

/* 双栏区域 */
.dual-section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 80px;
    /* 增加底部间距 */
    /* 锁定布局，防止动态变化 */
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    position: relative;
    /* 移除z-index，使用正常文档流 */
}

.news-section-full,
.chart-section-full {
    background: white;
    border-radius: 20px;
    padding: 35px 40px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    margin-top: 0;
    /* 锁定布局，防止动态变化 */
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    position: relative;
}

/* 防止图表容器高度抖动 */
#price-trend-chart {
    width: 100% !important;
    height: 265px !important;
    min-height: 265px !important;
    max-height: 265px !important;
    overflow: hidden;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.news-item:hover {
    background-color: #fafafa;
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: 8px;
}

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

.news-date {
    background: var(--light-purple);
    color: var(--main-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.news-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-title:hover {
    color: var(--main-color);
}

/* 最新鉴定案例 */
.appraisal-case-section {
    background: white;
    border-radius: 20px;
    padding: 35px 40px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    margin-bottom: 100px;
    /* 增加底部间距 */
    /* 锁定布局，防止动态变化 */
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
    /* 移除z-index，使用正常文档流 */
}

.appraisal-case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
    /* 锁定布局，防止动态变化 */
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.appraisal-case-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-decoration: none;
}

.appraisal-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(93, 63, 211, 0.15);
    border-color: var(--main-color);
}

.appraisal-case-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.appraisal-case-content {
    padding: 20px;
}

.appraisal-case-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appraisal-case-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appraisal-case-expert {
    font-size: 13px;
    color: #666;
}

.appraisal-case-result {
    background: var(--light-purple);
    color: var(--main-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

/* 右侧浮动操作栏 */
.floating-actions {
    position: fixed;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-action-btn {
    position: relative;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(93, 63, 211, 0.25);
    transition: all 0.3s ease;
    font-size: 18px;
}

.floating-action-btn:hover {
    transform: scale(1.1) translateX(-5px);
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.35);
    color: white;
    text-decoration: none;
}

.floating-action-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: 120%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.floating-action-btn:hover::before {
    opacity: 1;
    visibility: visible;
    right: 130%;
}

.floating-action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 120%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-action-btn:hover::after {
    opacity: 1;
    visibility: visible;
    right: calc(130% - 4px);
}

/* 浮动按钮动画效果 */
.floating-action-btn:nth-child(1) {
    animation: floatBounce1 3s infinite ease-in-out;
}

.floating-action-btn:nth-child(2) {
    animation: floatBounce2 3s infinite ease-in-out 0.5s;
}

.floating-action-btn:nth-child(3) {
    animation: floatBounce3 3s infinite ease-in-out 1s;
}

@keyframes floatBounce1 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes floatBounce2 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes floatBounce3 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* pulse动画已改为pulse-urgent-color，不再使用scale */

/* 推荐交易版块样式 */
.recommended-trade-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommended-trade-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recommended-trade-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.1);
    transform: translateY(-2px);
}

.trade-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.trade-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trade-info .trade-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0;
}

.trade-info .trade-price {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
}

.trade-info .trade-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

/* 推荐交易状态样式 - 通过JavaScript动态添加类名 */
.trade-status.premium {
    background: #e8f5e8;
    color: #388e3c;
}

.trade-status.hot {
    background: #fff3e0;
    color: #f57c00;
}

.trade-status.rare {
    background: #e3f2fd;
    color: #1976d2;
}

/* 收藏圈版块样式 - 左右布局 */
.collection-circle-section-dual {
    background: white;
    border-radius: 20px;
    padding: 35px 40px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    display: flex;
    gap: 40px;
}

.collection-circle-left {
    flex: 2;
}

.collection-circle-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.collection-circle-tabs {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.circle-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.circle-tab:hover {
    background: var(--light-purple);
    color: var(--main-color);
    border-color: var(--main-color);
}

.circle-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--main-color);
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.25);
}

.circle-tab i {
    font-size: 16px;
}

.collection-circle-content {
    position: relative;
}

.circle-content-panel {
    display: none;
}

.circle-content-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.circle-moment-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.circle-moment-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.circle-moment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.circle-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.circle-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 18px;
}

.circle-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.circle-username {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.circle-post-time {
    font-size: 12px;
    color: #999;
}

.circle-post-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.circle-post-badge.news {
    background: #e3f2fd;
    color: #1976d2;
}

.circle-post-badge.trade {
    background: #e8f5e8;
    color: #388e3c;
}

.circle-post-badge.share {
    background: #fff3e0;
    color: #f57c00;
}

.circle-moment-content {
    margin-bottom: 15px;
}

.circle-content-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
}

.circle-content-image {
    margin-top: 12px;
}

.circle-content-image img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.circle-trade-info {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 12px 0;
    border: 1px solid #e9ecef;
}

.circle-trade-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.circle-trade-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.circle-moment-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.circle-action-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.circle-action-item:hover {
    color: var(--main-color);
}

.circle-action-item.contact {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.circle-action-item.contact:hover {
    background: var(--dark-purple);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {

    /* 推荐交易响应式 */
    .recommended-trade-item {
        padding: 10px;
    }

    .trade-image {
        width: 50px;
        height: 50px;
    }

    .trade-info .trade-title {
        font-size: 13px;
    }

    .trade-info .trade-price {
        font-size: 14px;
    }

    /* 收藏圈左右布局响应式 */
    .collection-circle-section-dual {
        flex-direction: column;
        padding: 20px;
        margin-top: 20px;
        gap: 20px;
    }

    .collection-circle-left,
    .collection-circle-right {
        flex: none;
    }

    .collection-circle-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .circle-tab {
        padding: 10px 15px;
        font-size: 13px;
    }

    .circle-moment-item {
        padding: 15px;
    }

    .circle-moment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .circle-content-image img {
        max-width: 100%;
        height: 150px;
    }

    .circle-moment-actions {
        flex-wrap: wrap;
        gap: 15px;
    }
}