/* 基础重置与 iOS 字体 */
* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; 
    -webkit-tap-highlight-color: transparent; 
}
body { width: 100vw; height: 100vh; overflow: hidden; color: #1c1c1e; background-color: #f2f2f7; }

/* 亮色二次元背景 + 高斯模糊透视 */
.bg-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-image: url('https://api.paugram.com/wallpaper/'); 
    background-size: cover; background-position: center;
}
.bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

/* 全局容器 */
.app-container {
    width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; padding: 20px;
}

/* iOS Modal Sheet (电脑端：悬浮大卡片) */
.ios-card {
    width: 900px; height: 600px; max-width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 36px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    animation: sheetPop 0.5s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes sheetPop {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.ios-drag-indicator {
    width: 40px; height: 5px; background: rgba(0,0,0,0.15);
    border-radius: 10px; margin: 12px auto;
}

/* 布局：PC端左右分栏 */
.window-body { display: flex; flex: 1; flex-direction: row; overflow: hidden; }

/* 导航栏 */
.sidebar {
    width: 200px; padding: 10px 15px; border-right: 1px solid rgba(0,0,0,0.05);
    display: flex; flex-direction: column; gap: 8px;
}
.nav-item {
    padding: 14px 20px; border-radius: 16px; color: #1c1c1e;
    font-size: 15px; font-weight: 600; text-decoration: none;
    display: flex; align-items: center; gap: 10px;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-item:active { transform: scale(0.95); }
.nav-item:hover { background: rgba(0,0,0,0.04); }
.nav-item.active { background: #007aff; color: #fff; box-shadow: 0 8px 20px rgba(0,122,255,0.25); }

/* 右侧内容区 */
.content-area { flex: 1; padding: 20px 40px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* 表单与按钮 iOS 化 */
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; color: #8e8e93; font-weight: 600; }
.form-control {
    width: 100%; padding: 14px 16px; border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08); background: rgba(0,0,0,0.03);
    font-size: 15px; color: #1c1c1e; outline: none; transition: all 0.3s;
}
.form-control:focus { background: #fff; border-color: #007aff; box-shadow: 0 0 0 3px rgba(0,122,255,0.15); }

.code-row { display: flex; gap: 10px; }
.btn-primary {
    background: #007aff; color: #fff; border: none; padding: 14px 20px;
    border-radius: 16px; font-size: 16px; font-weight: 600; width: 100%; cursor: pointer; transition: 0.2s;
}
.btn-primary:active { transform: scale(0.96); background: #0062cc; }
.btn-secondary {
    background: #fff; color: #007aff; border: 1px solid rgba(0,122,255,0.3); padding: 0 20px;
    border-radius: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; white-space: nowrap;
}
.btn-secondary:active { transform: scale(0.96); background: #f2f2f7; }
.btn-danger {
    background: #ff3b30; color: white; border: none; padding: 10px 16px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.btn-danger:active { transform: scale(0.96); background: #d70015; }

/* QQ头像展示UI */
.qq-preview {
    display: flex; align-items: center; gap: 15px; margin-bottom: 15px;
    background: rgba(255,255,255,0.5); padding: 10px; border-radius: 16px; display: none;
}
.qq-avatar { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.qq-name { font-weight: 600; font-size: 15px; color: #1c1c1e; }

/* 卡片数据展示UI */
.data-card { background: #fff; padding: 20px; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 15px; }

/* ========================================= */
/* 📱 移动端自适应 (变身底部 Tab Bar)          */
/* ========================================= */
@media screen and (max-width: 768px) {
    .app-container { padding: 0; align-items: flex-end; }
    .ios-card {
        width: 100%; height: 90vh; border-radius: 36px 36px 0 0;
        animation: slideUp 0.5s cubic-bezier(0.32, 0.72, 0, 1) forwards;
    }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .window-body { flex-direction: column; }
    .content-area { padding: 20px; padding-bottom: 100px; }
    .sidebar {
        width: 100%; height: 85px; padding: 10px 15px 25px 15px;
        flex-direction: row; justify-content: space-around;
        position: absolute; bottom: 0; left: 0; border-right: none; border-top: 1px solid rgba(0,0,0,0.08);
        background: rgba(255,255,255,0.85); backdrop-filter: blur(30px); z-index: 100;
    }
    .nav-item { flex-direction: column; gap: 4px; padding: 8px; width: 70px; justify-content: center; font-size: 11px; }
    .nav-item:hover { background: transparent; }
    .nav-item.active { background: transparent; color: #007aff; box-shadow: none; font-weight: 700; }
}