/* ========================================
   数字饭团 - 个人小站样式
   风格：纯色 · 干净 · 大厂高级动效
   ======================================== */

/* ---------- Design Tokens ---------- */
:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f8;
    --text-primary: #0a0a0a;
    --text-secondary: #555;
    --text-muted: #999;
    --line: #ececec;
    --brand: #1a1a1a;
    --accent: #2b5bff;
    --accent-soft: #eef3ff;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.10);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 0.3s var(--ease);
    --max-width: 1200px;
    --nav-height: 64px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 200;
}

/* ---------- 自定义光标 ---------- */
.cursor-dot, .cursor {
    display: none;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
}
body.has-cursor .cursor-dot,
body.has-cursor .cursor { display: block; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .content-card { cursor: none; }
.cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
}
.cursor-ring-inner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    mix-blend-mode: difference;
    transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.cursor.hovering .cursor-ring-inner {
    transform: scale(1.5);
    background: rgba(255,255,255,0.9);
}
.cursor.pressing .cursor-ring-inner {
    transform: scale(0.7);
}

/* ---------- 导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: var(--transition);
}
.nav-logo:hover { opacity: 0.7; }
.nav-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.nav-logo:hover .nav-logo-icon { transform: rotate(-8deg) scale(1.08); }
.nav-menu {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.nav-link {
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-soft);
}
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-soft);
    font-weight: 600;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-height) + 60px) 2rem 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
    will-change: transform;
}
.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: rgba(43, 91, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}
.hero-container {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
}
.hero-content { max-width: 600px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: var(--accent-soft);
    border: 1px solid rgba(43, 91, 255, 0.18);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s var(--ease);
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.hero-title-line { display: block; color: var(--text-primary); }
/* 逐字揭示 */
.hero-title-line .char-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.08em;
}
.hero-title-line .char {
    display: inline-block;
    transform: translateY(115%);
    transition: transform 0.9s var(--ease);
}
.hero-title-line.chars-in .char { transform: translateY(0); }
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    animation: fadeUp 0.7s var(--ease) 0.35s both;
}
.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeUp 0.7s var(--ease) 0.5s both;
}
.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    animation: fadeUp 0.7s var(--ease) 0.65s both;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
    cursor: pointer;
    will-change: transform;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn-primary { background: var(--text-primary); color: #fff; }
.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 12px 32px rgba(43, 91, 255, 0.25);
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--line);
    transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn-ghost:hover {
    background: var(--bg-soft);
    border-color: var(--text-primary);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero 视觉侧 */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeUp 0.8s var(--ease) 0.4s both;
    will-change: transform;
}
.hero-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.hero-card-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.2rem;
    object-fit: contain;
    animation: logoFloat 4.5s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
.hero-card-tags {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.hero-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    background: var(--bg-soft);
    color: var(--text-secondary);
    border-radius: 100px;
    font-weight: 500;
    transition: var(--transition);
}
.hero-tag:hover { background: var(--accent-soft); color: var(--accent); }
.hero-card-socials {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}
.hero-social {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--text-secondary);
    transition: var(--transition);
}
.hero-social svg { width: 18px; height: 18px; }
.hero-social:hover {
    transform: translateY(-3px);
    color: #fff;
}
.hero-social-bili:hover { background: #00a1d6; }
.hero-social-douyin:hover { background: #000; }
.hero-social-github:hover { background: #24292e; }
.hero-social-weibo:hover { background: #e6162d; }

.hero-stats {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: var(--shadow-md);
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.hero-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}
.hero-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--line);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 1;
}
.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: var(--text-muted);
    animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); transform-origin: top; }
    50% { transform: scaleY(0.3); transform-origin: top; }
}

/* ---------- 通用 Section ---------- */
.section { padding: 7rem 2rem; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-container { max-width: var(--max-width); margin: 0 auto; }
.section-header { margin-bottom: 4rem; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}
.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
    line-height: 1.15;
}
/* 标题下蓝线延伸 */
.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 14px;
    transition: width 0.9s var(--ease) 0.3s;
}
.section-header.visible .section-title::after { width: 56px; }
.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ---------- 内容分享 ---------- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.content-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    cursor: pointer;
    will-change: transform;
}
.content-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
/* 扫光 */
.content-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.45) 50%, transparent 58%);
    transform: translateX(-130%);
    pointer-events: none;
    z-index: 2;
}
.content-card:hover::after {
    transform: translateX(130%);
    transition: transform 0.9s var(--ease);
}
.content-card-banner {
    height: 160px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    transition: transform 0.5s var(--ease);
}
.content-card:hover .content-card-banner { transform: scale(1.03); }
.banner-1 { background: #2b5bff; }
.banner-2 { background: #f5576c; }
.banner-3 { background: #00b8d4; }
.banner-4 { background: #22c55e; }
.content-card-cat {
    background: rgba(255,255,255,0.95);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
}
.content-card-body { padding: 1.5rem; }
.content-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transition: color 0.3s;
}
.content-card:hover .content-card-title { color: var(--accent); }
.content-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.content-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

/* ---------- 我推卡片 ---------- */
.oshi-list { display: flex; flex-direction: column; gap: 1.5rem; }
.oshi-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    color: var(--text-primary);
    will-change: transform;
}
.oshi-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.oshi-poster {
    width: 220px;
    min-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.oshi-poster-deco { display: none; }
.poster-umamusume { background: #14b8a6; }
.poster-luo { background: #0ea5e9; }
.poster-arknights { background: #6366f1; }
.oshi-poster-art {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    transition: transform 0.5s var(--ease);
}
.oshi-card:hover .oshi-poster-art { transform: scale(1.08); }
.oshi-poster-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.oshi-poster-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.oshi-info {
    flex: 1;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.oshi-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}
.oshi-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    background: var(--accent-soft);
    color: var(--accent);
}
.oshi-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.oshi-card:hover .oshi-arrow {
    color: var(--accent);
    transform: translate(4px, -4px);
}
.oshi-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.oshi-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.oshi-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.oshi-tags span {
    font-size: 0.72rem;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    background: var(--bg-soft);
    color: var(--text-secondary);
    transition: var(--transition);
}
.oshi-card:hover .oshi-tags span { background: var(--accent-soft); color: var(--accent); }

/* ---------- 友链 ---------- */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.friend-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    will-change: transform;
}
.friend-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.friend-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.4s var(--ease);
}
.friend-card:hover .friend-avatar { transform: scale(1.1) rotate(-6deg); }
.friend-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
.friend-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friend-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friend-add {
    border: 2px dashed var(--line);
    background: transparent;
    cursor: pointer;
}
.friend-add:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.friend-add-icon {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    font-size: 1.5rem !important;
}

/* ---------- 页脚 ---------- */
.footer {
    background: var(--bg-soft);
    color: var(--text-primary);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--line);
}
.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.footer-top { margin-bottom: 2rem; }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}
.footer-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}
.footer-slogan { color: var(--text-secondary); font-size: 0.9rem; }
.footer-divider {
    height: 1px;
    background: var(--line);
    margin: 0 auto 1.5rem;
    max-width: 200px;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.footer-icp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.icp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}
.icp-link:hover { color: var(--accent); }
.icp-separator { color: var(--text-muted); font-size: 0.8rem; }
.footer-copyright { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- 回到顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--text-primary);
    color: #fff;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease), visibility 0.4s, transform 0.4s var(--ease), background 0.3s;
    z-index: 99;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-4px);
}

/* ---------- 滚动揭示 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content { max-width: 600px; margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        flex-direction: column;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        padding: 1rem;
        gap: 0.2rem;
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: var(--transition);
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-toggle { display: flex; }
    .nav-link { text-align: center; padding: 0.7rem 1rem; }

    .section { padding: 4rem 1.2rem; }
    .section-header { margin-bottom: 2.5rem; }

    .hero { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 60px; }
    .hero-scroll-hint { display: none; }

    .oshi-card { flex-direction: column; }
    .oshi-poster { width: 100%; min-width: 100%; height: 140px; }
    .oshi-poster-icon { font-size: 2.2rem; }
    .oshi-info { padding: 1.3rem; }

    .back-to-top {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .content-grid { grid-template-columns: 1fr; }
    .friends-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 0.8rem; padding: 1rem; }
    .hero-stat-divider { width: 28px; height: 1px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 10px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }
