/* ===== 前台样式（原创实现） ===== */

/* 隐藏所有滚动条（保留滚动功能） */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

:root {
    --header-bg: #f5f5f5;
    --header-text: #333333;
    --search-btn: #3b82f6;
    --search-btn-hover: #2563eb;
    --hot-search-color: #ffffff;
    --category-active-bg: #2c3e50;
    --tag-bg: #e3f2fd;
    --tag-color: #1976d2;
    --card-title-color: #333333;
    --detail-bg: #2c3e50;
    --detail-title-color: #ffffff;
    --footer-bg: #2c3e50;
    --footer-text-color: #ffffff;
    --disclaimer-color: #999999;
    --badge-color: #ff5722;
    --base-size: 16px;
    --card-title-size: 15px;
}

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

html { font-size: var(--base-size); }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 头部 */
.header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.5rem; font-weight: bold; text-decoration: none; color: var(--header-text);
}
.logo-img { width: 180px; height: 58px; object-fit: contain; }
.nav { display: flex; gap: 1rem; align-items: center; }
.nav a { text-decoration: none; padding: 0.5rem 1rem; border-radius: 4px; transition: background 0.3s; }
.nav a:hover { background: rgba(0, 0, 0, 0.08); }

/* 搜索区（滚动背景动画） */
.search-section {
    background: linear-gradient(120deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    padding: 1.5rem 0; position: relative; overflow: hidden;
}
.search-bg-animation {
    position: absolute; top: 0; left: 0; width: 200%; height: 100%;
    background-repeat: repeat-x; background-size: auto 100%;
    animation: scrollBg 30s linear infinite; z-index: 0;
}
@keyframes scrollBg { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.search-section .container { position: relative; z-index: 1; padding: 8px 15px 15px; }

.search-box-wrapper {
    max-width: 600px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.2); border-radius: 50px; padding: 10px;
}
.search-box { display: flex; background: #fff; border-radius: 40px; overflow: hidden; }
.search-box input {
    flex: 1; min-width: 0; padding: 15px 25px; border: none;
    font-size: 1.05rem; outline: none; color: #333;
}
.search-box input::placeholder { color: #999; }
.search-box button {
    padding: 15px 40px; background: var(--search-btn); color: #fff;
    border: none; cursor: pointer; font-size: 1.05rem; font-weight: 500; transition: background 0.3s;
}
.search-box button:hover { background: var(--search-btn-hover); }

.hot-search-bar-wrapper {
    max-width: 550px; margin: 12px auto 0;
    background: rgba(255, 255, 255, 0.25); border-radius: 50px; padding: 10px 25px;
}
.hot-search-bar { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; color: var(--hot-search-color); font-size: 0.95rem; }
.hot-search-label { font-weight: 500; white-space: nowrap; }
.hot-search-items { display: flex; gap: 25px; flex-wrap: wrap; justify-content: center; }
.hot-search-item { color: var(--hot-search-color); text-decoration: none; transition: opacity 0.2s; }
.hot-search-item:hover { opacity: 0.75; }

/* 搜索结果提示 */
.search-result-tip { margin: 18px 0 6px; color: #666; font-size: 0.95rem; }
.search-result-tip a { color: #3b82f6; text-decoration: none; margin-left: 8px; }

/* 分类按钮 */
.category-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.category-btn {
    padding: 8px 20px; border: none; border-radius: 20px; cursor: pointer;
    font-size: 0.9rem; transition: all 0.3s; background: #e0e0e0; color: #333;
}
.category-btn:hover { background: #d5d5d5; }
.category-btn.active { background: var(--category-active-bg); color: #fff; }

/* 卡片网格 */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-bottom: 2rem; }
.resource-link { text-decoration: none; display: block; }
.resource-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s; position: relative; height: 100%;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); }
.card-badge {
    position: absolute; top: 0; left: 0; z-index: 10;
    background: var(--badge-color); color: #fff; padding: 2px 8px;
    font-size: 0.8rem; font-weight: bold; border-radius: 0 0 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.resource-thumbnail { width: 100%; height: 140px; object-fit: cover; background: #f0f0f0; display: block; }
.resource-thumb-empty { display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 0.9rem; }
.resource-info { padding: 12px; }
.resource-title {
    font-size: var(--card-title-size); font-weight: 600; color: var(--card-title-color);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.resource-category {
    display: inline-block; background: var(--tag-bg); color: var(--tag-color);
    padding: 3px 10px; border-radius: 12px; font-size: 0.75rem;
}

/* 加载更多 */
.load-more-wrap { text-align: center; margin-bottom: 40px; }
.btn-load-more {
    padding: 10px 50px; border: none; border-radius: 25px; cursor: pointer;
    background: #fff; color: #555; font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: all 0.3s;
}
.btn-load-more:hover:not(:disabled) { background: var(--category-active-bg); color: #fff; }
.btn-load-more:disabled { cursor: default; color: #aaa; }

.empty-state { text-align: center; color: #999; padding: 60px 0; }

/* 详情页 */
.detail-container {
    max-width: 900px; margin: 30px auto; background: #fff;
    border-radius: 12px; padding: 30px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.detail-head { background: var(--detail-bg); padding: 30px; border-radius: 12px; margin-bottom: 20px; }
.detail-title { font-size: 1.8rem; text-align: center; color: var(--detail-title-color); margin: 0; }
.detail-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 15px; }
.detail-pills span { background: rgba(255, 255, 255, 0.2); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; }

.action-buttons { display: flex; gap: 15px; margin: 30px 0; flex-wrap: wrap; justify-content: center; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 30px; border: none; border-radius: 6px; cursor: pointer;
    font-size: 1rem; text-decoration: none; color: #fff; transition: opacity 0.3s;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: #2c3e50; }
.btn-success { background: #4caf50; }
.btn-warning { background: #ff9800; }
.btn-danger { background: #f44336; }
.btn-info { background: #3b82f6; }

.detail-desc {
    background: #f8f9fa; border-radius: 8px; padding: 16px 20px;
    white-space: pre-line; color: #444; margin-bottom: 10px;
}
/* 富文本描述（后台自定义颜色/表情/图片） */
.detail-desc.rich { white-space: normal; }
.detail-desc.rich p { margin: 0 0 8px; }
.detail-desc.rich p:last-child { margin-bottom: 0; }
.detail-desc.rich img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; }

.gallery { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; align-items: center; }
.gallery img {
    max-width: 100%; height: auto; border-radius: 8px; cursor: zoom-in;
    background: #f5f5f5; transition: transform 0.3s;
}
.gallery img:hover { transform: scale(1.01); }

/* 图片灯箱 */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); z-index: 2000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 94%; max-height: 94%; border-radius: 8px; }

/* 页脚 */
.footer { background: var(--footer-bg); color: var(--footer-text-color); text-align: center; padding: 20px 0; margin-top: 50px; }
.footer-main { margin-bottom: 10px; }
.footer-disclaimer { font-size: 0.9rem; color: var(--disclaimer-color); padding: 0 15px; }

/* 移动端 */
@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 12px; }
    .resources-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .search-box button { padding: 15px 22px; }
    .detail-container { padding: 18px; margin: 15px auto; }
    .detail-title { font-size: 1.4rem; }
    .logo-img { width: 140px; height: 44px; }
}

/* ===== 气泡玻璃质感升级（Glass UI） ===== */
body {
    background:
        radial-gradient(1100px 550px at 8% -5%, rgba(99, 102, 241, 0.10), transparent 60%),
        radial-gradient(900px 480px at 96% 4%, rgba(236, 72, 153, 0.08), transparent 60%),
        radial-gradient(800px 480px at 50% 105%, rgba(14, 165, 233, 0.08), transparent 60%),
        linear-gradient(180deg, #f6f7fb 0%, #f1f3f8 100%);
    background-attachment: fixed;
}

/* 顶部：磨砂玻璃 */
.header {
    background: var(--header-bg);
    background: color-mix(in srgb, var(--header-bg) 82%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    box-shadow: 0 4px 24px rgba(31, 41, 55, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

/* 搜索区：深色玻璃 */
.search-section { background: linear-gradient(135deg, #1f2a3d 0%, #2c3e50 45%, #23395b 100%); }
.search-box-wrapper {
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.search-box { box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05); }
.search-box button { border-radius: 0 40px 40px 0; }
.hot-search-bar-wrapper {
    background: rgba(255, 255, 255, 0.17);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* 分类：玻璃药丸 */
.category-btn {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(31, 41, 55, 0.06);
}
.category-btn:hover { background: rgba(255, 255, 255, 0.9); }
.category-btn.active {
    background: var(--category-active-bg);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.28);
}

/* 资源卡片：气泡玻璃 */
.resource-card {
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.06), 0 14px 34px rgba(31, 41, 55, 0.06);
}
.resource-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.12), 0 20px 46px rgba(59, 130, 246, 0.14);
}
.resource-thumbnail { border-radius: 15px 15px 0 0; }
.resource-category { border: 1px solid rgba(255, 255, 255, 0.6); }
.btn-load-more {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 999px;
}

/* 详情页：玻璃容器 */
.detail-container {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 14px 44px rgba(31, 41, 55, 0.12);
}
.detail-head {
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px rgba(31, 41, 55, 0.2);
}
.detail-pills span { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn { border-radius: 999px; box-shadow: 0 4px 14px rgba(31, 41, 55, 0.18); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(31, 41, 55, 0.24); opacity: 1; }
.detail-desc {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
}
.gallery img { border-radius: 14px; box-shadow: 0 6px 20px rgba(31, 41, 55, 0.1); }

/* ===== 侧边圆形气泡 App 下载按钮 ===== */
.app-bubble {
    position: fixed; right: 22px; top: 58%; z-index: 900;
    width: 62px; height: 62px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(139, 92, 246, 0.92));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #fff; text-decoration: none;
    animation: bubbleFloat 3.2s ease-in-out infinite;
    transition: transform 0.25s, box-shadow 0.25s;
}
.app-bubble:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.app-bubble-icon { font-size: 1.35rem; line-height: 1; }
.app-bubble-text { font-size: 0.62rem; font-weight: bold; letter-spacing: 0.5px; margin-top: 2px; }
.app-bubble::after {
    content: ''; position: absolute; inset: -5px; border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.35);
    animation: bubblePulse 2.4s ease-out infinite;
}
@keyframes bubbleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bubblePulse { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 768px) {
    .app-bubble { right: 14px; top: auto; bottom: 90px; width: 56px; height: 56px; }
}

/* ===== App 下载页 ===== */
.download-container { max-width: 860px; margin: 30px auto 50px; }
.dl-hero { text-align: center; margin-bottom: 28px; }
.dl-hero-icon { font-size: 3rem; animation: bubbleFloat 3.2s ease-in-out infinite; display: inline-block; }
.dl-hero h1 { font-size: 1.7rem; margin: 8px 0 4px; color: #1f2937; }
.dl-hero p { color: #8a94a6; font-size: 0.95rem; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px; padding: 30px 24px; text-align: center;
    box-shadow: 0 10px 34px rgba(31, 41, 55, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: 0 16px 42px rgba(31, 41, 55, 0.13); }
.dl-card-hl { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 16px 42px rgba(59, 130, 246, 0.18); }
.dl-card-icon {
    width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.dl-card-icon.android { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.dl-card-icon.ios { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.dl-card h2 { font-size: 1.15rem; color: #1f2937; margin-bottom: 8px; }
.dl-meta { color: #8a94a6; font-size: 0.85rem; margin-bottom: 16px; line-height: 1.6; }
.dl-btn { padding: 11px 36px; font-size: 1rem; }
.dl-btn-disabled { background: #d1d5db; color: #fff; cursor: default; }
.dl-btn-disabled:hover { transform: none; box-shadow: 0 4px 14px rgba(31, 41, 55, 0.12); }
.dl-tip { color: #aab2c0; font-size: 0.78rem; margin-top: 12px; }

/* 去掉移动端点按高亮/焦点虚框 */
* { -webkit-tap-highlight-color: transparent; }
a, button, input, textarea { outline: none; }
.app-bubble:focus, .app-bubble:active, .app-bubble:visited {
    outline: none; box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ===== 滚动性能优化 ===== */
.header, .category-btn, .resource-card, .detail-container,
.detail-desc, .btn-load-more, .detail-pills span {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.header { background: var(--header-bg); background: color-mix(in srgb, var(--header-bg) 94%, transparent); }
.category-btn { background: rgba(255, 255, 255, 0.9); }
.resource-card { background: rgba(255, 255, 255, 0.96); }
.detail-container { background: rgba(255, 255, 255, 0.97); }
.detail-desc { background: rgba(248, 249, 250, 0.95); }
.btn-load-more { background: rgba(255, 255, 255, 0.94); }
body { background-attachment: scroll; }
.resource-card { content-visibility: auto; contain-intrinsic-size: 200px; }
.resource-thumbnail, .gallery img { decoding: async; }

/* ===== 详情页按钮二级弹窗 ===== */
.link-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(15, 23, 42, 0.72); display: flex; align-items: center; justify-content: center; padding: 3.5% 4%; }
.lm-card { width: 100%; height: 100%; max-width: 1100px; background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.6); animation: lmPop 0.22s ease-out; }
@keyframes lmPop { from { transform: translateY(26px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.lm-bar { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); color: #fff; padding: 11px 14px; flex-shrink: 0; }
.lm-title { flex: 1; min-width: 0; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-ext { color: rgba(255, 255, 255, 0.92); text-decoration: none; font-size: 0.85rem; white-space: nowrap; background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 6px 13px; }
.lm-close { background: rgba(255, 255, 255, 0.16); color: #fff; border: none; border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.lm-loading { padding: 14px; text-align: center; color: #9ca3af; font-size: 0.85rem; flex-shrink: 0; }
.lm-frame { flex: 1; border: none; width: 100%; background: #fff; }

/* ===== 用户认证页（登录/注册/找回） ===== */
.auth-wrap { display: flex; justify-content: center; padding: 40px 15px 50px; }
.auth-card {
    width: 100%; max-width: 420px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px; padding: 32px 30px;
    box-shadow: 0 14px 44px rgba(31, 41, 55, 0.12);
}
.auth-icon { font-size: 2.4rem; text-align: center; }
.auth-title { text-align: center; font-size: 1.35rem; color: #1f2937; margin: 6px 0 20px; }
.auth-tip { color: #8a94a6; font-size: 0.88rem; text-align: center; margin-bottom: 16px; }
.auth-card .form-group { margin-bottom: 14px; }
.auth-card label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.92rem; color: #374151; }
.auth-card .sub { font-weight: 400; color: #9ca3af; font-size: 0.8rem; margin-left: 4px; }
.auth-card input[type="text"], .auth-card input[type="password"], .auth-card select {
    width: 100%; padding: 11px 14px; border: 1px solid #e3e5e8; border-radius: 10px;
    font-size: 0.95rem; background: rgba(255, 255, 255, 0.95); color: #333;
}
.auth-card input:focus, .auth-card select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12); }
.auth-btn { width: 100%; padding: 12px; font-size: 1rem; margin-top: 6px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; }
.auth-links a { color: #3b82f6; text-decoration: none; font-size: 0.88rem; }
.sec-q-show {
    background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px; padding: 11px 14px; color: #1d4ed8; font-size: 0.95rem;
}
.alert { padding: 11px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 0.9rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== 用户中心 ===== */
.uc-wrap { max-width: 860px; margin: 30px auto 50px; }
.uc-head {
    display: flex; align-items: center; gap: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px; padding: 22px 26px; margin-bottom: 18px;
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.09);
}
.uc-avatar {
    width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.uc-head h1 { font-size: 1.3rem; color: #1f2937; }
.uc-meta { color: #8a94a6; font-size: 0.83rem; margin-top: 3px; }
.uc-logout { margin-left: auto; }
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .uc-grid { grid-template-columns: 1fr; } }
.uc-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px; padding: 22px 24px;
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
}
.uc-card h2 { font-size: 1.02rem; margin-bottom: 14px; color: #1f2937; }
.uc-hint { color: #8a94a6; font-size: 0.85rem; margin-bottom: 12px; }
.uc-card .form-group { margin-bottom: 13px; }
.uc-card label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.9rem; color: #374151; }
.uc-card .sub { font-weight: 400; color: #9ca3af; font-size: 0.78rem; margin-left: 4px; }
.uc-card input[type="text"], .uc-card input[type="password"], .uc-card select {
    width: 100%; padding: 10px 13px; border: 1px solid #e3e5e8; border-radius: 10px;
    font-size: 0.93rem; background: rgba(255, 255, 255, 0.95); color: #333;
}
.uc-card input:focus, .uc-card select:focus { border-color: #3b82f6; }

/* App 内“返回App”悬浮钮（仅 App WebView 中显示） */
.back-to-app {
    position: fixed; left: 16px; bottom: 26px; z-index: 900;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(139, 92, 246, 0.95));
    color: #fff; text-decoration: none; font-size: 0.85rem;
    padding: 9px 18px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.back-to-app:active { transform: scale(0.95); }

/* ===== 签到卡片 ===== */
.ci-card {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px; padding: 20px 24px; margin-bottom: 18px;
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
}
.ci-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 260px; }
.ci-level-badge {
    flex-shrink: 0; background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff; font-weight: bold; font-size: 1.05rem;
    padding: 10px 16px; border-radius: 14px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.ci-info { flex: 1; min-width: 0; }
.ci-points-row { font-size: 0.95rem; color: #374151; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ci-points { font-size: 1.5rem; font-weight: bold; color: #1f2937; }
.ci-streak { color: #f59e0b; font-size: 0.85rem; font-weight: 600; }
.ci-bar { height: 8px; background: rgba(255, 255, 255, 0.8); border-radius: 999px; margin: 8px 0 5px; overflow: hidden; }
.ci-bar-in { height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6); border-radius: 999px; transition: width 0.5s; }
.ci-next { color: #8a94a6; font-size: 0.78rem; }
.ci-btn {
    flex-shrink: 0; border: none; cursor: pointer;
    background: linear-gradient(135deg, #22c55e, #10b981); color: #fff;
    font-size: 1rem; font-weight: 600; padding: 13px 30px; border-radius: 999px;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35); transition: transform 0.2s;
}
.ci-btn:hover:not(:disabled) { transform: translateY(-2px); }
.ci-btn:disabled { background: linear-gradient(135deg, #a5b4c8, #94a3b8); cursor: default; box-shadow: none; }
