/* ============================================================
   LengMeng · 组件层
   侧栏 / 首屏 / 卡片 / 列表 / 相册 / 联系 / 内嵌页
   ============================================================ */

/* ============================================================
   1. 侧边栏
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    padding: 1.6rem 1.1rem 1.2rem;
    background: var(--navbar-bg);
    backdrop-filter: blur(26px) saturate(120%);
    -webkit-backdrop-filter: blur(26px) saturate(120%);
    border-right: 1px solid var(--border);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 0.5s var(--ease-out), background-color 0.5s var(--ease);
}

.sidebar::-webkit-scrollbar { width: 2px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); }

/* ---------- 品牌 ---------- */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.55rem 1.35rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--border);
}

.logo-icon {
    font-size: 0.62rem;
    color: var(--signal);
    transform: translateY(-1px);
    animation: logo-pulse 4s var(--ease) infinite;
}

@keyframes logo-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.logo-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.logo-dark-btn {
    margin-left: auto;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    border-color: transparent;
}

.logo-dark-btn:hover {
    transform: none;
    border-color: var(--border-hover);
    background: var(--card-bg-hover);
}

/* ---------- 工具区 ---------- */
.sidebar-tool {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    font-size: 0.76rem;
    color: var(--text-secondary);
    transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.weather-info:hover {
    border-color: var(--border-hover);
    background: var(--card-bg-hover);
}

.weather-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
}

.weather-city {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.weather-temp {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.weather-line-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.weather-cond {
    color: var(--text-secondary);
}

.weather-range {
    font-family: var(--font-mono);
}

/* 顶部工具按钮行 */
.sidebar-actions {
    display: flex;
    gap: 0.5rem;
}

.sidebar-actions .icon-btn {
    flex: 1;
    width: auto;
    height: 34px;
    border-radius: var(--radius-xs);
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sidebar-actions .icon-btn:hover {
    color: var(--text-primary);
}

/* ---------- 导航 ---------- */
.sidebar-nav {
    flex: 1;
}

.sidebar-nav > ul {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-nav li a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.8rem;
    border-radius: var(--radius-xs);
    font-size: 0.855rem;
    color: var(--text-secondary);
    transition: color 0.28s var(--ease), background-color 0.28s var(--ease);
}

.sidebar-nav li a:hover {
    color: var(--text-primary);
    background: var(--card-bg);
}

.sidebar-nav li.active > a {
    color: var(--text-primary);
    background: var(--card-bg-hover);
}

.sidebar-nav li.active > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 15px;
    border-radius: 2px;
    background: var(--text-primary);
    transform: translateY(-50%);
}

.nav-icon {
    width: 16px;
    min-width: 16px;
    font-size: 0.72rem;
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.28s var(--ease);
}

.sidebar-nav li.active .nav-icon,
.sidebar-nav li a:hover .nav-icon {
    opacity: 0.95;
}

.nav-label {
    flex: 1;
}

.nav-count {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ---------- 子菜单 ---------- */
.sidebar-nav .has-submenu > a {
    cursor: pointer;
}

.submenu-arrow {
    font-size: 0.5rem;
    opacity: 0.4;
    transition: transform 0.35s var(--ease);
}

.has-submenu.open .submenu-arrow {
    transform: rotate(90deg);
    opacity: 0.8;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s var(--ease-out), opacity 0.3s var(--ease),
        margin 0.4s var(--ease-out);
}

.has-submenu.open .submenu {
    max-height: 260px;
    opacity: 1;
    margin: 2px 0 6px;
}

.submenu li a {
    padding: 0.5rem 0.8rem 0.5rem 2.15rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.submenu li a::before {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: 50%;
    width: 3px;
    height: 1px;
    background: currentColor;
    transform: translateY(-50%);
    opacity: 0.5;
    transition: width 0.3s var(--ease);
}

.submenu li a:hover::before {
    width: 8px;
}

.submenu li.active a {
    color: var(--text-primary);
}

/* ---------- 侧栏底部 ---------- */
.sidebar-foot {
    margin-top: 1.2rem;
    padding: 0.9rem 0.55rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.status-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 3px var(--signal-glow);
    animation: dot-breathe 3s var(--ease) infinite;
}

@keyframes dot-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ---------- 移动端开关 ---------- */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--navbar-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text-primary);
}

.sidebar-toggle:hover {
    border-color: var(--border-hover);
}

.sidebar-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
}

.sidebar-mask.show {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   2. 首页 Hero
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5rem;
    padding: 7rem 0 4rem;
    max-width: var(--content-max);
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4rem;
}

.hero-main {
    min-width: 0;
}

.hero-eyebrow {
    margin-bottom: 1.6rem;
}

.hero-name {
    font-size: clamp(2.9rem, 7vw, 5.2rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 1.4rem;
}

.name-text {
    display: inline-block;
    background: linear-gradient(180deg, var(--text-primary) 30%, var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.name-cursor {
    display: inline-block;
    width: 3px;
    height: 0.82em;
    margin-left: 0.12em;
    background: var(--signal);
    vertical-align: -0.02em;
    animation: lm-blink 1.2s step-end infinite;
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 1.3rem;
}

.hero-role span:not(:last-child)::after {
    content: "·";
    margin-left: 0.75rem;
    color: var(--text-muted);
}

.hero-desc {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.8;
    color: var(--text-secondary);
    min-height: 3.2em;
    max-width: 34em;
    margin-bottom: 2.4rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 2.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-icon {
    color: var(--text-muted);
    opacity: 0.7;
}

.meta-divider {
    color: var(--border-hover);
}

.meta-item strong,
#currentTime {
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-btn-group {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

/* ---------- 头像 ---------- */
.hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.hero-avatar {
    position: relative;
    width: clamp(140px, 17vw, 208px);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(160deg, var(--border-hover), transparent 55%, var(--border));
}

.avatar-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid var(--border);
    animation: ring-spin 26s linear infinite;
}

.avatar-ring::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--signal);
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px var(--signal-glow);
}

@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

.avatar-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-elevated);
}

.avatar-core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.35) contrast(1.02);
    transition: filter 0.6s var(--ease), transform 0.8s var(--ease-out);
}

.hero-avatar:hover .avatar-core img {
    filter: grayscale(0) contrast(1.05);
    transform: scale(1.03);
}

.avatar-status {
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.24rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.status-text {
    color: var(--text-secondary);
}

/* ---------- 首屏底部 ---------- */
.hero-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.hero-facts {
    display: flex;
    gap: 3.2rem;
    flex-wrap: wrap;
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fact-num {
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.fact-num small {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 2px;
}

.fact-label {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.scroll-arrow {
    font-size: 0.8rem;
    animation: arrow-nudge 2.4s var(--ease) infinite;
}

@keyframes arrow-nudge {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(5px); opacity: 1; }
}

/* ============================================================
   3. 首页区块
   ============================================================ */
.home-section {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 2rem 0 6.5rem;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.6rem;
}

.section-head-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-kicker {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section-heading {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    white-space: nowrap;
}

.section-more:hover {
    color: var(--text-primary);
}

.section-more svg {
    width: 12px;
    height: 12px;
    transition: transform 0.35s var(--ease-out);
}

.section-more:hover svg {
    transform: translateX(3px);
}

/* ---------- 快速导航 ---------- */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.9rem 1.7rem 1.6rem;
    background: var(--bg-primary);
    transition: background-color 0.45s var(--ease);
}

.quick-card:hover {
    background: var(--bg-secondary);
}

.quick-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.quick-index {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.quick-icon {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.35s var(--ease), transform 0.5s var(--ease-out);
}

.quick-card:hover .quick-icon {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.quick-card h3 {
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.quick-card p {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.quick-arrow {
    margin-top: auto;
    padding-top: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease-out);
}

.quick-card:hover .quick-arrow {
    opacity: 1;
    transform: none;
    color: var(--text-secondary);
}

/* ---------- 热点话题 ---------- */
.hot-topics-section {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 0 6.5rem;
}

.hot-topics-container {
    border-top: 1px solid var(--border);
}

.hot-topics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

.hot-topics-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hot-topics-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--signal);
    animation: dot-breathe 2.6s var(--ease) infinite;
}

.hot-topics-more {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hot-topics-more:hover {
    color: var(--text-primary);
}

.hot-topics-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
}

.hot-topic-item {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.95rem 0.2rem;
    border-bottom: 1px solid var(--line-soft);
    transition: background-color 0.3s var(--ease), padding-left 0.4s var(--ease-out);
}

.hot-topic-item:hover {
    padding-left: 0.6rem;
    background: linear-gradient(90deg, var(--card-bg), transparent);
}

.hot-topic-rank {
    flex-shrink: 0;
    width: 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.hot-topic-item:nth-child(1) .hot-topic-rank,
.hot-topic-item:nth-child(2) .hot-topic-rank,
.hot-topic-item:nth-child(3) .hot-topic-rank {
    color: var(--text-primary);
}

.hot-topic-title {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s var(--ease);
}

.hot-topic-item:hover .hot-topic-title {
    color: var(--text-primary);
}

.hot-topic-hot {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    opacity: 0.75;
}

.hot-topic-loading {
    grid-column: 1 / -1;
    padding: 2.4rem 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---------- 联系 ---------- */
.contact-section {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 0 7rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-heading {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
}

.contact-desc {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    max-width: 32em;
}

.contact-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: right;
}

.contact-value a:hover {
    color: var(--signal);
}

.contact-qrcode {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qrcode-img {
    width: 84px;
    height: 84px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    object-fit: cover;
    filter: grayscale(0.2);
}

.qrcode-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qrcode-label {
    font-size: 0.74rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 12em;
}

.contact-form-wrap {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
}

.form-heading {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.4rem;
}

/* ============================================================
   4. 关于我
   ============================================================ */
.about-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}

.about-side {
    position: sticky;
    top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.profile-card {
    text-align: left;
}

.profile-avatar {
    position: relative;
    width: 84px;
    height: 84px;
    margin-bottom: 1.2rem;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(160deg, var(--border-hover), var(--border));
}

.profile-avatar .avatar-core {
    border-radius: 50%;
}

.profile-avatar .avatar-core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3);
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.profile-role {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    gap: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.stat-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.info-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.84rem;
}

.info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.info-value {
    color: var(--text-primary);
    text-align: right;
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-width: 0;
}

/* 技能 */
.skill-group {
    margin-bottom: 1.5rem;
}

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

.skill-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.skill-tag {
    padding: 0.3rem 0.72rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.77rem;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.skill-tag:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--card-bg-hover);
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 1.35rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.7rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.35rem;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-primary);
    transform: translateX(-2px);
    box-shadow: 0 0 0 3px var(--bg-primary);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.timeline-content h4 {
    font-size: 0.98rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* 经历列表 */
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.exp-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.86rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.exp-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 5px;
    height: 1px;
    background: var(--text-muted);
}

.exp-list li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* 证书 */
.cert-group {
    margin-bottom: 1.1rem;
}

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

.cert-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cert-tag {
    padding: 0.26rem 0.62rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================================
   5. 作品
   ============================================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2.4rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid var(--border);
}

.filter-btn,
.album-filter-btn,
.anime-filter-btn {
    padding: 0.4rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.3s var(--ease);
}

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

.filter-btn.active,
.album-filter-btn.active,
.anime-filter-btn.active {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--card-bg-hover);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}

.work-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
    transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
        transform 0.5s var(--ease-out);
}

.work-card:hover {
    border-color: var(--border-hover);
    background: var(--card-bg-hover);
}

.work-card.hide {
    display: none;
}

.work-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-secondary);
}

.work-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.45) brightness(0.85);
    transition: transform 0.8s var(--ease-out), filter 0.6s var(--ease);
}

.work-card:hover .work-cover-img {
    transform: scale(1.04);
    filter: grayscale(0) brightness(0.95);
}

.cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.6rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.work-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.1rem;
    background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

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

.work-link {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1px;
}

.work-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.3rem 1.35rem 1.4rem;
}

.work-title {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.work-meta {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.work-desc {
    font-size: 0.83rem;
    line-height: 1.7;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.3rem;
}

.work-tags span {
    padding: 0.16rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.works-loading {
    grid-column: 1 / -1;
    padding: 3rem 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.edit-hint {
    margin-bottom: 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

.add-work-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border: 1px dashed var(--border-hover);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.35s var(--ease);
}

.add-work-btn:hover {
    color: var(--text-primary);
    border-style: solid;
    background: var(--card-bg);
}

.work-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s var(--ease), background-color 0.3s;
}

.work-card:hover .work-delete-btn {
    opacity: 1;
}

.work-delete-btn:hover {
    background: #b4453f;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: 100%;
    max-width: 520px;
    max-height: 86vh;
    overflow-y: auto;
    padding: 1.8rem;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-lg);
    transform: translateY(10px) scale(0.99);
    transition: transform 0.4s var(--ease-out);
}

.modal-overlay.show .modal-box {
    transform: none;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--card-bg-hover);
}

.modal-submit {
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.78rem;
    border-radius: var(--radius-sm);
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.86rem;
    font-weight: 500;
    transition: opacity 0.3s var(--ease);
}

.modal-submit:hover {
    opacity: 0.85;
}

/* ============================================================
   6. 博客 / 工具列表
   ============================================================ */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 3.5rem;
    align-items: start;
}

.blog-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.blog-card {
    position: relative;
    padding: 1.7rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: padding-left 0.45s var(--ease-out);
}

.blog-card:hover {
    padding-left: 0.9rem;
}

.blog-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.7rem;
    bottom: 1.7rem;
    width: 1px;
    background: var(--text-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.45s var(--ease-out);
}

.blog-card:hover::before {
    transform: scaleY(1);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.blog-category {
    color: var(--signal);
}

.blog-title {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: color 0.3s var(--ease);
}

.blog-card:hover .blog-title {
    color: var(--text-primary);
}

.blog-excerpt {
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    max-width: 60em;
}

.blog-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    padding: 0.14rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.blog-read {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color 0.3s var(--ease), transform 0.4s var(--ease-out);
}

.blog-card:hover .blog-read {
    color: var(--text-primary);
    transform: translateX(3px);
}

.blog-sidebar {
    position: sticky;
    top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.sidebar-title {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border);
}

.category-list li {
    border-bottom: 1px solid var(--line-soft);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.category-list a:hover {
    color: var(--text-primary);
}

.category-list span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-cloud span {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.tag-cloud span:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--card-bg);
}

/* 社交 */
.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.social-link:last-child {
    border-bottom: none;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
}

.social-link:hover .social-icon {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.social-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.social-name {
    font-size: 0.82rem;
    color: var(--text-primary);
}

.social-id {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--text-muted);
}

.social-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.35s var(--ease-out);
}

.social-link:hover .social-arrow {
    transform: translateX(3px);
    color: var(--text-primary);
}

/* 日志时间线 */
.log-timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 1.6rem;
}

.log-timeline::before {
    content: "";
    position: absolute;
    left: 62px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--border);
}

.log-item {
    position: relative;
    display: flex;
    gap: 2.4rem;
    margin-bottom: 2.2rem;
}

.log-item::before {
    content: "";
    position: absolute;
    left: -1.6rem;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-primary);
    box-shadow: 0 0 0 3px var(--bg-primary);
}

.log-date {
    flex-shrink: 0;
    width: 46px;
    text-align: right;
}

.log-day {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1;
}

.log-month {
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.log-content {
    flex: 1;
    min-width: 0;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    transition: border-color 0.35s var(--ease);
}

.log-content:hover {
    border-color: var(--border-hover);
}

.log-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.log-content p {
    font-size: 0.84rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
}

.log-tags {
    display: flex;
    gap: 0.5rem;
}

.log-tags span {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ============================================================
   7. 相册
   ============================================================ */
.album-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2.2rem;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
    gap: 0.75rem;
}

.album-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    background: var(--bg-secondary);
    transition: border-color 0.4s var(--ease), transform 0.6s var(--ease-out);
}

.album-item.tall {
    grid-row: span 2;
}

.album-item.wide {
    grid-column: span 2;
}

.album-item.hide {
    display: none;
}

.album-item:hover {
    border-color: var(--border-hover);
}

.album-thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.4) brightness(0.9);
    transform: scale(1.01);
    transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
}

.album-item:hover .album-thumb img {
    transform: scale(1.06);
    filter: grayscale(0) brightness(1);
}

.album-info {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 1.2rem 1rem 0.9rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    transform: translateY(12px);
    opacity: 0;
    transition: all 0.45s var(--ease-out);
}

.album-item:hover .album-info {
    transform: none;
    opacity: 1;
}

.album-title {
    font-size: 0.8rem;
    color: #fff;
}

.album-date {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 灯箱 */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.open {
    visibility: visible;
    opacity: 1;
}

.lightbox-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    max-width: 88vw;
    max-height: 88vh;
    text-align: center;
    transform: scale(0.98);
    transition: transform 0.45s var(--ease-out);
}

.lightbox.open .lightbox-content {
    transform: none;
}

.lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
}

.lightbox-close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.lightbox-image img {
    max-width: 86vw;
    max-height: 76vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-caption {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   8. 动漫
   ============================================================ */
.anime-jump-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 1.5rem;
    margin-bottom: 2.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.anime-jump-card:hover {
    border-color: var(--border-hover);
    background: var(--card-bg-hover);
}

.jump-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.jump-info {
    flex: 1;
    min-width: 0;
}

.jump-info h3 {
    font-size: 0.98rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.jump-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.jump-arrow {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.anime-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
    gap: 1.2rem;
}

.anime-loading {
    grid-column: 1 / -1;
    padding: 3rem 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.anime-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
    transition: border-color 0.4s var(--ease), transform 0.5s var(--ease-out);
}

.anime-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.anime-cover {
    position: relative;
    width: 100%;
    padding-top: 138%;
    overflow: hidden;
    background: var(--bg-secondary);
}

.anime-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.35) brightness(0.9);
    transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
}

.anime-card:hover .anime-cover img {
    transform: scale(1.05);
    filter: grayscale(0) brightness(1);
}

.anime-cover-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    color: var(--text-muted);
}

.anime-score {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-xs);
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: #f0e2c0;
}

.anime-status {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    padding: 0.13rem 0.45rem;
    border-radius: var(--radius-xs);
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    font-size: 0.64rem;
    color: rgba(255, 255, 255, 0.85);
}

.anime-info {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.9rem 0.95rem 1rem;
    flex: 1;
}

.anime-title {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-meta {
    display: flex;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    color: var(--text-muted);
}

.anime-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.anime-tag {
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.64rem;
    color: var(--text-muted);
}

.anime-desc {
    margin-top: auto;
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   9. 内嵌页
   ============================================================ */
.embed-page {
    margin-left: var(--sidebar-w) !important;
    width: calc(100% - var(--sidebar-w)) !important;
    max-width: none !important;
    height: 100vh;
    padding: 0 !important;
    overflow: hidden;
}

.embed-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
}

.embed-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    padding-top: 54px;
    border: none;
    box-sizing: border-box;
}

.embed-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
}

.embed-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.embed-title .embed-icon {
    color: var(--text-muted);
}

.embed-actions {
    display: flex;
    gap: 0.5rem;
}

.embed-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.74rem;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}

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

/* ============================================================
   10. 响应式
   ============================================================ */
@media (max-width: 1200px) {
    .hero-grid {
        gap: 2.5rem;
    }
    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .blog-layout {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 2.5rem;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    .sidebar.open {
        transform: none;
        box-shadow: 40px 0 90px -40px rgba(0, 0, 0, 0.8);
    }
    .sidebar-toggle {
        display: flex;
    }
    .sidebar-mask {
        display: block;
    }
    .hero-section {
        min-height: auto;
        padding: 7.5rem 0 3.5rem;
        gap: 3rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.4rem;
    }
    .hero-avatar-wrap {
        order: -1;
    }
    .hero-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.8rem;
    }
    .hero-facts {
        gap: 2.2rem;
    }
    .hero-scroll-hint {
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
    }
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-side {
        position: static;
    }
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.8rem;
    }
    .album-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
    .embed-page {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .quick-grid {
        grid-template-columns: 1fr;
    }
    .hot-topics-list {
        grid-template-columns: 1fr;
    }
    .works-grid {
        grid-template-columns: 1fr;
    }
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    .album-item.wide {
        grid-column: span 1;
    }
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .log-timeline::before {
        left: 46px;
    }
    .log-item {
        gap: 1.4rem;
    }
    .log-date {
        width: 34px;
    }
    .anime-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }
    .hero-meta {
        gap: 0.6rem;
    }
    .meta-divider {
        display: none;
    }
    .meta-item {
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .album-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .album-item.tall {
        grid-row: span 1;
    }
    .anime-grid {
        grid-template-columns: 1fr;
    }
    .hero-facts {
        gap: 1.6rem;
    }
    .contact-form-wrap {
        padding: 1.3rem;
    }
}

/* 打印 */
@media print {
    .sidebar,
    .sidebar-toggle,
    .bg-layer,
    .back-top,
    .scroll-progress,
    .footer {
        display: none !important;
    }
    .main-container,
    .main-container.page-container {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    body {
        background: #fff;
        color: #000;
    }
}
