* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, 'PingFang SC', sans-serif; }
a { text-decoration: none; color: inherit; }
.home-hero { display: flex; align-items: center; }
.hero-layout, #module-section { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 76px); }
.graph-panel { position: relative; min-width: 0; }
#discipline-graph { display: block; width: 100%; height: auto; }
.progress-panel { max-width: 30rem; padding: 18px 22px; border: 1px solid white; border-radius: 18px; background: var(--site-glass); box-shadow: var(--site-rim), var(--site-shadow); }
.progress-header, .progress-note { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.progress-header { font-size: 15px; font-weight: 600; }
.progress-note { color: #596579; font-size: 13px; }
.progress-track { height: 6px; border-radius: 10px; background: #e7e5e4; overflow: hidden; margin: 8px 0; }
#progress-bar { height: 100%; background: #475569; border-radius: inherit; transition: width .8s ease-out; }
#progress-text { font-variant-numeric: tabular-nums; }
#module-section { padding-bottom: 72px; }
.module-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.module-arrow svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
  .graph-panel { width: min(100%, 420px); margin: 0 auto; }
  .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
  .module-grid { grid-template-columns: 1fr; }
  .hero-layout, #module-section { width: calc(100% - 36px); }
}
        .space-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.08);
}
.space-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-family: 'Noven Editorial', 'Noto Serif SC', serif;
    font-size: 28px !important;
    font-weight: 600;
    color: #2d303b;
}
.space-section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    border-radius: 99px;
    background: linear-gradient(180deg, #475569 0%, #94a3b8 100%);
}
.space-section-meta {
    font-family: 'Noven Meta', monospace;
    font-size: 12px;
    letter-spacing: 1.6px;
    color: #777b84;
    text-transform: uppercase;
}

.module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
    box-shadow: var(--site-rim), var(--site-shadow);
    text-decoration: none;
    overflow: hidden;
    transition: transform 240ms cubic-bezier(.22, 1, .36, 1),
                box-shadow 240ms cubic-bezier(.22, 1, .36, 1),
                background 240ms ease,
                border-color 240ms ease !important;
}
.module-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 85% 15%, var(--card-tint, rgba(226, 217, 243, 0.25)), transparent 65%);
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
}
.module-card:hover {
    transform: translateY(-4px);
    border-color: #ffffff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58));
    box-shadow: var(--site-rim), 0 18px 38px -16px rgba(15, 23, 42, 0.16);
}
.module-card:hover::after {
    opacity: 1;
}
.module-card:active {
    transform: scale(0.985);
}

.module-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* 统一规格的微质感图标容器 */
.module-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 247, 244, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 4px 12px -4px rgba(71, 85, 105, 0.12);
    color: #334155;
    transition: transform 240ms cubic-bezier(.22, 1, .36, 1), color 200ms ease, box-shadow 240ms ease;
}
.module-card:hover .module-icon-badge {
    transform: scale(1.06) translateY(-1px);
    color: #18181b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 8px 18px -6px rgba(71, 85, 105, 0.18);
}
.module-icon-badge svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* 卡片右上角微角标 / 入口指示 */
.module-tag {
    font-family: 'Noven Meta', monospace;
    font-size: 11px;
    letter-spacing: 0.8px;
    color: #64748b;
    padding: 3px 8px;
    border-radius: 99px;
    background: rgba(71, 85, 105, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: background-color 200ms ease, color 200ms ease;
}
.module-card:hover .module-tag {
    background: rgba(255, 255, 255, 0.85);
    color: #334155;
}
.module-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    opacity: 0.65;
    transform: translateX(-2px);
    transition: opacity 200ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1), color 200ms ease;
}
.module-card:hover .module-arrow {
    opacity: 1;
    color: #334155;
    transform: translateX(2px);
}

.module-card-body {
    position: relative;
    z-index: 1;
}
.module-card-body h3 {
    font-size: clamp(23px, 2.2vw, 25px);
    font-weight: 600;
    line-height: 1.35;
    color: #27272a;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
}
.module-card-body p {
    font-size: 14.5px !important;
    color: #64748b;
    line-height: 1.6 !important;
    margin: 0;
}

/* =========================================================
   3. 七大学科星图：衬线字体统一与连线聚焦交互
   ========================================================= */
.svg-node {
    cursor: pointer;
    outline: none;
}
.svg-node circle.main-circle {
    transition: stroke 240ms ease, stroke-width 240ms ease, fill 240ms ease;
}
.svg-node:hover circle.main-circle,
.svg-node.tooltip-active circle.main-circle,
.svg-node:focus-visible circle.main-circle {
    stroke: #334155;
    stroke-width: 2.8;
    fill: rgba(255, 255, 255, 0.96);
}
.svg-node text {
    font-family: 'Noven Editorial', 'Noto Serif SC', 'Songti SC', serif;
    transition: fill 220ms ease;
    user-select: none;
}
.svg-node:hover text,
.svg-node.tooltip-active text {
    fill: #18181b;
}
.svg-edge {
    transition: stroke 260ms ease, stroke-opacity 260ms ease, stroke-width 260ms ease;
}
.svg-edge.is-dimmed {
    stroke-opacity: 0.25;
}
.svg-edge.is-highlighted {
    stroke: #475569;
    stroke-opacity: 0.95;
    stroke-width: 2;
}

.svg-tooltip {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 30;
    width: min(350px, calc(100vw - 32px));
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
    transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.svg-tooltip.invisible {
    opacity: 0 !important;
    visibility: hidden;
    transition: none !important;
}
.svg-tooltip.open {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.svg-tooltip-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 249, 247, 0.85) 100%);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--site-rim), 0 18px 46px -12px rgba(15, 23, 42, 0.16);
    border-radius: 18px;
    padding: 15px 16px 14px;
}
.svg-tooltip-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #27272a;
    line-height: 1.35;
}
.svg-tooltip-sub {
    margin-top: 7px;
    font-size: 12.5px;
    color: #52525b;
    line-height: 1.58;
}
.svg-tooltip-sub b {
    color: #27272a;
    font-weight: 600;
}

a:focus-visible, button:focus-visible { outline: 2px solid #475569; outline-offset: 4px; }

.graph-panel .svg-tooltip { width: min(350px, calc(100% - 20px)); visibility: hidden; }
.graph-panel .svg-tooltip.open { visibility: visible; }
