.elementor-396 .elementor-element.elementor-element-8707a19{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-396 .elementor-element.elementor-element-8f941cc{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS *//* =========================================
   CryptoViewport Coin Index Styles (優化版)
   ========================================= */

.cv-coin-index-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #334155; /* 使用較柔和的深灰 */
}

/* --- Typography (標題與文字優化) --- */
.cv-coin-index-wrapper h2 {
    font-size: 1.75rem; /* 28px */
    font-weight: 800;
    color: #1e3a8a; /* 權威藍 */
    margin-top: 60px;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 5px solid #2563EB; /* 左側裝飾線 */
    line-height: 1.3;
}

.cv-coin-index-wrapper h3 {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
}

.cv-coin-index-wrapper p {
    font-size: 1rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 16px;
}

/* --- Header --- */
.cv-coin-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}
.cv-coin-header h1 {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 16px;
    font-weight: 800;
}
.cv-coin-intro {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
}

/* --- Marquee (跑馬燈 - 減速版) --- */
.cv-marquee-section {
    margin-bottom: 50px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.cv-marquee-row {
    display: flex;
    overflow: hidden;
    margin-bottom: 12px;
}
.cv-marquee-track {
    display: flex;
    gap: 12px;
    white-space: nowrap;
    /* 動畫減速：從 40s 改為 80s */
    animation: scroll 80s linear infinite;
}
.cv-marquee-row[style*="reverse"] .cv-marquee-track {
    animation-direction: reverse;
}

.cv-marquee-item {
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 99px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cv-marquee-item:hover {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
}
.cv-marquee-item .ticker { font-weight: 800; }

.cv-marquee-section:hover .cv-marquee-track { animation-play-state: paused; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Toolbar (工具列) --- */
.cv-toolbar-sticky {
    position: sticky;
    top: 20px;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}
.cv-toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center; /* 垂直置中 */
}
.cv-search-group {
    flex: 1;
    position: relative;
}
.cv-search-group input {
    width: 100%;
    padding: 10px 16px;
    padding-right: 40px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
}
.cv-search-group .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

/* 篩選下拉選單 - 字體調小 */
.cv-filter-group select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem; /* 字體縮小 */
    color: #475569;
}

/* A-Z Nav */
.cv-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}
.cv-az-nav a {
    font-size: 0.75rem; /* 字體微調 */
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.2s;
    font-weight: 600;
}
.cv-az-nav a:hover, .cv-az-nav a.active {
    background: #eff6ff;
    color: #2563EB;
}

/* --- Heat Grid (熱門榜 - 防跑版優化) --- */
.cv-heat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 60px;
}
.cv-heat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 130px; /* 稍微增加高度以容納長內容 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    overflow: hidden; /* 防止內容溢出卡片 */
}
.cv-heat-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe; /* 淺藍邊框 */
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

/* 排名數字 */
.cv-heat-card .rank {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 800;
    opacity: 0.5;
    z-index: 2;
}

/* 資訊容器：增加右側 padding 避免文字蓋到排名數字 */
.cv-heat-card .info {
    padding-right: 30px; 
    width: 100%;
    overflow: hidden;
}

/* 幣種代號 (Ticker) */
.cv-heat-card .ticker {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    /* 單行截斷，防止過長 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 幣種全名 (Name) - 優化長文字顯示 */
.cv-heat-card .name {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    /* 單行截斷，防止換行跑版 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

/* 文章數標籤 */
.cv-heat-card .count {
    background: #f0f9ff;
    color: #0284c7;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    align-self: flex-start;
    margin-top: auto; /* 推到底部 */
    white-space: nowrap; /* 防止標籤換行 */
}

/* --- Main Table (主列表) --- */
.cv-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
table#cvCoinTable {
    width: 100%;
    border-collapse: collapse;
}
#cvCoinTable th {
    background: #f8fafc;
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap; /* 防止表頭換行 */
}
#cvCoinTable td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
#cvCoinTable tr:last-child td { border-bottom: none; }
#cvCoinTable a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    display: block;
}
#cvCoinTable a:hover { color: #2563EB; }

.col-ticker a { 
    font-family: monospace; 
    color: #2563EB !important; 
    background: #eff6ff;
    display: inline-block !important;
    padding: 4px 8px;
    border-radius: 6px;
}
.badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}
.btn-view {
    background: #ffffff;
    color: #2563EB !important;
    border: 1px solid #2563EB;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap; /* 防止按鈕文字換行 */
}
.btn-view:hover {
    background: #2563EB;
    color: #fff !important;
}

/* --- FAQ --- */
.cv-faq-section {
    margin-top: 60px;
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.cv-faq-item h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 8px;
}
.cv-faq-item p {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* RWD - 手機版設定 */
@media (max-width: 768px) {
    .cv-toolbar { flex-direction: column; align-items: stretch; }
    .cv-heat-grid { grid-template-columns: 1fr 1fr; }
    /* 移除了隱藏欄位的設定，現在手機版會顯示所有欄位，若過寬可左右滑動 */
    .cv-coin-index-wrapper h2 { font-size: 1.5rem; }
    
    /* 調整下拉選單字體，解決按鈕過大但選項過小的問題 */
    .cv-filter-group select {
        font-size: 0.9rem; /* 縮小按鈕顯示文字，更精緻 */
        padding: 8px 12px;
    }
    
    /* 嘗試放大下拉後的選項文字 (部分瀏覽器支援) */
    .cv-filter-group select option {
        font-size: 1.1rem; 
    }
}/* End custom CSS */