:root {
    --bg: #f3f7ff;
    --card-bg: rgba(255, 255, 255, 0.88);
    --text-main: #0f172a;
    --text-sub: #475569;
    --text-light: #64748b;
    --border: rgba(148, 163, 184, 0.24);
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.12);
    --success: #059669;
    --warning: #d97706;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.52) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.52) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(15, 23, 42, 0.24), transparent 70%);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 40px;
}

.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 56px;
    height: 52px;
    padding: 0 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.24);
}

.brand-mark--image {
    width: 92px;
    min-width: 92px;
    height: 56px;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.brand-logo {
    display: block;
    width: 92px;
    max-width: 100%;
    height: 56px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    align-items: center;
    min-width: 0;
}

.brand-text strong {
    font-size: 1.04rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-sub);
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-nav a::after {
    display: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-main);
    outline: none;
}

.site-nav a.is-active {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.site-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.site-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.15);
}

.page-main {
    margin-top: 28px;
    display: grid;
    gap: 24px;
}

.hero {
    display: grid;
    gap: 28px;
    padding: 36px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 245, 255, 0.98) 100%);
    border: 1px solid rgba(191, 219, 254, 0.8);
    box-shadow: var(--shadow);
}

.hero-intro {
    display: grid;
    align-content: start;
    max-width: 760px;
}

.hero-recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(37, 99, 235, 0.14);
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

.hero-intro h1,
.hero-panel h2,
.section-heading h2,
.feature-card h2,
.info-card h2,
.topic-card h2,
.notice-card h2 {
    letter-spacing: -0.03em;
}

.hero-intro h1 {
    margin-top: 18px;
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    line-height: 1.06;
    max-width: 760px;
}

.hero-lead {
    margin-top: 16px;
    max-width: 700px;
    color: var(--text-sub);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-sub {
    margin-top: 12px;
    max-width: 680px;
    color: var(--text-light);
    font-size: 0.96rem;
    line-height: 1.8;
}

.hero-actions,
.feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary,
.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover,
.hero-panel-link:hover,
.card-action:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.16);
}

.info-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.metric-card {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.84);
}

.metric-card strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
}

.metric-card span {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
    font-size: 0.84rem;
}

.hero-panel,
.feature-card,
.info-card,
.topic-card,
.topic-list-card,
.notice-card,
.tool-card,
.section-block,
.progress-card,
.empty-state {
    border: 1px solid var(--border);
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.95) 100%);
    color: #fff;
}

.hero-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-panel-label,
.hero-panel-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-panel-label {
    background: rgba(96, 165, 250, 0.2);
    color: #bfdbfe;
}

.hero-panel-status {
    background: rgba(52, 211, 153, 0.14);
    color: #a7f3d0;
}

.hero-panel--property {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.94) 100%);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--text-main);
}

.hero-panel--property .hero-panel-label {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-dark);
}

.hero-panel--property .hero-panel-status {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.hero-panel.hero-panel--property p {
    color: var(--text-main);
}

.hero-panel--property .hero-points {
    color: var(--text-sub);
}

.hero-panel--property .hero-panel-summary-item {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-panel--property .hero-panel-summary-item span {
    color: var(--text-light);
}

.hero-panel--property .hero-panel-link {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.16);
}

.hero-panel h2 {
    margin-top: 18px;
    font-size: 1.6rem;
}

.hero-panel p {
    margin-top: 14px;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.8;
}

.hero-points {
    margin-top: 18px;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.92rem;
}

.hero-panel-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.hero-panel-summary-item {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel-summary-item span {
    display: block;
    color: rgba(226, 232, 240, 0.84);
    font-size: 0.82rem;
}

.hero-panel-summary-item strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
}

.hero-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 22px;
    border-radius: 14px;
    background: #fff;
    color: var(--text-main);
    font-weight: 700;
}

.section-block,
.feature-card,
.info-card,
.topic-card,
.topic-list-card,
.notice-card {
    padding: 28px;
    border-radius: 28px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading--tight {
    align-items: center;
}

.section-heading h2 {
    margin-top: 10px;
    font-size: 1.7rem;
}

.section-heading p,
.feature-card p,
.info-card p,
.topic-card p,
.notice-card li,
.roadmap-item span,
.feature-point span {
    color: var(--text-sub);
    line-height: 1.8;
}

.section-heading-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-heading-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    color: var(--text-sub);
    font-size: 0.86rem;
    font-weight: 700;
}

.category-nav {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.category-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.category-menu {
    display: flex;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tab-label {
    white-space: nowrap;
}

.category-tab-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--warning);
    font-size: 1rem;
    font-weight: 800;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.category-tab:hover,
.category-tab:focus-visible,
.category-tab.is-open {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    outline: none;
}

.category-tab:hover .category-tab-arrow,
.category-tab:focus-visible .category-tab-arrow,
.category-tab.is-open .category-tab-arrow {
    color: #fb923c;
    transform: rotate(90deg);
}

.category-flyout {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 240px;
    max-width: min(340px, calc(100vw - 32px));
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 200;
}

.category-flyout.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.category-flyout-head,
.category-flyout-summary {
    display: none;
}

.category-flyout-list {
    display: grid;
    gap: 4px;
}

.category-flyout-meta {
    display: grid;
    gap: 4px;
}

.category-flyout-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-flyout-close {
    display: none;
}

.category-dropdown-item {
    display: block;
    padding: 14px 18px;
    border-radius: 16px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.category-dropdown-item:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--primary-dark);
}

.feature-layout,
.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.feature-points,
.roadmap-list,
.notice-card ul {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.feature-point,
.roadmap-item {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.76);
}

.feature-point strong,
.roadmap-item strong {
    display: block;
    font-size: 0.98rem;
}

.feature-point span,
.roadmap-item span {
    display: block;
    margin-top: 6px;
}

.tools-grid {
    display: grid;
    gap: 18px;
}

.tool-group {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
}

.tool-group.is-live {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.78) 0%, rgba(255, 255, 255, 0.92) 100%);
    border-color: rgba(59, 130, 246, 0.16);
}

.tool-group.is-preview {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.84) 0%, rgba(255, 255, 255, 0.92) 100%);
    border-color: rgba(245, 158, 11, 0.16);
}

.tool-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tool-group-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-group-title-row h3 {
    font-size: 1.08rem;
}

.tool-group-head p {
    margin-top: 8px;
    color: var(--text-sub);
    line-height: 1.7;
}

.tool-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.tool-group.is-live .tool-group-count {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.tool-group.is-preview .tool-group-count {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.tool-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    padding: 22px;
    border-radius: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
}

.tool-card.is-live {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.98) 100%);
    border-color: rgba(59, 130, 246, 0.22);
}

.tool-card.is-preview {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 251, 235, 0.98) 100%);
    border-color: rgba(245, 158, 11, 0.24);
    border-style: dashed;
}

.tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tool-card-body {
    display: grid;
    gap: 12px;
    min-height: 142px;
}

.tool-card-footer {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.tool-card-note {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.7;
}

.status-badge,
.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-badge.is-live {
    background: rgba(5, 150, 105, 0.12);
    color: var(--success);
}

.status-badge.is-preview {
    background: rgba(217, 119, 6, 0.12);
    color: var(--warning);
}

.category-badge {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-light);
}

.tool-card h3 {
    font-size: 1.15rem;
    line-height: 1.5;
}

.tool-card p {
    color: var(--text-sub);
    line-height: 1.75;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coming-placeholder {
    display: grid;
    gap: 10px;
    align-content: start;
    margin-top: 4px;
}

.coming-placeholder span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.9), rgba(241, 245, 249, 0.95));
}

.coming-placeholder span:nth-child(1) {
    width: 86%;
}

.coming-placeholder span:nth-child(2) {
    width: 72%;
}

.coming-placeholder span:nth-child(3) {
    width: 58%;
}

.coming-placeholder strong {
    margin-top: 4px;
    color: var(--text-light);
    font-size: 0.92rem;
}

.card-action {
    width: 100%;
    background: #0f172a;
    color: #fff;
}

.card-action.is-preview {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-main);
    border: 1px solid rgba(148, 163, 184, 0.26);
}

.card-action.is-disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: default;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 24px;
    text-align: center;
    color: var(--text-sub);
}

.topic-list-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.topic-column {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
}

.topic-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topic-column-head h3 {
    font-size: 1rem;
}

.topic-column-head span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 700;
}

.topic-column ul {
    margin-top: 14px;
    list-style: none;
    display: grid;
    gap: 12px;
}

.topic-column li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.28);
    color: var(--text-sub);
}

.topic-column li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.topic-column a {
    font-weight: 700;
    color: var(--text-main);
}

.topic-column em {
    color: var(--text-light);
    font-style: normal;
    font-size: 0.86rem;
}

.notice-card ul {
    margin-top: 16px;
    padding-left: 18px;
}

.credit-card {
    position: relative;
    overflow: hidden;
    margin-top: 24px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 250, 255, 0.86) 100%);
    box-shadow: var(--shadow);
}

.credit-card::before,
.credit-card::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.credit-card::before {
    top: -42px;
    right: -22px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 70%);
}

.credit-card::after {
    left: -30px;
    bottom: -56px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0) 72%);
}

.credit-card-head {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
}

.credit-card-intro {
    max-width: 560px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.75;
}

.credit-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.credit-item {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 16px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.credit-item:hover {
    transform: translateY(-3px) rotate(0deg);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.credit-item::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: var(--credit-accent, var(--primary));
}

.credit-item--group {
    --credit-accent: #2563eb;
    transform: rotate(-0.6deg);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.credit-item--idea {
    --credit-accent: #f97316;
    transform: rotate(0.55deg);
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.credit-item--tech {
    --credit-accent: #06b6d4;
    transform: rotate(-0.35deg);
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.credit-item--mood {
    --credit-accent: #a855f7;
    transform: rotate(0.85deg);
    background: linear-gradient(180deg, rgba(250, 245, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.credit-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-sub);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.credit-item--group .credit-label {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.credit-item--idea .credit-label {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}

.credit-item--tech .credit-label {
    background: rgba(6, 182, 212, 0.12);
    color: #0f766e;
}

.credit-item--mood .credit-label {
    background: rgba(168, 85, 247, 0.12);
    color: #7e22ce;
}

.credit-item strong {
    display: block;
    margin-top: 12px;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .site-header,
    .feature-layout,
    .topics-grid {
        grid-template-columns: 1fr;
    }

    .hero-recommend-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .tool-group-grid,
    .topic-list-card {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-shell {
        padding: 18px 14px 28px;
    }

    .page-main {
        gap: 18px;
    }

    .site-header,
    .section-block,
    .feature-card,
    .info-card,
    .topic-card,
    .topic-list-card,
    .notice-card,
    .hero,
    .hero-panel,
    .tool-group,
    .tool-card,
    .credit-card {
        border-radius: 22px;
    }

    .site-header,
    .section-heading,
    .tool-group-head {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header {
        gap: 14px;
        padding: 14px;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 4px;
        overflow-x: auto;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.88) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav::-webkit-scrollbar,
    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .site-nav a {
        min-height: 38px;
        padding: 0 14px;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .site-nav a.is-active {
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    }

    .hero {
        gap: 20px;
        padding: 20px;
    }

    .hero-intro {
        max-width: none;
    }

    .hero-badges {
        margin-top: 14px;
        gap: 8px;
    }

    .hero-badge {
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .hero-badge:nth-child(n + 3) {
        display: none;
    }

    .hero-intro h1 {
        font-size: clamp(1.72rem, 8vw, 2rem);
        line-height: 1.15;
    }

    .hero-lead {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .hero-panel {
        padding: 20px;
    }

    .hero-panel-top,
    .tool-card-top {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .hero-panel h2 {
        font-size: 1.32rem;
        line-height: 1.35;
    }

    .hero-panel p {
        font-size: 0.94rem;
    }

    .hero-points {
        gap: 8px;
        font-size: 0.9rem;
    }

    .hero-panel-summary,
    .tool-group-grid,
    .topic-list-card,
    .credit-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel-summary-item {
        padding: 12px;
    }

    .hero-panel-summary-item strong {
        font-size: 0.95rem;
    }

    .hero-panel-link {
        min-height: 46px;
    }

    .feature-card h2,
    .notice-card h2 {
        font-size: 1.35rem;
        line-height: 1.4;
    }

    .tool-group,
    .tool-card {
        padding: 18px;
    }

    .tool-card-body {
        min-height: 0;
    }

    .hero-actions,
    .feature-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .site-status {
        width: 100%;
        justify-content: center;
    }

    .site-status {
        min-height: 44px;
    }

    .section-heading-meta {
        width: 100%;
    }

    .section-heading-meta span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .category-nav {
        display: grid;
        gap: 0;
        margin-top: 14px;
    }

    .category-tabs {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .category-menu {
        scroll-snap-align: start;
    }

    .category-tab {
        min-height: 44px;
        padding: 0 14px;
        white-space: nowrap;
    }

    .category-flyout {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: 0;
        margin-top: 0;
        padding: 0;
        border-width: 0;
        box-shadow: none;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition: max-height 0.24s ease, margin-top 0.24s ease, padding 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
    }

    .category-flyout.is-open {
        max-height: 420px;
        margin-top: 12px;
        padding: 14px;
        border-width: 1px;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    }

    .category-flyout-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .category-flyout-meta strong {
        font-size: 1.02rem;
        line-height: 1.35;
    }

    .category-flyout-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 0 12px;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.9);
        color: var(--text-sub);
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
    }

    .category-flyout-summary {
        display: block;
        margin-top: 8px;
        color: var(--text-light);
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .category-flyout-list {
        gap: 10px;
        margin-top: 12px;
    }

    .category-dropdown-item {
        padding: 14px 16px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        background: rgba(248, 250, 252, 0.96);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }

    .credit-card {
        padding: 20px;
    }

    .credit-card-intro {
        font-size: 0.92rem;
    }

    .credit-item {
        padding: 14px 16px;
        transform: none;
    }

    .credit-item:hover {
        transform: translateY(-2px);
    }

    .brand-mark--image {
        width: 78px;
        min-width: 78px;
        height: 48px;
    }

    .brand-logo {
        width: 78px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .site-shell {
        padding: 14px 12px 24px;
    }

    .site-header,
    .hero,
    .section-block,
    .feature-card,
    .notice-card,
    .credit-card,
    .tool-group,
    .tool-card {
        border-radius: 18px;
    }

    .brand {
        gap: 10px;
    }

    .brand-mark--image {
        width: 68px;
        min-width: 68px;
        height: 42px;
    }

    .brand-logo {
        width: 68px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 0.94rem;
        white-space: normal;
        line-height: 1.35;
    }

    .site-status {
        font-size: 0.82rem;
        padding: 9px 12px;
    }

    .hero {
        padding: 18px;
    }

    .hero-intro h1 {
        font-size: 1.6rem;
    }

    .hero-panel,
    .tool-card,
    .tool-group,
    .feature-card,
    .notice-card,
    .section-block,
    .credit-card {
        padding: 16px;
    }

    .section-heading-meta span,
    .hero-badge,
    .category-tab {
        font-size: 0.8rem;
    }

    .category-flyout.is-open {
        padding: 12px;
    }

    .category-flyout-close {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .category-dropdown-item {
        padding: 13px 14px;
        font-size: 0.92rem;
    }
}
