/* Life29 - 韩式极简无边框设计 */

:root {
    --color-primary: #E8B4B8;
    --color-primary-light: #F5D5D8;
    --color-primary-dark: #D4969B;
    --color-secondary: #A8D5E5;
    --color-accent: #F5E6D3;
    
    --color-bg: #e8e8e8;
    --color-bg-warm: #e0dcd8;
    --color-bg-card: rgba(255, 255, 255, 0.75);
    --color-text: #2D2926;
    --color-text-light: #5B5550;
    --color-text-muted: #8B8580;
    
    --color-empty: #C8C4C0;
    --color-success: #A8C5A8;
    --color-error: #E8A8A8;
    --color-wiwi: #7BC5AE;
    --color-yuyu: #7BA8D5;
    
    --font-display: 'Cormorant Garamond', 'Noto Serif SC', serif;
    --font-body: 'Noto Serif SC', -apple-system, BlinkMacSystemFont, serif;
    
    --space-xs: 4px; --space-sm: 8px; --space-md: 16px;
    --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px;
    
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px;
    --radius-xl: 28px; --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(45, 41, 38, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 41, 38, 0.08);
    --shadow-lg: 0 8px 40px rgba(45, 41, 38, 0.1);
    --shadow-xl: 0 20px 60px rgba(45, 41, 38, 0.12);
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --z-header: 100; --z-panel: 200; --z-dropdown: 300; --z-modal: 1000; --z-tooltip: 1100;
}

/* 背景颜色主题 */
[data-bg="gray"] { --color-bg: #e8e8e8; }
[data-bg="pink"] { --color-bg: #f1e5e6; }
[data-bg="warm"] { --color-bg: #f0e8db; }
[data-bg="blue"] { --color-bg: #d7e3ee; }
[data-bg="gradient"] {
    --color-bg: transparent;
    background: 
        radial-gradient(ellipse 140% 120% at 10% 15%, rgba(255, 182, 193, 0.65) 0%, transparent 58%),
        radial-gradient(ellipse 150% 130% at 92% 8%, rgba(255, 218, 185, 0.6) 0%, transparent 62%),
        radial-gradient(ellipse 130% 145% at 82% 88%, rgba(173, 216, 230, 0.62) 0%, transparent 60%),
        radial-gradient(ellipse 145% 125% at 18% 92%, rgba(255, 253, 208, 0.65) 0%, transparent 56%),
        radial-gradient(ellipse 120% 135% at 52% 45%, rgba(221, 160, 221, 0.45) 0%, transparent 68%),
        radial-gradient(ellipse 110% 100% at 35% 60%, rgba(255, 200, 220, 0.35) 0%, transparent 50%),
        linear-gradient(135deg, 
            rgba(255, 248, 250, 1) 0%,
            rgba(248, 250, 255, 1) 25%,
            rgba(250, 255, 252, 1) 50%,
            rgba(255, 252, 248, 1) 75%,
            rgba(252, 248, 255, 1) 100%
        );
}

[data-theme="dark"] {
    --color-primary: #D4969B;
    --color-primary-light: rgba(212, 150, 155, 0.15);
    --color-primary-dark: #E8B4B8;
    --color-secondary: #5A8A9A;
    --color-accent: #3D3530;
    
    --color-bg: #0D0B0A;
    --color-bg-warm: #12100E;
    --color-bg-card: rgba(30, 28, 26, 0.9);
    --color-text: #E8E4E0;
    --color-text-light: #A09890;
    --color-text-muted: #606058;
    
    --color-empty: #3A3530;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow: hidden;
    transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
[data-theme="dark"] .noise-overlay { opacity: 0.03; }

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0; height: 72px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 var(--space-xl);
    background: var(--color-bg);
    backdrop-filter: blur(20px);
    z-index: var(--z-header);
    border-bottom: 1px solid var(--color-border);
}

/* Logo - Light mode添加浅灰阴影 */
.logo { display: flex; align-items: baseline; gap: 2px; cursor: pointer; transition: opacity 0.3s; justify-self: start; text-decoration: none; }
.logo:hover { opacity: 0.8; }
.logo:hover { opacity: 0.7; }
.logo-text {
    font-family: var(--font-display); font-size: 1.75rem; font-weight: 300; letter-spacing: 0.02em;
    text-shadow: 1px 1px 3px rgba(173, 173, 173, 0.4);
}
.logo-number {
    font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: var(--color-primary); margin-left: 2px;
    text-shadow: 1px 1px 3px rgba(173, 173, 173, 0.4);
}
[data-theme="dark"] .logo-text,
[data-theme="dark"] .logo-number { text-shadow: none; }

/* Nav */
.nav { display: flex; gap: var(--space-sm); align-items: center; }

.nav-link {
    font-size: 0.875rem; font-weight: 400; letter-spacing: 0.03em;
    color: var(--color-text-light); text-decoration: none;
    padding: var(--space-sm) var(--space-md); border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out);
    display: flex; align-items: center; gap: var(--space-xs);
    background: transparent; border: none; cursor: pointer; font-family: inherit;
}
.nav-link:hover { color: var(--color-text); background: var(--color-bg-card); }
.nav-link.active { color: var(--color-text); background: var(--color-bg-card); box-shadow: var(--shadow-sm); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    min-width: 180px; background: var(--color-bg-card);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-sm);
    opacity: 0; visibility: hidden; transition: all 0.3s var(--ease-out); z-index: var(--z-dropdown);
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; }

.dropdown-label { font-size: 0.6875rem; font-weight: 500; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.1em; padding: var(--space-sm) var(--space-md); }

.city-options { max-height: 280px; overflow-y: auto; }
.city-option {
    display: flex; align-items: center; gap: var(--space-sm); width: 100%;
    padding: var(--space-sm) var(--space-md); background: transparent; border: none;
    border-radius: var(--radius-md); font-family: inherit; font-size: 0.8125rem;
    color: var(--color-text); cursor: pointer; transition: all 0.2s; text-align: left;
}
.city-option:hover { background: rgba(0,0,0,0.04); }
[data-theme="dark"] .city-option:hover { background: rgba(255,255,255,0.06); }
.city-option.active { background: var(--color-primary-light); color: var(--color-primary-dark); }
.city-option-dot { width: 8px; height: 8px; border-radius: var(--radius-full); flex-shrink: 0; }

.header-actions { display: flex; gap: var(--space-xs); align-items: center; justify-self: end; }

/* 图标按钮 */
.btn-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; border-radius: var(--radius-full);
    color: var(--color-text-light); cursor: pointer; transition: all 0.3s var(--ease-out);
}
.btn-icon:hover { color: var(--color-text); }
.btn-icon.active { color: var(--color-primary-dark); }

.user-btn.user-wiwi { color: var(--color-wiwi); }
.user-btn.user-yuyu { color: var(--color-yuyu); }

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* Color Picker Dropdown */
/* Color Picker Dropdown */
.color-picker-dropdown { position: relative; }

/* 使用特殊字符作为图标 */
.color-icon {
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
}

.color-picker-menu {
    min-width: auto;
    padding: var(--space-sm);
}
.color-swatches {
    display: flex;
    gap: 8px;
}
.color-swatch-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.color-swatch-btn:hover { 
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.color-swatch-btn.active { 
    border-color: var(--color-text); 
    box-shadow: 0 0 0 1px var(--color-text);
}

.color-swatch-btn[data-bg="gray"] { background: #e8e8e8; }
.color-swatch-btn[data-bg="pink"] { background: #f1e5e6; }
.color-swatch-btn[data-bg="warm"] { background: #f0e8db; }
.color-swatch-btn[data-bg="blue"] { background: #d7e3ee; }

/* 渐变按钮样式 */
.color-swatch-btn[data-bg="gradient"] { 
    background: 
        radial-gradient(ellipse 120% 100% at 15% 20%, rgba(255, 182, 193, 0.95) 0%, transparent 50%),
        radial-gradient(ellipse 130% 110% at 88% 12%, rgba(255, 218, 185, 0.9) 0%, transparent 55%),
        radial-gradient(ellipse 110% 120% at 78% 85%, rgba(173, 216, 230, 0.9) 0%, transparent 52%),
        radial-gradient(ellipse 125% 105% at 22% 90%, rgba(255, 253, 208, 0.92) 0%, transparent 48%),
        radial-gradient(ellipse 100% 115% at 50% 48%, rgba(221, 160, 221, 0.7) 0%, transparent 60%),
        linear-gradient(135deg, 
            rgba(255, 245, 248, 1) 0%,
            rgba(245, 248, 255, 1) 33%,
            rgba(248, 255, 250, 1) 66%,
            rgba(255, 253, 248, 1) 100%
        );
}

[data-theme="dark"] .color-picker-dropdown { display: none; }

/* User Dropdown */
.user-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
    background: var(--color-bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-sm);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s var(--ease-out); z-index: var(--z-dropdown);
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item {
    display: flex; align-items: center; gap: var(--space-md); width: 100%;
    padding: var(--space-md); background: transparent; border: none;
    border-radius: var(--radius-md); font-family: inherit; font-size: 0.875rem;
    color: var(--color-text); cursor: pointer; transition: all 0.2s; text-align: left;
}
.dropdown-item:hover { background: rgba(0,0,0,0.04); }
[data-theme="dark"] .dropdown-item:hover { background: rgba(255,255,255,0.06); }
.dropdown-item.active { background: var(--color-primary-light); }

.user-avatar {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 500;
}
.user-wiwi .user-avatar { background: rgba(123, 197, 174, 0.15); color: var(--color-wiwi); }
.user-wiwi .user-name { color: var(--color-wiwi); }
.user-yuyu .user-avatar { background: rgba(123, 168, 213, 0.15); color: var(--color-yuyu); }
.user-yuyu .user-name { color: var(--color-yuyu); }

.dropdown-divider { height: 1px; background: rgba(0,0,0,0.06); margin: var(--space-sm) 0; }
[data-theme="dark"] .dropdown-divider { background: rgba(255,255,255,0.06); }

.logout-btn { color: var(--color-text-muted); }
.logout-btn:hover { color: var(--color-error); background: rgba(232, 168, 168, 0.1); }

/* Main */
.main { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.globe-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: grab; }
.globe-container:active { cursor: grabbing; }

/* Side Panel */
.side-panel { position: fixed; top: 50%; transform: translateY(-50%); z-index: var(--z-panel); }
.left-panel { left: var(--space-xl); }
.panel-content {
    background: var(--color-bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: var(--space-xl); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    min-width: 200px; animation: slideInLeft 0.8s var(--ease-out) 0.2s both;
}
.panel-content.minimal {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: var(--space-md);
    min-width: 200px;
}
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.panel-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; margin-bottom: var(--space-xs); }
.panel-subtitle { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: var(--space-lg); }

.stats { display: flex; flex-direction: column; gap: var(--space-md); }
.stat-item { display: flex; align-items: baseline; gap: var(--space-sm); }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 300; color: var(--color-primary-dark); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--color-text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* City Ranking - Korean Minimal Style */
.ranking-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .ranking-header { border-bottom-color: rgba(255,255,255,0.08); }

.ranking-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ranking-tabs {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.ranking-tab {
    padding: 2px 8px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.6;
}
.ranking-tab:hover { opacity: 1; }
.ranking-tab.active {
    opacity: 1;
    color: var(--color-text);
}

.city-ranking {
    display: flex;
    flex-direction: column;
    max-height: 360px;
    overflow-y: auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
[data-theme="dark"] .ranking-item { border-bottom-color: rgba(255,255,255,0.03); }
.ranking-item:last-child { border-bottom: none; }
.ranking-item:hover { 
    padding-left: 6px;
    opacity: 0.7;
}

.ranking-info {
    display: flex;
    align-items: baseline;
    gap: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    color: var(--color-text-light);
}
.ranking-country {
    color: var(--color-text-muted);
}
.ranking-country::after {
    content: '，';
    margin-right: 2px;
}
.ranking-city {
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cloud-album-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    opacity: 0.8;
}

.cloud-album-badge svg {
    display: block;
}

.ranking-count {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    min-width: 24px;
    text-align: right;
}

/* City Preview */
.city-preview {
    position: fixed; z-index: var(--z-tooltip);
    background: var(--color-bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: var(--space-lg); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
    min-width: 200px; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.city-preview.hidden { opacity: 0; transform: scale(0.95); }

.preview-header { margin-bottom: var(--space-md); padding-bottom: var(--space-md); border-bottom: 1px solid rgba(0,0,0,0.06); }
[data-theme="dark"] .preview-header { border-bottom-color: rgba(255,255,255,0.06); }
.preview-city { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; margin-bottom: var(--space-xs); }
.preview-country { font-size: 0.75rem; color: var(--color-text-muted); letter-spacing: 0.05em; }
.preview-stats { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-md); }
.preview-stats span { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.8125rem; color: var(--color-text-light); }
.preview-stats svg { opacity: 0.6; }
.preview-stats .count { font-weight: 500; color: var(--color-primary-dark); }
.preview-hint { font-size: 0.6875rem; color: var(--color-text-muted); text-align: center; padding-top: var(--space-sm); border-top: 1px solid rgba(0,0,0,0.06); }
[data-theme="dark"] .preview-hint { border-top-color: rgba(255,255,255,0.06); }

/* City List Panel */
.city-list-panel {
    position: fixed; top: 0; right: 0; height: 100vh; width: 320px;
    background: var(--color-bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl); z-index: var(--z-panel);
    transform: translateX(100%); transition: transform 0.4s var(--ease-out);
    display: flex; flex-direction: column;
}
.city-list-panel.open { transform: translateX(0); }
.city-list-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-xl); }
.city-list-header h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }

.btn-close {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; border-radius: var(--radius-full);
    color: var(--color-text-muted); cursor: pointer; transition: all 0.2s;
}
.btn-close:hover { background: rgba(0,0,0,0.05); color: var(--color-text); }

.city-list-search { padding: 0 var(--space-xl) var(--space-md); }
.city-list-search input {
    width: 100%; padding: var(--space-md); border: none; border-radius: var(--radius-full);
    font-family: inherit; font-size: 0.875rem; background: var(--color-bg); color: var(--color-text);
    transition: all 0.2s;
}
.city-list-search input:focus { outline: none; box-shadow: var(--shadow-sm); }
.city-list-search input::placeholder { color: var(--color-text-muted); }

.city-list { flex: 1; overflow-y: auto; padding: 0 var(--space-xl) var(--space-xl); }
.city-item {
    display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md);
    border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; margin-bottom: var(--space-xs);
}
.city-item:hover { background: rgba(0,0,0,0.04); }
.city-dot { width: 10px; height: 10px; border-radius: var(--radius-full); flex-shrink: 0; }
.city-item-info { flex: 1; min-width: 0; }
.city-item-name { font-size: 0.9375rem; font-weight: 400; margin-bottom: 2px; }
.city-item-country { font-size: 0.75rem; color: var(--color-text-muted); }
.city-item-count { font-size: 0.6875rem; color: var(--color-text-muted); text-align: right; }

/* Modal */
.modal {
    position: fixed; inset: 0; z-index: var(--z-modal);
    display: flex; align-items: center; justify-content: center; padding: var(--space-xl);
}
.modal.hidden { display: none; }
.modal-backdrop {
    position: absolute; inset: 0; background: rgba(45, 41, 38, 0.4);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s var(--ease-out);
}
[data-theme="dark"] .modal-backdrop { background: rgba(0, 0, 0, 0.6); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    position: relative; background: var(--color-bg-card);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: var(--space-xl); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
    width: 100%; max-width: 400px; animation: slideUp 0.4s var(--ease-out);
}
.modal-large { max-width: 500px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal-close {
    position: absolute; top: var(--space-md); right: var(--space-md);
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; border-radius: var(--radius-full);
    color: var(--color-text-muted); cursor: pointer; transition: all 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.05); color: var(--color-text); }

.modal-header { text-align: center; margin-bottom: var(--space-lg); }
.modal-header h2 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; margin-bottom: var(--space-xs); }
.modal-header p { font-size: 0.8125rem; color: var(--color-text-muted); }

.modal-form { display: flex; flex-direction: column; gap: var(--space-md); }
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-group label { font-size: 0.6875rem; font-weight: 500; color: var(--color-text-light); letter-spacing: 0.05em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
    padding: var(--space-md); border: none; border-radius: var(--radius-md);
    font-family: inherit; font-size: 0.9375rem; background: var(--color-bg); color: var(--color-text);
    transition: all 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; box-shadow: 0 0 0 2px var(--color-primary-light);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-text-muted); }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

.btn-primary {
    padding: var(--space-md) var(--space-xl); background: var(--color-text); color: var(--color-bg);
    border: none; border-radius: var(--radius-full); font-family: inherit;
    font-size: 0.875rem; font-weight: 400; letter-spacing: 0.05em;
    cursor: pointer; transition: all 0.3s var(--ease-out); margin-top: var(--space-sm);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
    padding: var(--space-md) var(--space-xl); background: transparent; color: var(--color-text);
    border: none; border-radius: var(--radius-full); font-family: inherit;
    font-size: 0.875rem; cursor: pointer; transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(0,0,0,0.05); }

/* Photo upload area */
.photo-upload-area {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.photo-preview {
    aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden;
    background: var(--color-bg); position: relative;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview .remove-btn {
    position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
    background: rgba(0,0,0,0.5); border: none; border-radius: var(--radius-full);
    color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 12px; opacity: 0; transition: opacity 0.2s;
}
.photo-preview:hover .remove-btn { opacity: 1; }
.add-photo-btn {
    aspect-ratio: 1; border-radius: var(--radius-md); background: var(--color-bg);
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted); transition: all 0.2s;
}
.add-photo-btn:hover { background: rgba(0,0,0,0.05); color: var(--color-text-light); }
.add-photo-btn svg { width: 24px; height: 24px; }

/* Steps indicator */
.modal-steps { display: flex; justify-content: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.step-dot {
    width: 8px; height: 8px; border-radius: var(--radius-full);
    background: var(--color-empty); transition: all 0.3s;
}
.step-dot.active { background: var(--color-primary); width: 24px; }

/* FAB */
.fab {
    position: fixed; bottom: calc(56px + var(--space-lg)); right: var(--space-xl);
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    background: var(--color-text); color: var(--color-bg); border: none;
    border-radius: var(--radius-full); box-shadow: var(--shadow-lg);
    cursor: pointer; transition: all 0.3s var(--ease-out); z-index: var(--z-panel);
}
.fab:hover { background: var(--color-primary-dark); transform: scale(1.05); }
.fab.hidden { display: none; }

/* Footer - 长条形底部栏 */
.footer {
    position: fixed; bottom: 0; left: 0; right: 0; height: 56px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--space-xl);
    background: linear-gradient(0deg, var(--color-bg) 70%, transparent 100%);
    z-index: var(--z-header);
}
.footer-left { min-width: 120px; }
.footer-center { flex: 1; display: flex; justify-content: center; }
.footer-right { min-width: 120px; text-align: right; }

.user-status {
    font-size: 0.75rem; color: var(--color-text-muted);
    display: flex; align-items: center; gap: var(--space-sm);
}
.user-status::before {
    content: ''; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--color-empty);
}
.user-status.logged-in::before { background: var(--color-success); }
.user-status.user-wiwi::before { background: var(--color-wiwi); }
.user-status.user-yuyu::before { background: var(--color-yuyu); }
.footer-date { font-size: 0.75rem; color: var(--color-text-muted); }

/* Music Player - 无边框精致长条设计 */
.music-player {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    background: transparent;
    padding: var(--space-sm) 0;
}
.player-controls { display: flex; align-items: center; gap: var(--space-xs); }
.player-btn {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; border-radius: var(--radius-full);
    color: var(--color-text-muted); cursor: pointer; transition: all 0.2s;
}
.player-btn:hover { color: var(--color-text); transform: scale(1.1); }
.player-btn:active { transform: scale(0.95); }
#playPauseBtn .icon-pause { display: none; }
.music-player.playing #playPauseBtn .icon-play { display: none; }
.music-player.playing #playPauseBtn .icon-pause { display: block; }
.player-info { 
    display: flex; 
    align-items: center;
    gap: var(--space-md);
    min-width: 180px;
}
.song-title { 
    font-size: 0.75rem; 
    font-weight: 400; 
    color: var(--color-text-light);
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: 140px;
}
.song-time { 
    font-size: 0.6875rem; 
    color: var(--color-text-muted); 
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
}
.player-volume { display: flex; align-items: center; gap: var(--space-sm); }
.volume-btn { color: var(--color-text-muted); }
.volume-btn .icon-mute { display: none; }
.volume-btn.muted .icon-volume { display: none; }
.volume-btn.muted .icon-mute { display: block; }
.volume-slider {
    width: 50px; height: 3px; -webkit-appearance: none; appearance: none;
    background: var(--color-text-muted); opacity: 0.3;
    border-radius: var(--radius-full); cursor: pointer;
    transition: opacity 0.2s;
}
.volume-slider:hover { opacity: 0.5; }
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 10px; height: 10px;
    background: var(--color-text-light); border-radius: var(--radius-full); cursor: pointer;
    transition: transform 0.2s;
}
.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* Responsive */
@media (max-width: 768px) {
    .header { padding: 0 var(--space-md); height: 64px; }
    .nav { display: none; }
    .left-panel { left: var(--space-md); bottom: calc(56px + var(--space-md)); top: auto; transform: none; }
    .panel-content { padding: var(--space-lg); }
    .city-list-panel { width: 100%; }
    .modal-content { padding: var(--space-lg); margin: var(--space-md); }
    .form-row { grid-template-columns: 1fr; }
    .footer { padding: 0 var(--space-md); height: 48px; }
    .footer-left, .footer-right { min-width: auto; }
    .music-player { gap: var(--space-md); }
    .player-info { min-width: 100px; }
    .song-title { max-width: 80px; font-size: 0.6875rem; }
    .volume-slider { width: 40px; }
    .fab { bottom: calc(48px + var(--space-md)); right: var(--space-md); width: 44px; height: 44px; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-text-muted); border-radius: var(--radius-full); opacity: 0.3; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-light); }
::selection { background: var(--color-primary-light); color: var(--color-text); }

/* Footer Music Link */
.footer-music-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.footer-music-link:hover {
    color: var(--color-text);
    background: var(--color-bg-card);
}

/* ============================================
   Mini Music Player (Global) - 炫彩文字
   ============================================ */
.mini-music-player {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-music-player.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mini-player-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 8px 16px;
}

.mini-player-note {
    font-size: 1rem;
    background: linear-gradient(
        90deg,
        #ff6b6b,
        #feca57,
        #48dbfb,
        #ff9ff3,
        #54a0ff,
        #5f27cd,
        #ff6b6b
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

.shimmer-text {
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--font-display);
    background: linear-gradient(
        90deg,
        #ff6b6b,
        #feca57,
        #48dbfb,
        #ff9ff3,
        #54a0ff,
        #5f27cd,
        #ff6b6b
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

.mini-music-player.playing .shimmer-text,
.mini-music-player.playing .mini-player-note {
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Cloud Status Indicator */
.cloud-status {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cloud-status.connected {
    color: #4caf50;
}

.cloud-status.disconnected {
    color: var(--color-text-muted);
}

.cloud-status:hover {
    background: var(--color-bg-card);
}

.cloud-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ============================================
   Global Toast Notification
   ============================================ */
.global-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9999;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.global-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.global-toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.global-toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.global-toast-title {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.global-toast-message {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.global-toast.success {
    border-color: #4caf50;
}

.global-toast.success .global-toast-icon {
    color: #4caf50;
}

.global-toast.error {
    border-color: #f44336;
}

.global-toast.error .global-toast-icon {
    color: #f44336;
}

.global-toast.info {
    border-color: #2196f3;
}

.global-toast.info .global-toast-icon {
    color: #2196f3;
}

/* ============================================
   Map Level Dropdown
   ============================================ */
.map-level-dropdown {
    position: relative;
}

.map-level-btn {
    color: var(--color-text-light);
}

.map-level-menu {
    min-width: 160px;
}

.map-level-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
}

.level-name {
    font-size: 0.875rem;
}

.map-level-menu .dropdown-item.active {
    background: rgba(232, 180, 184, 0.1);
    color: var(--color-primary);
}