/* ============================================================
   步骤提示卡（各流程页共用）
   用途：把「操作说明书」变成「做对/做错对照 + 可展开详情」
   ============================================================ */

.hint-card {
    background: #fff;
    border: 1px solid var(--de-gray-200);
    border-left: 3px solid var(--de-red);
    border-radius: var(--de-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.hint-card .hint-summary {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    transition: background var(--de-transition);
}
.hint-card .hint-summary:hover { background: var(--de-gray-100); }

.hint-card .hint-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--de-red);
    color: #fff;
    border-radius: var(--de-radius);
    font-size: 0.82rem;
    font-weight: 800;
    font-family: var(--de-font-head);
    margin-top: 1px;
}

.hint-card .hint-main { flex: 1; min-width: 0; }

.hint-card .hint-title {
    font-family: var(--de-font-head);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--de-black);
    margin: 0 0 4px;
    line-height: 1.5;
}

.hint-card .hint-lead {
    font-size: 0.86rem;
    color: var(--de-gray-600);
    line-height: 1.7;
    margin: 0;
}

.hint-card .hint-toggle {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--de-red);
    white-space: nowrap;
    margin-top: 3px;
}
.hint-card .hint-toggle::after {
    content: '展开 ▾';
}
.hint-card.open .hint-toggle::after {
    content: '收起 ▴';
}

.hint-card .hint-detail {
    display: none;
    padding: 0 18px 18px 56px;
    font-size: 0.86rem;
    line-height: 1.85;
    color: var(--de-gray-900);
}
.hint-card.open .hint-detail { display: block; }

.hint-card .hint-detail h6 {
    font-family: var(--de-font-head);
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--de-red);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 16px 0 6px;
}
.hint-card .hint-detail h6:first-child { margin-top: 4px; }

.hint-card .hint-detail ul {
    padding-left: 18px;
    margin: 0 0 4px;
}
.hint-card .hint-detail li {
    margin-bottom: 5px;
}
.hint-card .hint-detail li::marker { color: var(--de-red); }
.hint-card .hint-detail li:last-child { margin-bottom: 0; }

.hint-card .hint-detail code {
    background: var(--de-gray-100);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.86em;
    color: var(--de-red-dark);
    font-weight: 600;
}

/* 做对 / 做错 对照 */
.hint-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0 4px;
}
@media (max-width: 767px) {
    .hint-grid { grid-template-columns: 1fr; }
}

.hint-box {
    padding: 12px 14px;
    border-radius: var(--de-radius);
    font-size: 0.84rem;
    line-height: 1.75;
}
.hint-box.do {
    background: rgba(46, 125, 79, 0.06);
    border: 1px solid rgba(46, 125, 79, 0.25);
}
.hint-box.dont {
    background: rgba(192, 57, 43, 0.05);
    border: 1px solid rgba(192, 57, 43, 0.22);
}
.hint-box .hint-box-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--de-font-head);
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 6px;
}
.hint-box.do .hint-box-title { color: var(--de-success); }
.hint-box.dont .hint-box-title { color: var(--de-danger); }
.hint-box ul { padding-left: 16px; margin: 0; }
.hint-box li { margin-bottom: 3px; }
.hint-box li:last-child { margin-bottom: 0; }

/* 行内小标签（课名举例） */
.hint-tag {
    display: inline-block;
    padding: 1px 8px;
    margin: 2px 3px 2px 0;
    font-size: 0.78rem;
    background: var(--de-gray-100);
    border: 1px solid var(--de-gray-200);
    border-radius: 100px;
    color: var(--de-gray-900);
    white-space: nowrap;
}

/* 「为什么」强调块 */
.hint-why {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--de-gray-100);
    border-left: 2px solid var(--de-gray-400);
    border-radius: 0 var(--de-radius) var(--de-radius) 0;
    font-size: 0.83rem;
    color: var(--de-gray-600);
    line-height: 1.75;
}
.hint-why strong { color: var(--de-ink); }

/* ============================================================
   ECTS 换算卡片
   ============================================================ */
.ects-card {
    background: var(--de-black);
    color: #fff;
    border-radius: var(--de-radius);
    padding: 20px 22px;
    margin-bottom: 16px;
}
.ects-card .ects-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ects-card .ects-label {
    font-family: var(--de-font-head);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--de-gray-400);
}
.ects-card .ects-formula {
    font-size: 0.82rem;
    color: #b8b8b8;
    font-family: var(--de-font-body);
}
.ects-card .ects-formula code {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.95em;
}

.ects-card .ects-calc {
    font-size: 0.86rem;
    color: #b8b8b8;
    margin-bottom: 14px;
    line-height: 1.8;
}
.ects-card .ects-calc .eq {
    color: #fff;
    font-weight: 700;
    font-family: var(--de-font-head);
    font-size: 1rem;
}

.ects-card .ects-result {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-wrap: wrap;
}
.ects-card .ects-result .k {
    font-size: 0.84rem;
    color: var(--de-gray-400);
}
.ects-card .ects-result .v {
    font-family: var(--de-font-head);
    font-weight: 900;
    font-size: 2rem;
    color: var(--de-red);
    line-height: 1;
}
.ects-card .ects-result .unit {
    font-size: 0.86rem;
    color: #b8b8b8;
    margin-left: -4px;
}

.ects-card .ects-example {
    margin-top: 14px;
    font-size: 0.82rem;
    color: #b8b8b8;
    line-height: 1.8;
}
.ects-card .ects-example strong {
    color: #fff;
    font-family: var(--de-font-head);
    font-weight: 800;
}

.ects-card .ects-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-left: 2px solid var(--de-red);
    border-radius: 0 3px 3px 0;
    font-size: 0.79rem;
    color: #c9c9c9;
    line-height: 1.75;
}

.ects-card .ects-empty {
    font-size: 0.85rem;
    color: var(--de-gray-400);
    padding: 8px 0;
}

/* 大学/专业名一致性提示 */
.consistency-tip {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(199, 122, 0, 0.07);
    border: 1px solid rgba(199, 122, 0, 0.25);
    border-radius: var(--de-radius);
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--de-gray-900);
}
.consistency-tip .ct-title {
    font-weight: 700;
    color: var(--de-warning);
    margin-bottom: 4px;
}
.consistency-tip code {
    background: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid var(--de-gray-200);
    font-size: 0.86em;
    color: var(--de-red-dark);
}
.consistency-tip .ct-wrong {
    color: var(--de-danger);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

/* 第4步操作卡片 */
.op-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 12px 0 4px;
}
@media (max-width: 991px) {
    .op-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .op-cards { grid-template-columns: 1fr; }
}

.op-card {
    border: 1px solid var(--de-gray-200);
    border-radius: var(--de-radius);
    padding: 14px;
    background: #fff;
    transition: all var(--de-transition);
}
.op-card:hover {
    border-color: var(--de-red);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.op-card .op-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--de-black);
    color: #fff;
    border-radius: var(--de-radius);
    font-family: var(--de-font-head);
    font-weight: 800;
    font-size: 0.72rem;
    margin-bottom: 8px;
}
.op-card .op-title {
    font-family: var(--de-font-head);
    font-weight: 800;
    font-size: 0.86rem;
    color: var(--de-black);
    margin-bottom: 5px;
}
.op-card .op-desc {
    font-size: 0.79rem;
    color: var(--de-gray-600);
    line-height: 1.7;
}
.op-card .op-desc strong { color: var(--de-ink); }
