/* =====================================================================
 * 工具7 · 信用卡免息期计算器 credit-card-statement-cycle.css
 * 独立设计：银行卡片 + 免息期进度条母题；主色梅紫 #9d174d。
 * 深色适配走 [data-theme="dark"] 变量覆盖。
 * ===================================================================== */

.hc-cc {
    --hc-a: #9d174d;
    --hc-a-soft: #fbe7ef;
    --cc-card-grad: linear-gradient(135deg, #3f1330, #9d174d 58%, #d4537f);
    --cc-bill: #ffd166;
    --cc-pay: #7ee0b8;
}

/* 首屏：左文右卡片 */
.hc-cc .cc-hero {
    display: grid; grid-template-columns: 1.5fr 1fr;
    gap: 36px; align-items: center;
    padding-top: 44px;
}
.hc-cc .hc-hero h1::after {
    content: ""; display: block; width: 64px; height: 5px; margin-top: 16px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hc-a), #e58ab0);
}

/* 示例卡面 */
.hc-cc .cc-card-face {
    width: min(100%, 340px);
    margin: 0 auto;
    aspect-ratio: 1.62;
    border-radius: 16px;
    background: var(--cc-card-grad);
    color: #fff;
    padding: 20px 22px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 20px 44px rgba(157, 23, 77, .32);
    position: relative;
    overflow: hidden;
}
.hc-cc .cc-card-face::after {
    content: "";
    position: absolute; right: -46px; top: -46px;
    width: 150px; height: 150px; border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.hc-cc .cc-card-top { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .14em; opacity: .92; }
.hc-cc .cc-card-chip {
    width: 42px; height: 30px; border-radius: 6px;
    background: linear-gradient(135deg, #f4d47c, #cfa145);
    box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.18);
}
.hc-cc .cc-card-cycle { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.hc-cc .cc-dot { padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.hc-cc .cc-dot--bill { background: var(--cc-bill); color: #4c3a05; }
.hc-cc .cc-dot--pay { background: var(--cc-pay); color: #0c3f2a; }
.hc-cc .cc-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.hc-cc .cc-bar i { display: block; height: 100%; border-radius: 3px; background: #fff; }
.hc-cc .cc-card-note { font-size: 11.5px; opacity: .88; letter-spacing: .04em; }

/* 输入 */
.hc-cc .cc-top-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; align-items: end; }
.hc-cc .cc-ops { display: flex; flex-wrap: wrap; gap: 9px; }
.hc-cc .cc-inst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.hc-cc .cc-spend-grid { display: grid; grid-template-columns: 220px auto 1fr; gap: 14px; align-items: start; }

/* 免息窗口可视化条 */
.hc-cc .cc-visual {
    display: inline-block; vertical-align: middle;
    width: 110px; height: 8px; border-radius: 4px;
    background: var(--hc-card-2);
    border: 1px solid var(--hc-line-2);
    margin-right: 8px; overflow: hidden;
}
.hc-cc .cc-visual i { display: block; height: 100%; background: linear-gradient(90deg, var(--cc-pay), #3fae82); }

/* 消费日输出 */
.hc-cc .cc-spend-out {
    padding: 12px 15px;
    border-left: 3px solid var(--hc-a);
    background: var(--hc-a-soft);
    border-radius: 0 var(--hc-r-sm) var(--hc-r-sm) 0;
    font-size: 13.5px; line-height: 1.9;
}

/* 响应式 */
@media (max-width: 980px) {
    .hc-cc .cc-inst-grid { grid-template-columns: 1fr 1fr; }
    .hc-cc .cc-spend-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .hc-cc .cc-hero { grid-template-columns: 1fr; gap: 22px; padding-top: 26px; }
    .hc-cc .cc-top-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .hc-cc .cc-top-grid, .hc-cc .cc-inst-grid { grid-template-columns: 1fr; }
}

/* 深色主题 */
:root[data-theme="dark"] .hc-cc {
    --hc-a: #f07aa8;
    --hc-a-soft: #3a1626;
    --cc-card-grad: linear-gradient(135deg, #241019, #7c1f47 58%, #a94f74);
    --cc-bill: #ffd166;
    --cc-pay: #7ee0b8;
}
:root[data-theme="dark"] .hc-cc .cc-card-face { box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
