* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent: #fff;
    --accent-rgb: 255, 255, 255;
    --accent-glow: rgba(255, 255, 255, 0.1);
    --accent-glow-strong: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-hover: rgba(255, 255, 255, 0.09);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(255, 255, 255, 0.18);
    --glass-blur: 12px;
    --bg-color: #181c21;
    --bg-overlay: rgba(24, 28, 33, 0.3);
    --text-subtle: rgba(255, 255, 255, 0.5);
    --input-bg: rgba(0, 0, 0, 0.35);
    --input-border: rgba(255, 255, 255, 0.18);
    --tag-bg: rgba(255, 255, 255, 0.06);
    --tag-border: rgba(255, 255, 255, 0.1);
    --tag-hover-bg: rgba(255, 255, 255, 0.12);
    --tag-hover-border: rgba(255, 255, 255, 0.22);
    --contact-item-bg: rgba(0, 0, 0, 0.25);
    --contact-item-border: rgba(255, 255, 255, 0.1);
    --contact-item-hover-bg: rgba(0, 0, 0, 0.35);
    --contact-item-hover-border: rgba(255, 255, 255, 0.18);
    --btn-bg: rgba(255, 255, 255, 0.1);
    --btn-border: rgba(255, 255, 255, 0.4);
    --btn-hover-bg: rgba(255, 255, 255, 0.18);
    --divider-color: rgba(255, 255, 255, 0.18);
    --particle-color: rgba(255, 255, 255, 0.4);
    --particle-line: rgba(255, 255, 255, 0.06);
    --avatar-bg: rgba(255, 255, 255, 0.08);
    --avatar-border: rgba(255, 255, 255, 0.25);
    --avatar-hover-border: rgba(255, 255, 255, 0.5);
    --avatar-hover-shadow: rgba(255, 255, 255, 0.15);
    --nav-text: rgba(255, 255, 255, 0.65);
    --nav-active-bg: rgba(255, 255, 255, 0.1);
    --nav-active-text: #fff;
    --nav-hover-bg: rgba(255, 255, 255, 0.06);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 浅色主题 */
[data-theme="light"] {
    --text: rgba(0, 0, 0, 0.88);
    --text-muted: rgba(0, 0, 0, 0.55);
    --accent: #333;
    --accent-rgb: 0, 0, 0;
    --accent-glow: rgba(0, 0, 0, 0.05);
    --accent-glow-strong: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.5);
    --card-bg-hover: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.08);
    --card-border-hover: rgba(0, 0, 0, 0.15);
    --bg-color: #f0f2f5;
    --bg-overlay: rgba(240, 242, 245, 0.3);
    --text-subtle: rgba(0, 0, 0, 0.4);
    --input-bg: rgba(255, 255, 255, 0.8);
    --input-border: rgba(0, 0, 0, 0.15);
    --tag-bg: rgba(0, 0, 0, 0.05);
    --tag-border: rgba(0, 0, 0, 0.1);
    --tag-hover-bg: rgba(0, 0, 0, 0.1);
    --tag-hover-border: rgba(0, 0, 0, 0.18);
    --contact-item-bg: rgba(255, 255, 255, 0.7);
    --contact-item-border: rgba(0, 0, 0, 0.08);
    --contact-item-hover-bg: rgba(255, 255, 255, 0.95);
    --contact-item-hover-border: rgba(0, 0, 0, 0.15);
    --btn-bg: rgba(0, 0, 0, 0.06);
    --btn-border: rgba(0, 0, 0, 0.2);
    --btn-hover-bg: rgba(0, 0, 0, 0.12);
    --divider-color: rgba(0, 0, 0, 0.12);
    --particle-color: rgba(100, 100, 120, 0.35);
    --particle-line: rgba(100, 100, 120, 0.06);
    --avatar-bg: rgba(0, 0, 0, 0.05);
    --avatar-border: rgba(0, 0, 0, 0.15);
    --avatar-hover-border: rgba(0, 0, 0, 0.3);
    --avatar-hover-shadow: rgba(0, 0, 0, 0.1);
    --nav-text: rgba(0, 0, 0, 0.55);
    --nav-active-bg: rgba(0, 0, 0, 0.08);
    --nav-active-text: #000;
    --nav-hover-bg: rgba(0, 0, 0, 0.04);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body {
    margin: 0;
    padding: 48px 20px;
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.bg-blur {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--bg-overlay);
    pointer-events: none;
    /* 使用 background 替代 backdrop-filter 提升性能 */
    /* backdrop-filter 由 JS 动态设置（仅在自定义背景图时启用） */
}

/* 粒子画布背景 */
.particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.container {
    position: relative;
    z-index: 2;
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* ===== 毛玻璃卡片基础样式 ===== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 24px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--text);
}

/* 顶部高光线 */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(var(--accent-rgb), 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card:hover::before {
    opacity: 1;
}

/* ===== 左侧栏 ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* 头像卡片 */
.avatar-card,
.avatar-card:hover {
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--avatar-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--avatar-border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.avatar:hover {
    border-color: var(--avatar-hover-border);
    box-shadow: 0 0 20px var(--avatar-hover-shadow);
}

.avatar-placeholder {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    z-index: 1;
    letter-spacing: 0.5px;
}

.avatar-img {
    display: block;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

/* 社交媒体滚动（使用 APP/aoo.css，适配侧边栏） */
.sidebar .content {
    width: 100%;
    height: 80px;
    border-radius: 12px;
}

.sidebar .content .benefits {
    min-width: 700px;
}

.sidebar .content .basic-marquee svg {
    width: 30px;
}

/* 联系方式图标（使用 icon.css） */

/* 导航列表（使用 lan.css） */
.radio-container {
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* ===== 主题切换按钮 ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-muted);
    cursor: pointer;
    margin: 0 auto;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    position: relative;
}

.theme-toggle:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    color: var(--text);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

/* 深色模式显示太阳图标 */
.theme-icon-sun { opacity: 1; transform: rotate(0deg); }
.theme-icon-moon { opacity: 0; transform: rotate(-90deg); }

/* 浅色模式显示月亮图标 */
[data-theme="light"] .theme-icon-sun { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .theme-icon-moon { opacity: 1; transform: rotate(0deg); }

/* 主题切换过渡 */
html {
    transition: background 0.3s ease;
}

html * {
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* ===== 右侧主内容区 ===== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 标题卡片 */
.title-card,
.title-card:hover {
    padding: 40px 4px 16px;
    text-align: left;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.title-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 48px;
    font-weight: 700;
    font-family: 'ZQKNNY', sans-serif;
}

.title-prefix {
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.title {
    font-size: inherit;
    font-weight: inherit;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 4s ease infinite;
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 副标题卡片 */
.subtitle-card,
.subtitle-card:hover {
    padding: 0 4px 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.subtitle-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'ZQKNNY', sans-serif;
}

.subtitle-prefix {
    color: var(--text-muted);
    font-size: inherit;
    font-weight: inherit;
    flex-shrink: 0;
}

.subtitle-name {
    font-size: inherit;
    font-weight: inherit;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 4s ease infinite;
}

.subtitle {
    font-size: 20px;
    color: #fff;
    font-weight: 400;
    text-align: left;
    letter-spacing: 2px;
}

/* 像素文字横幅 */
.pixel-banner {
    display: flex;
    justify-content: flex-start;
    padding: 8px 0;
    overflow: hidden;
    width: calc(100% + 32px);
    margin: 0 -16px;
    max-width: none;
}

.pixel-grid {
    display: flex;
    line-height: 0;
    max-width: none;
    overflow: hidden;
}

.pixel-active {
    transition: background 0.3s ease;
}

/* 个人简介卡片 */
.intro-card {
    padding: 16px 4px 8px;
    line-height: 1.8;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.intro-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.9;
}

/* ===== 技能展示 ===== */
.skills-card {
    padding: 16px 4px 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.skill-tag:hover {
    background: var(--tag-hover-bg);
    border-color: var(--tag-hover-border);
}

/* ===== 项目展示 ===== */
.projects-card,
.projects-card:hover {
    padding: 28px 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.email-card {
    max-width: 640px;
    padding: 0;
}

.comms-card {
    max-width: 900px;
    padding: 18px 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.comms-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.comms-card .section-title.comms-title {
    margin-bottom: 0;
}

.comms-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.comms-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1.3fr;
    gap: 16px;
    align-items: start;
}

.comms-divider {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--divider-color), transparent);
    opacity: 0.9;
}

.comms-col-title {
    margin: 0 0 10px 0;
    font-size: 13px;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.comms-card .contact-info {
    gap: 10px;
}

.comms-card .contact-item {
    background: var(--contact-item-bg);
    border: 1px solid var(--contact-item-border);
}

.comms-card .contact-item:hover {
    background: var(--contact-item-hover-bg);
    border-color: var(--contact-item-hover-border);
}

.comms-card .email-header {
    margin-bottom: 10px;
}

.email-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.email-actions .email-hint {
    margin-top: 0;
}

@media (max-width: 900px) {
    .comms-grid {
        grid-template-columns: 1fr;
    }

    .comms-divider {
        display: none;
    }
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.email-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.email-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.email-label {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.email-input,
.email-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.1s ease;
}

.email-input::placeholder,
.email-textarea::placeholder {
    color: var(--text-muted);
}

.email-input:focus,
.email-textarea:focus {
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.email-textarea {
    resize: vertical;
    min-height: 96px;
}

.email-submit {
    align-self: flex-start;
    margin-top: 4px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.email-submit:hover {
    background: var(--btn-hover-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.email-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* 图片上传区域 */
.email-image-upload {
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}
.email-image-upload:hover,
.email-image-upload.dragover {
    border-color: rgba(255, 255, 255, 0.35);
}
.email-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
}
.email-image-placeholder svg {
    width: 28px;
    height: 28px;
    stroke: rgba(255, 255, 255, 0.3);
    fill: none;
}
.email-image-preview {
    position: relative;
    padding: 8px;
}
.email-image-preview img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
.email-image-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.email-image-remove:hover {
    background: rgba(220, 50, 50, 0.8);
}
.email-image-remove svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
}

.email-hint {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}

.email-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.email-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.15), transparent 55%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.email-icon svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1.6;
    fill: none;
}

.email-title {
    margin-bottom: 2px;
}

.email-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.email-header-text {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .email-form {
        gap: 16px;
    }

    .email-row-inline {
        flex-direction: row;
        gap: 12px;
    }

    .email-row-inline .email-field {
        flex: 1;
    }

    .email-row-inline .email-input {
        flex: 1;
    }
}

.section-title {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 600;
    padding-left: 4px;
    letter-spacing: 0.5px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.project-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    contain: layout style;
}

.project-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    background: rgba(var(--accent-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(var(--accent-rgb), 0.05);
}

.project-item:hover::before {
    opacity: 1;
}

a.project-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-icon {
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.project-desc {
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ===== 联系方式 ===== */
.contact-card,
.contact-card:hover {
    padding: 28px 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    padding: 14px 20px;
    background: var(--contact-item-bg);
    border-radius: 12px;
    color: var(--text-muted);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    border: 1px solid var(--contact-item-border);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
}

.contact-item:hover {
    background: var(--contact-item-hover-bg);
    color: var(--text);
    border-color: var(--contact-item-hover-border);
}

/* ===== 移动端头像 ===== */
.mobile-avatar-card {
    display: none; /* 桌面端隐藏 */
}

/* ===== 移动端底部导航 ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(24, 28, 33, 0.92);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-top: 1px solid var(--card-border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    min-height: 52px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 48px;
}

.mobile-nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.mobile-nav-item.active {
    color: var(--nav-active-text);
    background: var(--nav-active-bg);
}

.mobile-avatar {
    width: 150px;
    height: 150px;
    min-width: 150px;
    min-height: 150px;
    border-radius: 50%;
    background: var(--avatar-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--avatar-border);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.mobile-avatar .avatar-placeholder {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    z-index: 1;
}

.mobile-avatar .avatar-img,
.mobile-avatar img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    transform: none !important;
    z-index: 2;
    pointer-events: none;
    position: absolute;
    inset: 0;
}

/* ===== 响应式设计 ===== */

/* 无侧边栏：单列自适应，所有尺寸交给浏览器 */
@media (max-width: 1024px) {
    body {
        padding: clamp(12px, 3vw, 48px) clamp(10px, 3vw, 20px);
        padding-bottom: 80px;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
        overflow: hidden;
    }

    /* 隐藏侧边栏（桌面端专用） */
    .sidebar {
        display: none !important;
    }

    /* 显示移动端头像 */
    .mobile-avatar-card {
        display: flex;
        justify-content: center;
        padding: 10px 0 6px;
    }

    /* 显示移动端底部导航 */
    .mobile-nav {
        display: flex !important;
    }

    /* 标题自适应 */
    .title-card, .title-card:hover {
        padding: clamp(8px, 2vw, 40px) 0 clamp(4px, 1vw, 16px);
    }

    .title-wrap {
        font-size: clamp(22px, 6vw, 48px);
        flex-wrap: wrap;
        gap: 6px;
    }

    .title-prefix {
        flex-shrink: 1;
    }

    /* 副标题自适应 */
    .subtitle-card, .subtitle-card:hover {
        padding: 0 0 clamp(8px, 1.5vw, 24px);
    }

    .subtitle-wrap {
        font-size: clamp(13px, 3.5vw, 32px);
        flex-wrap: wrap;
        gap: 4px;
    }

    .subtitle-prefix {
        flex-shrink: 1;
    }

    /* 像素横幅 — 自适应，居中 */
    .pixel-banner {
        justify-content: center;
        width: calc(100% + 24px);
        margin: 0 -12px;
    }

    /* 内容间距自适应 */
    .main-content {
        gap: clamp(10px, 2vw, 20px);
        max-width: 100%;
        overflow: visible;
    }

    .section-title {
        font-size: clamp(16px, 4vw, 20px);
    }

    /* 简介文字自动换行 */
    .intro-text {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 技能标签自适应 */
    .skills-grid {
        gap: 8px;
    }

    .skill-tag {
        font-size: 12px;
        padding: 6px 14px;
    }

    /* 项目网格自适应 — 两列 */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .project-item {
        padding: 20px 14px;
    }

    .project-icon svg {
        width: 28px;
        height: 28px;
    }

    .project-title {
        font-size: 14px;
    }

    .project-desc {
        font-size: 12px;
    }

    /* 联系模块单列 */
    .comms-grid {
        grid-template-columns: 1fr;
    }

    .comms-divider {
        display: none;
    }

    /* 邮件表单双栏 → 单栏 */
    .email-row-inline {
        flex-direction: column !important;
        gap: 14px !important;
    }

    /* 发送按钮全宽 */
    .email-submit {
        width: 100%;
    }

    /* 联系方式卡片 */
    .contact-item {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ===== 焦点样式（键盘导航） ===== */
:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

input:focus-visible + label,
button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* ===== 减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== 自定义板块 ===== */
.custom-sections-group {
    margin-bottom: 0;
}

.custom-sections-container {
    margin-top: 0;
}

.custom-section-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color var(--transition);
}

.custom-section-block:hover {
    border-color: var(--card-border-hover);
}

.custom-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
    letter-spacing: 0.5px;
}

.custom-section-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    word-break: break-word;
}

.custom-section-body > *:first-child {
    margin-top: 0;
}

.custom-section-body > *:last-child {
    margin-bottom: 0;
}

/* 自定义板块内的链接样式 */
.custom-section-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.custom-section-body a:hover {
    opacity: 0.8;
}

/* ===== 访问统计（图表+文字） ===== */
.visitor-counter {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.visitor-label {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    padding-top: 4px;
    width: 100%;
    margin-bottom: 4px;
}

.visitor-empty {
    font-size: 13px;
    color: var(--text-muted);
}

.visitor-chart-wrap {
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 8px;
}

.visitor-chart-svg {
    display: block;
}

.visitor-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
    flex-shrink: 0;
}

.visitor-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.visitor-stat-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.visitor-stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .custom-section-block {
        padding: 16px;
        margin-bottom: 12px;
    }
    .custom-section-title {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .custom-section-body {
        font-size: 13px;
    }
    .visitor-counter {
        gap: 12px;
    }
    .visitor-chart-wrap {
        width: 100%;
        overflow-x: auto;
    }
    .visitor-chart-svg {
        width: 100%;
        height: auto;
    }
    .visitor-stats {
        flex-direction: row;
        gap: 20px;
        padding-top: 4px;
    }
    .visitor-stat-val {
        font-size: 18px;
    }
}

/* ===== 音乐播放器 ===== */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    width: 260px;
    overflow: visible;
    transition: max-height 0.3s ease, height 0.3s ease, width 0.3s ease, border-radius 0.3s ease, left 0.3s ease, top 0.3s ease;
}

.music-player-open {
    max-height: 380px;
}

.music-player-collapsed {
    max-height: 56px;
    overflow: hidden;
}

.music-player-collapsed .music-player-controls,
.music-player-collapsed .music-lyrics {
    display: none;
}

.music-player-collapsed .music-collapse svg {
    transform: rotate(0deg);
}

/* ===== 边缘折叠状态：只显示唱片封面 + 弹出按钮 ===== */
.music-player-edge-collapsed {
    width: 72px !important;
    height: 52px;
    border-radius: 14px;
    overflow: visible;
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

/* 左边缘：去掉左侧圆角，像藏在屏幕边缘 */
.music-player-edge-collapsed[data-edge="left"] {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* 右边缘：去掉右侧圆角 */
.music-player-edge-collapsed[data-edge="right"] {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.music-player-edge-collapsed .music-player-top {
    padding: 2px 4px;
    gap: 0;
    height: 100%;
}

/* 左边缘：唱片靠左，按钮靠右 */
.music-player-edge-collapsed[data-edge="left"] .music-player-top {
    justify-content: flex-start;
}

/* 右边缘：按钮靠左，唱片靠右 */
.music-player-edge-collapsed[data-edge="right"] .music-player-top {
    justify-content: flex-end;
}

.music-player-edge-collapsed .music-info,
.music-player-edge-collapsed .music-top-actions,
.music-player-edge-collapsed .music-player-controls,
.music-player-edge-collapsed .music-lyrics,
.music-player-edge-collapsed .music-playlist,
.music-player-edge-collapsed .music-collapse {
    display: none !important;
}

.music-player-edge-collapsed .music-vinyl {
    width: 48px;
    height: 48px;
}

.music-player-edge-collapsed .music-vinyl-cover {
    width: 40px;
    height: 40px;
}

/* 边缘弹出按钮 */
.music-player-edge-tab {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s;
    z-index: 10;
}

.music-player-edge-tab:hover {
    color: var(--text);
}

.music-player-edge-tab svg {
    width: 12px;
    height: 12px;
}

.music-player-edge-collapsed .music-player-edge-tab {
    display: flex;
}

/* 左边缘：按钮在唱片右侧（播放器内） */
.music-player-edge-collapsed[data-edge="left"] .music-player-edge-tab {
    right: 4px;
}

/* 右边缘：按钮在唱片左侧（播放器内） */
.music-player-edge-collapsed[data-edge="right"] .music-player-edge-tab {
    left: 4px;
}

.music-player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    gap: 8px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ===== 旋转胶片封面 ===== */
.music-vinyl {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    background: radial-gradient(circle at center,
        #1a1a1a 0%, #1a1a1a 42%,
        #2a2a2a 42.5%, #1a1a1a 43%,
        #333 45%, #222 47%, #333 49%,
        #1a1a1a 50%, #2a2a2a 52%, #1a1a1a 54%,
        #333 56%, #222 58%, #333 60%,
        #1a1a1a 62%, #2a2a2a 64%, #1a1a1a 66%,
        #333 68%, #222 100%);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
}

/* 旋转动画 */
.music-vinyl.spinning {
    animation: vinylSpin 3s linear infinite;
}

@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 封面（居中在唱片上，更大） */
.music-vinyl-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 1;
}

.music-vinyl-cover .music-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.5;
}

.music-vinyl-cover .music-cover-placeholder svg {
    width: 12px;
    height: 12px;
}

.music-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.music-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.music-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-artist {
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 折叠时预览歌词 */
.music-preview-lyric {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: none;
}

.music-player-collapsed .music-preview-lyric {
    display: block;
}

.music-top-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.music-collapse svg {
    transition: transform 0.3s ease;
}

.music-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 12px 6px;
}

.music-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.music-btn:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    color: var(--text);
}

.music-btn svg {
    width: 14px;
    height: 14px;
}

.music-play-btn {
    width: 34px;
    height: 34px;
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.25);
}

.music-play-btn:hover {
    background: rgba(var(--accent-rgb), 0.25);
}

.music-play-btn svg {
    width: 16px;
    height: 16px;
}

.music-play-btn-desktop {
    width: 34px;
    height: 34px;
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.25);
}

.music-play-btn-desktop:hover {
    background: rgba(var(--accent-rgb), 0.25);
}

.music-play-btn-desktop svg {
    width: 16px;
    height: 16px;
}

.music-playlist-btn.active {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.25);
    color: var(--text);
}

.music-prev-btn svg,
.music-next-btn svg {
    width: 12px;
    height: 12px;
}

.music-volume {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 2px;
}

.music-volume svg {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.music-volume-slider {
    width: 44px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--card-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.music-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
    border: 2px solid var(--card-bg);
}

.music-volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
    border: 2px solid var(--card-bg);
}

/* 歌词区域 */
.music-lyrics {
    max-height: 120px;
    overflow-y: auto;
    padding: 0 10px 8px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    scroll-behavior: smooth;
}

.music-lyrics::-webkit-scrollbar {
    width: 2px;
}

.music-lyrics::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
}

.music-lyrics-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
}

.music-lyric-line {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.7;
    transition: color 0.3s ease, font-size 0.3s ease;
    padding: 1px 0;
}

.music-lyric-line.active {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

/* ===== 歌单面板（覆盖在播放器上） ===== */
.music-playlist {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    border-radius: 0 0 14px 14px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.music-playlist.open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
}

/* 歌单打开时增加播放器高度 */
.music-player-has-playlist {
    height: 380px;
    max-height: none;
}

.music-playlist-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.music-playlist-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.music-playlist-list {
    max-height: 210px;
    overflow-y: auto;
    padding: 0 8px 8px;
}

.music-playlist-list::-webkit-scrollbar {
    width: 2px;
}

.music-playlist-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
}

.music-playlist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.music-playlist-item:hover {
    background: rgba(255,255,255,0.06);
}

.music-playlist-item.active {
    background: rgba(var(--accent-rgb), 0.08);
}

.music-playlist-item.active .music-playlist-name {
    color: var(--text);
}

.music-playlist-cover {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
}

.music-playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-playlist-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.music-playlist-name {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-playlist-artist {
    font-size: 10px;
    color: var(--text-subtle);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-playlist-playing {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(var(--accent-rgb), 0.7);
}

.music-playlist-playing svg {
    width: 16px;
    height: 16px;
}

/* 移动端：紧凑窄卡片 */
@media (max-width: 768px) {
    .music-player {
        bottom: 56px;
        right: 8px;
        left: auto;
        width: 280px;
        max-width: calc(100vw - 16px);
        border-radius: 12px;
    }

    .music-player-open {
        max-height: 168px;
    }

    .music-player-collapsed {
        max-height: 46px;
        overflow: hidden;
    }

    .music-player-collapsed .music-lyrics {
        display: none;
    }

    .music-player-top {
        padding: 4px 6px;
        gap: 6px;
    }

    /* 唱片 */
    .music-vinyl {
        width: 36px;
        height: 36px;
    }

    .music-vinyl-cover {
        width: 30px;
        height: 30px;
    }

    .music-vinyl-cover .music-cover-placeholder svg {
        width: 10px;
        height: 10px;
    }

    .music-title {
        font-size: 11px;
    }

    .music-artist {
        font-size: 9px;
    }

    .music-preview-lyric {
        font-size: 9px;
    }

    /* 移动端隐藏桌面版控件和音量 */
    .music-player-controls,
    .music-volume {
        display: none;
    }

    .music-top-actions .music-play-btn {
        width: 28px;
        height: 28px;
    }

    .music-top-actions .music-play-btn svg {
        width: 13px;
        height: 13px;
    }

    .music-btn {
        width: 22px;
        height: 22px;
    }

    .music-btn svg {
        width: 11px;
        height: 11px;
    }

    /* 歌词区域缩减 */
    .music-lyrics {
        max-height: 50px;
        padding: 0 6px 4px;
    }

    .music-lyrics-inner {
        padding: 2px 0;
        gap: 1px;
    }

    .music-lyric-line {
        font-size: 10px;
        line-height: 1.4;
    }

    .music-lyric-line.active {
        font-size: 10px;
    }

    /* 歌单 */
    .music-playlist {
        top: 40px;
    }

    .music-playlist.open {
        max-height: 200px;
    }

    .music-player-has-playlist {
        height: 280px;
        max-height: none;
    }

    .music-playlist-list {
        max-height: 175px;
    }

    .music-playlist-header {
        padding: 8px 10px 4px;
        font-size: 12px;
    }

    .music-playlist-item {
        padding: 5px 6px;
        gap: 6px;
    }

    .music-playlist-cover {
        width: 28px;
        height: 28px;
    }

    .music-playlist-name {
        font-size: 11px;
    }

    .music-playlist-artist {
        font-size: 9px;
    }

    /* 移动端边缘折叠：更小的唱片 */
    .music-player-edge-collapsed {
        width: 60px !important;
        height: 44px;
        border-radius: 12px;
    }

    .music-player-edge-collapsed .music-vinyl {
        width: 40px;
        height: 40px;
    }

    .music-player-edge-collapsed .music-vinyl-cover {
        width: 32px;
        height: 32px;
    }

    .music-player-edge-collapsed .music-player-edge-tab {
        width: 14px;
        height: 26px;
    }

    .music-player-edge-tab svg {
        width: 10px;
        height: 10px;
    }

    /* 移动端左边缘：去掉左侧圆角 */
    .music-player-edge-collapsed[data-edge="left"] {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-left: none;
    }

    /* 移动端右边缘：去掉右侧圆角 */
    .music-player-edge-collapsed[data-edge="right"] {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-right: none;
    }
}
.bg {
  position: fixed;
  inset: 0;
  background: #181c21;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  z-index: 0;
}

.pattern-bg {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    #232526 0px,
    #232526 60px,
    #23252699 70px,
    #414345 130px
  );
}

.cube-svg {
  position: absolute;
  width: 200%;
  height: 200%;
  left: -30%;
  top: -20%;
  background: transparent;
  opacity: 0.7;
  z-index: 1;
  animation: cubeMove 18s linear infinite alternate;
  will-change: transform;
  contain: strict;
}

@keyframes cubeMove {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-20%) scale(1.02) rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cube-svg {
    animation: none;
  }
}
.radio-container {
    --main-color: #fff;
    --main-color-opacity: rgba(255, 255, 255, 0.08);
  
    /* change this according inputs count */
    --total-radio: 3;
  
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 0.5rem;
  }
  .radio-container input {
    cursor: pointer;
    appearance: none;
  }
  .radio-container .glider-container {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(27, 27, 27, 1) 50%,
      rgba(0, 0, 0, 0) 100%
    );
    width: 1px;
  }
  .radio-container .glider-container .glider {
    position: relative;
    height: calc(100% / var(--total-radio));
    width: 100%;
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0) 0%,
      var(--main-color) 50%,
      rgba(0, 0, 0, 0) 100%
    );
    transition: transform 0.5s cubic-bezier(0.37, 1.95, 0.66, 0.56);
  }
  .radio-container .glider-container .glider::before {
    content: "";
    position: absolute;
    height: 60%;
    width: 300%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--main-color);
    filter: blur(10px);
  }
  .radio-container .glider-container .glider::after {
    content: "";
    position: absolute;
    left: 0;
    height: 100%;
    width: 150px;
    background: linear-gradient(
      90deg,
      var(--main-color-opacity) 0%,
      rgba(0, 0, 0, 0) 100%
    );
  }
  .radio-container label {
    cursor: pointer;
    padding: 1rem;
    position: relative;
    color: var(--nav-text, rgba(255, 255, 255, 0.5));
    transition: color 0.3s ease-in-out;
  }
  
  .radio-container input:checked + label {
    color: var(--main-color);
  }
  
  .radio-container input:nth-of-type(1):checked ~ .glider-container .glider {
    transform: translateY(0);
  }
  
  .radio-container input:nth-of-type(2):checked ~ .glider-container .glider {
    transform: translateY(100%);
  }
  
  .radio-container input:nth-of-type(3):checked ~ .glider-container .glider {
    transform: translateY(200%);
  }
  
  .radio-container input:nth-of-type(4):checked ~ .glider-container .glider {
    transform: translateY(300%);
  }
  
  .radio-container input:nth-of-type(5):checked ~ .glider-container .glider {
    transform: translateY(400%);
  }
  
  .radio-container input:nth-of-type(6):checked ~ .glider-container .glider {
    transform: translateY(500%);
  }
  
  .radio-container input:nth-of-type(7):checked ~ .glider-container .glider {
    transform: translateY(600%);
  }
  
  .radio-container input:nth-of-type(8):checked ~ .glider-container .glider {
    transform: translateY(700%);
  }
  
  .radio-container input:nth-of-type(9):checked ~ .glider-container .glider {
    transform: translateY(800%);
  }
  
  .radio-container input:nth-of-type(10):checked ~ .glider-container .glider {
    transform: translateY(900%);
  }
  
.glass-radio-group {
    --bg: rgba(255, 255, 255, 0.06);
    --text: #999;
  
    display: flex;
    position: relative;
    background: var(--bg);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    box-shadow:
      inset 1px 1px 4px rgba(255, 255, 255, 0.15),
      inset -1px -1px 6px rgba(0, 0, 0, 0.3),
      0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
  }
  
  .glass-radio-group input {
    display: none;
  }
  
  .glass-radio-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
    cursor: pointer;
    color: var(--text);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease-in-out;
  }

  .glass-radio-group label svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
  }
  
  .glass-radio-group label:hover {
    color: #ccc;
  }
  
  .glass-radio-group input:checked + label {
    color: #fff;
  }
  
  .glass-glider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% / 4);
    border-radius: 1rem;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.35));
    box-shadow:
      0 0 16px rgba(255, 255, 255, 0.15),
      0 0 8px rgba(255, 255, 255, 0.1) inset;
    transition:
      transform 0.5s cubic-bezier(0.37, 1.95, 0.66, 0.56),
      background 0.4s ease-in-out,
      box-shadow 0.4s ease-in-out;
  }
  
  #glass-mail:checked ~ .glass-glider {
    transform: translateX(0%);
  }
  
  #glass-chat:checked ~ .glass-glider {
    transform: translateX(100%);
  }
  
  #glass-link:checked ~ .glass-glider {
    transform: translateX(200%);
  }
  
  #glass-phone:checked ~ .glass-glider {
    transform: translateX(300%);
  }
.content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    width: 300px;
    height: 100px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
  }
  .content::before {
    content: "";
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translateY(-50%);
    bottom: 0;
    width: 40px;
    height: 96px;
    background-image: linear-gradient(90deg, #0000001c, transparent);
    z-index: 2;
    border-radius: 10px 0 0 10px;
  }
  .content::after {
    content: "";
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
    bottom: 0;
    width: 40px;
    height: 96px;
    background-image: linear-gradient(-90deg, #0000001c, transparent);
    z-index: 9;
    border-radius: 0 10px 10px 0;
  }
  .basic-marquee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }
  .basic-marquee .button {
    transition: transform 0.3s ease, background 0.3s ease;
  }
  .basic-marquee .button:hover {
    transform: scale(1.1);
    cursor: pointer;
  }
  .basic-marquee-1 {
    animation: marquee 15s linear infinite;
  }
  .basic-marquee-2 {
    animation: marquee 21s linear infinite;
  }
  .benefits {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    min-width: 900px;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
    inset: 0;
  }
  @keyframes marquee {
    0% {
      transform: translateX(-10%);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  .basic-marquee svg {
    width: 40px;
  }
  .basic-marquee button {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cls-1 {
    fill: #1ab7ea;
  }
  
  .cls-1,
  .cls-2 {
    fill-rule: evenodd;
  }
  
  .cls-2 {
    fill: #fff;
  }
  
  .cls-3 {
    fill: #ee8208;
    fill-rule: evenodd;
  }
  
  .cls-4 {
    fill: #fff;
  }
  
  .cls-5,
  .cls-6 {
    fill-rule: evenodd;
  }
  
  .cls-5 {
    fill: #48dd55;
  }
  
  .cls-6 {
    fill: #fff;
  }
  
  .cls-7 {
    fill: #0a66c2;
  }
  
  .cls-7,
  .cls-8 {
    fill-rule: evenodd;
  }
  
  .cls-8 {
    fill: #fff;
  }
  
  .cls-9 {
    fill: #10b7f4;
  }
  
  .cls-9,
  .cls-10 {
    fill-rule: evenodd;
  }
  
  .cls-10 {
    fill: #fff;
  }
  
  .cls-11 {
    fill: #1da1f2;
  }
  
  .cls-11,
  .cls-12 {
    fill-rule: evenodd;
  }
  
  .cls-12 {
    fill: #fff;
  }
  
  .cls-13 {
    fill: #ea4c89;
  }
  
  .cls-13,
  .cls-14 {
    fill-rule: evenodd;
  }
  
  .cls-14 {
    fill: #fff;
  }
  
  .cls-15 {
    fill: #1769ff;
  }
  
  .cls-15,
  .cls-16 {
    fill-rule: evenodd;
  }
  
  .cls-16 {
    fill: #fff;
  }
  
  .cls-17 {
    fill: #f26522;
  }
  
  .cls-17,
  .cls-18 {
    fill-rule: evenodd;
  }
  
  .cls-18 {
    fill: #fff;
  }

  @media (prefers-reduced-motion: reduce) {
    .basic-marquee-1,
    .basic-marquee-2 {
      animation: none;
    }
  }
  
