/* 基础样式和变量 */
:root {
    --primary-color: #2962ff;
    --primary-dark: #0039cb;
    --secondary-color: #00c853;
    --secondary-dark: #009624;
    --accent-color: #ff6d00;
    --accent-dark: #c43c00;
    --background-dark: #121212;
    --background-darker: #0a0a0a;
    --background-light: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #9e9e9e;
    --positive: #00c853;
    --negative: #ff3d00;
    --neutral: #ffab00;
    --border-color: #333333;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    background-color: var(--background-darker);
    padding: 10px 0 0 0;
    border-bottom: 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 20px;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav {
    display: flex;
    align-items: center;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin: 0 15px;
}

.nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.nav ul li a:hover {
    color: var(--primary-color);
}

.nav ul li a.active {
    color: var(--primary-color);
}

.nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.alert-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-right: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.alert-btn:hover {
    color: var(--accent-color);
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--background-light);
    border-radius: 20px;
    padding: 5px 15px;
    margin-right: 20px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 5px;
    width: 150px;
    outline: none;
}

.search-box button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.language-select {
    background-color: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
}

/* 主要内容区域 */
.main-content {
    padding: 15px 0;
    margin-top: 0;
}

section {
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* 行情总览 */
.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: bold;
}

.positive {
    color: var(--positive);
}

.negative {
    color: var(--negative);
}

.neutral {
    color: var(--neutral);
}

/* 广告横幅 */
.ad-banner {
    padding: 20px 0;
    margin: 30px 0;
}

.ad-banner .container {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-radius: 8px;
    padding: 20px;
}

.ad-banner.secondary .container {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
}

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

.ad-content p {
    font-size: 1.2rem;
    font-weight: bold;
}

.ad-btn {
    background-color: white;
    color: var(--primary-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.ad-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.download-btns {
    display: flex;
    gap: 15px;
}

.app-store-btn, .play-store-btn {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.app-store-btn {
    background-color: #000;
    color: white;
}

.play-store-btn {
    background-color: white;
    color: #000;
}

.app-store-btn i, .play-store-btn i {
    margin-right: 8px;
}

.app-store-btn:hover, .play-store-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* 图表区域 */
.chart-section {
    margin-bottom: 15px;
}

.chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.chart-box {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.custom-chart-placeholder {
    margin-bottom: 15px;
}

.chart-placeholder-box {
    width: 100%;
    height: 320px;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* 行情表格 */
.market-table {
    margin-bottom: 15px;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* 为iOS设备提供平滑滚动 */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    font-size: 0.85rem;
}

/**滚动条样式*/
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.table-trade {
    border-collapse: collapse;
    background-color: var(--background-light);
    width: 100%;
    min-width: 800px; /* 设置最小宽度，确保在小屏幕上出现滚动条 */
}

.table-trade th,
.table-trade td {
    padding: 8px 12px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.table-trade th {
    background-color: var(--background-darker);
    font-weight: bold;
    color: var(--text-primary);
    white-space: nowrap;
}

.table-trade tr:hover {
    background-color: rgba(41, 98, 255, 0.1);
}

/* 资讯区域 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background-color: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.news-card h3 {
    padding: 0 15px;
    margin-top: 15px;
}

.news-card p {
    padding: 0 15px;
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.news-time {
    display: block;
    padding: 0 15px 15px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* 聊天窗口 */
.chat-window {
    background-color: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.chat-messages {
    height: 300px;
    padding: 10px;
    overflow-y: auto;
    background-color: var(--background-darker);
}

.chat-input {
    display: flex;
    padding: 15px;
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--background-darker);
    color: var(--text-primary);
    outline: none;
}

.chat-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-input button:hover {
    background-color: var(--primary-dark);
}

/* 页脚 */
.footer {
    background-color: var(--background-darker);
    padding: 20px 0 20px;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.link-group h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.link-group ul li a:hover {
    color: var(--primary-color);
}

.footer-social h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 0;
    border-top: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.ticker-bar {
   /** position: fixed;*/
    left: 0;
    right: 0;
  /**  z-index: 99;*/
    width: 100%;
    background-color: var(--background-darker);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.ticker-bar .container {
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    gap: 30px;
}

.ticker-item {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
}

.ticker-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.ticker-price {
    color: var(--text-primary);
    font-weight: 500;
}

.ticker-change {
    font-weight: 500;
}

.ticker-change.positive {
    color: var(--positive);
}

.ticker-change.negative {
    color: var(--negative);
}

.top-ad {
    margin-bottom: 10px;
}

.top-ad img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.double-ad {
    margin-bottom: 15px;
}

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

.ad-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.chat-section {
    padding: 20px 0;
}

.chat-iframe-container {
    width: 100%;
    height: 600px;
    background: var(--bg-darker);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* 搜索币种 */
.market-search {
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input-wrapper {
    position: relative;
    width:100%;
}

.market-search-input {
    width: 100%;
    padding: 10px 40px 10px 20px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size:0.95rem;
}

.market-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(41, 98, 255, 0.2);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.market-tabs {
    width: 100%;
    margin-top: 10px;
}

.tab-header {
    display: flex;
    justify-content: left;
    margin-bottom: 5px;
}

.tab-item {
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 0;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.tab-item:hover {
    color: var(--text-primary);
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-line {
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
}

/*收藏样式*/
.favorite-icon {
    color: #ccc;
    cursor: pointer;
    margin-right: 5px;
    transition: color 0.3s ease;
}

.favorite-icon.active {
    color: #ffd700;
}

.coin-name {
    display: inline-block;
    vertical-align: middle;
}

/* 列筛选样式 */
.column-filter {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    margin-bottom: 5px;
}

.filter-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.filter-btn {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 10px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.filter-btn i {
    margin-right: 4px;
    font-size: 0.95rem;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    width: 250px;
    display: none;
    z-index: 1000;
    font-size:0.85rem;
}

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

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);

}

.filter-header span {
    color: var(--text-primary);
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--text-primary);
}

.filter-options {
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-option:hover {
    background-color: var(--background-darker);
}

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

/* 自定义复选框样式 */
.filter-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-darker);
    position: relative;
    cursor: pointer;
    margin-right: 8px;
}

.filter-option input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/** 某个币种单独展示的行情，放大区域查看 */
.custom-card {
    margin: 0 auto;
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.32);
    padding: 12px;
    position: relative;
    border: 1px solid var(--border-color);
}

.custom-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}
.custom-card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-card-header-select  {
    font-size: 0.95rem;
    font-weight: normal;
    background-color: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}


.custom-card-header-right {
    font-size: 0.95rem;
    color: var(--text-primary);
}


.custom-card-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}
.custom-card-exchange {
    text-align: center;
    min-width: 120px;
    font-size: 0.95rem;
}
.custom-card-exchange img {
    height: 1.3rem;
    vertical-align: middle;
}

.exchange-unit {
    font-size: 0.7rem;
}

.custom-card-divider {
    font-size: 2rem;
}
.custom-card-premium {
    text-align: left;
    min-width: 120px;
    font-size: 0.95rem;
}

/********************************轮播图相关样式 begin*/
.swiper {
    width: 100%;
    height: 250px;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 8px;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
  /**  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);*/
    color: var(--text-primary);
}

.slide-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.slide-description {
    font-size: 16px;
    line-height: 1.4;
    opacity: 0.9;
}

.slide-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ffffff;
    color: #000000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 轮播图指示器样式 */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #2962ff;
}

/* 轮播图导航按钮样式 */
.swiper-button-next, .swiper-button-prev {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/********************************轮播图相关样式 end*/

/*********************************通知栏 begin***************/
.notice {
    padding: 0;
    margin-bottom: 15px;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: #1e1e1e;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.notice-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.notice-text {
    color: var(--text-primary);
    font-size: 0.9rem;
}
/**************************************通知栏end***************/


/**定制弹窗 begin*/
.customize-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
}
.customize-modal-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
}
.customize-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-light);
    border:1px solid var(--border-color);
    border-radius: 12px;
    min-width: 400px;
    padding: 10px 24px 24px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
.customize-modal-title {
    font-weight: normal;
    margin-bottom: 12px;
    color:var(--text-primary);
    font-size: 0.95rem;
}
.customize-modal-charts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.chart-btn {
    border: 1px solid var(--text-primary);
    background: var(--background-light);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn.selected {
    color: var(--primary-color);
    background: var(--background-light);
    border-color: var(--primary-color);
    position: relative;
}

.chart-btn.selected .close-x {
    margin-left: 4px;
    cursor: pointer;
    opacity: 0.8;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

.chart-btn.selected .close-x:hover {
    opacity: 1;
}

.chart-btn.selected .close-x i {
    font-size: 0.8rem;
}

.customize-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.apply-btn {
    background: var(--primary-color);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    padding: 8px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.customize-modal-header-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 18px;
    min-height: 40px;
    border-bottom: 1px solid var(--border-color);
}

.customize-modal-close-x {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}


.customize-modal-close-x img:hover {
    filter: invert(32%) sepia(98%) saturate(749%) hue-rotate(202deg) brightness(97%) contrast(101%);
}

.customize-modal-header {
    flex: 1;
    text-align: left;
    font-size: 0.95rem;
    font-weight: normal;
    color:var(--text-primary);
}

/**定制弹窗 end*/

/**错误提示 begin*/
.toast {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: red;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    text-align: center;
    min-width: 200px;
}

.toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
/**错误提示 end*/

.sort-arrows {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
}
.sort-arrow {
    font-family: Arial,sans-serif;
    font-size: 9px;
    color: #888;
    margin: 0;
    line-height: 1;
    height:9px;
    padding: 0;
    transition: color 0.2s;
}
.sort-arrow.active path {
    fill: #2962ff;
    transition: fill 0.2s; /* 添加过渡动画 */
}


/* 新闻begin*/

.news-section {
    margin-bottom: 15px;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.news-item {
    display: flex;
    align-items: flex-start;
    background:var(--background-light);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 10px;
}
.news-img {
    width: 100px;
    height: 100px; /* 固定高度 */
    object-fit: cover; /* 保持图片比例，裁剪多余部分 */
    border-radius: 6px;
    margin-right: 10px;
    flex-shrink: 0;  /*防止图片被压缩*/
}
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100px; /* 与图片高度相同 */
    overflow: hidden; /* 隐藏超出部分 */
}
.news-title {
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    white-space: nowrap; /* 防止标题换行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 超出显示省略号 */
}
.news-summary {
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size:0.85rem;
}
.news-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: auto; /* 关键：自动填充剩余空间，让日期固定在底部 */

}

/* 新闻end*/


/** 响应式设计 放在最后 begin */
@media (max-width: 768px) {
    .logo{
        margin-right: 0;
    }

    .logoText{
        display: none;
    }

    .header .container {
        flex-wrap: nowrap;
    }

    .header{
        padding:0;
    }


    .nav {
        margin: 15px 0;
    }

    .chart-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .nav ul {
        flex-wrap: wrap;
    }

    .nav ul li {
        margin: 5px 10px;
    }

    .market-stats {
        grid-template-columns: 1fr;
    }

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

    .download-btns {
        justify-content: center;
    }

    .ticker-content {
        flex-wrap: wrap;
        gap: 6px 16px !important;
    }

    .ticker-item {
        margin-bottom: 2px;
    }

    .search-box input {
        width: 120px;
    }


    /**行情放大区域*/
    .custom-card-content {
        gap: 2px;
    }

    .custom-card-exchange,
    .custom-card-premium {
        min-width: 100px;
        font-size: 0.8rem;
        flex: 1;
    }

    .custom-card-divider {
        font-size: 1.5rem;
    }

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

    .custom-card-header-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.85rem;
    }
    .custom-card-header-select{
        font-size: 0.85rem;
    }

    .swiper-button-next, .swiper-button-prev {
        display: none;
    }

    .swiper{
        height:220px;
    }

    .tab-item{
        min-width:80px;
    }

    .news-title{
        white-space: normal;
    }

    .news-summary{
        display: none;
    }

}

/** 响应式设计 放在最后 end */


