:root {
    --bg-color: #f5f5f7;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #06c;
    --accent-hover: #0071e3;
    --danger-color: #ff3b30;
    --success-color: #34c759;
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* 玻璃拟态卡片 */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* 标题排版 */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

/* 按钮设计 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px; /* Apple Pill Shape */
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    outline: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-danger {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger-color);
}

.btn-danger:hover {
    background: rgba(255, 59, 48, 0.2);
}

/* 输入框设计 */
.input-group {
    margin-bottom: 20px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #d2d2d7;
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-stack);
    font-size: 17px;
    transition: var(--transition);
    color: var(--text-primary);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    outline: none;
}

/* 不对称布局 - 首页 */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    min-height: 60vh;
}

.hero-content {
    padding-right: 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 相册时间轴 */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d2d2d7;
    transform: translateX(-50%);
}

.album-item {
    width: 45%;
    margin-bottom: 60px;
    position: relative;
}

.album-item:nth-child(odd) {
    margin-left: auto;
    padding-left: 40px;
}

.album-item:nth-child(even) {
    margin-right: auto;
    padding-right: 40px;
    text-align: right;
}

.album-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.album-item:hover .album-cover {
    transform: scale(1.03);
}

/* 乌萨奇看板 */
.usagi-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}

.usagi-widget:hover {
    transform: scale(1.1) rotate(5deg);
}

.usagi-widget.jump {
    animation: jump 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes jump {
    0%, 100% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-40px) scale(1.1); }
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .album-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .usagi-widget {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }
    
    .usagi-body {
        width: 40px;
        height: 50px;
        left: 10px;
    }
    
    .usagi-ear {
        height: 25px;
        top: -15px;
    }
}

/* 登录/安装页特定样式 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #eef2f3, #8e9eab);
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.9);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(29, 29, 31, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 98px;
    backdrop-filter: blur(10px);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}
