/* =========================================
   Custom Design System (Apple Geek Style)
========================================= */
:root {
    --bg-color: #f5f5f7; /* Apple 经典浅灰背景 */
    --grid-color: rgba(0, 0, 0, 0.04); /* 极淡的工程网格 */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
}

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px; /* 更大的网格，更大气 */
    color: var(--text-primary);
    font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 隐藏滚动条但保留功能 */
::-webkit-scrollbar { width: 0px; }

/* === 动画系统 (优化版：更加柔和) === */
.reveal-up {
    opacity: 0;
    /* 减少位移距离，从40px改为30px，减少僵硬感 */
    transform: translateY(30px) scale(0.98); 
    /* 使用更平滑的缓动曲线 */
    transition: all 1.0s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: blur(8px); /* 初始带一点模糊，实现更梦幻的淡入 */
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Hello 轮播 */
#hero-text { transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* === Bento 卡片样式 (核心) === */
.bento-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
    border-radius: 24px; /* 更圆润的角 */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.85);
    z-index: 10;
}

/* iOS 风格 Action Sheet 模态框 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.ios-action-sheet {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px);
    width: 90%;
    max-width: 360px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 24px;
    text-align: center;
}
.modal-overlay.open .ios-action-sheet {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.action-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary { background: #0071e3; color: white; }
.btn-secondary { background: #f2f2f7; color: #1d1d1f; }
.btn-primary:hover { background: #0077ED; }
.btn-secondary:hover { background: #e5e5ea; }

/* Toast 提示 */
#toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
}
#toast.show { transform: translateX(-50%) translateY(0); }