.profile-card .stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.profile-card .stars .star { color: #f59e0b; }
.profile-card .stars .star.dim { color: #d1d5db; }
/* CSS变量定义 - 主题色彩和通用样式 */
:root {
    --green-1: #0f8a66;  /* 深绿色 - 主要品牌色 */
    --green-2: #0aa174;  /* 中绿色 - 次要品牌色 */
    --green-3: #10b981;  /* 浅绿色 - 强调色 */
    --text-1: #1f2937;   /* 深灰色 - 主要文字颜色 */
    --text-2: #6b7280;   /* 中灰色 - 次要文字颜色 */
    --bg: #f5f7f9;       /* 浅灰背景色 */
    --card: #ffffff;     /* 卡片背景色 */
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);  /* 通用阴影效果 */
}

/* 全局重置和基础样式 */
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text-1);
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

/* 主应用容器 - 移动端适配 */
.app { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100vh; padding-bottom: 92px; }

/* 应用头部 - 渐变背景和粘性定位 */
.app-header {
    background: linear-gradient(180deg, var(--green-2), var(--green-1));
    padding: 10px 16px 12px;
    color: #fff;
    position: sticky; top: 0; z-index: 10;
}
.status-bar { display: flex; align-items: center; justify-content: space-between; opacity: .9; font-size: 12px; }
.title-row { display: flex; align-items: center; justify-content: space-between; }
.title-row h1 { font-size: 20px; margin: 6px 0 10px; font-weight: 700; }
.header-actions { display: flex; gap: 8px; }
.icon-btn { background: rgba(255,255,255,.16); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 18px; font-size: 18px; }
/* Ensure header logo matches the visual height of the h1 title */
.header-logo { height: 20px; width: auto; display: block; }

/* 搜索栏样式 */
.search-bar { display: flex; gap: 6px; background: #fff; border-radius: 24px; padding: 6px; align-items: center; box-shadow: var(--shadow); }
.search-bar input { border: 0; flex: 1; padding: 8px 10px; border-radius: 18px; outline: none; font-size: 14px; }
.search-bar button { background: var(--bg); color: var(--text-1); border: 0; border-radius: 16px; padding: 6px 12px; font-size: 14px; }

/* 筛选器区域 */
.filters { display: flex; gap: 12px; padding: 10px 6px 0; color: #e8fffa; font-size: 14px; justify-content: center; align-items: center; }
.filter-btn { background: transparent; color: #e8fffa; border: 0; }

/* 筛选下拉框样式 - 主题化设计 */
.filters label { color: #e8fffa; font-size: 14px; display: flex; align-items: center; gap: 6px; }
#statusFilter, #provinceFilter, #cityFilter {
    background: rgba(255,255,255,0.16) !important;
    color: #e8fffa !important;
    border: 0 !important;
    border-radius: 18px !important;
    padding: 6px 28px 6px 10px !important;
    font-size: 14px !important;
    outline: none !important;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e8fffa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px 14px;
    width: 110px; /* 统一宽度 */
    text-align-last: center; /* 居中显示已选项（兼容现代浏览器） */
}
#statusFilter:focus, #provinceFilter:focus, #cityFilter:focus { box-shadow: none; }
#statusFilter option, #provinceFilter option, #cityFilter option { color: #1f2937; background: #ffffff; }

/* 主内容区域 */
.content { padding: 12px 8px 0; }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.list-tip { 
    text-align: center; 
    padding: 16px 20px; 
    color: #666; 
    font-size: 14px; 
    background: #f8f9fa; 
    border-radius: 8px; 
    margin: 12px 8px 0; 
    border: 1px solid #e9ecef;
}

/* 在个人中心界面隐藏提示 */
#profile:not(.hidden) ~ #list-tip {
    display: none;
}
/* 工具网格布局 */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 8px; }
.tool-item { border: 0; background: #fff; color: var(--text-1); border-radius: 12px; padding: 14px 10px; text-align: center; box-shadow: var(--shadow); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tool-icon { font-size: 18px; }
.panel { padding: 8px; }
.panel-inner { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 16px; }
.panel-title { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--text-1); }
.panel-desc { margin: 0; font-size: 13px; color: var(--text-2); }
.tool-item:active { transform: translateY(1px); }

.field-row { margin: 8px 0; }
.field-row input { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
.field-row button { width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--green-2); color: #fff; font-size: 14px; }

/* Minimal symmetric login UI */
#loginBox { max-width: 360px; margin: 0 auto; }
.login-title { text-align: center; font-size: 18px; font-weight: 800; margin: 4px 0 10px; color: var(--text-1); }
.buttons-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.buttons-row .btn-primary, .buttons-row .btn-ghost { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.buttons-row .btn-primary { background: linear-gradient(180deg, var(--green-2), var(--green-1)); color: #fff; border: 0; box-shadow: 0 4px 12px rgba(16,185,129,.25); }
.buttons-row .btn-ghost { background: #fff; color: var(--green-2); border: 1px solid rgba(16,185,129,.25); }
.buttons-row .btn-primary:active, .buttons-row .btn-ghost:active { transform: translateY(1px); }
.profile-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px; }
.profile-row { display: flex; align-items: center; gap: 12px; }
.profile-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-header { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.profile-header .avatar { width: 48px; height: 48px; border-radius: 12px; background: #eee; }
.profile-header .name { font-size: 16px; font-weight: 800; }
.profile-header .sub { font-size: 12px; color: var(--text-2); }
.role-btn { margin-left: auto; border: 0; border-radius: 16px; padding: 6px 10px; background: rgba(16,185,129,.15); color: #065f46; font-weight: 700; }

.section-title { margin: 14px 2px 8px; font-weight: 800; color: var(--text-1); font-size: 14px; }
.icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.icon-cell { border: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text-1); }
.icon-cell span { font-size: 20px; }
.icon-cell em { font-style: normal; font-size: 12px; color: var(--text-1); }

.menu-list { list-style: none; padding: 0; margin: 8px 0 12px; }
.menu-list li { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px; margin-bottom: 8px; font-size: 14px; display: flex; align-items: center; }

/* 个人中心铺满屏幕左右无间距 */
#profile.panel { padding: 0; margin-left: -8px; margin-right: -8px; }
#profile .panel-inner { padding: 0; border-radius: 0; box-shadow: none; }

/* 赛事活动相关样式已移除 */



/* 卡片 */
.card {
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 6px;
    width: 98%;
    margin: 0 auto;
}
/* 穿线师卡片布局 */
.row { display: flex; align-items: center; justify-content: space-between; }
.profile { display: flex; gap: 12px; align-items: center; }
.avatar-container { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 4px; }
.avatar { width: 64px; height: 80px; border-radius: 12px; object-fit: cover; background: #eee; }
.comment-count { font-size: 9px; color: var(--text-2); background: rgba(0,0,0,0.1); padding: 1px 4px; border-radius: 6px; white-space: nowrap; }
.right-info { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.distance { font-size: 10px; color: var(--text-2); text-align: right; margin-top: 8px; }
.name { font-size: 17px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; }
.title { color: var(--text-2); font-size: 12px; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.title .upgrade-inline {
    display: inline-block;
    margin-left: 6px;
    padding: 0 8px;
    background: #FFF7D6; /* 淡黄色 */
    color: #8B5E00;      /* 更柔和的棕色 */
    border: 1px solid #FDE68A;
    border-radius: 999px;
    line-height: 1.6;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.profile-stars { margin-top: 4px; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.profile-duration { margin-top: 2px; font-size: 12px; color: var(--text-2); }
/* 穿线师等级标签样式 - 不同等级对应不同颜色和图标 */
.title.level-verifying, .title.level-failed, .title.level-a, .title.level-s, .title.level-ss { font-size: 12px; padding: 2px 8px; border-radius: 999px; min-width: 72px; text-align: center; white-space: nowrap; }
.title.level-verifying { box-shadow: 0 0 0 2px rgba(255,193,7,0.15), 0 1px 2px rgba(0,0,0,0.06); }
.title.level-a { box-shadow: none; }
.title.level-s { box-shadow: 0 0 0 2px rgba(16,185,129,0.12), 0 1px 2px rgba(0,0,0,0.06); }
.title.level-ss { box-shadow: 0 0 0 2px rgba(4,120,87,0.20), 0 2px 6px rgba(4,120,87,0.35); }
.title.level-ss::before { content: "👑"; margin-right: 4px; }  /* SS级皇冠图标 */
.title.level-verifying { color: #856404; background: #fff3cd; border: 1px solid #ffc107; padding: 2px 8px; border-radius: 999px; display: inline-block; font-weight: 700; }
.title.level-verifying::before { content: "⏳"; margin-right: 4px; }  /* 认证中时钟图标 */
.title.level-failed { color: #721c24; background: #f8d7da; border: 1px solid #dc3545; padding: 2px 8px; border-radius: 999px; display: inline-block; font-weight: 700; box-shadow: 0 0 0 2px rgba(220,53,69,0.15), 0 1px 2px rgba(0,0,0,0.06); }
.title.level-failed::before { content: "❌"; margin-right: 4px; }  /* 未通过叉号图标 */
.title.level-a { color: #0f766e; background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.30); padding: 2px 6px; border-radius: 999px; display: inline-block; font-weight: 600; }
.title.level-s { color: #ffffff; background: #10b981; border: 0; padding: 2px 8px; border-radius: 999px; display: inline-block; font-weight: 700; box-shadow: 0 0 0 2px rgba(16,185,129,0.12); }
.title.level-ss { color: #ffffff; background: linear-gradient(90deg, #059669, #047857); border: 0; padding: 2px 10px; border-radius: 999px; display: inline-block; font-weight: 800; text-shadow: 0 1px 0 rgba(0,0,0,0.15); box-shadow: 0 0 0 2px rgba(4,120,87,0.20); }

/* 认证按钮样式 */
.verify-btn {
    margin-left: 8px;
    padding: 4px 12px;
    background: linear-gradient(180deg, var(--green-2), var(--green-1));
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(16,185,129,0.25);
    transition: all 0.2s ease;
}

/* 等级提升按钮（箭头） */
.upgrade-btn {
    margin-left: 6px;
    padding: 2px 8px;
    background: #FFF7D6; /* 淡黄色背景 */
    color: #B45309;      /* 暖棕色文字 */
    border: 1px solid #FDE68A;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.upgrade-btn:active { transform: translateY(1px); }

.verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.35);
}

.verify-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(16,185,129,0.25);
}
.badge { border-radius: 10px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.badge.online { background: #e6f9f1; color: var(--green-3); }
.badge.offline { background: #ffe6e6; color: #ef4444; }

.meta { margin-top: 8px; color: var(--text-2); font-size: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta.meta-right { justify-content: flex-end; }
.stars { display: inline-flex; gap: 3px; }
.address { margin-top: 6px; color: var(--text-2); font-size: 12px; }
.address-line { display: flex; align-items: center; gap: 8px; }
.address-line .address { margin-top: 0; }
.star { color: #f59e0b; }
.star.dim { color: #d1d5db; }
.sep { color: #e5e7eb; }
.distance { margin-left: auto; color: var(--text-2); }
#profile .distance { margin-left: 0; }

/* 底部导航栏 - 固定定位 */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -6px 18px rgba(0,0,0,.06);
}
.tabbar { display: flex; max-width: 480px; margin: 0 auto; }
.tab-item { flex: 1; text-align: center; padding: 8px 0; text-decoration: none; color: var(--text-2); }
.tab-item .icon { font-size: 22px; }
.tab-item .label { font-size: 12px; }
.tab-item.active { color: var(--green-2); }

.hidden { display: none; }

/* 响应式设计 - 大屏幕适配 */
@media (min-width: 481px) {
    .app-header { border-radius: 0 0 16px 16px; }
}

/* 模态框预览样式 */
.modal { position: fixed; inset: 0; z-index: 50; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal-content { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #fff; border-radius: 12px; padding: 12px; max-width: 90vw; max-height: 80vh; box-shadow: var(--shadow); }
.modal-content img { max-width: 86vw; max-height: 70vh; display: block; border-radius: 8px; }
.modal-close { margin-top: 8px; width: 100%; padding: 8px 0; border: 0; border-radius: 8px; background: var(--green-2); color: #fff; font-size: 14px; }

/* 穿线服务按钮状态样式 - 根据认证状态显示不同效果 */
.icon-cell.service-locked {
    opacity: 0.6;
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
    position: relative;
}

.icon-cell.service-locked:hover {
    background-color: #e9ecef !important;
    transform: none;
}

.icon-cell.service-unlocked {
    background-color: #fff;
    border: 1px solid transparent;
}

.icon-cell.service-unlocked:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* 锁定图标样式 - 未认证时显示 */
.lock-icon {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 个人中心地址控件样式 - 独立于主页列表样式 */
#profile .address-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

#profile .distance {
    font-size: 12px !important;
    color: var(--text-2) !important;
    margin: 0 !important;
    text-align: left !important;
}

#profile .address {
    font-size: 12px !important;
    color: var(--text-2) !important;
    margin: 0 !important;
}


