/* 传统色（中国 / 日本）列表与详情，2026-11-26 */

/* ---------- 筛选面板（两行：颜色筛选 / 显示尺寸） ---------- */
.tc-panel {
    padding: 24px 26px 20px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.tc-panel-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 15px;
}
.tc-panel-row:last-of-type { margin-bottom: 0; }
.tc-panel-label {
    position: relative;
    flex: none;
    width: 84px;
    padding-left: 13px;
    font-size: 14px;
    font-weight: 700;
    color: #343a40;
    line-height: 1.4;
}
.tc-panel-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -9px;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(45deg, #6c757d, #495057);
}
.tc-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}
.tc-opt {
    padding: 8px 17px;
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: #f0f1f3;
    background-image: none;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: transform .16s, box-shadow .16s;
    text-decoration: none !important;
}
.tc-opt:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .12);
}
.tc-opt.is-on {
    box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
    font-weight: 700;
}

/* 色系配色（沿用站内既有色板） */
.tc-opt[data-hue=""] { background-color: #6c757d; color: #fff; }
.tc-opt[data-hue="gray"] { background-color: #fff; color: #333; border-color: #dee2e6; }
.tc-opt[data-hue="yellow"] { background-color: #ffc107; color: #212529; }
.tc-opt[data-hue="green"] { background-color: #28a745; color: #fff; }
.tc-opt[data-hue="red"] { background-color: #dc3545; color: #fff; }
.tc-opt[data-hue="orange"] { background-color: #fd7e14; color: #fff; }
.tc-opt[data-hue="cyan"] { background-color: #17a2b8; color: #fff; }
.tc-opt[data-hue="blue"] { background-color: #e85a44; color: #fff; }
.tc-opt[data-hue="purple"] { background-color: #6f42c1; color: #fff; }
.tc-opt[data-hue="pink"] { background-color: #e83e8c; color: #fff; }
.tc-opt[data-hue="brown"] { background-color: #7C4B00; color: #fff; }

/* 尺寸按钮 */
.tc-opt[data-size] {
    background-color: #fff;
    color: #6c757d;
    border-color: #dee2e6;
}
.tc-opt[data-size].is-on {
    background-color: #e85a44;
    color: #fff;
    border-color: #e85a44;
}

.tc-panel-count {
    display: block;
    margin-top: 13px;
    font-size: 12.5px;
    color: #9aa3b8;
}

/* ---------- 色值详情面板（点击色块即时显示） ---------- */
.cv-panel {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 24px 26px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.cv-panel-left {
    flex: none;
    width: 128px;
    text-align: center;
}
.cv-panel-swatch {
    width: 128px;
    height: 128px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 3px 12px rgba(0, 0, 0, .07);
}
.cv-panel-name {
    margin-top: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #343a40;
    line-height: 1.35;
}
.cv-panel-more {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    color: #e85a44 !important;
    background: none !important;
    text-decoration: none !important;
}
.cv-panel-right {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}
.cv-pv {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.cv-pv label {
    flex: none;
    width: 44px;
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #495057;
}
.cv-pv code {
    flex: 1;
    min-width: 0;
    padding: 5px 9px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background: #f8f9fa;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cv-pv button {
    flex: none;
    padding: 5px 11px;
    border: none;
    border-radius: 4px;
    background-color: #e85a44;
    background-image: none;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color .16s;
}
.cv-pv button:hover { background-color: #0056b3; }
.cv-pv button.is-done { background-color: #28a745; }

/* ---------- 色卡墙 ---------- */
.tc-wall {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}
.tc-swatch {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 1 / 1;
    padding: 10px 11px;
    border-radius: 10px;
    background-color: #eef1f8;
    background-image: none;
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
    transition: transform .16s, box-shadow .16s;
    cursor: pointer;
}
.tc-swatch:hover,
.tc-swatch:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(28, 43, 92, .16);
    text-decoration: none !important;
}
.tc-swatch.is-current {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e85a44, 0 8px 18px rgba(232, 90, 68, .22);
}
.tc-swatch b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tc-swatch em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-family: Consolas, Monaco, monospace;
    font-size: 10.5px;
    letter-spacing: .2px;
    opacity: .84;
}

/* 大色块 */
.tc-wall.size-large {
    grid-template-columns: repeat(6, 1fr);
    gap: 13px;
}
.tc-wall.size-large .tc-swatch { padding: 14px 15px; }
.tc-wall.size-large .tc-swatch b { font-size: 14.5px; }
.tc-wall.size-large .tc-swatch em { font-size: 11px; }

/* 中色块 */
.tc-wall.size-mid {
    grid-template-columns: repeat(10, 1fr);
    gap: 9px;
}
.tc-wall.size-mid .tc-swatch { padding: 11px 12px; }
.tc-wall.size-mid .tc-swatch b { font-size: 13.5px; }
.tc-wall.size-mid .tc-swatch em { font-size: 10.5px; }

/* 小色块：只留纯色 */
.tc-wall.size-small {
    grid-template-columns: repeat(18, 1fr);
    gap: 5px;
}
.tc-wall.size-small .tc-swatch {
    padding: 0;
    border-radius: 4px;
    box-shadow: none;
}
.tc-wall.size-small .tc-swatch b,
.tc-wall.size-small .tc-swatch em { display: none; }

/* ---------- 详情页 ---------- */
.cv-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 220px;
    padding: 26px 30px;
    border-radius: 16px;
    background-color: #eef1f8;
    overflow: hidden;
}
.cv-hero-inner {
    position: relative;
    z-index: 2;
}
.cv-hero h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}
.cv-hero .cv-hex {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .22);
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    letter-spacing: .5px;
}
.cv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 16px 0 0;
    font-size: 12.5px;
    color: #8a93ab;
}
.cv-meta a {
    color: #4a63c8;
    text-decoration: none !important;
}

.cv-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    margin-top: 14px;
}
.cv-value {
    padding: 12px 14px;
    border: 1px solid #eef1f8;
    border-radius: 10px;
    background: #fafbfe;
}
.cv-value span {
    display: block;
    font-size: 11.5px;
    color: #9aa3b8;
    letter-spacing: .3px;
}
.cv-value b {
    display: block;
    margin-top: 5px;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #2d3f7a;
    word-break: break-all;
}

.cv-section {
    margin: 32px 0 0;
}
.cv-section h2 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 600;
    color: #1f2740;
}
.cv-section h2 small {
    margin-left: 8px;
    font-size: 12.5px;
    font-weight: 400;
    color: #9aa3b8;
}
.cv-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.cv-sw {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100px;
    padding: 10px 12px;
    border-radius: 10px;
    background-color: #eef1f8;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
    overflow: hidden;
}
.cv-sw .cv-sw-hex {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.cv-sw .cv-sw-name {
    margin-top: 2px;
    font-size: 11px;
    opacity: .8;
}

.cv-analysis p {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.85;
    color: #5a6482;
}
.cv-analysis p b {
    color: #2d3f7a;
}
.cv-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.cv-specs li {
    padding: 6px 14px;
    border: 1px solid #eef1f8;
    border-radius: 16px;
    background: #fafbfe;
    font-size: 12.5px;
    color: #7b849c;
}
.cv-specs li b {
    color: #2d3f7a;
}

.cv-related {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}
.cv-related a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 76px;
    padding: 8px 10px;
    border-radius: 9px;
    background-color: #eef1f8;
    background-image: none;
    text-decoration: none !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
    transition: transform .16s, box-shadow .16s;
}
.cv-related a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(28, 43, 92, .14);
    text-decoration: none !important;
}
.cv-related b {
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cv-related em {
    margin-top: 2px;
    font-style: normal;
    font-family: Consolas, Monaco, monospace;
    font-size: 10px;
    opacity: .8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
    .tc-wall { grid-template-columns: repeat(8, 1fr); }
    .tc-wall.size-large { grid-template-columns: repeat(5, 1fr); }
    .tc-wall.size-mid { grid-template-columns: repeat(8, 1fr); }
    .tc-wall.size-small { grid-template-columns: repeat(14, 1fr); }
    .cv-related { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 991px) {
    .tc-wall { grid-template-columns: repeat(6, 1fr); }
    .tc-wall.size-large { grid-template-columns: repeat(4, 1fr); }
    .tc-wall.size-mid { grid-template-columns: repeat(6, 1fr); }
    .tc-wall.size-small { grid-template-columns: repeat(12, 1fr); }
    .cv-values { grid-template-columns: repeat(2, 1fr); }
    .cv-hero { height: 180px; padding: 22px; }
    .cv-hero h1 { font-size: 24px; }
    .cv-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .cv-panel-left {
        display: flex;
        align-items: center;
        gap: 16px;
        width: auto;
        text-align: left;
    }
    .cv-panel-swatch { width: 88px; height: 88px; }
    .cv-panel-name { margin-top: 0; }
    .cv-panel-right { grid-template-columns: 1fr; }
    .tc-panel-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .tc-panel-label { width: auto; }
}
@media (max-width: 575px) {
    .tc-wall { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .tc-wall.size-large { grid-template-columns: repeat(3, 1fr); }
    .tc-wall.size-mid { grid-template-columns: repeat(4, 1fr); }
    .tc-wall.size-small { grid-template-columns: repeat(8, 1fr); }
    .tc-swatch { padding: 6px 7px; }
    .tc-swatch b { font-size: 11.5px; }
    .tc-opt { padding: 7px 12px; font-size: 12px; }
    .cv-swatches { grid-template-columns: repeat(2, 1fr); }
    .cv-related { grid-template-columns: repeat(4, 1fr); }
}
