:root {
    /* 字体与图标尺寸 */
    --font-name: 2.6rem;
    --font-handle: 1.15rem;
    --font-bio: 1.25rem;
    --font-shop: 1.2rem;
    --icon-size: 1.4rem;
    --icon-box: 54px;

    /* 默认暗色主题变量 */
    --text-main: rgba(255, 255, 255, 0.95);
    --text-sub: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-hover-bg: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --overlay-bg: rgba(0, 0, 0, 0.15);
    --accent-rgb: 59, 130, 246;
}

/* 亮色主题变量 */
body.light-theme {
    --text-main: rgba(24, 24, 27, 0.95);
    --text-sub: rgba(63, 63, 70, 0.8);
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-hover-bg: rgba(0, 0, 0, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --overlay-bg: rgba(255, 255, 255, 0.1);
}

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

body {
    min-height: 100vh;
    font-family: 'Noto Sans SC', system-ui, sans-serif;
    color: var(--text-main);
    text-align: center;
    overflow-x: hidden;
    transition: color 0.8s ease;
}

/* === 背景轮播层 === */
.bg-slider {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.bg-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active { opacity: 1; }

.overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--overlay-bg);
    pointer-events: none; z-index: 0;
    transition: background 0.8s ease;
}

.container {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 40px 20px; gap: 18px;
}

/* === 头像 === */
.avatar-wrapper { position: relative; width: 130px; height: 130px; margin-bottom: 10px; }
.avatar {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--glass-border);
    box-shadow: 0 4px 24px var(--shadow-color);
    transition: border-color 0.5s, box-shadow 0.5s;
}
.avatar-fallback {
    display: none; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; background: var(--glass-bg);
    border-radius: 50%; align-items: center; justify-content: center;
    font-weight: bold; color: var(--text-sub); font-size: 38px;
    border: 2px solid var(--glass-border);
}

/* === 文字 === */
.name { font-size: var(--font-name); font-weight: 700; letter-spacing: -0.5px; text-shadow: 0 2px 12px var(--shadow-color); }
.handle { font-size: var(--font-handle); color: var(--text-sub); margin-top: -4px; text-shadow: 0 1px 6px var(--shadow-color); }
.bio { font-size: var(--font-bio); color: var(--text-main); font-weight: 300; margin-top: 4px; text-shadow: 0 1px 6px var(--shadow-color); }

/* === 统一图标与卡片 === */
.icon-btn, .shop-icon {
    width: var(--icon-box); height: var(--icon-box);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--icon-size); text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}
.icon-btn { border-radius: 50%; }
.shop-icon { border-radius: 14px; }

.icon-btn:hover, .shop-link:hover .shop-icon {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}

.socials { display: flex; gap: 16px; margin-top: 14px; }

.divider {
    width: 220px; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.6), transparent);
    margin: 26px 0;
    transition: background 0.8s ease;
}

.shops { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 360px; }
.shop-link {
    display: flex; align-items: center; gap: 18px;
    padding: 12px 18px 12px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px; color: var(--text-main);
    text-decoration: none; font-size: var(--font-shop); font-weight: 500;
    transition: all 0.3s ease; text-align: left;
}
.shop-link:hover {
    background: var(--glass-hover-bg);
    border-color: rgba(var(--accent-rgb), 0.4);
    transform: translateX(4px);
}
.shop-link span { flex: 1; }
.arrow { font-size: 0.9rem; color: var(--text-sub); transition: all 0.3s ease; }
.shop-link:hover .arrow { color: rgb(var(--accent-rgb)); transform: translateX(3px); }

/* === 轮播控制区 === */
.slider-controls {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.slide-indicator {
    font-size: 0.9rem;
    color: var(--text-sub);
    font-weight: 500;
    min-width: 44px;
    text-align: center;
    user-select: none;
    text-shadow: 0 1px 4px var(--shadow-color);
}

.ctrl-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.ctrl-btn:hover {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.6);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

.ctrl-btn:active { transform: scale(0.95); }

/* === 移动端适配 === */
@media (max-width: 480px) {
    :root {
        --font-name: 2rem;
        --font-handle: 1rem;
        --font-bio: 1.05rem;
        --font-shop: 1.05rem;
        --icon-size: 1.2rem;
        --icon-box: 48px;
    }
    .avatar-wrapper { width: 110px; height: 110px; }
    .socials { gap: 12px; }
    .slider-controls { margin-top: 24px; }
    .ctrl-btn { width: 36px; height: 36px; font-size: 0.85rem; }
    .control-buttons { gap: 18px; }
    .slide-indicator { font-size: 0.85rem; min-width: 38px; }
}