.coin-converter-page { padding-top: 20px; background: #f8f9fa; padding-bottom: 60px; }
.coin-converter-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.cc-hero { text-align: center; padding: 25px 0 25px; }
.cc-hero h1 { font-size: 36px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; }
.cc-hero p { font-size: 16px; color: #666; margin: 0; }

.cc-converter-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); margin-bottom: 30px; overflow: visible; }
.cc-converter-row { display: flex; align-items: center; gap: 16px; }
.cc-converter-box { flex: 1; background: #f1f3f5; border-radius: 16px; padding: 16px 20px; }
.cc-converter-label { font-size: 12px; color: #888; margin-bottom: 8px; }
.cc-converter-input-row { display: flex; align-items: center; gap: 10px; }

/* 自定义下拉选择器 */
.cc-select { position: relative; min-width: 140px; }
.cc-select-trigger { display: flex; align-items: center; gap: 8px; background: #e9ecef; padding: 6px 14px; border-radius: 20px; cursor: pointer; font-weight: 600; color: #333; border: 2px solid transparent; outline: none; font-size: 14px; transition: all .15s; user-select: none; min-width: 130px; }
.cc-select-trigger:hover { background: #dde1e5; }
.cc-select.active .cc-select-trigger { background: #fff; border-color: #1a8cd9; }
.cc-select-trigger img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.cc-select-trigger .fiat-flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; display: block; }
.cc-select-trigger .cc-select-arrow { margin-left: auto; font-size: 10px; color: #888; transition: transform .15s; }
.cc-select.active .cc-select-arrow { transform: rotate(180deg); }

.cc-select-dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 100; overflow: hidden; max-height: 360px; }
.cc-select.active .cc-select-dropdown { display: flex; flex-direction: column; }

.cc-select-search { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; background: #fff; }
.cc-select-search input { width: 100%; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 13px; outline: none; box-sizing: border-box; }
.cc-select-search input:focus { border-color: #1a8cd9; }

.cc-select-list { overflow-y: auto; flex: 1; }
.cc-select-group { padding: 4px 0; }
.cc-select-group-title { padding: 8px 14px 4px; font-size: 11px; color: #999; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.cc-select-option { display: flex; align-items: center; gap: 8px; padding: 9px 14px; cursor: pointer; font-size: 14px; color: #333; transition: background .1s; }
.cc-select-option:hover { background: #f5f7fa; }
.cc-select-option.selected { background: #e8f4fd; color: #1a8cd9; font-weight: 600; }
.cc-select-option img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.cc-select-option .fiat-flag { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: block; }
.cc-select-option .cc-option-name { flex: 1; }
.cc-select-option .cc-option-name small { color: #999; font-weight: normal; margin-left: 4px; font-size: 12px; }
.cc-select-empty { padding: 20px; text-align: center; color: #999; font-size: 13px; }

.cc-amount-input { flex: 1; background: transparent; border: none; font-size: 22px; font-weight: 700; color: #1a1a1a; text-align: right; outline: none; width: 100%; }
.cc-swap-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e0e0e0; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #666; transition: all .2s; box-shadow: 0 2px 6px rgba(0,0,0,0.06); flex-shrink: 0; }
.cc-swap-btn:hover { background: #f5f5f5; border-color: #1a8cd9; color: #1a8cd9; transform: rotate(180deg); }
.cc-swap-btn:active { transform: rotate(180deg) scale(0.95); }
.cc-rate-tip { text-align: center; font-size: 12px; color: #999; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; overflow: visible; }
.cc-info-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; background: #e5e5e5; color: #888; font-size: 10px; font-weight: 700; cursor: help; transition: all .2s; flex-shrink: 0; overflow: visible; }
.cc-info-icon:hover { background: #1890ff; color: #fff; }
.cc-info-icon::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #262626; color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 6px; white-space: nowrap; opacity: 0; visibility: hidden; transition: all .2s; pointer-events: none; z-index: 99999; min-width: 180px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.2); font-weight: 400; }
.cc-info-icon:hover::after { opacity: 1; visibility: visible; }
.cc-convert-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 140px; margin: 20px auto 0; background: #1a1a1a; color: #fff; border: none; border-radius: 24px; padding: 12px 0; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .3s ease; text-align: center; text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.cc-convert-btn:hover { transform: translateY(-2px); background: #333; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); color: #fff; text-decoration: none; }
.cc-convert-btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.cc-convert-btn svg { width: 16px; height: 16px; }

.cc-section { margin-bottom: 40px; }
.cc-section-title { font-size: 24px; font-weight: 700; color: #1a1a1a; margin-bottom: 24px; }
.cc-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cc-feature-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.cc-feature-card h3 { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.cc-feature-card p { font-size: 13px; color: #666; line-height: 1.7; margin: 0; }

.cc-hot-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.cc-hot-tag { background: #fff; border: 1px solid #e8e8e8; border-radius: 24px; padding: 10px 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #333; text-decoration: none; transition: all .2s; }
.cc-hot-tag:hover { border-color: #1a8cd9; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.cc-hot-tag img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.cc-hot-tag span { font-weight: 600; }
.cc-hot-tag strong { color: #1a1a1a; margin-left: 4px; }

.cc-table-wrap { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); overflow-x: auto; }
.cc-table { width: 100%; border-collapse: collapse; }
.cc-table th { text-align: left; padding: 14px 12px; font-size: 14px; color: #1a1a1a; font-weight: 600; border-bottom: 1px solid #eee; }
.cc-table td { padding: 14px 12px; font-size: 14px; color: #333; border-bottom: 1px solid #f5f5f5; }
.cc-table tr:hover td { background: #fafafa; }
.cc-table .coin-name { color: #666; font-size: 12px; margin-left: 6px; }
.cc-table-link { color: #333; text-decoration: none; display: block; }
.cc-table-link:hover { color: #0B2A5B; }

.cc-faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cc-faq-item { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); cursor: pointer; transition: box-shadow .2s, border-color .2s; border: 1px solid transparent; }
.cc-faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: #e8edf5; }
.cc-faq-q { font-size: 15px; font-weight: 600; color: #1a1a1a; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cc-faq-q::after {
    content: '';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #f5f7fa;
    border: 1px solid #e4e8ef;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.cc-faq-item:hover .cc-faq-q::after {
    background-color: #4a7dff;
    border-color: #4a7dff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    transform: scale(1.08);
}
.cc-faq-a { font-size: 13px; color: #666; line-height: 1.7; margin-top: 12px; display: none; padding-top: 14px; border-top: 1px solid #f0f2f5; }
.cc-faq-item.active .cc-faq-a { display: block; }
.cc-faq-item.active .cc-faq-q::after {
    background-color: #4a7dff;
    border-color: #4a7dff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .coin-converter-container { padding: 0 12px; }
    .cc-hero { padding: 20px 0; }
    .cc-hero h1 { font-size: 26px; }
    .cc-hero p { font-size: 14px; }
    .cc-converter-card { padding: 16px; border-radius: 12px; }
    .cc-converter-row { flex-direction: column; gap: 12px; }
    .cc-swap-btn { transform: rotate(90deg); margin: 4px 0; }
    .cc-swap-btn:hover { transform: rotate(270deg); }
    .cc-amount-input { font-size: 20px; }
    .cc-converter-box { padding: 14px 16px; border-radius: 12px; }
    .cc-convert-btn { width: 100%; height: 44px; font-size: 14px; margin-top: 16px; border-radius: 22px; }
    .cc-features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cc-feature-card { padding: 16px; }
    .cc-feature-card h3 { font-size: 14px; }
    .cc-feature-card p { font-size: 12px; }
    .cc-section { margin-bottom: 28px; }
    .cc-section-title { font-size: 18px; margin-bottom: 16px; }
    .cc-faq-list { grid-template-columns: 1fr; gap: 12px; }
    .cc-hot-tags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cc-hot-tag { width: 100%; justify-content: flex-start; padding: 10px 12px; font-size: 12px; border-radius: 10px; box-sizing: border-box; }
    .cc-hot-tag img { width: 18px; height: 18px; }
    .cc-hot-tag strong { margin-left: auto; }
    .cc-rate-tip { font-size: 11px; }
    .cc-table-wrap { padding: 12px; }
    .cc-table th, .cc-table td { padding: 10px 8px; font-size: 12px; }
}
@media (max-width: 480px) {
    .cc-hero h1 { font-size: 22px; }
    .cc-select-trigger { min-width: 100px; padding: 5px 10px; font-size: 13px; }
    .cc-amount-input { font-size: 18px; }
}

/* 币种图标降级样式 */
.coin-icon-fallback {
    width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}
.coin-icon-fallback-sm {
    width: 20px; height: 20px; font-size: 10px;
}

/* ===== 文章内嵌换算器：扁平紧凑版 ===== */
.article-coin-converter .cc-converter-card { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.article-coin-converter .cc-converter-box { padding: 8px 14px; border-radius: 12px; }
.article-coin-converter .cc-converter-label { margin-bottom: 3px; }
.article-coin-converter .cc-amount-input { font-size: 18px; }
.article-coin-converter .cc-select-trigger { padding: 4px 12px; min-width: 110px; }
.article-coin-converter .cc-rate-tip { margin-top: 8px; }
.article-coin-converter .cc-convert-btn { margin-top: 10px; padding: 8px 0; }

/* ===== 文章页币种模块：热门 CNY 换币（与 coin_converter_pair 页样式一致） ===== */
.coin-hot-cny-block { margin-bottom: 30px; }
.coin-hot-cny-block .ccp-pair-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.coin-hot-cny-block .ccp-pair-item { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e8eaed; border-radius: 8px; padding: 12px 14px; text-decoration: none; transition: all .2s ease; color: inherit; }
.coin-hot-cny-block .ccp-pair-item:hover { border-color: #4a7dff; background: #f5f8ff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74,125,255,0.12); }
.coin-hot-cny-block .ccp-pair-item:hover .ccp-pair-arrow { color: #4a7dff; transform: translateX(3px); }
.coin-hot-cny-block .ccp-pair-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.coin-hot-cny-block .ccp-pair-name { font-size: 14px; font-weight: 600; color: #1a1a1a; white-space: nowrap; }
.coin-hot-cny-block .ccp-pair-desc { font-size: 12px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-hot-cny-block .ccp-pair-arrow { color: #ccc; font-size: 16px; transition: all .2s ease; flex-shrink: 0; margin-left: 8px; }
@media (max-width: 991px) { .coin-hot-cny-block .ccp-pair-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .coin-hot-cny-block .ccp-pair-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .coin-hot-cny-block .ccp-pair-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== 文章页币种模块：相关币种 ===== */
.coin-related-block { margin-bottom: 30px; }
.ccp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccp-related-item { display: block; padding: 14px; border: 1px solid #eee; border-radius: 12px; background: #fff; transition: all .2s ease; text-decoration: none; color: inherit; }
.ccp-related-item:hover { border-color: #4a90e2; background: #f7fbff; box-shadow: 0 4px 12px rgba(74,144,226,.1); }
.ccp-related-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ccp-related-icon { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #f5f6f8; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #888; }
.ccp-related-icon img { width: 100%; height: 100%; object-fit: cover; }
.ccp-related-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ccp-related-name strong { font-size: 14px; font-weight: 600; color: #111; line-height: 1.2; }
.ccp-related-name small { font-size: 12px; color: #999; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccp-related-price { text-align: right; display: flex; flex-direction: column; }
.ccp-related-price strong { font-size: 15px; font-weight: 600; color: #111; line-height: 1.2; }
.ccp-related-price small { font-size: 12px; line-height: 1.2; }
.ccp-related-price small.up { color: #00b894; }
.ccp-related-price small.down { color: #e74c3c; }
.ccp-related-chart { height: 42px; width: 100%; }
.ccp-related-chart svg { display: block; width: 100%; height: 100%; }
@media (max-width: 991px) { .ccp-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .ccp-related-grid { grid-template-columns: 1fr; } }