.ccp-page {
    background: #f5f7fa;
    padding: 20px 0 50px;
    min-height: 600px;
}
.ccp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.ccp-main {
    display: flex;
    gap: 24px;
    flex-direction: row-reverse;
}
.ccp-left {
    flex: 1;
    min-width: 0;
}
.ccp-right {
    width: 380px;
    flex-shrink: 0;
}

/* 标题区 */
.ccp-header {
    margin-bottom: 24px;
}
.ccp-title {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.3;
}
.ccp-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 8px;
}
.ccp-rating {
    color: #ffb800;
    font-size: 14px;
}

/* 价格区 */
.ccp-price-box {
    margin-bottom: 24px;
}
.ccp-price-question {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}
.ccp-price-main {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}
.ccp-price-change {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}
.ccp-price-change.up {
    color: #16b979;
}
.ccp-price-change.down {
    color: #e85a5a;
}
.ccp-update-time {
    font-size: 13px;
    color: #999;
}

/* 右侧计算器 */
.ccp-calculator {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: sticky;
    top: 20px;
    overflow: visible;
}

/* 全宽内容区域 */
.ccp-full-width {
    width: 100%;
    margin-top: 40px;
}
.ccp-calculator-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}
.ccp-calc-row {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.ccp-calc-row.swap-row {
    background: transparent;
    justify-content: center;
    padding: 4px 0;
    margin-bottom: 12px;
}
.ccp-calc-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ccp-calc-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.ccp-calc-icon .fiat-flag {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.ccp-calc-info {
    flex: 1;
    min-width: 0;
}
.ccp-calc-select {
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    padding: 0;
    appearance: none;
    cursor: pointer;
    width: 100%;
}
.ccp-calc-amount {
    width: 110px;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    text-align: right;
    outline: none;
}
.ccp-calc-amount[readonly] {
    color: #333;
}
.ccp-swap-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f3f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
    color: #666;
}
.ccp-rate-tip {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: visible;
}
.ccp-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;
}
.ccp-info-icon:hover {
    background: #1890ff;
    color: #fff;
}
.ccp-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;
}
.ccp-info-icon:hover::after {
    opacity: 1;
    visibility: visible;
}
.ccp-convert-btn {
    width: 100%;
    height: 46px;
    border-radius: 23px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all .3s ease;
}
.ccp-convert-btn:hover {
    transform: translateY(-2px);
    background: #333;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    color: #fff;
    text-decoration: none;
}
.ccp-convert-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.ccp-convert-btn svg {
    width: 18px;
    height: 18px;
}

/* 通用卡片 */
.ccp-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.ccp-card.ccp-chart-card,
.ccp-card.ccp-data-card,
.ccp-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.ccp-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 18px;
}
.ccp-card-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}

/* 图表 */
.ccp-chart-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.ccp-chart-tab {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: #f1f3f5;
    color: #666;
    font-size: 13px;
    cursor: pointer;
}
.ccp-chart-tab.active {
    background: #111;
    color: #fff;
}
#ccp-chart {
    width: 100%;
    height: 360px;
}
.ccp-chart-info {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

/* 市场数据 */
.ccp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.ccp-stat-item {
    padding: 4px 0;
}
.ccp-stat-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.ccp-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}
.ccp-range-bar {
    margin-bottom: 20px;
}
.ccp-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.ccp-range-track {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    position: relative;
}
.ccp-range-fill {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #a8c5ff 0%, #6b8cff 100%);
    border-radius: 3px;
}
.ccp-range-current {
    position: absolute;
    top: -6px;
    width: 8px;
    height: 18px;
    background: #4a7dff;
    border-radius: 4px;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 2;
}
.ccp-range-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 10;
}
.ccp-range-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}
.ccp-range-current:hover .ccp-range-tooltip {
    opacity: 1;
    visibility: visible;
}
.ccp-range-tooltip span {
    color: #4a7dff;
    font-weight: 600;
}
.ccp-market-note {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}
.ccp-read-more {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
}
.ccp-read-more a {
    color: #1a8cd9;
    text-decoration: none;
}
.ccp-read-more a:hover {
    text-decoration: underline;
}
.ccp-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 14px;
}
.ccp-desc p {
    margin-bottom: 12px;
}
.ccp-desc p:last-child {
    margin-bottom: 0;
}

/* 汇率知识说明 */
.ccp-info-section {
    margin-top: 32px;
    margin-bottom: 32px;
}
.ccp-info-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}
.ccp-info-text {
    background: #f5f6f8;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    font-size: 14px;
    color: #555;
    line-height: 1.85;
    margin: 0;
}

/* 换算表 */
.ccp-table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.ccp-table-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
}
.ccp-table-box-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}
.ccp-table-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.ccp-table-row:last-child {
    border-bottom: none;
}
.ccp-table-symbol {
    color: #666;
}
.ccp-table-value {
    font-weight: 600;
    color: #111;
}

/* FAQ */
.ccp-faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.ccp-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;
}
.ccp-faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #e8edf5;
}
.ccp-faq-q {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.ccp-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);
}
.ccp-faq-item:hover .ccp-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);
}
.ccp-faq-item.active .ccp-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);
}
.ccp-faq-a {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin-top: 12px;
    display: none;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
}
.ccp-faq-item.active .ccp-faq-a {
    display: block;
}

/* 热门兑换对 */
.ccp-pair-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.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;
}
.ccp-pair-item:hover {
    border-color: #4a7dff;
    background: #f5f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74,125,255,0.12);
}
.ccp-pair-item:hover .ccp-pair-arrow {
    color: #4a7dff;
    transform: translateX(3px);
}
.ccp-pair-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ccp-pair-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}
.ccp-pair-desc {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ccp-pair-arrow {
    color: #ccc;
    font-size: 16px;
    transition: all .2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

@media (max-width: 992px) {
    .ccp-main {
        flex-direction: column;
    }
    .ccp-right {
        width: 100%;
    }
    .ccp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ccp-table-grid,
    .ccp-faq-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ccp-pair-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ccp-calculator {
        position: static;
    }
}
@media (max-width: 768px) {
    .ccp-info-block {
        padding: 16px;
        border-radius: 12px;
    }
    .ccp-info-title {
        font-size: 20px;
        line-height: 1.3;
    }
    .ccp-info-desc {
        font-size: 14px;
    }
    .ccp-calculator {
        padding: 16px;
    }
    .ccp-calc-amount {
        font-size: 18px;
        width: 90px;
    }
    .ccp-convert-btn {
        height: 44px;
        font-size: 14px;
    }
    .ccp-card {
        padding: 16px;
        border-radius: 12px;
    }
    .ccp-card-title {
        font-size: 16px;
    }
    .ccp-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .ccp-stats-item {
        padding: 12px;
    }
    .ccp-pair-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .ccp-pair-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ccp-calc-amount {
        font-size: 16px;
        width: 80px;
    }
    .ccp-rate-tip {
        font-size: 12px;
    }
    .ccp-info-title {
        font-size: 18px;
    }
    .coin-converter-container {
        padding: 0 12px;
    }
}

/* ========== 自定义下拉选择器（和主页 coin_converter 保持一致，详情页版本） ========== */
.cc-select { position: relative; min-width: 100%; width: 100%; }
.cc-select-trigger { display: flex; align-items: center; gap: 8px; background: transparent; padding: 2px 4px; border-radius: 8px; cursor: pointer; font-weight: 600; color: #111; border: 2px solid transparent; outline: none; font-size: 15px; transition: all .15s; user-select: none; }
.cc-select-trigger:hover { background: #f3f5f8; }
.cc-select.active .cc-select-trigger { background: #fff; border-color: #1a8cd9; padding: 2px 10px; }
.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); }
/* 详情页已有独立的大图标，隐藏触发器上的重复小图标 */
.ccp-select .cc-select-trigger .cc-select-icon { display: none; }

.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.15); z-index: 100; overflow: hidden; max-height: 360px; border: 1px solid #e8ebf0; }
.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; }

/* ========== 相关币种 ========== */
.ccp-related-coins { }
.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; } }
