﻿/* ============================================
   个人网站 - 蓝色系主题
   可自由修改颜色变量来更换整体风格
   ============================================ */

:root {
    /* 主色调 - 修改这里来更换整体配色 */
    --primary:        #2563eb;
    --primary-light:  #3b82f6;
    --primary-lighter:#60a5fa;
    --primary-dark:   #1d4ed8;
    --primary-darker: #1e40af;

    /* 辅助色 */
    --accent:         #06b6d4;
    --accent-light:   #22d3ee;
    --accent-dark:    #0891b2;

    /* 背景色 */
    --bg-primary:     #0f172a;
    --bg-secondary:   #1e293b;
    --bg-card:        #1e293b;
    --bg-card-hover:  #273449;

    /* 文字色 */
    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;

    /* 边框与阴影 */
    --border:         #334155;
    --border-light:   #475569;
    --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md:      0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg:      0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-blue:    0 0 30px rgba(37, 99, 235, 0.15);

    /* 圆角 */
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;
    --radius-xl:      28px;

    /* 过渡 */
    --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   基础重置
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.page-leaving {
    pointer-events: none;
}

body.page-leaving::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    background:
        radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.16), transparent 34%),
        rgba(15, 23, 42, 0.92);
    animation: pageTransitionIn 0.32s ease forwards;
}

@keyframes pageTransitionIn {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1); }
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 69px;
    min-height: 69px;
    padding: 10px 0;
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    height: 48px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    width: auto;
    height: 48px;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.nav-logo::before {
    content: "";
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    background: url('../images/半盏清欢logo .png') center / contain no-repeat;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.1);
}

.nav-link.active {
    color: var(--primary-lighter);
    background: rgba(37, 99, 235, 0.15);
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   英雄区
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* 动态渐变背景 */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.08) 0%, transparent 40%);
    animation: bgFloat 15s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33%  { transform: translate(2%, -1%) rotate(1deg); }
    66%  { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* 网格点阵装饰 */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
}

.hero-greeting {
    font-size: 1.15rem;
    color: var(--primary-lighter);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-lighter) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
    0%, 100% { filter: brightness(1); }
    50%  { filter: brightness(1.2); }
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* 欢迎区渐入 + 光效（无背景色块） */
.hero-reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: heroRevealGlow 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--hero-delay, 0s);
}

@keyframes heroRevealGlow {
    0% {
        opacity: 0;
        transform: translateY(22px);
        filter: blur(4px);
        text-shadow: none;
    }
    55% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
        text-shadow:
            0 0 20px rgba(96, 165, 250, 0.75),
            0 0 40px rgba(37, 99, 235, 0.45),
            0 0 60px rgba(34, 211, 238, 0.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
        text-shadow: 0 0 8px rgba(96, 165, 250, 0.15);
    }
}

.hero-title.hero-reveal {
    animation-name: heroTitleReveal;
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
        filter: blur(6px) brightness(0.7);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) brightness(1.35);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) brightness(1);
    }
}

.hero-poem {
    margin-bottom: 32px;
}

.hero-poem-line {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 2;
    font-style: italic;
    min-height: 2em;
}

.hero-poem-line + .hero-poem-line {
    margin-top: 6px;
}

.hero-poem-line span:not(.cursor) {
    transition: text-shadow 0.15s ease;
}

.hero-poem-line.is-typing span:not(.cursor) {
    text-shadow:
        0 0 12px rgba(96, 165, 250, 0.5),
        0 0 24px rgba(37, 99, 235, 0.25);
}

.hero-poem .cursor {
    display: inline-block;
    color: var(--primary-lighter);
    font-weight: 300;
    font-style: normal;
    animation: blink 0.8s step-end infinite;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
}

.hero-poem .cursor.hidden {
    display: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%  { opacity: 0; }
}

.hero-motto {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 36px;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--primary-lighter);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-lighter);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

/* ============================================
   翻页时钟
   ============================================ */
.flip-clock-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.16), transparent 30%),
        radial-gradient(circle at 82% 72%, rgba(6, 182, 212, 0.10), transparent 32%),
        linear-gradient(180deg, #0f172a 0%, #151b3d 48%, var(--bg-primary) 100%);
}

.flip-clock-section--fullscreen {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 0;
}

.flip-clock-panel {
    text-align: center;
}

.clock-page .flip-clock-panel {
    width: min(1920px, calc(100vw - 48px));
    height: min(700px, calc(100vh - 96px));
    height: min(700px, calc(100dvh - 96px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clock-page .flip-clock-section--fullscreen .container {
    width: 100%;
    max-width: 1920px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clock-page-title {
    margin: 6px 0 14px;
    color: var(--primary-lighter);
    font-size: 32px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 0;
}

.flip-clock-date {
    margin: 0 0 42px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
}

.flip-clock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), 0 0 42px rgba(37, 99, 235, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.flip-card {
    position: relative;
    width: 76px;
    height: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
        linear-gradient(180deg, rgba(51, 65, 85, 0.88) 0%, rgba(15, 23, 42, 0.94) 50%, rgba(2, 6, 23, 0.94) 100%);
    color: #f8fafc;
    font-size: 4rem;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.32),
        0 16px 34px rgba(0, 0, 0, 0.34);
    transform-style: preserve-3d;
    perspective: 900px;
    overflow: hidden;
}

.flip-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(2, 6, 23, 0.72);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 1;
}

.flip-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%, rgba(0, 0, 0, 0.24));
    pointer-events: none;
}

.flip-current {
    position: relative;
    z-index: 1;
}

.flip-leaf {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50%;
    z-index: 3;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, rgba(51, 65, 85, 0.98), rgba(15, 23, 42, 0.98));
    transform: rotateX(0deg);
    transform-origin: bottom center;
    backface-visibility: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0;
}

.flip-leaf span {
    position: absolute;
    inset: 0 0 -100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card.flip .flip-leaf {
    animation: flipLeafDown 0.45s cubic-bezier(0.2, 0.7, 0.25, 1);
}

@keyframes flipLeafDown {
    0% {
        transform: rotateX(0deg);
        filter: brightness(1);
        opacity: 1;
    }
    48% {
        transform: rotateX(-92deg);
        filter: brightness(0.78);
        opacity: 1;
    }
    52% {
        transform: rotateX(-102deg);
        filter: brightness(1.18);
        opacity: 0.72;
    }
    100% {
        transform: rotateX(-180deg);
        filter: brightness(1);
        opacity: 0;
    }
}

.colon {
    min-width: 18px;
    color: var(--primary-lighter);
    font-size: 4rem;
    line-height: 1;
    font-weight: 800;
    text-shadow: 0 0 18px rgba(96, 165, 250, 0.45);
    transform: translateY(-4px);
}

.clock-page .flip-clock {
    gap: clamp(12px, 2vw, 24px);
    padding: clamp(24px, 3.5vw, 52px);
}

.clock-page .flip-card {
    width: clamp(78px, 10.6vw, 154px);
    height: clamp(112px, 15.2vw, 218px);
    font-size: clamp(4rem, 9.6vw, 8.6rem);
}

.clock-page .colon {
    font-size: clamp(4rem, 9.6vw, 8.6rem);
}

.clock-entry {
    background:
        radial-gradient(circle at 78% 18%, rgba(6, 182, 212, 0.11), transparent 30%),
        linear-gradient(180deg, var(--bg-primary), #111a35 52%, var(--bg-primary));
}

.clock-entry-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.clock-entry-panel .section-title,
.clock-entry-panel .section-desc,
.clock-entry-panel .section-kicker {
    text-align: left;
}

.clock-entry-panel .section-title {
    margin-bottom: 10px;
}

/* ============================================
   通用区块样式
   ============================================ */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.05rem;
}

/* ============================================
   关于我
   ============================================ */
.about {
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.about-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(15, 23, 42, 0.82) 50%,
        rgba(15, 23, 42, 0.88) 100%
    );
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.avatar-placeholder {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.1));
    border: 3px solid rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.avatar-placeholder svg {
    width: 80px;
    height: 80px;
    fill: var(--text-muted);
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-placeholder:hover {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.2);
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-lighter);
    margin: 24px 0 10px;
}

.about-motto {
    margin-top: 20px;
    padding-left: 16px;
    border-left: 3px solid var(--primary-lighter);
    color: var(--text-primary);
    font-style: italic;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.skill-tag {
    padding: 8px 18px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-lighter);
    transition: all var(--transition);
}

.skill-tag:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--primary-lighter);
    transform: translateY(-2px);
}

/* ============================================
   作品集
   ============================================ */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary-lighter);
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--primary-lighter);
    color: var(--primary-lighter);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 99, 235, 0.08);
}

.project-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.05));
}

.thumb-placeholder svg {
    width: 56px;
    height: 56px;
    fill: var(--text-muted);
    opacity: 0.6;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    opacity: 0;
    transition: all var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    color: var(--primary-lighter);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 24px;
    border: 1px solid var(--primary-lighter);
    border-radius: var(--radius-sm);
}

.project-info {
    padding: 20px 24px;
}

.project-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

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

.project-tags span {
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--primary-lighter);
}

/* 隐藏被过滤掉的项目 */
.project-card.hidden {
    display: none;
}

/* 网址导航分组 */
.resource-group {
    margin-bottom: 24px;
}

.resource-group:last-child {
    margin-bottom: 0;
}

.resource-group-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    padding-left: 10px;
    border-left: 3px solid var(--primary-lighter);
}

#resources .section-desc {
    margin-bottom: 36px;
}

#resources.projects {
    padding-top: 36px;
}

#resources .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

#resources .project-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 66px;
}

#resources .project-info {
    flex: 1;
    min-width: 0;
    padding: 10px 12px 10px 10px;
}

#resources .project-info h3 {
    font-size: 0.92rem;
    margin-bottom: 3px;
}

#resources .project-info p {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.resource-vpn-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #7c5e10;
    background: linear-gradient(135deg, #f0c850, #d4a843, #c9952e);
    border-radius: 0 var(--radius-md) 0 var(--radius-sm);
    letter-spacing: 0.5px;
    line-height: 1.6;
    white-space: nowrap;
}

/* 网址导航卡片图标 */
.resource-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin: 14px 0 14px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

#resources .project-card:hover .resource-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.resource-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.resource-icon.resource-icon-fallback {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.resource-group--stock .resource-icon {
    background: rgba(236, 72, 153, 0.18);
    border-color: rgba(236, 72, 153, 0.25);
}

.resource-group--color .resource-icon {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.25);
}

.resource-group--font .resource-icon {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.25);
}

.resource-group--pattern .resource-icon {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.25);
}

.resource-group--cutout .resource-icon {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.25);
}

.resource-group--icon .resource-icon {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.25);
}

.resource-group--ai .resource-icon {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.25);
}

.resource-group--plugin {
    margin-bottom: 30px;
}

.resource-subgroup-title {
    font-size: 0.92rem;
    font-weight: 500;
    margin: 18px 0 8px;
    color: var(--text-muted);
    padding-left: 10px;
    border-left: 2px solid var(--border-light);
}

/* ============================================
   独立网址导航页
   ============================================ */
.directory-hero {
    position: relative;
    overflow: hidden;
}

.directory-kicker {
    color: var(--primary-lighter);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}

.directory-jump {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.directory-jump a {
    padding: 8px 16px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.38);
    transition: all var(--transition);
}

.directory-jump a:hover {
    color: var(--text-primary);
    border-color: var(--primary-lighter);
    background: rgba(37, 99, 235, 0.16);
}

.directory-page {
    padding-top: 72px;
}

.directory-group {
    margin-bottom: 72px;
}

.directory-group:last-child {
    margin-bottom: 0;
}

.directory-group-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.directory-index {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--primary-lighter);
    font-weight: 800;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.22);
}

.directory-group-head h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin-bottom: 4px;
}

.directory-group-head p {
    color: var(--text-secondary);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.directory-grid--agents {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.directory-card {
    min-height: 210px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 42%),
        var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.directory-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: var(--shadow-md);
}

.directory-card img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    padding: 8px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.directory-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.directory-card p {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.directory-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 104px;
    height: 34px;
    padding: 0 16px;
    color: var(--primary-lighter);
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid rgba(96, 165, 250, 0.42);
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, 0.10);
    transition: all var(--transition);
}

.directory-action:hover {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
}

.directory-group--featured {
    padding: 34px;
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(139, 92, 246, 0.10));
}

/* ============================================
   画廊
   ============================================ */
.gallery {
    background: var(--bg-secondary);
}

/* ============================================
   文章页面
   ============================================ */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%);
}

.page-header--dark {
    background: linear-gradient(180deg, #0f172a 0%, #151b3d 40%, var(--bg-primary) 100%);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.articles-list {
    padding: 40px 0 80px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.article-card:last-child {
    margin-bottom: 0;
}

.article-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.article-tag {
    padding: 3px 12px;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--primary-lighter);
    font-weight: 500;
}

.article-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-lighter);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.article-link:hover {
    gap: 10px;
    color: var(--accent-light);
}

.article-link::after {
    content: '→';
    transition: transform var(--transition);
}

/* 文章详情页 */
.article-detail {
    padding: 20px 0 80px;
}

.article-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.15);
}

.article-detail-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--primary-lighter);
}

.article-detail-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 20px 0 8px;
    color: var(--text-primary);
}

.article-detail-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.article-detail-content ul {
    margin: 8px 0 16px;
    padding-left: 20px;
    list-style: disc;
}

.article-detail-content li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.article-detail-content strong {
    color: var(--text-primary);
}

.article-detail-content em {
    color: var(--primary-lighter);
    font-style: italic;
}

.article-detail-content .example {
    padding: 12px 16px;
    background: rgba(37, 99, 235, 0.06);
    border-left: 3px solid var(--primary-lighter);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.prompt-image {
    margin: 18px 0 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.prompt-image img {
    width: 100%;
    height: auto;
    display: block;
}

.prompt-image figcaption {
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 0.86rem;
    border-top: 1px solid var(--border);
}

.article-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.9rem;
}

.article-detail-content th,
.article-detail-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.article-detail-content th {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-lighter);
    font-weight: 600;
}

.article-detail-content td {
    color: var(--text-secondary);
}

.article-nav {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-nav .article-link {
    font-size: 1rem;
}

/* 导航栏亮色模式（文章页） */
.navbar--light {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

/* ============================================
   插件宇宙入口
   ============================================ */
.plugin-universe {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(96, 165, 250, 0.24), transparent 28%),
        radial-gradient(circle at 88% 72%, rgba(34, 211, 238, 0.16), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #1a1040 50%, #0f172a 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 24px;
    border-top: 1px solid rgba(37, 99, 235, 0.08);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.plugin-universe-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.plugin-universe-stars span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(96, 165, 250, 0.6);
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
}

.plugin-universe-stars span:nth-child(1)  { top: 12%; left: 8%;  animation-delay: 0s; }
.plugin-universe-stars span:nth-child(2)  { top: 25%; left: 22%; animation-delay: 0.4s; }
.plugin-universe-stars span:nth-child(3)  { top: 8%;  left: 45%; animation-delay: 1.2s; }
.plugin-universe-stars span:nth-child(4)  { top: 35%; left: 65%; animation-delay: 0.8s; }
.plugin-universe-stars span:nth-child(5)  { top: 18%; left: 82%; animation-delay: 2s; }
.plugin-universe-stars span:nth-child(6)  { top: 55%; left: 12%; animation-delay: 1.5s; }
.plugin-universe-stars span:nth-child(7)  { top: 65%; left: 38%; animation-delay: 0.3s; }
.plugin-universe-stars span:nth-child(8)  { top: 48%; left: 55%; animation-delay: 2.5s; }
.plugin-universe-stars span:nth-child(9)  { top: 72%; left: 75%; animation-delay: 1.8s; }
.plugin-universe-stars span:nth-child(10) { top: 60%; left: 92%; animation-delay: 0.6s; }
.plugin-universe-stars span:nth-child(11) { top: 80%; left: 20%; animation-delay: 2.2s; }
.plugin-universe-stars span:nth-child(12) { top: 85%; left: 50%; animation-delay: 1s; }
.plugin-universe-stars span:nth-child(13) { top: 78%; left: 68%; animation-delay: 0.9s; }
.plugin-universe-stars span:nth-child(14) { top: 90%; left: 35%; animation-delay: 1.7s; }
.plugin-universe-stars span:nth-child(15) { top: 88%; left: 85%; animation-delay: 2.8s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%  { opacity: 1; transform: scale(1.8); }
}

.border-glow-card {
    --edge-proximity: 0;
    --cursor-angle: 45deg;
    --edge-sensitivity: 28;
    --color-sensitivity: calc(var(--edge-sensitivity) + 18);
    --border-radius: 24px;
    --glow-padding: 42px;
    --cone-spread: 24;
    --fill-opacity: 0.34;
    --card-bg-solid: #10172c;
    --glow-color: hsl(195deg 95% 72% / 100%);
    --glow-color-60: hsl(195deg 95% 72% / 60%);
    --glow-color-50: hsl(195deg 95% 72% / 50%);
    --glow-color-40: hsl(195deg 95% 72% / 40%);
    --glow-color-30: hsl(195deg 95% 72% / 30%);
    --glow-color-20: hsl(195deg 95% 72% / 20%);
    --glow-color-10: hsl(195deg 95% 72% / 10%);
    --gradient-one: radial-gradient(at 80% 55%, #c084fc 0px, transparent 50%);
    --gradient-two: radial-gradient(at 69% 34%, #f472b6 0px, transparent 50%);
    --gradient-three: radial-gradient(at 8% 6%, #38bdf8 0px, transparent 50%);
    --gradient-four: radial-gradient(at 41% 38%, #c084fc 0px, transparent 50%);
    --gradient-five: radial-gradient(at 86% 85%, #f472b6 0px, transparent 50%);
    --gradient-six: radial-gradient(at 82% 18%, #38bdf8 0px, transparent 50%);
    --gradient-seven: radial-gradient(at 51% 4%, #f472b6 0px, transparent 50%);
    --gradient-base: linear-gradient(#38bdf8 0 100%);
    position: relative;
    isolation: isolate;
    overflow: visible;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity 0.25s ease-out;
    pointer-events: none;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
}

.border-glow-card::before {
    z-index: -1;
    border: 1px solid transparent;
    background:
        linear-gradient(var(--card-bg-solid) 0 100%) padding-box,
        linear-gradient(rgb(255 255 255 / 0%) 0 100%) border-box,
        var(--gradient-one) border-box,
        var(--gradient-two) border-box,
        var(--gradient-three) border-box,
        var(--gradient-four) border-box,
        var(--gradient-five) border-box,
        var(--gradient-six) border-box,
        var(--gradient-seven) border-box,
        var(--gradient-base) border-box;
    opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
    mask-image:
        conic-gradient(
            from var(--cursor-angle) at center,
            black calc(var(--cone-spread) * 1%),
            transparent calc((var(--cone-spread) + 15) * 1%),
            transparent calc((100 - var(--cone-spread) - 15) * 1%),
            black calc((100 - var(--cone-spread)) * 1%)
        );
    -webkit-mask-image:
        conic-gradient(
            from var(--cursor-angle) at center,
            black calc(var(--cone-spread) * 1%),
            transparent calc((var(--cone-spread) + 15) * 1%),
            transparent calc((100 - var(--cone-spread) - 15) * 1%),
            black calc((100 - var(--cone-spread)) * 1%)
        );
}

.border-glow-card::after {
    z-index: -1;
    border: 1px solid transparent;
    background:
        var(--gradient-one) padding-box,
        var(--gradient-two) padding-box,
        var(--gradient-three) padding-box,
        var(--gradient-four) padding-box,
        var(--gradient-five) padding-box,
        var(--gradient-six) padding-box,
        var(--gradient-seven) padding-box,
        var(--gradient-base) padding-box;
    opacity: calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
    mix-blend-mode: soft-light;
    mask-image:
        linear-gradient(to bottom, black, black),
        radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
        radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
        radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
        radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
        radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
        conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
    mask-composite: subtract, add, add, add, add, add;
    -webkit-mask-image:
        linear-gradient(to bottom, black, black),
        radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
        radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
        radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
        radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
        radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
        conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
}

.border-glow-card > .edge-light {
    inset: calc(var(--glow-padding) * -1);
    z-index: 1;
    opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
    mix-blend-mode: plus-lighter;
    mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
    -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
}

.border-glow-card > .edge-light::before {
    content: "";
    position: absolute;
    inset: var(--glow-padding);
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px var(--glow-color),
        inset 0 0 3px 0 var(--glow-color-50),
        inset 0 0 8px 0 var(--glow-color-40),
        inset 0 0 18px 0 var(--glow-color-30),
        inset 0 0 32px 2px var(--glow-color-20),
        0 0 3px 0 var(--glow-color-50),
        0 0 8px 0 var(--glow-color-40),
        0 0 18px 0 var(--glow-color-30),
        0 0 34px 2px var(--glow-color-20),
        0 0 62px 4px var(--glow-color-10);
}

.plugin-universe-content {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 38px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.48));
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.30), 0 0 46px rgba(37, 99, 235, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.plugin-universe-content > :not(.edge-light) {
    position: relative;
    z-index: 2;
}

.plugin-universe-glow {
    --border-radius: 24px;
    --glow-padding: 46px;
    --edge-sensitivity: 24;
    --cone-spread: 22;
    --fill-opacity: 0.28;
    --card-bg-solid: #10172c;
    --glow-color: hsl(196deg 96% 68% / 100%);
    --glow-color-60: hsl(196deg 96% 68% / 60%);
    --glow-color-50: hsl(196deg 96% 68% / 50%);
    --glow-color-40: hsl(196deg 96% 68% / 40%);
    --glow-color-30: hsl(196deg 96% 68% / 30%);
    --glow-color-20: hsl(196deg 96% 68% / 20%);
    --glow-color-10: hsl(196deg 96% 68% / 10%);
}

.plugin-universe-head {
    max-width: 760px;
    text-align: center;
}

.plugin-universe-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 50px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--primary-lighter);
    margin-bottom: 18px;
    letter-spacing: 0.08em;
}

.plugin-universe-title {
    margin-bottom: 14px;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.18;
    font-weight: 800;
    background: linear-gradient(135deg, #f8fbff 0%, var(--primary-lighter) 54%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.plugin-universe-desc {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.75;
}

.plugin-carousel {
    min-height: 100px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.carousel-greeting {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.6;
}

.carousel-question {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 4px;
}

.carousel-answer {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-lighter), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.plugin-universe-btn {
    padding: 14px 34px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.plugin-universe-btn svg {
    transition: transform var(--transition);
}

.plugin-universe-btn:hover svg {
    transform: translateX(4px);
}

.plugin-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.plugin-feature-card {
    min-height: 150px;
    padding: 22px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.58);
    text-align: left;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.plugin-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.36);
    background: rgba(37, 99, 235, 0.14);
}

.plugin-feature-card span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(6, 182, 212, 0.13);
    border: 1px solid rgba(34, 211, 238, 0.22);
    margin-bottom: 16px;
}

.plugin-feature-card h3 {
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.plugin-feature-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ============================================
   插件宇宙页面
   ============================================ */
.plugins-header {
    position: relative;
    overflow: hidden;
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #0f172a 0%, #1a1040 50%, var(--bg-primary) 100%);
}

.page-header-stars {
    position: absolute;
    inset: 0;
}

.page-header-stars span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(96, 165, 250, 0.6);
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
}

.page-header-stars span:nth-child(1)  { top: 15%; left: 10%; animation-delay: 0s; }
.page-header-stars span:nth-child(2)  { top: 30%; left: 25%; animation-delay: 0.5s; }
.page-header-stars span:nth-child(3)  { top: 10%; left: 50%; animation-delay: 1s; }
.page-header-stars span:nth-child(4)  { top: 40%; left: 70%; animation-delay: 1.5s; }
.page-header-stars span:nth-child(5)  { top: 20%; left: 88%; animation-delay: 2s; }
.page-header-stars span:nth-child(6)  { top: 55%; left: 15%; animation-delay: 0.8s; }
.page-header-stars span:nth-child(7)  { top: 65%; left: 40%; animation-delay: 1.2s; }
.page-header-stars span:nth-child(8)  { top: 50%; left: 60%; animation-delay: 2.2s; }
.page-header-stars span:nth-child(9)  { top: 70%; left: 78%; animation-delay: 0.3s; }
.page-header-stars span:nth-child(10) { top: 60%; left: 95%; animation-delay: 1.8s; }
.page-header-stars span:nth-child(11) { top: 80%; left: 22%; animation-delay: 2.5s; }
.page-header-stars span:nth-child(12) { top: 85%; left: 55%; animation-delay: 0.7s; }
.page-header-stars span:nth-child(13) { top: 78%; left: 82%; animation-delay: 1.4s; }
.page-header-stars span:nth-child(14) { top: 90%; left: 40%; animation-delay: 2.8s; }
.page-header-stars span:nth-child(15) { top: 88%; left: 68%; animation-delay: 0.9s; }

.plugins-section {
    padding: 40px 0 80px;
    background: var(--bg-primary);
}

.plugins-section .container {
    max-width: 1320px;
    padding: 0 48px;
}

.plugins-glow-panel {
    position: relative;
    z-index: 1;
    padding: 46px 52px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.58));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), 0 0 44px rgba(37, 99, 235, 0.10);
}

.plugins-glow-panel > :not(.edge-light) {
    position: relative;
    z-index: 2;
}

.plugins-section .resource-group {
    margin-bottom: 34px;
}

.plugins-section .resource-group:last-child {
    margin-bottom: 0;
}

.plugins-section .resource-group-title {
    font-size: 1.32rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #a78bfa;
    padding-left: 14px;
    border-left: 4px solid #a78bfa;
}

.plugin-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px;
}

.plugins-section .project-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 76px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all var(--transition);
}

.plugins-section .project-card:hover {
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.plugins-section .project-info {
    padding: 0;
}

.plugins-section .project-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.plugins-section .project-info p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0;
    line-height: 1.55;
}

.plugin-rocket {
    width: 3cm;
    height: 3cm;
    object-fit: contain;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    animation: rocketBounce 2s ease-in-out infinite;
}

.plugin-rocket-em {
    width: 1cm;
    height: 1cm;
    object-fit: contain;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    animation: rocketBounce 2s ease-in-out infinite;
}

@keyframes rocketBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============================================
   PPT作品集
   ============================================ */
.portfolio-section {
    margin-top: -1px;
    padding: 40px 0 80px;
    background:
        linear-gradient(180deg, var(--bg-primary) 0%, rgba(15, 23, 42, 0) 18%),
        radial-gradient(circle at 16% 46%, rgba(37, 99, 235, 0.16), transparent 30%),
        radial-gradient(circle at 86% 52%, rgba(6, 182, 212, 0.10), transparent 32%),
        linear-gradient(180deg, #0f172a 0%, #151b3d 42%, var(--bg-primary) 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
}

.portfolio-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 10px;
    text-align: center;
}

.portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
}

.portfolio-image:hover {
    border-color: rgba(96, 165, 250, 0.55);
    transform: translateY(-4px);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42), 0 0 26px rgba(37, 99, 235, 0.16);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: color var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: #60a5fa;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* ============================================
   画廊
   ============================================ */
.gallery {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.92)), url('../images/半盏清欢.png') center / cover no-repeat fixed;
    position: relative;
}

.gallery .container {
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all var(--transition);
}

.gallery-item:hover .gallery-placeholder {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}

.gallery-placeholder svg {
    width: 40px;
    height: 40px;
    fill: var(--text-muted);
    opacity: 0.5;
}

.gallery-placeholder span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.gallery-preview {
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery-preview-stage {
    position: relative;
    width: min(860px, 100%);
    height: 360px;
    margin: 44px auto 0;
    perspective: 1100px;
}

.gallery-preview-card {
    position: absolute;
    inset: 20px 120px;
    display: block;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.gallery-preview-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-preview-card span {
    position: absolute;
    left: 24px;
    bottom: 22px;
    padding: 12px 18px;
    border-radius: 999px;
    color: #f8fbff;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(6, 182, 212, 0.82));
    box-shadow: 0 12px 34px rgba(37, 99, 235, 0.32);
}

.gallery-preview-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.58);
    box-shadow: 0 34px 88px rgba(37, 99, 235, 0.24);
}

.gallery-preview-card--offset {
    transform: translate3d(120px, 26px, -90px) rotateY(-18deg);
    opacity: 0.58;
}

.gallery-preview-card--rear {
    transform: translate3d(-120px, 42px, -150px) rotateY(18deg);
    opacity: 0.38;
}

.circular-gallery-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 16%, rgba(37, 99, 235, 0.16), transparent 28%),
        radial-gradient(circle at 84% 28%, rgba(6, 182, 212, 0.12), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #151b3d 42%, var(--bg-primary) 100%);
    animation: galleryPageEnter 0.7s ease both;
}

.circular-gallery-hero {
    padding: 138px 24px 10px;
    text-align: center;
}

.circular-gallery-copy {
    max-width: 760px;
    margin: 0 auto;
}

.section-kicker {
    margin-bottom: 10px;
    color: var(--accent-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.circular-gallery-copy h1 {
    margin-bottom: 14px;
    font-size: clamp(2.1rem, 4.8vw, 4.1rem);
    line-height: 1;
    font-weight: 800;
    background: linear-gradient(135deg, #f8fbff 0%, #93c5fd 48%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.circular-gallery-copy p:last-child {
    color: var(--text-secondary);
    font-size: 1rem;
}

.circular-gallery-shell {
    position: relative;
    width: 100%;
    height: min(620px, 68vh);
    min-height: 430px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.circular-gallery-shell.is-dragging {
    cursor: grabbing;
}

.circular-gallery-track {
    position: absolute;
    inset: 0;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.circular-gallery-item {
    position: absolute;
    top: 48%;
    left: 50%;
    width: clamp(220px, 28vw, 390px);
    aspect-ratio: 7 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

.circular-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.86) contrast(1.04);
}

.circular-gallery-item h2 {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.45rem);
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.58);
}

.circular-gallery-hint {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.54);
}

@keyframes galleryPageEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ============================================
   联系我
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition);
}

a.contact-item:hover {
    color: var(--primary-lighter);
}

.contact-hint {
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-lighter);
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.icp-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.icp-link:hover {
    color: var(--primary-lighter);
}

/* ============================================
   动画
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 32px 40px;
        gap: 4px;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .avatar-placeholder {
        width: 180px;
        height: 180px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .gallery-preview {
        min-height: 520px;
    }

    .gallery-preview-stage {
        height: 300px;
    }

    .gallery-preview-card {
        inset: 24px 34px;
    }

    .gallery-preview-card--offset {
        transform: translate3d(46px, 26px, -90px) rotateY(-14deg);
    }

    .gallery-preview-card--rear {
        transform: translate3d(-46px, 44px, -150px) rotateY(14deg);
    }

    .circular-gallery-hero {
        padding-top: 116px;
    }

    .circular-gallery-shell {
        height: 560px;
        min-height: 500px;
    }

    .section {
        padding: 70px 0;
    }

    #resources.projects {
        padding-top: 28px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .flip-clock {
        gap: 6px;
        padding: 18px 10px;
        border-radius: 18px;
    }

    .flip-card {
        width: 42px;
        height: 64px;
        border-radius: 10px;
        font-size: 2.45rem;
    }

    .colon {
        min-width: 8px;
        font-size: 2.35rem;
        transform: translateY(-3px);
    }

    .flip-clock-date {
        margin-bottom: 24px;
        font-size: 0.85rem;
    }

    .clock-page .flip-clock-section--fullscreen {
        padding: 0;
    }

    .clock-page .flip-clock-panel {
        width: min(1920px, calc(100vw - 28px));
        height: min(700px, calc(100vh - 86px));
        height: min(700px, calc(100dvh - 86px));
    }

    .clock-page .flip-clock-section--fullscreen .container {
        padding: 0 14px;
    }

    .clock-page-title {
        font-size: 32px;
    }

    .clock-page .flip-clock-date {
        margin-bottom: 30px;
    }

    .clock-page .flip-clock {
        gap: 6px;
        padding: 18px 8px;
    }

    .clock-page .flip-card {
        width: 44px;
        height: 68px;
        font-size: 2.55rem;
    }

    .clock-page .colon {
        min-width: 8px;
        font-size: 2.35rem;
    }

    .clock-entry-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .plugin-grid--4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .plugin-universe {
        padding: 56px 18px;
    }

    .plugin-universe-content {
        padding: 22px;
        gap: 20px;
    }

    .plugin-universe-title {
        font-size: 1.9rem;
    }

    .plugin-feature-grid {
        grid-template-columns: 1fr;
    }

    .plugin-feature-card {
        min-height: auto;
        padding: 18px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plugins-section .container {
        padding: 0 24px;
    }

    .plugins-glow-panel {
        padding: 22px;
        border-radius: 20px;
    }

    .directory-jump {
        justify-content: flex-start;
    }

    .directory-group {
        margin-bottom: 52px;
    }

    .directory-group-head {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .directory-index {
        width: 48px;
        height: 48px;
        border-radius: var(--radius-md);
    }

    .directory-grid,
    .directory-grid--agents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .directory-card {
        min-height: 206px;
        padding: 18px;
    }

    .directory-group--featured {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .project-card {
        margin: 0 -12px;
    }

    .plugin-grid--4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .portfolio-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .directory-grid,
    .directory-grid--agents {
        grid-template-columns: 1fr;
    }

    .directory-card {
        min-height: auto;
    }
}
