/* ============================================
   巡光科技·SaaS管理平台 - 自助下单端 App 风格样式
   浅蓝灰背景 + 白色大圆角卡片 + 毛玻璃底部导航
   扁平简洁风：纯色按钮、无光晕渐变、线框图标
   ============================================ */
:root {
    --app-bg: #eef2f9;
    --app-card: #ffffff;
    --app-primary: #2f6bff;
    --app-grad: #2f6bff; /* 已扁平化：统一使用纯色主色 */
    --app-text: #17233d;
    --app-sub: #8a93a6;
    --app-radius: 22px;
}

/* 线框图标（线条拼成的 SVG）基础样式 */
.lico { display: inline-block; vertical-align: -3px; flex: none; }

.app-page {
    background: var(--app-bg); min-height: 100vh;
    padding-bottom: 110px;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--app-text);
}
.app-wrap { max-width: 620px; margin: 0 auto; padding: 12px 14px 0; }

/* ---------- 顶部悬浮标题条（内页） ---------- */
.app-topbar {
    background: var(--app-card); border-radius: 20px;
    padding: 14px 18px; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 2px 10px rgba(16,42,83,.05); margin-bottom: 14px;
}
.app-topbar .back { color: #17233d; text-decoration: none; line-height: 1; display: flex; align-items: center; padding: 2px 6px 2px 0; }
.app-topbar .t { font-size: 17px; font-weight: bold; }
.app-topbar .extra { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; }
.app-topbar .extra a { color: #55627a; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.app-topbar .extra a.hl { color: var(--app-primary); font-weight: 600; }

/* ---------- 首页问候卡 ---------- */
.app-hero {
    background: var(--app-card); border-radius: var(--app-radius);
    padding: 18px 18px 16px; box-shadow: 0 2px 12px rgba(16,42,83,.05);
    margin-bottom: 12px;
}
.app-hero .row1 { display: flex; align-items: center; gap: 12px; }
.app-hero .avatar {
    width: 52px; height: 52px; border-radius: 18px; flex: none;
    background: #eef3ff; color: var(--app-primary);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.app-hero .avatar img { width: 80%; height: 80%; object-fit: contain; }
.app-hero .hi { font-size: 12px; color: var(--app-sub); }
.app-hero .name { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.app-hero .acts { margin-left: auto; display: flex; gap: 8px; }
.app-hero .acts a {
    width: 40px; height: 40px; border-radius: 14px; background: #f2f5fb; color: #55627a;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    transition: all .15s ease;
}
.app-hero .acts a:hover { background: #e6ecf7; transform: translateY(-1px); }
.app-hero .row2 { margin-top: 12px; }
.app-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #e8efff; color: var(--app-primary); font-size: 12px; font-weight: 600;
    padding: 6px 12px; border-radius: 999px;
}
.app-hero .row3 { margin-top: 12px; }
.app-hero h1 { font-size: 21px; font-weight: 800; margin: 0 0 4px; }
.app-hero .sub { color: var(--app-sub); font-size: 13px; }

/* ---------- 搜索框 ---------- */
.app-search {
    background: var(--app-card); border-radius: 999px; margin: 2px 0 12px;
    display: flex; align-items: center; gap: 10px; padding: 13px 18px;
    box-shadow: 0 2px 10px rgba(16,42,83,.04);
}
.app-search input { border: 0; outline: 0; flex: 1; font-size: 14px; background: transparent; color: var(--app-text); }
.app-search .ico { color: #b7c0d2; display: flex; align-items: center; }

/* ---------- 轮播 ---------- */
.app-banner {
    position: relative; border-radius: var(--app-radius); overflow: hidden;
    background: var(--app-card); box-shadow: 0 4px 16px rgba(16,42,83,.08); margin-bottom: 12px;
}
.app-banner .slides { position: relative; height: 180px; }
.app-banner .slide {
    position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
    background: #eef3ff; color: var(--app-primary); font-size: 20px; font-weight: bold; letter-spacing: 2px; cursor: default;
}
.app-banner .slide:first-child { display: flex; }
.app-banner .slide img { width: 100%; height: 100%; object-fit: cover; }
.app-banner .dots { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; }
.app-banner .dots i {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.55); margin: 0 4px; cursor: pointer; transition: all .18s;
}
.app-banner .dots i.on { background: #fff; width: 18px; border-radius: 5px; }

/* ---------- 通知条 ---------- */
.app-notice {
    background: var(--app-card); border-radius: 18px; padding: 12px 16px;
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(16,42,83,.04); font-size: 13px; color: #3d4a63;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.app-notice .ico {
    width: 34px; height: 34px; border-radius: 12px; flex: none;
    background: #fff4e5; color: #d98a00;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- 区块标题 ---------- */
.app-sec { display: flex; align-items: flex-end; margin: 4px 2px 12px; }
.app-sec .t { font-size: 18px; font-weight: 800; }
.app-sec .s { font-size: 12px; color: var(--app-sub); margin-left: 10px; }
.app-sec .more { margin-left: auto; color: var(--app-primary); font-size: 13px; text-decoration: none; font-weight: 600; }

/* ---------- 系统分类横向滚动 ---------- */
.app-cats { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.app-cats::-webkit-scrollbar { display: none; }
.app-cat {
    flex: none; width: 92px; background: var(--app-card); border-radius: 18px;
    padding: 14px 8px; text-align: center; text-decoration: none; color: var(--app-text);
    box-shadow: 0 2px 8px rgba(16,42,83,.04); transition: all .15s ease;
}
.app-cat:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(16,42,83,.1); }
.app-cat .ico {
    width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: #eef3ff; color: var(--app-primary);
}
.app-cat .n { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 商品卡 ---------- */
.app-goods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .app-goods-grid { grid-template-columns: repeat(3, 1fr); } }
.app-gcard {
    background: var(--app-card); border-radius: 20px; padding: 16px;
    box-shadow: 0 2px 10px rgba(16,42,83,.05); transition: all .18s ease;
    display: flex; flex-direction: column;
}
.app-gcard:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(16,42,83,.12); }
.app-gcard .tag {
    align-self: flex-start; font-size: 11px; color: var(--app-primary);
    background: rgba(47,107,255,.08); border-radius: 6px; padding: 3px 8px; margin-bottom: 8px;
}
.app-gcard .n { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.app-gcard .d { font-size: 12px; color: var(--app-sub); min-height: 36px; flex: 1; }
.app-gcard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.app-gcard .price { color: #e85b4b; font-size: 19px; font-weight: 800; }
.app-gcard .price small { font-size: 12px; font-weight: normal; }
.app-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    border: 0; cursor: pointer; text-decoration: none; text-align: center;
    background: var(--app-grad); color: #fff; font-size: 13px; font-weight: 600;
    padding: 8px 16px; border-radius: 999px; transition: all .15s ease;
}
.app-btn:hover { opacity: .9; }
.app-btn.block { display: flex; width: 100%; padding: 13px; font-size: 15px; }
.app-btn.ghost { background: #fff; color: var(--app-primary); border: 1px solid #c9d8ff; }
.app-btn.ghost:hover { opacity: 1; background: #f6f9ff; }
.app-btn.gray { background: #eef1f7; color: #55627a; }

/* ---------- 分类筛选chips ---------- */
.app-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.app-chips::-webkit-scrollbar { display: none; }
.app-chip {
    flex: none; padding: 8px 18px; border-radius: 999px; background: var(--app-card);
    color: #55627a; font-size: 13px; text-decoration: none; box-shadow: 0 2px 6px rgba(16,42,83,.04);
    transition: all .15s ease; border: 1px solid transparent;
}
.app-chip.on { background: var(--app-grad); color: #fff; font-weight: 600; }

/* ---------- 表单卡 ---------- */
.app-form { background: var(--app-card); border-radius: var(--app-radius); padding: 20px 18px; box-shadow: 0 2px 10px rgba(16,42,83,.05); }
.app-form .frow { margin-bottom: 14px; }
.app-form label.lb { display: block; font-size: 13px; font-weight: 600; color: #3d4a63; margin-bottom: 7px; }
.app-form label.lb em { color: #e85b4b; font-style: normal; margin-left: 2px; }
.app-form input[type=text], .app-form input[type=number], .app-form select, .app-form textarea {
    width: 100%; box-sizing: border-box; border: 1.5px solid #e6ebf4; border-radius: 14px;
    padding: 12px 14px; font-size: 14px; color: var(--app-text); background: #fafbfd; outline: 0;
    transition: border-color .15s ease;
}
.app-form input:focus, .app-form select:focus, .app-form textarea:focus { border-color: var(--app-primary); background: #fff; }
.app-form .tip { font-size: 12px; color: #a5aec0; margin-top: 6px; }
.app-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9aa6bc 50%), linear-gradient(135deg, #9aa6bc 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }

/* ---------- 开通流程步骤 ---------- */
.app-steps { background: var(--app-card); border-radius: var(--app-radius); padding: 18px 12px 14px; box-shadow: 0 2px 10px rgba(16,42,83,.05); margin-bottom: 12px; }
.app-steps .t { font-size: 15px; font-weight: 800; margin: 0 8px 14px; display: flex; align-items: center; gap: 6px; }
.app-steps .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.app-steps .step .ico {
    width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; background: #eef3ff; color: var(--app-primary);
}
.app-steps .step .n { font-size: 12px; color: #3d4a63; font-weight: 600; }
.app-steps .step .d { font-size: 10px; color: #a5aec0; margin-top: 2px; }

/* ---------- 订单状态卡 / 交付卡 ---------- */
.app-card { background: var(--app-card); border-radius: var(--app-radius); padding: 18px; box-shadow: 0 2px 10px rgba(16,42,83,.05); margin-bottom: 12px; }
.app-card .t { font-size: 16px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.app-card .t .lico { color: var(--app-primary); }
.app-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #edf0f7; font-size: 13px; }
.app-kv:last-child { border-bottom: 0; }
.app-kv .k { color: var(--app-sub); flex: none; display: inline-flex; align-items: center; gap: 4px; }
.app-kv .k .lico { color: #a9b3c9; }
.app-kv .v { text-align: right; word-break: break-all; font-weight: 500; }
.app-kv .v.hl { color: var(--app-primary); font-weight: 700; }
.app-kv .v.money { color: #e85b4b; font-weight: 800; font-size: 15px; }

/* 状态徽标 */
.app-badge-st { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.app-badge-st.s0 { background: #fff4e5; color: #d98a00; }
.app-badge-st.s1 { background: #e8f7ef; color: #0e8a5f; }
.app-badge-st.s2 { background: #e8efff; color: var(--app-primary); }
.app-badge-st.s3 { background: #fdeaea; color: #c0392b; }

/* 空状态 */
.app-empty {
    background: var(--app-card); border: 1.5px dashed #dfe5f0; border-radius: var(--app-radius);
    padding: 54px 20px; text-align: center; color: var(--app-sub);
}
.app-empty .lico { opacity: .45; margin-bottom: 12px; color: #b7c0d2; }
.app-empty .tx { font-size: 13px; }

/* 订单列表卡 */
.app-ocard {
    background: var(--app-card); border-radius: 20px; padding: 16px; margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(16,42,83,.04);
}
.app-ocard .r1 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.app-ocard .g { font-size: 14px; font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-ocard .r2 { font-size: 12px; color: var(--app-sub); margin-bottom: 10px; line-height: 1.7; }
.app-ocard .r3 { display: flex; align-items: center; }
.app-ocard .amount { color: #e85b4b; font-weight: 800; font-size: 17px; }
.app-ocard .amount small { font-size: 11px; font-weight: normal; }
.app-ocard .ops { margin-left: auto; display: flex; gap: 8px; }
.app-ocard .ops a { text-decoration: none; font-size: 12px; padding: 7px 14px; border-radius: 999px; }

/* 状态筛选tab */
.app-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.app-tab {
    flex: 1; text-align: center; padding: 10px 0; border-radius: 16px; font-size: 13px;
    color: #55627a; text-decoration: none; background: transparent; transition: all .15s ease; font-weight: 500;
}
.app-tab.on { background: var(--app-card); color: var(--app-text); font-weight: 700; box-shadow: 0 2px 8px rgba(16,42,83,.06); }

/* ---------- 个人中心 ---------- */
.app-profile { background: var(--app-card); border-radius: var(--app-radius); padding: 26px 18px 20px; text-align: center; box-shadow: 0 2px 12px rgba(16,42,83,.05); margin-bottom: 12px; }
.app-profile .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; background: #eef3ff; color: var(--app-primary); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.app-profile .avatar img { width: 70%; height: 70%; object-fit: contain; }
.app-profile .name { font-size: 19px; font-weight: 800; }
.app-profile .mail { font-size: 12px; color: var(--app-sub); margin-top: 4px; }
.app-stats { display: flex; gap: 10px; margin-top: 18px; }
.app-stats .st { flex: 1; background: #f7f9fd; border-radius: 16px; padding: 12px 4px; }
.app-stats .v { font-size: 17px; font-weight: 800; }
.app-stats .k { font-size: 11px; color: var(--app-sub); margin-top: 3px; }
.app-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.app-quick a { background: var(--app-card); border-radius: 18px; padding: 14px 4px; text-align: center; text-decoration: none; color: var(--app-text); box-shadow: 0 2px 8px rgba(16,42,83,.04); transition: all .15s ease; }
.app-quick a:hover { transform: translateY(-2px); }
.app-quick .ico { width: 42px; height: 42px; margin: 0 auto 7px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #eef3ff; color: var(--app-primary); }
.app-quick .n { font-size: 12px; font-weight: 600; }
.app-list { background: var(--app-card); border-radius: var(--app-radius); overflow: hidden; box-shadow: 0 2px 10px rgba(16,42,83,.05); }
.app-list a.row { display: flex; align-items: center; gap: 12px; padding: 15px 16px; text-decoration: none; color: var(--app-text); font-size: 14px; font-weight: 600; border-bottom: 1px solid #f2f4fa; }
.app-list a.row:last-child { border-bottom: 0; }
.app-list .ico { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eef3ff; color: var(--app-primary); flex: none; }
.app-list .val { margin-left: auto; color: var(--app-sub); font-size: 13px; font-weight: 400; }
.app-list .arrow { color: #c3cbdb; }

/* ---------- 底部毛玻璃导航（4 Tab，胶囊高亮） ---------- */
.app-tabbar {
    position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
    z-index: 60; display: flex; gap: 2px; padding: 8px 10px;
    background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 999px;
    box-shadow: 0 12px 36px rgba(16,42,83,.18), 0 2px 8px rgba(16,42,83,.08);
    width: min(560px, calc(100% - 24px)); box-sizing: border-box;
}
.app-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 0 8px; border-radius: 999px; text-decoration: none;
    color: #7a86a0; font-size: 11px; transition: all .2s ease;
}
.app-tabbar a .lico { transition: transform .2s ease; }
.app-tabbar a.on { background: #e8efff; color: var(--app-primary); font-weight: 700; }

/* ---------- 底部导航动画 ---------- */
/* 1. 整条导航弹性上滑入场 */
@keyframes tabbar-in {
    from { transform: translate(-50%, 110px); opacity: 0; }
    to   { transform: translate(-50%, 0);      opacity: 1; }
}
.app-tabbar { animation: tabbar-in .55s cubic-bezier(.2, 1.25, .4, 1) .05s both; }

/* 2. 四个 Tab 依次浮现 */
@keyframes tab-item-in {
    from { opacity: 0; transform: translateY(16px) scale(.9); }
    to   { opacity: 1; transform: none; }
}
.app-tabbar a { animation: tab-item-in .45s cubic-bezier(.25, 1.3, .45, 1) both; }
.app-tabbar a:nth-child(1) { animation-delay: .16s; }
.app-tabbar a:nth-child(2) { animation-delay: .22s; }
.app-tabbar a:nth-child(3) { animation-delay: .28s; }
.app-tabbar a:nth-child(4) { animation-delay: .34s; }

/* 3. 当前项图标弹跳（每次进入页面播放） */
@keyframes tab-pop {
    0%   { transform: translateY(3px) scale(.6); opacity: 0; }
    55%  { transform: translateY(-5px) scale(1.22); opacity: 1; }
    75%  { transform: translateY(1px) scale(.94); }
    100% { transform: translateY(-1px) scale(1); }
}
.app-tabbar a.on .lico { animation: tab-pop .5s cubic-bezier(.3, 1.5, .5, 1) .38s both; }

/* 4. 当前项文字浮现 */
@keyframes tab-txt-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}
.app-tabbar a.on span { animation: tab-txt-in .35s ease .45s both; }

/* 5. 点击按压反馈（图标缩小 + 底色闪一下） */
.app-tabbar a:active { background: #eef2fb; }
.app-tabbar a:active .lico { transform: scale(.8) translateY(1px); }
.app-tabbar a.tap .lico { animation: tab-pop .4s cubic-bezier(.3, 1.5, .5, 1) both; }

/* 6. 桌面端悬停轻浮动 */
@media (hover: hover) {
    .app-tabbar a:hover .lico { transform: translateY(-2px); }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
    .app-tabbar, .app-tabbar a, .app-tabbar a.on .lico, .app-tabbar a.on span { animation: none; }
}

@media (max-width: 480px) {
    .app-tabbar a { font-size: 10px; }
}

/* 弹性小工具 */
.app-mt12 { margin-top: 12px; } .app-mt16 { margin-top: 16px; }
.st-ico { display: flex; justify-content: center; margin-bottom: 8px; }
.app-alert-ok { background: #e8f7ef; color: #0e8a5f; border-radius: 14px; padding: 11px 14px; font-size: 13px; margin-bottom: 12px; }
.app-alert-err { background: #fdeaea; color: #c0392b; border-radius: 14px; padding: 11px 14px; font-size: 13px; margin-bottom: 12px; }
.app-alert-info { background: #e8efff; color: var(--app-primary); border-radius: 14px; padding: 11px 14px; font-size: 13px; margin-bottom: 12px; }
