/* ==================== 全局重置 ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }

:root {
  /* --- 色彩 --- */
  --primary: #1A56DB;
  --primary-dark: #1E40AF;
  --primary-light: #BFDBFE;
  --primary-lighter: #EFF6FF;
  --primary-gradient: linear-gradient(135deg, #1A56DB 0%, #3B82F6 100%);
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --success: #059669;
  --success-light: #D1FAE5;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --warning: #D97706;
  --warning-light: #FEF3C7;

  /* --- 表面 --- */
  --bg: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-tertiary: #E2E8F0;
  --card: #FFFFFF;

  /* --- 文字 --- */
  --text: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;

  /* --- 边框 --- */
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  /* --- 间距 (4pt scale) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* --- 阴影 --- */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.05), 0 1px 2px rgba(15,23,42,0.03);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.05), 0 2px 4px -2px rgba(15,23,42,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.06), 0 4px 6px -4px rgba(15,23,42,0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,0.08), 0 8px 10px -6px rgba(15,23,42,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(15,23,42,0.15);

  /* --- 圆角 --- */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* --- 布局 --- */
  --nav-height: 60px;
  --top-nav-height: 64px;
  --content-max: 1280px;

  /* --- 字体 --- */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

#page-container {
  min-height: 100vh;
}

@media (max-width: 767px) {
  #page-container.has-nav {
    padding-bottom: var(--nav-height);
  }
}

/* ==================== 显示控制 ==================== */
.pc-only { display: none !important; }
.mobile-only { display: block !important; }

@media (min-width: 768px) {
  .pc-only { display: flex !important; }
  .mobile-only { display: none !important; }
}

/* ==================== PC顶部导航 ==================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-nav-height);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  display: none;
}

@media (min-width: 768px) {
  .top-nav {
    display: flex;
    align-items: center;
  }
}

.top-nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
}

.top-nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s;
}

.top-nav-logo:hover { opacity: 0.8; }

.top-nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}

.top-nav-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.top-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.top-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.top-nav-item:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.top-nav-item.active {
  color: var(--primary);
  background: var(--primary-lighter);
  font-weight: 600;
}

.top-nav-item .nav-icon { font-size: 16px; }

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.top-nav-user {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.top-nav-logout {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-nav-logout:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-light);
}

@media (min-width: 768px) {
  #page-container {
    padding-top: var(--top-nav-height);
  }
  #page-container.has-nav {
    padding-top: var(--top-nav-height);
    padding-bottom: 0;
  }
}

/* ==================== 底部导航（移动端） ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-height);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav.hidden { display: none; }

@media (min-width: 768px) {
  .bottom-nav { display: none !important; }
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-item.active { color: var(--primary); }
.nav-item .nav-icon { font-size: 20px; line-height: 1; }
.nav-item .nav-label { font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }

/* ==================== 页面头部 ==================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-4) var(--space-3);
}

@media (min-width: 768px) {
  .page-header {
    padding: 0 var(--space-8) var(--space-5);
    max-width: var(--content-max);
    margin: 0 auto;
  }
}

.page-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (min-width: 768px) {
  .page-title { font-size: 26px; }
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px var(--space-6);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (min-width: 768px) {
  .btn { width: auto; padding: 10px var(--space-8); }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover { box-shadow: 0 4px 14px rgba(26,86,219,0.3); }
  .btn-success:hover { box-shadow: 0 4px 14px rgba(5,150,105,0.3); }
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }

.btn-outline {
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==================== 表单 ==================== */
.input-group { margin-bottom: var(--space-4); }

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text);
  letter-spacing: 0.01em;
}

.input {
  width: 100%;
  padding: 11px var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  background: var(--card);
  color: var(--text);
  transition: all 0.2s ease;
}

.input::placeholder { color: var(--text-tertiary); }

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.08);
}

.input:focus-visible { outline: none; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border-light);
}

/* ==================== 徽章 ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-active { background: var(--primary-lighter); color: var(--primary); }
.badge-paid { background: var(--success-light); color: var(--success); }
.badge-completed { background: var(--bg-secondary); color: var(--text-secondary); }
.badge-mine { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; font-weight: 600; }

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-5);
  color: var(--text-secondary);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: var(--space-3); opacity: 0.5; }
.empty-state .empty-text { font-size: 15px; font-weight: 500; }

/* ==================== 搜索栏 ==================== */
.search-bar { padding: var(--space-3) var(--space-4); }

.search-input {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px var(--space-4);
  font-size: 14px;
}

@media (min-width: 768px) {
  .search-bar {
    padding: 0 var(--space-8) var(--space-4);
    max-width: var(--content-max);
    margin: 0 auto;
  }
  .search-input { padding: 12px var(--space-5); font-size: 15px; }
}

/* ==================== 登录页 ==================== */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-6);
  background: linear-gradient(160deg, #1A56DB 0%, #1E40AF 40%, #1E3A8A 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@media (min-width: 768px) {
  .login-page { padding-top: var(--top-nav-height); }
}

.login-logo {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: var(--space-4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .login-logo { width: 88px; height: 88px; font-size: 40px; border-radius: var(--radius-xl); }
}

.login-title {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .login-title { font-size: 30px; margin-bottom: var(--space-2); }
}

.login-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  margin-bottom: var(--space-8);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .login-subtitle { font-size: 15px; margin-bottom: var(--space-10); }
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .login-card { padding: var(--space-10); border-radius: var(--radius-2xl); }
}

.login-card .input-group { margin-bottom: var(--space-5); }

.login-card .btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .login-card .btn {
    width: 100%;
    padding: 14px var(--space-8);
  }
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}

.phone-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.08);
}

.phone-input-wrapper .phone-prefix {
  padding: 11px var(--space-4);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid var(--border);
}

.phone-input-wrapper .input { border: none; border-radius: 0; flex: 1; }
.phone-input-wrapper .input:focus { box-shadow: none; }

/* ==================== 首页 ==================== */
.home-hero {
  background: var(--primary-gradient);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  color: #fff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: var(--space-5);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@media (min-width: 768px) {
  .home-hero {
    border-radius: var(--radius-2xl);
    padding: var(--space-16) var(--space-10);
    margin-bottom: var(--space-8);
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
  }
}

.home-hero h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .home-hero h2 { font-size: 30px; margin-bottom: var(--space-2); }
}

.home-hero p { font-size: 13px; opacity: 0.85; position: relative; z-index: 1; }

@media (min-width: 768px) {
  .home-hero p { font-size: 16px; }
}

.home-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .home-features {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    padding: 0 var(--space-8);
    max-width: var(--content-max);
    margin: 0 auto;
  }
}

.home-feature-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-feature-card:active { transform: scale(0.96); }

@media (min-width: 768px) {
  .home-feature-card { padding: var(--space-8) var(--space-5); }
  .home-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
  }
}

.home-feature-card .feature-icon { font-size: 32px; margin-bottom: var(--space-2); display: inline-block; }

@media (min-width: 768px) {
  .home-feature-card .feature-icon { font-size: 40px; margin-bottom: var(--space-4); }
}

.home-feature-card .feature-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .home-feature-card .feature-title { font-size: 16px; }
}

.home-feature-card .feature-desc { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

@media (min-width: 768px) {
  .home-feature-card .feature-desc { font-size: 13px; }
}

/* ==================== 首页规则区 ==================== */
.home-rules-wrapper { padding: 0 var(--space-4); margin-top: var(--space-5); }

@media (min-width: 768px) {
  .home-rules-wrapper {
    max-width: var(--content-max);
    margin: var(--space-8) auto 0;
    padding: 0 var(--space-8);
  }
}

.home-rules-card {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 768px) {
  .home-rules-card { border-radius: var(--radius-lg); }
}

/* ==================== 技能大厅 ==================== */
.hall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-4) var(--space-3);
}

.hall-header .hall-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hall-header {
    padding: 0 var(--space-8) var(--space-4);
    max-width: var(--content-max);
    margin: 0 auto;
  }
  .hall-header .hall-title { font-size: 26px; }
}

.refresh-btn {
  background: var(--primary-lighter);
  border: none;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--primary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.refresh-btn:hover { background: var(--primary-light); }

.publish-fab {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--space-4));
  right: var(--space-4);
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26,86,219,0.35);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.publish-fab:active { transform: scale(0.92); }

@media (min-width: 768px) {
  .publish-fab { display: none; }
}

.skill-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
}

@media (min-width: 768px) {
  .skill-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
    padding: 0 var(--space-8);
    max-width: var(--content-max);
    margin: 0 auto;
  }
}

.skill-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: var(--space-5) var(--space-4);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.skill-card:active { transform: scale(0.98); }

@media (min-width: 768px) {
  .skill-card {
    border-radius: var(--radius-lg);
    padding: var(--space-5);
  }
  .skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
  }
}

.skill-card-img {
  width: 100%;
  height: 160px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.skill-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .skill-card-img {
    height: 180px;
    border-radius: var(--radius);
  }
}

.skill-card .skill-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.skill-card .skill-price {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.skill-card .skill-price .currency { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

.skill-card .skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
}

.skill-card .skill-time { font-size: 11px; color: var(--text-tertiary); font-weight: 500; }

/* ==================== 技能详情页 ==================== */
.detail-page { padding-bottom: 80px; }

@media (min-width: 768px) {
  .detail-page {
    padding: 0 var(--space-8) var(--space-12);
    max-width: 800px;
    margin: 0 auto;
  }
}

.detail-header {
  display: flex;
  align-items: center;
  padding: var(--space-4);
}

@media (min-width: 768px) {
  .detail-header { padding: 0 0 var(--space-5); }
}

.back-btn {
  background: var(--bg-secondary);
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.back-btn:hover { background: var(--bg-tertiary); }

.detail-header .detail-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-left: var(--space-2);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .detail-header .detail-title { font-size: 24px; }
}

.detail-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin: 0 var(--space-4) var(--space-4);
  padding: var(--space-8) var(--space-5);
  text-align: center;
}

@media (min-width: 768px) {
  .detail-card {
    margin: 0 0 var(--space-5);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
  }
}

.detail-card .detail-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-card .detail-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .detail-card .detail-name { font-size: 28px; }
}

.detail-card .detail-price {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .detail-card .detail-price { font-size: 38px; }
}

.detail-card .detail-price .currency { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

.detail-actions {
  padding: 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .detail-actions {
    flex-direction: row;
    justify-content: center;
    padding: 0;
    max-width: 500px;
    margin: 0 auto;
  }
}

.detail-info { padding: 0 var(--space-4); margin-top: var(--space-4); }

@media (min-width: 768px) {
  .detail-info { padding: 0; max-width: 600px; margin: var(--space-4) auto 0; }
}

.mine-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-radius: var(--radius-md);
  color: #92400E;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.mine-icon { font-size: 20px; }

.detail-info .info-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.detail-info .info-item:last-child { border-bottom: none; }
.detail-info .info-label { color: var(--text-secondary); font-weight: 500; }
.detail-info .info-value { font-weight: 600; }

/* ==================== 技能描述和图片 ==================== */
.detail-description {
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (min-width: 768px) {
  .detail-description { font-size: 15px; line-height: 2; }
}

.detail-images { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.detail-image-item {
  width: calc(33.33% - 6px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-secondary);
  transition: opacity 0.2s ease;
}

.detail-image-item:hover { opacity: 0.85; }

@media (min-width: 768px) {
  .detail-image-item { width: calc(20% - 7px); }
}

/* ==================== 图片上传 ==================== */
.image-upload-area { margin-top: var(--space-1); }

.image-preview-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-2); }

.image-preview-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .image-preview-item { width: 100px; height: 100px; }
}

.image-preview-item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.image-loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-loading-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 2px;
}

.image-remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.image-remove-btn:hover { background: var(--danger); transform: scale(1.1); }

.image-upload-btn {
  position: relative;
  width: 100%;
  padding: var(--space-3);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.image-upload-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-lighter);
}

.edit-modal-content { max-height: 85vh; overflow-y: auto; }

/* ==================== 发布技能页 ==================== */
.publish-page { padding: 0 var(--space-4) var(--space-4); }

@media (min-width: 768px) {
  .publish-page { max-width: 700px; margin: 0 auto; padding: 0 var(--space-8) var(--space-12); }
}

.publish-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: var(--space-6) var(--space-5);
}

@media (min-width: 768px) {
  .publish-card {
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-5);
  }
}

.price-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}

.price-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.08);
}

.price-input-wrapper .currency-label {
  padding: 11px var(--space-4);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid var(--border);
}

.price-input-wrapper .input { border: none; border-radius: 0; flex: 1; }
.price-input-wrapper .input:focus { box-shadow: none; }

.form-hint { font-size: 12px; color: var(--text-tertiary); margin-top: var(--space-2); font-weight: 500; }

/* ==================== 我的技能页 ==================== */
.my-skill-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: var(--space-5) var(--space-4);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .my-skill-card {
    margin-bottom: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
  }
  .my-skill-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
  }
}

.my-skill-card .skill-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--space-2);
}

.my-skill-card .skill-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.my-skill-card .skill-price {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.my-skill-card .skill-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
}

/* ==================== 我的订单页 ==================== */
.orders-tabs {
  display: flex;
  padding: var(--space-4) var(--space-4) var(--space-3);
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .orders-tabs {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-8) var(--space-4);
  }
}

.order-tab {
  flex: 1;
  padding: var(--space-3);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .order-tab { flex: none; padding: var(--space-3) var(--space-8); }
}

.order-tab.active { color: #fff; background: var(--primary); }

.order-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: var(--space-5) var(--space-4);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .order-card {
    margin: 0;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
  }
}

.order-card .order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

.order-card .order-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .order-card .order-name { font-size: 18px; }
}

.order-card .order-info {
  display: flex;
  justify-content: space-between;
  padding: var(--space-1) 0;
  font-size: 13px;
}

.order-card .order-info .info-label { color: var(--text-secondary); font-weight: 500; }
.order-card .order-info .info-value { font-weight: 600; }
.order-card .order-action { margin-top: var(--space-3); text-align: center; }

@media (min-width: 768px) {
  .order-card .order-action .btn { width: auto; justify-content: center; }
}

.order-card .order-countdown {
  font-size: 12px;
  color: var(--warning);
  margin-top: var(--space-2);
  text-align: center;
  font-weight: 500;
}

.orders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
}

@media (min-width: 768px) {
  .orders-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--space-5);
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-8);
  }
}

/* ==================== 弹窗 ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: overlayFadeIn 0.2s ease;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay.hidden { display: none; }

.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  width: 90%;
  max-width: 380px;
  text-align: center;
  animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-2xl);
}

@media (min-width: 768px) {
  .modal-content { border-radius: var(--radius-2xl); padding: var(--space-10); max-width: 420px; }
}

@keyframes modalSlideUp {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-content .modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .modal-content .modal-title { font-size: 22px; }
}

.modal-content .modal-subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--space-5); font-weight: 500; }

.qris-amount {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .qris-amount { font-size: 32px; }
}

.qris-code-box {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-5);
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
}

.qris-code-box .qris-placeholder { font-size: 40px; }
.qris-code-box .qris-text { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.qris-notice {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--primary-lighter);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15,23,42,0.9);
  color: #fff;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  pointer-events: none;
  animation: toastFadeIn 0.3s ease;
  box-shadow: var(--shadow-xl);
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ==================== 加载动画 ==================== */
.loading {
  text-align: center;
  padding: var(--space-10);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.loading .loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: var(--space-2);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== 成功页 ==================== */
.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: var(--space-6);
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--success-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: var(--space-4);
}

.success-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: var(--space-2); }
.success-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: var(--space-8); }

/* ==================== PC端发布技能按钮 ==================== */
.pc-publish-btn { display: none; }

@media (min-width: 768px) {
  .pc-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(26,86,219,0.2);
  }
  .pc-publish-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26,86,219,0.3);
  }
}

/* ==================== 内容区容器 ==================== */
.content-wrapper { padding: var(--space-3); }

@media (min-width: 768px) {
  .content-wrapper { max-width: var(--content-max); margin: 0 auto; padding: var(--space-6) var(--space-8); }
}

/* ==================== 页面入场动画 ==================== */
#page-container > * {
  animation: pageEnter 0.35s ease;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
