:root {
    --primary: #1A73E8;
    --primary-light: #4DA3FF;
    --primary-dark: #0D47A1;
    --accent: #FF6B35;
    --accent-light: #FF9A6C;
    --bg: #F0F2F5;
    --card-bg: #ffffff;
    --text: #1A1A2E;
    --text-light: #5F6368;
    --text-lighter: #9AA0A6;
    --border: #E8EAED;
    --success: #34A853;
    --warning: #FBBC04;
    --danger: #EA4335;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body { font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--text); font-size:14px; line-height:1.6; -webkit-font-smoothing:antialiased; }
a { color:var(--primary); text-decoration:none; }
img { max-width:100%; }
.hidden { display:none !important; }
[v-cloak] { display:none; }

/* 顶部导航 */
.top-bar { background:#fff; padding:0 16px; position:sticky; top:0; z-index:100; box-shadow:0 1px 0 var(--border); }
.top-bar-inner { max-width:500px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; height:52px; }
.top-bar .logo { height:32px; width:auto; }
.top-bar h1 { font-size:18px; font-weight:700; color:var(--text); }
.top-bar .user-area { display:flex; align-items:center; gap:8px; cursor:pointer; }
.top-bar .user-avatar { width:32px; height:32px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:600; }

/* 容器 */
.container { max-width:500px; margin:0 auto; padding:0 16px 80px; }

/* Banner */
.banner { margin:12px 0; border-radius:var(--radius-lg); overflow:hidden; background:linear-gradient(135deg,#1A73E8,#4DA3FF); color:#fff; padding:20px 16px; position:relative; }
.banner h2 { font-size:20px; font-weight:700; margin-bottom:4px; }
.banner p { font-size:13px; opacity:0.9; }

/* 服务网格 */
.service-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin:12px 0 4px; }
.service-item { display:flex; flex-direction:column; align-items:center; padding:8px 2px 6px; cursor:pointer; border-radius:12px; transition:background 0.15s; }
.service-item:active { background:rgba(0,0,0,0.04); }
.service-item .svc-icon { width:64px; height:64px; border-radius:18px; overflow:hidden; margin-bottom:4px; transition:transform 0.15s; }
.service-item:active .svc-icon { transform:scale(0.92); }
.service-item .svc-icon svg { width:100%; height:100%; display:block; }
.service-item .svc-icon svg text { font-family:'PingFang SC','Microsoft YaHei',sans-serif; font-weight:800; text-anchor:middle; dominant-baseline:central; }
.service-item .name { font-size:11px; color:var(--text-light); font-weight:500; line-height:1.2; text-align:center; }

/* 卡片 */
.card { background:var(--card-bg); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:12px; overflow:hidden; }
.card-header { padding:14px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.card-header h3 { font-size:15px; font-weight:700; color:var(--text); }
.card-header .more { font-size:12px; color:var(--primary); cursor:pointer; font-weight:500; }
.card-body { padding:14px 16px; }

/* 列表项 */
.list-item { display:flex; align-items:center; padding:12px 0; border-bottom:1px solid var(--border); cursor:pointer; }
.list-item:last-child { border-bottom:none; }
.list-item .thumb { width:56px; height:56px; border-radius:10px; margin-right:12px; object-fit:cover; background:#f0f0f0; flex-shrink:0; }
.list-item .info { flex:1; min-width:0; }
.list-item .title { font-size:14px; font-weight:600; margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text); }
.list-item .desc { font-size:12px; color:var(--text-lighter); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.list-item .price { color:var(--accent); font-size:16px; font-weight:700; }
.list-item .meta { font-size:11px; color:var(--text-lighter); margin-top:2px; }

/* 标签 */
.tag { display:inline-block; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.tag-blue { background:#E8F0FE; color:#1A73E8; }
.tag-green { background:#E6F4EA; color:#34A853; }
.tag-orange { background:#FEF7E0; color:#E37400; }
.tag-red { background:#FCE8E6; color:#EA4335; }

/* 按钮 */
.btn { display:inline-block; padding:11px 20px; border-radius:10px; font-size:14px; font-weight:600; border:none; cursor:pointer; transition:all 0.2s; text-align:center; letter-spacing:0.3px; }
.btn-primary { background:var(--primary); color:#fff; box-shadow:0 2px 8px rgba(26,115,232,0.3); }
.btn-primary:active { background:var(--primary-dark); box-shadow:0 1px 4px rgba(26,115,232,0.2); }
.btn-accent { background:var(--accent); color:#fff; box-shadow:0 2px 8px rgba(255,107,53,0.3); }
.btn-outline { border:1.5px solid var(--primary); color:var(--primary); background:#fff; }
.btn-block { display:block; width:100%; }
.btn:disabled { opacity:0.45; box-shadow:none; }

/* 底部导航 */
.bottom-nav { position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid var(--border); display:flex; z-index:100; padding-bottom:env(safe-area-inset-bottom); }
.bottom-nav-item { flex:1; text-align:center; padding:6px 0 4px; cursor:pointer; color:var(--text-lighter); transition:color 0.15s; }
.bottom-nav-item.active { color:var(--primary); }
.bottom-nav-item .nav-icon { width:24px; height:24px; margin:0 auto 2px; }
.bottom-nav-item .nav-icon svg { width:24px; height:24px; fill:currentColor; }
.bottom-nav-item .label { font-size:10px; font-weight:500; }

/* 模态框 */
.modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:200; display:flex; align-items:flex-end; justify-content:center; }
.modal { background:#fff; border-radius:var(--radius-lg) var(--radius-lg) 0 0; width:100%; max-width:500px; max-height:85vh; overflow-y:auto; }
.modal-header { padding:16px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; background:#fff; z-index:1; }
.modal-header h3 { font-size:16px; font-weight:700; }
.modal-close { width:28px; height:28px; border-radius:50%; background:#f0f0f0; display:flex; align-items:center; justify-content:center; font-size:16px; cursor:pointer; color:var(--text-light); line-height:1; }
.modal-body { padding:16px; }
.modal-footer { padding:12px 16px; border-top:1px solid var(--border); }

/* 表单 */
.form-group { margin-bottom:14px; }
.form-label { display:block; font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px; }
.form-input { width:100%; padding:12px 14px; border:1.5px solid var(--border); border-radius:10px; font-size:14px; background:#FAFAFA; transition:border-color 0.2s; }
.form-input:focus { border-color:var(--primary); background:#fff; outline:none; box-shadow:0 0 0 3px rgba(26,115,232,0.1); }
.form-select { width:100%; padding:12px 14px; border:1.5px solid var(--border); border-radius:10px; font-size:14px; background:#FAFAFA; appearance:none; transition:border-color 0.2s; }
.form-select:focus { border-color:var(--primary); outline:none; }
.form-textarea { width:100%; padding:12px 14px; border:1.5px solid var(--border); border-radius:10px; font-size:14px; background:#FAFAFA; resize:vertical; min-height:80px; transition:border-color 0.2s; }
.form-textarea:focus { border-color:var(--primary); outline:none; box-shadow:0 0 0 3px rgba(26,115,232,0.1); }

/* 空状态 */
.empty-state { text-align:center; padding:48px 20px; color:var(--text-lighter); }
.empty-state .icon { margin-bottom:8px; opacity:0.6; }

/* 加载中 */
.loading { text-align:center; padding:24px; color:var(--text-lighter); font-size:13px; }

/* 返回栏 */
.page-header { background:#fff; padding:0 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; height:48px; gap:8px; position:sticky; top:0; z-index:99; }
.page-header .back { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#fff; background:var(--primary); font-size:22px; flex-shrink:0; box-shadow:0 2px 8px rgba(0,102,204,0.25); }
.page-header h2 { font-size:16px; font-weight:700; color:var(--text); }

/* ===== 板块页通用 ===== */
.page { display:none; }
.page.active { display:block; }
.section-card { margin-bottom: 12px; }
.price-tag { color: var(--accent); font-size: 18px; font-weight: 700; }
.price-tag small { font-size: 12px; font-weight: 400; }
.original-price { text-decoration: line-through; color: var(--text-lighter); font-size: 12px; margin-left: 4px; }
.badge { display:inline-block; padding:3px 10px; border-radius:6px; font-size:11px; font-weight:600; }
.badge-blue { background:#E8F0FE; color:#1A73E8; }
.badge-green { background:#E6F4EA; color:#34A853; }
.badge-orange { background:#FEF7E0; color:#E37400; }
.badge-red { background:#FCE8E6; color:#EA4335; }
.filter-bar { display:flex; gap:6px; padding:12px 0; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.filter-bar::-webkit-scrollbar { display:none; }
.filter-item { white-space:nowrap; padding:7px 16px; border-radius:20px; font-size:13px; background:#f0f0f0; cursor:pointer; border:none; color:var(--text-light); font-weight:500; transition:all 0.15s; }
.filter-item.active { background:var(--primary); color:#fff; }

/* ===== 首页banner ===== */
.home-banner { background:linear-gradient(135deg, #1A73E8 0%, #4DA3FF 50%, #7EC8FF 100%); color:#fff; margin:12px 0; border-radius:var(--radius-lg); padding:24px 20px; position:relative; overflow:hidden; }
.home-banner::before { content:''; position:absolute; right:-40px; top:-40px; width:160px; height:160px; background:rgba(255,255,255,0.1); border-radius:50%; }
.home-banner::after { content:''; position:absolute; right:40px; bottom:-30px; width:100px; height:100px; background:rgba(255,255,255,0.06); border-radius:50%; }
.home-banner h2 { font-size:22px; font-weight:800; margin-bottom:4px; position:relative; z-index:1; }
.home-banner p { font-size:13px; opacity:0.9; position:relative; z-index:1; }

/* ===== 通用卡片 ===== */
.plan-card { background:#fff; border-radius:var(--radius); margin-bottom:12px; overflow:hidden; box-shadow:var(--shadow); }
.plan-card .plan-top { padding:16px; display:flex; align-items:center; justify-content:space-between; }
.plan-card .plan-name { font-size:16px; font-weight:700; }
.plan-card .plan-speed { font-size:13px; color:var(--text-light); margin-top:2px; }
.plan-card .plan-price { color:var(--accent); font-size:24px; font-weight:800; }
.plan-card .plan-desc { padding:0 16px 16px; font-size:13px; color:var(--text-light); }
.plan-card .plan-btn { padding:12px 16px; border-top:1px solid var(--border); display:flex; gap:8px; }

/* ===== 二手手机卡片 ===== */
.phone-card { display:flex; background:#fff; border-radius:var(--radius); margin-bottom:12px; overflow:hidden; box-shadow:var(--shadow); }
.phone-card .phone-img { width:100px; height:100px; background:#f5f5f5; display:flex; align-items:center; justify-content:center; font-size:36px; flex-shrink:0; }
.phone-card .phone-info { flex:1; padding:12px; min-width:0; }
.phone-card .phone-title { font-size:15px; font-weight:600; margin-bottom:4px; }
.phone-card .phone-meta { font-size:12px; color:var(--text-lighter); margin-bottom:4px; }

/* ===== 表白墙 ===== */
.confession-card { background:#fff; border-radius:var(--radius); margin-bottom:12px; padding:16px; box-shadow:var(--shadow); border-left:3px solid #FF6B35; }
.confession-card .conf-to { font-size:13px; color:var(--text-light); margin-bottom:6px; }
.confession-card .conf-content { font-size:15px; line-height:1.7; color:var(--text); }
.confession-card .conf-footer { display:flex; justify-content:space-between; align-items:center; margin-top:10px; font-size:12px; color:var(--text-lighter); }
.confession-card .like-btn { display:flex; align-items:center; gap:4px; cursor:pointer; color:var(--text-light); }
.confession-card .like-btn.liked { color:var(--accent); }

/* ===== 深夜食堂 ===== */
.snack-wrap { }
.snack-header { background:linear-gradient(135deg,#1a1a2e,#16213e); color:#fff; padding:16px; border-radius:0 0 16px 16px; }
.snack-header h2 { font-size:18px; }
.snack-header p { font-size:12px; opacity:0.7; }
.snack-cat-bar { display:flex; gap:8px; padding:12px; overflow-x:auto; }
.snack-cat-bar::-webkit-scrollbar { display:none; }
.snack-cat { white-space:nowrap; padding:6px 14px; border-radius:20px; font-size:13px; background:#f0f0f0; cursor:pointer; }
.snack-cat.active { background:#1a1a2e; color:#fff; }
.snack-product { display:flex; background:#fff; border-radius:var(--radius); margin-bottom:10px; overflow:hidden; box-shadow:var(--shadow); }
.snack-product .sp-img { width:80px; height:80px; object-fit:cover; border-radius:8px; margin:10px; flex-shrink:0; }
.snack-product .sp-info { flex:1; padding:10px 10px 10px 0; display:flex; flex-direction:column; justify-content:space-between; }
.snack-product .sp-name { font-size:14px; font-weight:600; }
.snack-product .sp-foot { display:flex; align-items:center; justify-content:space-between; }
.snack-product .sp-price { color:var(--accent); font-size:16px; font-weight:700; }
.snack-product .sp-stock { font-size:11px; color:var(--text-lighter); }
.snack-qty { display:flex; align-items:center; gap:8px; }
.snack-qty button { width:28px; height:28px; border-radius:50%; border:none; background:var(--primary); color:#fff; font-size:16px; cursor:pointer; }
.snack-qty span { font-size:14px; min-width:20px; text-align:center; }
.cart-bar { position:fixed; bottom:56px; left:0; right:0; background:#333; color:#fff; padding:10px 16px; display:flex; align-items:center; justify-content:space-between; z-index:99; }
.cart-bar .cart-total { font-size:18px; font-weight:700; color:var(--accent); }
.cart-bar .cart-btn { background:var(--accent); color:#fff; padding:8px 20px; border-radius:20px; font-weight:600; border:none; cursor:pointer; font-size:14px; }
.cart-bar .cart-btn:disabled { opacity:0.4; }

/* ===== 课表 ===== */
.schedule-table { width:100%; border-collapse:collapse; font-size:12px; }
.schedule-table th { background:var(--primary); color:#fff; padding:8px 4px; font-size:11px; text-align:center; position:sticky; top:48px; z-index:10; }
.schedule-table td { border:1px solid var(--border); padding:4px; text-align:center; height:50px; vertical-align:top; }
.schedule-table .course-cell { background:#E8F0FE; border-radius:6px; padding:2px 4px; font-size:10px; line-height:1.4; }
.schedule-table .time-col { width:40px; background:#f9f9f9; font-size:10px; color:var(--text-light); }

/* ===== 成绩 ===== */
.grade-table { width:100%; border-collapse:collapse; font-size:13px; }
.grade-table th { background:var(--primary); color:#fff; padding:10px 6px; font-size:12px; text-align:center; }
.grade-table td { border:1px solid var(--border); padding:8px 6px; text-align:center; }
.grade-table .grade-a { color:#34A853; font-weight:700; }
.grade-table .grade-b { color:#E37400; font-weight:700; }
.grade-table .grade-c { color:#EA4335; font-weight:700; }

/* ===== Toast ===== */
.toast { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background:rgba(0,0,0,0.8); color:#fff; padding:12px 24px; border-radius:10px; font-size:14px; z-index:999; animation:toastIn 0.2s; backdrop-filter:blur(8px); }
@keyframes toastIn { from{opacity:0;transform:translate(-50%,-50%) scale(0.9)} to{opacity:1;transform:translate(-50%,-50%) scale(1)} }

/* ===== 通用列表页 ===== */
.detail-page { padding:0; }
.detail-hero { background:linear-gradient(135deg,var(--primary),var(--primary-light)); color:#fff; padding:20px 16px; }
.detail-hero h2 { font-size:20px; margin-bottom:4px; }
.detail-hero .meta { font-size:13px; opacity:0.9; }
.detail-section { padding:16px; }
.detail-section h3 { font-size:15px; font-weight:700; margin-bottom:10px; border-left:3px solid var(--primary); padding-left:8px; }
.info-row { display:flex; padding:8px 0; border-bottom:1px solid var(--border); font-size:13px; }
.info-row .label { width:80px; color:var(--text-lighter); flex-shrink:0; }
.info-row .value { flex:1; color:var(--text); }

/* 驾校卡片 */
.driving-card { background:#fff; border-radius:var(--radius); margin-bottom:12px; overflow:hidden; box-shadow:var(--shadow); }
.driving-card .dc-header { padding:16px; display:flex; justify-content:space-between; align-items:flex-start; }
.driving-card .dc-name { font-size:16px; font-weight:700; }
.driving-card .dc-price { color:var(--accent); font-size:22px; font-weight:800; }
.driving-card .dc-body { padding:0 16px 16px; }
.driving-card .dc-tags { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }

/* 快递 */
.express-status { display:inline-block; padding:2px 8px; border-radius:6px; font-size:11px; font-weight:600; }
.st-pending { background:#FEF7E0; color:#E37400; }
.st-accepted { background:#E8F0FE; color:#1A73E8; }
.st-delivered { background:#E6F4EA; color:#34A853; }

/* 校园咨询 */
.news-card { background:#fff; border-radius:var(--radius); margin-bottom:10px; overflow:hidden; box-shadow:var(--shadow); cursor:pointer; }
.news-card .nc-body { padding:14px; }
.news-card .nc-title { font-size:15px; font-weight:600; margin-bottom:6px; color:var(--text); }
.news-card .nc-summary { font-size:13px; color:var(--text-light); line-height:1.5; }
.news-card .nc-meta { display:flex; gap:8px; margin-top:8px; font-size:11px; color:var(--text-lighter); }

/* 兼职卡片 */
.job-card { background:#fff; border-radius:var(--radius); margin-bottom:10px; padding:14px; box-shadow:var(--shadow); }
.job-card .jc-title { font-size:15px; font-weight:600; margin-bottom:4px; color:var(--text); }
.job-card .jc-salary { color:var(--accent); font-size:16px; font-weight:700; }
.job-card .jc-meta { font-size:12px; color:var(--text-lighter); margin-top:6px; display:flex; gap:8px; flex-wrap:wrap; }

/* 登录弹窗 */
.login-modal { align-items:center !important; }
.login-modal .modal { border-radius:var(--radius-lg); margin:20px; max-width:380px; }
.login-modal .login-box { background:#fff; border-radius:var(--radius-lg); padding:32px 24px 24px; text-align:center; }
.login-modal .login-box h3 { font-size:20px; margin-bottom:4px; color:var(--text); }
.login-modal .login-box p { font-size:13px; color:var(--text-light); margin-bottom:20px; }

/* 快捷服务入口（首页中部） */
.quick-entry { display:flex; gap:8px; margin:12px 0; }
.quick-entry .qe-item { flex:1; background:var(--card-bg); border-radius:var(--radius); padding:14px 8px; text-align:center; box-shadow:var(--shadow); cursor:pointer; transition:transform 0.15s; }
.quick-entry .qe-item:active { transform:scale(0.97); }
.quick-entry .qe-item .qe-icon { font-size:24px; }
.quick-entry .qe-item .qe-label { font-size:11px; color:var(--text-light); margin-top:4px; font-weight:600; }

/* 搜索框 */
.search-box { background:#fff; border-radius:20px; padding:8px 16px; display:flex; align-items:center; gap:8px; margin:12px 0; box-shadow:var(--shadow); }
.search-box input { border:none; outline:none; flex:1; font-size:14px; background:transparent; }
.search-box .search-btn { background:var(--primary); color:#fff; border:none; padding:6px 16px; border-radius:16px; font-size:12px; cursor:pointer; }

/* 用户中心 */
.user-card { background:linear-gradient(135deg,var(--primary),var(--primary-light)); color:#fff; border-radius:var(--radius-lg); padding:24px 16px; margin:12px 0; }
.user-card .uc-avatar { width:50px; height:50px; border-radius:50%; background:rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; font-size:20px; margin-bottom:8px; }
.user-card .uc-name { font-size:18px; font-weight:700; }
.user-card .uc-phone { font-size:13px; opacity:0.8; }
.menu-list { background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); margin-bottom:12px; }
.menu-list .ml-item { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--border); cursor:pointer; transition:background 0.15s; }
.menu-list .ml-item:last-child { border-bottom:none; }
.menu-list .ml-item:active { background:#f5f5f5; }
.menu-list .ml-item .ml-left { display:flex; align-items:center; gap:10px; font-size:14px; color:var(--text); }
.menu-list .ml-item .ml-icon { display:inline-flex; width:22px; height:22px; align-items:center; justify-content:center; }
.menu-list .ml-item .ml-arrow { color:var(--text-lighter); font-size:14px; }

/* 楼栋选择器 */
.location-selector { background:#fff; padding:12px 16px; border-radius:var(--radius); margin-bottom:12px; box-shadow:var(--shadow); }
.location-selector select { width:100%; padding:10px; border:1.5px solid var(--border); border-radius:10px; font-size:14px; margin-bottom:8px; appearance:none; background:#FAFAFA; }

/* 服务入口的渐变色图标 */
.si-network { background:linear-gradient(135deg,#1A73E8,#4DA3FF); }
.si-schedule { background:linear-gradient(135deg,#34A853,#7BC67E); }
.si-grades { background:linear-gradient(135deg,#9C27B0,#CE93D8); }
.si-recharge { background:linear-gradient(135deg,#FF6B35,#FF9A6C); }
.si-rental { background:linear-gradient(135deg,#00BCD4,#4DD0E1); }
.si-phones { background:linear-gradient(135deg,#607D8B,#90A4AE); }
.si-travel { background:linear-gradient(135deg,#E91E63,#F48FB1); }
.si-express { background:linear-gradient(135deg,#FF9800,#FFB74D); }
.si-driving { background:linear-gradient(135deg,#3F51B5,#7986CB); }
.si-news { background:linear-gradient(135deg,#009688,#4DB6AC); }
.si-jobs { background:linear-gradient(135deg,#795548,#A1887F); }
.si-snack { background:linear-gradient(135deg,#673AB7,#9A8BC8); }
.si-dorm { background:linear-gradient(135deg,#5C6BC0,#9FA8DA); }
.si-wall { background:linear-gradient(135deg,#EF5350,#EF9A9A); }

/* 个性化SVG图标样式 */
.svc-icon svg .ic-main { fill:#ffffff; }
.svc-icon svg .ic-accent { fill:rgba(255,255,255,0.7); }
.svc-icon svg .ic-dark { fill:rgba(0,0,0,0.15); }
.svc-icon svg .ic-light { fill:rgba(255,255,255,0.45); }
