/* ===== 医站通 - 医生服务平台 - 全局样式 ===== */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-darker: #1e40af;
    --primary-light: #7dd3fc;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --text: #0f172a;
    --text-2: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --bg-soft: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 20px rgba(14, 165, 233, 0.1);
    --shadow-lg: 0 20px 60px rgba(14, 165, 233, 0.15);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; }

body {
    font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.3; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.page { min-height: calc(100vh - 76px); }
.page-container { max-width: 1240px; margin: 0 auto; padding: 40px 24px 80px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 24px; border-radius: var(--radius);
    font-size: 14px; font-weight: 500; transition: var(--transition); white-space: nowrap;
}
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #1e40af 100%);
    color: #fff; box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
    border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45); }
.btn-primary:hover::before { left: 100%; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--primary-dark); border-color: var(--primary); background: rgba(14,165,233,0.05); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ===== 顶部栏 ===== */
.top-bar { background: linear-gradient(135deg, #0c4a6e 0%, #1e40af 100%); color: rgba(255,255,255,0.9); font-size: 13px; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.top-bar-left { display: flex; gap: 24px; }
.top-bar-right { display: flex; gap: 20px; }
.top-bar-right a:hover { color: #fff; }

/* ===== 导航栏 ===== */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); box-shadow: 0 1px 3px rgba(15,23,42,0.06); }
.navbar-content { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #1e40af);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(14,165,233,0.35); flex-shrink: 0;
}
.logo-text h1 { font-size: 17px; font-weight: 700; }
.logo-text span { font-size: 10px; letter-spacing: 2px; color: var(--text-muted); }
.nav-menu { display: flex; gap: 6px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--text-2); padding: 8px 16px; border-radius: 8px; }
.nav-link:hover { color: var(--primary-dark); background: rgba(14,165,233,0.08); }
.nav-link.active { color: var(--primary-dark); background: rgba(14,165,233,0.1); font-weight: 600; }
.nav-actions { display: flex; gap: 10px; }
.user-panel-nav { display: flex; align-items: center; gap: 14px; }
.user-info-mini { display: flex; align-items: center; gap: 10px; }
.user-avatar-mini {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 600;
}
.user-name-mini { font-size: 14px; font-weight: 600; display: block; }
.user-role-mini { font-size: 12px; color: var(--text-muted); }
.user-coins {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2); border-radius: 50px;
    font-size: 13px; font-weight: 600; color: #d97706;
}
.user-coins svg { flex-shrink: 0; }
.btn-user-nav { padding: 7px 14px; background: var(--bg-soft); border-radius: 8px; font-size: 13px; color: var(--text-light); }
.btn-user-nav:hover { background: var(--border); color: var(--text); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; padding: 10px; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
    position: relative; padding: 80px 0 100px;
    background: linear-gradient(135deg, #0b3b70 0%, #082f5c 50%, #06284a 100%);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-orb { position: absolute; border-radius: 50%; }
.orb1 { width: 600px; height: 600px; top: -200px; right: -100px; background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, transparent 60%); animation: orbFloat 15s ease-in-out infinite; }
.orb2 { width: 400px; height: 400px; bottom: -150px; left: -80px; background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, transparent 60%); animation: orbFloat 18s ease-in-out infinite reverse; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-30px); } }
.hero-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(14,165,233,0.2) 0%, transparent 55%); }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero-badge-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-badge { padding: 6px 16px; background: rgba(255,255,255,0.12); border: 1px solid rgba(125,211,252,0.25); border-radius: 50px; color: #e0f2fe; font-size: 12.5px; backdrop-filter: blur(6px); }
.hero-title { font-size: 50px; color: #fff; margin-bottom: 20px; line-height: 1.2; letter-spacing: 1px; }
.hero-title .accent { background: linear-gradient(135deg, #7dd3fc, #38bdf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; }
.hero-subtitle { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 36px; line-height: 1.8; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats-card {
    background: rgba(255,255,255,0.97); border-radius: var(--radius-xl);
    padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.hero-stats-card h3 { font-size: 18px; margin-bottom: 20px; font-weight: 700; }
.stats-row { display: flex; gap: 0; margin-bottom: 28px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-item { flex: 1; text-align: center; padding: 16px 8px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-size: 18px; font-weight: 700; color: var(--primary-dark); letter-spacing: 1px; }
.stat-item span { font-size: 12px; color: var(--text-muted); }
.hero-quick-search h4 { font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.qtag { padding: 6px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 50px; font-size: 13px; cursor: pointer; transition: var(--transition); }
.qtag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 区块标题 ===== */
.section-header { text-align: center; margin-bottom: 48px; position: relative; }
.section-header::before { content: ''; display: block; width: 48px; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); margin: 0 auto 16px; opacity: 0.5; }
.section-badge { display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--primary-dark); font-weight: 600; padding: 6px 18px; background: rgba(14,165,233,0.08); border-radius: 50px; margin-bottom: 14px; border: 1px solid rgba(14,165,233,0.15); }
.section-title { font-size: 36px; margin-bottom: 12px; }
.section-subtitle { font-size: 15px; color: var(--text-light); }

/* ===== 热门科室 ===== */
.categories { padding: 80px 0; background: var(--bg); }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px 12px; text-align: center; cursor: pointer; transition: var(--transition);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.cat-icon { font-size: 32px; margin-bottom: 10px; display: block; }
.cat-card span { font-size: 14px; font-weight: 500; }

/* ===== 推荐/最新发布 ===== */
.featured-posts, .latest-posts { padding: 80px 0; background: #fff; }
.latest-posts { background: var(--bg); }
.posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.posts-grid-sm { grid-template-columns: repeat(3, 1fr); }

/* ===== 帖子卡片 ===== */
.post-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; transition: var(--transition); cursor: pointer;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.post-card-image {
    height: 160px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    display: flex; align-items: center; justify-content: center;
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-image .img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0ea5e9, #1e40af);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 48px; font-weight: 700;
}
.post-card-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: rgba(255,255,255,0.95); border-radius: 50px; font-size: 11.5px; font-weight: 600; color: var(--primary-dark); }
.post-card-content { padding: 20px; }
.post-card-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.post-card-title-text { font-size: 12px; color: var(--primary-dark); margin-bottom: 8px; font-weight: 500; }
.post-card-specialty { font-size: 12.5px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; min-height: 32px; }
.post-card-fee { font-size: 22px; font-weight: 700; color: #ef4444; margin-bottom: 14px; }
.post-card-fee small { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.post-card-phone {
    width: 100%; padding: 10px;
    background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(30,64,175,0.08));
    border: 1px dashed rgba(14,165,233,0.25); border-radius: var(--radius);
    text-align: center; font-size: 13px; color: var(--primary-dark); font-weight: 500;
    transition: var(--transition);
}
.post-card-phone:hover { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-style: solid; }
.post-card-phone.locked { color: var(--text-muted); border-color: var(--border); background: var(--bg-soft); cursor: not-allowed; }
.post-card-phone.locked:hover { background: var(--bg-soft); color: var(--text-muted); border-color: var(--border); border-style: dashed; }
.post-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--bg); }
.post-card-time { font-size: 12px; color: var(--text-muted); }
.post-card-views { font-size: 12px; color: var(--text-muted); }

/* ===== 为什么选择我们 ===== */
.why { padding: 80px 0; background: var(--bg); }
.why-content { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.why-left .section-header { text-align: left; margin-bottom: 28px; }
.why-left .section-header::before { margin-left: 0; }
.why-list { display: flex; flex-direction: column; gap: 16px; }
.why-item { display: flex; gap: 16px; padding: 18px 20px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition); }
.why-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.why-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; box-shadow: 0 4px 12px rgba(14,165,233,0.35); }
.why-text h4 { font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.why-text p { font-size: 13.5px; color: var(--text-light); }
.why-right { display: flex; flex-direction: column; gap: 16px; }
.why-cta-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; transition: var(--transition); }
.why-cta-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.cta-icon { font-size: 48px; margin-bottom: 12px; }
.why-cta-box h3 { font-size: 20px; margin-bottom: 8px; }
.why-cta-box p { font-size: 13.5px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.cta-price { display: block; font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ===== 找医生页面 ===== */
.posts-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.posts-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 90px; }
.sidebar-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.sidebar-section:last-of-type { border-bottom: none; margin-bottom: 16px; padding-bottom: 0; }
.sidebar-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--text-2); }
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; padding: 5px 8px; border-radius: 6px; transition: var(--transition); }
.filter-item:hover { background: var(--bg-soft); color: var(--primary-dark); }
.filter-item input[type="radio"] { accent-color: var(--primary); }
.posts-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.posts-count { font-size: 14px; color: var(--text-light); }
.posts-count span { font-weight: 700; color: var(--primary-dark); font-size: 16px; }
.posts-sort select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; color: var(--text-2); background: #fff; cursor: pointer; }
.posts-search-bar { display: flex; gap: 10px; margin-bottom: 24px; }
.posts-search-bar input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.posts-search-bar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,165,233,0.1); }
.posts-grid-list { grid-template-columns: 1fr; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 16px; color: var(--text-2); margin-bottom: 8px; }
.empty-sub { font-size: 13.5px; color: var(--text-muted) !important; }

/* ===== 发布页面 ===== */
.publish-layout { max-width: 760px; margin: 0 auto; }
.publish-header { text-align: center; margin-bottom: 32px; }
.publish-header .section-header { margin-bottom: 8px; }
.publish-info-box {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; background: rgba(14,165,233,0.06);
    border: 1px solid rgba(14,165,233,0.15); border-radius: var(--radius-lg);
    margin-bottom: 32px; font-size: 14px; color: var(--text-2);
}
.publish-info-box strong { color: var(--primary-dark); }
.publish-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; }
.form-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 18px; position: relative; }
.form-group label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.required { color: #ef4444; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 14px; color: var(--text); background: #fff; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,165,233,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.char-count { position: absolute; right: 12px; top: 38px; font-size: 12px; color: var(--text-muted); }
.input-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }
.form-error { color: #ef4444; font-size: 13px; margin-bottom: 16px; min-height: 20px; text-align: center; background: rgba(239,68,68,0.05); padding: 8px 12px; border-radius: 6px; }
.avatar-upload { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; cursor: pointer; transition: var(--transition); background: var(--bg); }
.avatar-upload:hover { border-color: var(--primary-light); background: rgba(14,165,233,0.03); }
.avatar-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }
.publish-submit-area { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.publish-fee-note { font-size: 14px; color: var(--text-light); }
.publish-fee-note strong { font-size: 18px; color: #ef4444; margin-left: 4px; }

/* ===== 我的页面 ===== */
.my-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.my-sidebar { position: sticky; top: 90px; }
.my-profile-card {
    background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
    border-radius: var(--radius-xl); padding: 28px 24px; text-align: center; margin-bottom: 16px;
    box-shadow: 0 20px 60px rgba(14,165,233,0.25);
}
.my-avatar {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
    background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px; font-weight: 700;
    border: 3px solid rgba(255,255,255,0.4);
}
.my-profile-card h3 { font-size: 20px; color: #fff; margin-bottom: 8px; }
.my-role-tag { display: inline-block; padding: 4px 16px; background: rgba(255,255,255,0.2); border-radius: 50px; font-size: 12.5px; color: #fff; margin-bottom: 16px; }
.my-coins { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; color: #fef3c7; font-weight: 600; margin-bottom: 4px; }
.my-balance-info { color: rgba(255,255,255,0.85); font-size: 13.5px; margin-top: 8px; }
.my-balance-info strong { font-size: 20px; color: #fff; }
.balance-hint { font-size: 12px; color: rgba(255,255,255,0.65); }
.my-nav { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.my-nav-item { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--border); transition: var(--transition); }
.my-nav-item:last-child { border-bottom: none; }
.my-nav-item:hover { background: var(--bg-soft); color: var(--primary-dark); }
.my-nav-item.active { background: rgba(14,165,233,0.08); color: var(--primary-dark); font-weight: 600; }
.my-tab-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.my-tab-header h3 { font-size: 20px; font-weight: 700; }
.my-tab-content { display: none; }
.my-tab-content.active { display: block; }
.my-post-item {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; margin-bottom: 16px; transition: var(--transition);
}
.my-post-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.my-post-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.my-post-title { font-size: 16px; font-weight: 600; }
.my-post-dept { font-size: 13px; color: var(--primary-dark); font-weight: 500; }
.my-post-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }
.my-post-actions { display: flex; gap: 8px; }
.my-post-actions button { padding: 6px 12px; font-size: 12.5px; border-radius: 6px; }
.my-post-actions .btn-delete { background: rgba(239,68,68,0.08); color: #ef4444; }
.my-post-actions .btn-delete:hover { background: rgba(239,68,68,0.15); }
.my-fav-item {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; margin-bottom: 14px; display: flex; gap: 16px; align-items: center;
}
.fav-avatar { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, #0ea5e9, #1e40af); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.fav-info { flex: 1; }
.fav-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.fav-info p { font-size: 13px; color: var(--text-light); }
.fav-info .fee { color: #ef4444; font-weight: 700; }
.fav-remove { color: var(--text-muted); font-size: 12.5px; padding: 6px 12px; border-radius: 6px; background: var(--bg-soft); }
.fav-remove:hover { background: rgba(239,68,68,0.08); color: #ef4444; }
.no-content { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 14px; }
.coins-shop { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; }
.coins-tip { text-align: center; font-size: 14px; color: var(--text-light); margin-bottom: 24px; padding: 12px; background: var(--bg-soft); border-radius: var(--radius); }
.coins-packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.coin-pkg {
    border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 20px 12px;
    text-align: center; cursor: pointer; transition: var(--transition);
}
.coin-pkg:hover { border-color: var(--primary-light); }
.coin-pkg.selected { border-color: var(--primary); background: rgba(14,165,233,0.05); }
.coin-pkg strong { display: block; font-size: 26px; color: var(--accent-dark); margin-bottom: 4px; }
.coin-pkg small { display: block; font-size: 12px; color: var(--success); margin-bottom: 6px; }
.coin-pkg span { font-size: 15px; font-weight: 600; color: var(--text-2); }
.recharge-result { text-align: center; padding: 16px; background: rgba(16,185,129,0.08); border-radius: var(--radius); margin-bottom: 16px; color: var(--success); font-size: 14px; }
.recharge-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.doctor-panel-info { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; }
.doctor-panel-info p { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.doctor-panel-info ul { list-style: none; margin-bottom: 24px; }
.doctor-panel-info li { padding: 8px 0; font-size: 14px; color: var(--text-light); border-bottom: 1px dashed var(--border); }
.doctor-panel-info li:last-child { border-bottom: none; }
.my-balance-display { background: var(--bg-soft); padding: 20px; border-radius: var(--radius-lg); }
.my-balance-display p { font-size: 14px; margin-bottom: 6px; }
.my-balance-display strong { font-size: 24px; color: var(--primary-dark); }

/* ===== 帖子详情页 ===== */
.post-detail-layout { background: #fff; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); }
.detail-header { background: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%); padding: 40px; display: flex; gap: 24px; align-items: center; }
.detail-avatar { width: 100px; height: 100px; border-radius: 20px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 36px; font-weight: 700; border: 3px solid rgba(255,255,255,0.3); flex-shrink: 0; overflow: hidden; }
.detail-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.detail-info { flex: 1; color: #fff; }
.detail-info h2 { font-size: 26px; margin-bottom: 6px; }
.detail-title-text { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 8px; font-weight: 500; }
.detail-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-badge { padding: 4px 12px; background: rgba(255,255,255,0.2); border-radius: 50px; font-size: 12px; }
.detail-body { padding: 36px 40px; }
.detail-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.detail-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.detail-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.detail-section p { font-size: 14.5px; color: var(--text-2); line-height: 1.8; }
.detail-specialty-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tag { padding: 6px 14px; background: rgba(14,165,233,0.08); border: 1px solid rgba(14,165,233,0.15); border-radius: 50px; font-size: 13px; color: var(--primary-dark); }
.detail-fee-bar { display: flex; justify-content: space-between; align-items: center; padding: 24px 40px; background: var(--bg-soft); border-top: 1px solid var(--border); }
.detail-fee { font-size: 28px; font-weight: 700; color: #ef4444; }
.detail-fee small { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.detail-phone-btn { display: flex; align-items: center; gap: 10px; }
.detail-phone-display { font-size: 18px; font-weight: 700; color: var(--primary-dark); font-family: monospace; letter-spacing: 1px; }

/* ===== 平台CTA ===== */
.platform-cta {
    padding: 70px 0;
    background: linear-gradient(135deg, #0b3b70 0%, #1e40af 100%);
    position: relative; overflow: hidden;
}
.platform-cta::before { content: ''; position: absolute; top: -50%; right: -5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(125,211,252,0.2) 0%, transparent 60%); border-radius: 50%; }
.cta-content { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-left h2 { font-size: 30px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.cta-left p { font-size: 15px; color: rgba(255,255,255,0.8); }
.cta-right { display: flex; gap: 14px; flex-shrink: 0; }

/* ===== 页脚 ===== */
.footer { background: #0f172a; color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-content { display: grid; grid-template-columns: 1.5fr 2fr; gap: 60px; padding-bottom: 50px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-logo svg { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 14px rgba(14,165,233,0.35); }
.footer-logo h3 { font-size: 18px; color: #fff; margin-bottom: 2px; font-weight: 700; }
.footer-logo span { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.5); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 24px; max-width: 400px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact > div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); display: inline-block; }
.footer-col a:hover { color: #7dd3fc; transform: translateX(4px); }
.footer-bottom { text-align: center; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: rgba(255,255,255,0.5); display: flex; flex-direction: column; gap: 8px; }
.footer-business { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 12px 24px; margin-bottom: 12px; background: rgba(255,255,255,0.03); border-radius: 8px; font-size: 12.5px; color: rgba(255,255,255,0.6); }
.footer-business span { display: inline-flex; align-items: center; gap: 6px; }
.footer-business span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--primary-light); opacity: 0.6; }

/* ===== 模态框 ===== */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.65); backdrop-filter: blur(8px); }
.modal-content { position: relative; background: #fff; border-radius: var(--radius-xl); padding: 40px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 100px rgba(0,0,0,0.3); animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.modal-auth { max-width: 440px; }
.modal-phone { max-width: 400px; text-align: center; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-soft); color: var(--text-light); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: #e2e8f0; color: var(--text); transform: rotate(90deg); }
.modal-title { font-size: 22px; margin-bottom: 6px; font-weight: 700; }
.modal-subtitle { font-size: 14px; color: var(--text-light); }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: 0 8px 24px rgba(14,165,233,0.4); }
.role-select { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.role-option {
    border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 20px 16px;
    text-align: center; cursor: pointer; transition: var(--transition); position: relative;
}
.role-option:hover { border-color: var(--primary-light); background: rgba(14,165,233,0.03); }
.role-option.selected { border-color: var(--primary); background: rgba(14,165,233,0.06); }
.role-icon { font-size: 36px; margin-bottom: 8px; }
.role-option strong { display: block; font-size: 14px; margin-bottom: 4px; }
.role-option p { font-size: 12px; color: var(--text-muted); }
.role-badge { display: inline-block; margin-top: 8px; padding: 3px 10px; background: rgba(245,158,11,0.1); border-radius: 50px; font-size: 11px; color: #d97706; font-weight: 600; }
.role-option.selected .role-badge { background: rgba(16,185,129,0.1); color: var(--success); }
.auth-form { display: flex; flex-direction: column; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.form-group input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text); transition: var(--transition); }
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,165,233,0.1); }
.form-group input::placeholder { color: var(--text-muted); }
.form-error { color: #ef4444; font-size: 13px; margin-bottom: 14px; min-height: 20px; text-align: center; background: rgba(239,68,68,0.05); padding: 8px 12px; border-radius: 6px; }
.form-switch { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--text-light); }
.form-switch a { color: var(--primary-dark); font-weight: 500; margin-left: 4px; }
.form-switch a:hover { text-decoration: underline; }

/* ===== 电话查看弹层 ===== */
.phone-view-header { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.phone-view-avatar { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, #0ea5e9, #1e40af); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.phone-view-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.phone-view-header h3 { font-size: 20px; margin-bottom: 4px; }
.phone-view-header p { font-size: 13.5px; color: var(--text-muted); }
.phone-view-content {}
.phone-display { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px; background: var(--bg-soft); border-radius: var(--radius-lg); margin-bottom: 16px; font-size: 26px; font-weight: 700; color: var(--primary-dark); font-family: monospace; letter-spacing: 2px; border: 1px solid var(--border); }
.phone-tip { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; line-height: 1.6; }

/* ===== Toast ===== */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: #1e293b; color: #fff; padding: 14px 28px; border-radius: var(--radius-lg);
    font-size: 14px; font-weight: 500; z-index: 2000; opacity: 0;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: linear-gradient(135deg, #10b981, #059669); }
.toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast.warning { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .posts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-right { display: none; }
    .why-content, .my-layout, .posts-layout { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .posts-sidebar { position: static; }
    .cta-content { flex-direction: column; text-align: center; }
    .coins-packages { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .detail-header { flex-direction: column; text-align: center; }
    .detail-fee-bar { flex-direction: column; gap: 16px; }
    .nav-menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: flex; }
    .top-bar { display: none; }
    .user-panel-nav { gap: 8px; }
    .user-coins { display: none; }
}
@media (max-width: 640px) {
    .hero-title { font-size: 36px; }
    .section-title { font-size: 28px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .posts-grid, .posts-grid-sm { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .publish-form { padding: 24px 20px; }
    .my-sidebar { position: static; }
    .modal-content { padding: 28px 20px; }
    .detail-body { padding: 24px 20px; }
}
