
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: #0e0e10;
  color: #1a1a2e;
  min-height: 100vh;
}

/* ========== 登录页 ========== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #08080a 0%, #101014 50%, #1a1f2a 100%);
  position: relative;
  overflow: hidden;
}
.login-container::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
}
.login-container::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
}

.login-box {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  padding: 48px 40px 40px;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.1);
}

.login-box .logo-icon {
  text-align: center;
  font-size: 48px;
  margin-bottom: 8px;
}
.login-box h1 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: #0a0a1a;
  letter-spacing: 1px;
}
.login-box .subtitle {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 32px;
}
.login-box .subtitle span {
  color: #0076F6;
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8ecf1;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.25s;
  background: #f8fafc;
}
.form-group input:focus {
  outline: none;
  border-color: #0076F6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,118,246,0.1);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0076F6, #3d9bff);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,118,246,0.35);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  padding: 8px 18px;
  background: #f0f2f5;
  color: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: #e4e7ec;
}

.btn-outline {
  padding: 8px 18px;
  background: transparent;
  color: #0076F6;
  border: 2px solid #0076F6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: #0076F6;
  color: #fff;
}

.error-message {
  color: #e53935;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}
.success-message {
  color: #2e7d32;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

/* ========== 仪表板 ========== */

/* 卡片图标美化 —— 统一主色 #0076F6 */
.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 32px;
  color: white;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0076F6, #3d9bff);
  box-shadow: 0 8px 24px rgba(0,118,246,0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover .card-icon {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0,118,246,0.4);
}
.card .card-arrow {
  display: inline-block;
  font-size: 20px;
  color: #0076F6;
  font-weight: 300;
  transition: transform 0.3s;
}
.card:hover .card-arrow {
  transform: translateX(8px);
}

#dashboard-page {
  display: none;
  min-height: 100vh;
  background: #0e0e10;
}

.dashboard-header {
  background: #1a1a1e;
  padding: 0 40px;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.dashboard-header .logo {
  font-size: 20px;
  font-weight: 700;
  color: #f2f2f4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard-header .logo .badge {
  font-size: 11px;
  background: linear-gradient(135deg, #0076F6, #3d9bff);
  color: #fff;
  padding: 2px 12px;
  border-radius: 20px;
  font-weight: 500;
}
.dashboard-header .header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dashboard-header .header-actions .user-name {
  font-size: 14px;
  color: #b0b0b8;
  font-weight: 500;
}
.dashboard-header .header-actions .user-name strong {
  color: #f2f2f4;
}
.dashboard-header .header-actions .logout-btn {
  padding: 6px 18px;
  background: #2a2a30;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #b0b0b8;
  transition: all 0.2s;
}
.dashboard-header .header-actions .logout-btn:hover {
  background: #fee;
  color: #e53935;
}
.dashboard-header .header-actions .change-pwd-btn {
  padding: 6px 18px;
  background: #2a2a30;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #b0b0b8;
  transition: all 0.2s;
}
.dashboard-header .header-actions .change-pwd-btn:hover {
  background: #1a2a3a;
  color: #0076F6;
}

.dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}
.dashboard-main .welcome {
  margin-bottom: 12px;
}
.dashboard-main .welcome h2 {
  font-size: 28px;
  font-weight: 700;
  color: #f2f2f4;
}
.dashboard-main .welcome h2 span {
  color: #0076F6;
}
.dashboard-main .welcome p {
  color: #9a9aa2;
  font-size: 16px;
  margin-top: 4px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: #1a1a1e;
  border-radius: 16px;
  padding: 36px 28px 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0076F6, #3d9bff);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,118,246,0.15);
  border-color: rgba(0,118,246,0.2);
}
.card:hover::after {
  opacity: 1;
}
.card:active {
  transform: translateY(-2px);
}

.card .card-icon {
  font-size: 44px;
  margin-bottom: 16px;
  display: block;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f2f2f4;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.card:hover h3 {
  color: #0076F6;
}
.card p {
  color: #9a9aa2;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.card .card-arrow {
  display: inline-block;
  font-size: 18px;
  color: #0076F6;
  font-weight: 300;
  transition: transform 0.3s;
}
.card:hover .card-arrow {
  transform: translateX(6px);
}

.card .coming-badge {
  display: inline-block;
  font-size: 11px;
  background: #2a2a30;
  color: #8a8a92;
  padding: 2px 14px;
  border-radius: 20px;
  font-weight: 500;
  margin-top: 4px;
}

/* ========== 搜索页面 ========== */
#search-page {
  display: none;
  min-height: 100vh;
  background: #0e0e10;
}

.search-header {
  background: #1a1a1e;
  padding: 0 32px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.search-header .left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-header .left .back-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #b0b0b8;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-header .left .back-btn:hover {
  background: #2a2a30;
  color: #f2f2f4;
}
.search-header .left .back-btn span {
  font-size: 14px;
}
.search-header .left .page-title {
  font-size: 16px;
  font-weight: 600;
  color: #f2f2f4;
}
.search-header .right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.search-header .right .user-name {
  font-size: 14px;
  color: #b0b0b8;
}
.search-header .right .user-name strong {
  color: #f2f2f4;
}
.search-header .right .logout-btn {
  padding: 6px 16px;
  background: #2a2a30;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #b0b0b8;
  transition: all 0.2s;
}
.search-header .right .logout-btn:hover {
  background: #fee;
  color: #e53935;
}
.search-header .right .change-pwd-btn {
  padding: 6px 16px;
  background: #2a2a30;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #b0b0b8;
  transition: all 0.2s;
}
.search-header .right .change-pwd-btn:hover {
  background: #e3f2fd;
  color: #0076F6;
}

.search-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px 40px;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.search-bar input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #2a2a30;
  border-radius: 12px;
  font-size: 15px;
  background: #1a1a1e;
  transition: all 0.25s;
}
.search-bar input:focus {
  outline: none;
  border-color: #0076F6;
  box-shadow: 0 0 0 4px rgba(0,118,246,0.08);
}
.search-bar .btn-primary {
  width: auto;
  padding: 14px 32px;
  white-space: nowrap;
}

.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filters select {
  padding: 8px 14px;
  border: 2px solid #2a2a30;
  border-radius: 8px;
  font-size: 14px;
  background: #1a1a1e;
  color: #d4d4d8;
  cursor: pointer;
  transition: border-color 0.2s;
}
.filters select:focus {
  outline: none;
  border-color: #0076F6;
}
#result-count {
  font-size: 14px;
  color: #9a9aa2;
  margin-left: 4px;
}

.content-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 4px;
  min-height: 600px;
}

.function-list {
  width: 380px;
  min-width: 300px;
  background: #1a1a1e;
  border-radius: 12px;
  overflow-y: auto;
  max-height: 70vh;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #2a2a30;
}
.function-list .list-header {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #9a9aa2;
  border-bottom: 2px solid #2a2a30;
  background: #202026;
  position: sticky;
  top: 0;
  z-index: 2;
}

.function-item {
  padding: 14px 18px;
  border-bottom: 1px solid #2a2a30;
  cursor: pointer;
  transition: all 0.15s;
}
.function-item:hover {
  background: #202026;
}
.function-item.active {
  background: #16233a;
  border-left: 4px solid #0076F6;
}
.function-item .name {
  font-weight: 500;
  font-size: 14px;
  color: #e4e4e8;
  margin-bottom: 4px;
}
.function-item .meta {
  font-size: 12px;
  color: #8a8a92;
  display: flex;
  gap: 12px;
}
.function-item .meta .tag {
  background: #2a2a30;
  padding: 0 10px;
  border-radius: 4px;
  color: #a8a8b0;
}

.document-view {
  flex: 1;
  background: #1a1a1e;
  border-radius: 12px;
  padding: 32px 36px;
  overflow-y: auto;
  max-height: 70vh;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #2a2a30;
}
.document-view .placeholder {
  color: #707078;
  font-size: 16px;
  text-align: center;
  margin-top: 180px;
}
.document-view .placeholder .big-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

/* Markdown 渲染 */
.document-view h1 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #f2f2f4;
}
.document-view h2 {
  font-size: 19px;
  margin: 24px 0 12px;
  color: #0076F6;
  border-bottom: 2px solid #2a2a30;
  padding-bottom: 8px;
}
.document-view h3 {
  font-size: 16px;
  margin: 18px 0 8px;
  color: #e4e4e8;
}
.document-view p {
  line-height: 1.8;
  margin-bottom: 12px;
  color: #d4d4d8;
}
.document-view table {
  border-collapse: collapse;
  margin: 12px 0 20px;
  width: 100%;
  font-size: 14px;
}
.document-view table th,
.document-view table td {
  border: 1px solid #2a2a30;
  padding: 8px 14px;
  text-align: left;
}
.document-view table th {
  background: #202026;
  font-weight: 600;
  color: #e4e4e8;
}
.document-view ul,
.document-view ol {
  margin: 8px 0 12px 24px;
  line-height: 1.8;
  color: #d4d4d8;
}
.document-view code {
  background: #2a2a30;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
}
.document-view pre {
  background: #f2f2f4;
  color: #2a2a30;
  padding: 16px 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 12px 0 20px;
}
.document-view pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.document-view blockquote {
  border-left: 4px solid #3a3a42;
  padding-left: 16px;
  color: #a8a8b0;
  margin: 12px 0 16px;
}
.document-view img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}
.document-view .video-container {
  margin: 16px 0;
}
.document-view .video-container video {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ========== 车型发展史页面 ========== */
#history-page {
  display: none;
  min-height: 100vh;
  background: #0e0e10;
}

.history-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px 40px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #f2f2f4;
  margin: 24px 0 16px;
}

/* 品牌发展史时间线 */
.brand-history-section {
  background: #1a1a1e;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #2a2a30;
  margin-bottom: 28px;
}
.brand-history-section .section-title {
  margin: 0 0 20px;
}

.timeline {
  position: relative;
  padding-left: 8px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #2a2a30;
}
.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  align-items: flex-start;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-year {
  width: 56px;
  min-width: 56px;
  text-align: right;
  font-weight: 700;
  font-size: 15px;
  color: #0076F6;
  padding-top: 2px;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: #0076F6;
  margin-top: 6px;
  z-index: 1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #0076F6;
}
.timeline-jaguar .timeline-dot { background: #c62828; box-shadow: 0 0 0 2px #c62828; }
.timeline-jaguar .timeline-year { color: #c62828; }
.timeline-landrover .timeline-dot { background: #0076F6; box-shadow: 0 0 0 2px #0076F6; }
.timeline-landrover .timeline-year { color: #0076F6; }
.timeline-all .timeline-dot { background: #6a1b9a; box-shadow: 0 0 0 2px #6a1b9a; }
.timeline-all .timeline-year { color: #6a1b9a; }
.timeline-content {
  flex: 1;
  background: #202026;
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #2a2a30;
}
.timeline-brand {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.timeline-jaguar .timeline-brand { background: #fce4ec; color: #c62828; }
.timeline-landrover .timeline-brand { background: #16233a; color: #0076F6; }
.timeline-all .timeline-brand { background: #f3e5f5; color: #6a1b9a; }
.timeline-title {
  font-weight: 600;
  font-size: 14px;
  color: #e4e4e8;
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 13px;
  color: #a8a8b0;
  line-height: 1.7;
}

/* 车型详情弹窗 */
.model-detail-box {
  max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #2a2a30;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: #b0b0b8;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  background: #fee;
  color: #e53935;
}
.model-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.detail-item {
  background: #202026;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.detail-item .detail-label {
  color: #9a9aa2;
  font-weight: 500;
}
.model-detail-bg, .model-detail-price, .model-detail-sell {
  margin-bottom: 14px;
}
.model-detail-bg h3, .model-detail-price h3, .model-detail-sell h3 {
  font-size: 14px;
  font-weight: 600;
  color: #0076F6;
  margin-bottom: 6px;
}
.model-detail-bg p, .model-detail-price p {
  font-size: 13px;
  color: #d4d4d8;
  line-height: 1.7;
}
.model-detail-sell ul {
  margin: 4px 0 0 18px;
  font-size: 13px;
  color: #d4d4d8;
  line-height: 1.8;
}
.model-detail-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.model-detail-image.placeholder-img {
  background: #202026;
  border: 2px dashed #3a3a42;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  color: #8a8a92;
  font-size: 14px;
}

.model-row:hover {
  background: #16233a !important;
}

.history-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.history-toolbar input {
  flex: 1;
  min-width: 240px;
  padding: 12px 18px;
  border: 2px solid #2a2a30;
  border-radius: 10px;
  font-size: 14px;
  background: #1a1a1e;
  transition: all 0.2s;
}
.history-toolbar input:focus {
  outline: none;
  border-color: #0076F6;
  box-shadow: 0 0 0 4px rgba(0,118,246,0.08);
}
.history-toolbar select {
  padding: 12px 16px;
  border: 2px solid #2a2a30;
  border-radius: 10px;
  font-size: 14px;
  background: #1a1a1e;
  color: #d4d4d8;
  cursor: pointer;
}
.history-toolbar #history-result-count {
  font-size: 14px;
  color: #9a9aa2;
}

.history-table-wrapper {
  background: #1a1a1e;
  border-radius: 12px;
  overflow: auto;
  max-height: 72vh;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #2a2a30;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 900px;
}
.history-table thead th {
  background: #202026;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #e4e4e8;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 2px solid #2a2a30;
  white-space: nowrap;
}
.history-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #2a2a30;
  color: #d4d4d8;
  white-space: nowrap;
}
.history-table tbody tr:hover {
  background: #202026;
}
.history-table .name-en {
  color: #a8a8b0;
}
.history-table .code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: #0076F6;
  font-weight: 500;
}

.brand-tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.brand-jaguar {
  background: #fce4ec;
  color: #c62828;
}
.brand-landrover {
  background: #16233a;
  color: #0076F6;
}

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-onsale {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-off {
  background: #f5f5f5;
  color: #8a8a92;
}
.badge-discontinued {
  background: #ffebee;
  color: #c62828;
}
.badge-active {
  background: #e8f5e9;
  color: #2e7d32;
}

/* 时间线折叠按钮 */
.timeline-toggle-btn {
  display: block;
  margin: 16px auto 0;
  padding: 8px 24px;
  background: transparent;
  border: 2px solid #0076F6;
  color: #0076F6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.timeline-toggle-btn:hover {
  background: #0076F6;
  color: #fff;
}

/* 车型分类卡片 */
.model-cards-section {
  margin-top: 28px;
}
.model-cards-group {
  margin-bottom: 24px;
}
.cards-group-title {
  font-size: 16px;
  font-weight: 600;
  color: #0076F6;
  margin-bottom: 12px;
  border-left: 4px solid #0076F6;
  padding-left: 10px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.cards-empty {
  color: #8a8a92;
  font-size: 13px;
  padding: 20px 0;
  text-align: center;
  background: #1a1a1e;
  border-radius: 8px;
  border: 1px dashed #3a3a42;
}
.model-card {
  background: #1a1a1e;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #2a2a30;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.25s;
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,118,246,0.15);
  border-color: rgba(0,118,246,0.2);
}
.model-card-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #202026;
}
.model-card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ccc;
}
.model-card-name {
  padding: 10px 12px 2px;
  font-size: 13px;
  font-weight: 600;
  color: #e4e4e8;
  text-align: center;
}
.model-card-code {
  padding: 0 12px 10px;
  font-size: 12px;
  color: #9a9aa2;
  text-align: center;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ========== 埋点看板 ========== */
#tracking-page {
  display: none;
  min-height: 100vh;
  background: #0e0e10;
}
.tracking-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px 40px;
}
.tracking-month-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tracking-month-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 28px;
  background: #1a1a1e;
  border: 2px solid #2a2a30;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #e4e4e8;
  transition: all 0.25s;
}
.tracking-month-btn:hover {
  border-color: #0076F6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,118,246,0.1);
}
.tracking-month-btn.active {
  background: linear-gradient(135deg, #0076F6, #3d9bff);
  border-color: #0076F6;
  color: #fff;
}
.tracking-month-count {
  font-size: 11px;
  font-weight: 400;
  color: #9a9aa2;
}
.tracking-month-btn.active .tracking-month-count {
  color: #c8d8f0;
}
.tracking-empty {
  color: #8a8a92;
  font-size: 14px;
  padding: 20px;
}
.tracking-report-view {
  background: #1a1a1e;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #2a2a30;
  min-height: 600px;
  overflow: hidden;
}
.tracking-report-view .placeholder {
  color: #707078;
  font-size: 16px;
  text-align: center;
  margin-top: 200px;
}
.tracking-report-view .placeholder .big-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}
.tracking-iframe {
  width: 100%;
  height: 78vh;
  border: none;
  display: block;
}

/* ========== 分类标准 Tab ========== */
.page-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 2px solid #2a2a30;
}
.page-tab {
  padding: 10px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #9a9aa2;
  transition: all 0.2s;
}
.page-tab:hover {
  color: #0076F6;
}
.page-tab.active {
  color: #0076F6;
  border-bottom-color: #0076F6;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

.standards-view {
  min-height: 400px;
}
.standards-view .placeholder {
  color: #707078;
  font-size: 16px;
  text-align: center;
  margin-top: 120px;
}
.standards-view .placeholder .big-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}
.std-section {
  margin-bottom: 32px;
}
.std-section-title {
  font-size: 19px;
  font-weight: 700;
  color: #0076F6;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2a2a30;
}
.std-table-wrapper {
  background: #1a1a1e;
  border-radius: 12px;
  overflow: auto;
  max-height: 70vh;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #2a2a30;
}
.std-name {
  font-weight: 600;
  color: #e4e4e8;
  white-space: nowrap;
}
.std-desc {
  font-size: 13px;
  color: #b0b0b8;
  line-height: 1.6;
  min-width: 320px;
  max-width: 480px;
}
.std-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: #0076F6;
}
.std-note {
  font-size: 12px;
  color: #9a9aa2;
  min-width: 160px;
}
.std-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.std-badge.yes {
  background: #e8f5e9;
  color: #2e7d32;
}
.std-badge.no {
  background: #f5f5f5;
  color: #8a8a92;
}

/* 常用特殊功能卡片 */
.hot-grid {
  background: #1a1a1e;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #2a2a30;
}
.hot-group-title {
  font-size: 15px;
  font-weight: 700;
  color: #0076F6;
  margin: 20px 0 12px;
  padding-left: 10px;
  border-left: 4px solid #0076F6;
}
.hot-group-title:first-child {
  margin-top: 0;
}
.hot-group-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.hot-card {
  background: #202026;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #2a2a30;
  transition: all 0.2s;
}
.hot-card:hover {
  background: #16233a;
  border-color: rgba(0,118,246,0.15);
}
.hot-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #e4e4e8;
  margin-bottom: 6px;
}
.hot-card-desc {
  font-size: 12px;
  color: #a8a8b0;
  line-height: 1.6;
  max-height: 80px;
  overflow-y: auto;
}

/* ========== 开发技术分享 ========== */
#tech-page {
  display: none;
  min-height: 100vh;
  background: #0e0e10;
}
.tech-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px 40px;
}
.tech-entry-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tech-sub-list {
  padding-top: 16px;
  border-top: 1px dashed #3a3a42;
}
.tech-sub-list .tech-entry-btn {
  padding: 10px 20px;
  min-width: 120px;
}
.tech-sub-list .tech-entry-icon {
  font-size: 18px;
}
.tech-sub-list .tech-entry-title {
  font-size: 13px;
}
.tech-sub-list .tech-entry-desc {
  font-size: 10px;
}

/* 诊断模式分组 */
#tech-sub-list.dpp-groups {
  display: block;
}
.dpp-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #0076F6;
  margin: 16px 0 8px;
  padding-left: 8px;
  border-left: 3px solid #0076F6;
}
.dpp-group-title:first-child {
  margin-top: 0;
}
.dpp-group-body {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.dpp-group-body .tech-entry-btn {
  padding: 8px 14px;
  min-width: auto;
}
.dpp-group-body .tech-entry-icon {
  font-size: 12px;
  font-weight: 700;
  color: #0076F6;
  min-width: 20px;
}
.dpp-group-body .tech-entry-title {
  font-size: 13px;
}
.tech-sub-list .dpp-btn.active .tech-entry-icon {
  color: #fff;
}
.tech-entry-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 28px;
  background: #1a1a1e;
  border: 2px solid #2a2a30;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  min-width: 150px;
}
.tech-entry-btn:hover {
  border-color: #0076F6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,118,246,0.1);
}
.tech-entry-btn.active {
  background: linear-gradient(135deg, #0076F6, #3d9bff);
  border-color: #0076F6;
}
.tech-entry-icon {
  font-size: 24px;
}
.tech-entry-title {
  font-size: 15px;
  font-weight: 600;
  color: #e4e4e8;
}
.tech-entry-btn.active .tech-entry-title {
  color: #fff;
}
.tech-entry-desc {
  font-size: 11px;
  color: #9a9aa2;
}
.tech-entry-btn.active .tech-entry-desc {
  color: #c8d8f0;
}
.tech-empty {
  color: #8a8a92;
  font-size: 14px;
  padding: 20px;
}
.tech-detail-view {
  background: #1a1a1e;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #2a2a30;
  min-height: 400px;
  padding: 20px 24px;
  overflow: hidden;
}
.tech-detail-view .placeholder {
  color: #707078;
  font-size: 16px;
  text-align: center;
  margin-top: 140px;
}
.tech-detail-view .placeholder .big-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}
.tech-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #0076F6;
  margin-bottom: 16px;
}
.tech-table-wrapper {
  overflow: auto;
  max-height: 70vh;
  border-radius: 10px;
  border: 1px solid #2a2a30;
}
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tech-table thead th {
  background: #202026;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: #e4e4e8;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 2px solid #2a2a30;
  white-space: nowrap;
}
.tech-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #2a2a30;
  color: #d4d4d8;
  line-height: 1.6;
  vertical-align: top;
}
.tech-table tbody tr:hover {
  background: #202026;
}

/* 设计模式文档视图 */
.dp-view {
  max-width: 900px;
  color: #d4d4d8;
  line-height: 1.8;
}
.dp-view h1 {
  font-size: 24px;
  color: #f2f2f4;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2a2a30;
}
.dp-view h2 {
  font-size: 19px;
  color: #0076F6;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a30;
}
.dp-view h3 {
  font-size: 16px;
  color: #e4e4e8;
  margin: 20px 0 10px;
}
.dp-view p {
  margin-bottom: 12px;
  color: #c4c4c8;
}
.dp-view ul, .dp-view ol {
  margin: 8px 0 14px 24px;
  color: #c4c4c8;
}
.dp-view li {
  margin-bottom: 6px;
}
.dp-view strong {
  color: #f2f2f4;
}
.dp-view code {
  background: #2a2a30;
  color: #7fd0ff;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
}
.dp-view pre {
  background: #0d0d10;
  border: 1px solid #2a2a30;
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 14px 0 20px;
}
.dp-view pre code {
  background: none;
  color: #c8e1ff;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
}
.dp-view table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0 20px;
  font-size: 13px;
}
.dp-view table th, .dp-view table td {
  border: 1px solid #2a2a30;
  padding: 8px 14px;
  text-align: left;
  color: #c4c4c8;
}
.dp-view table th {
  background: #202026;
  color: #f2f2f4;
  font-weight: 600;
}
.dp-view blockquote {
  border-left: 4px solid #0076F6;
  padding-left: 16px;
  color: #9a9aa2;
  margin: 12px 0;
}

/* ========== 模态框 ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-box {
  background: #1a1a1e;
  padding: 36px 40px 32px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-box h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #f2f2f4;
}
.modal-box .form-group {
  margin-bottom: 16px;
}
.modal-box .form-group label {
  font-size: 13px;
}
.modal-box .form-group input {
  padding: 10px 14px;
  font-size: 14px;
}
.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.modal-buttons .btn-primary {
  flex: 1;
  padding: 12px;
}
.modal-buttons .btn-secondary {
  flex: 1;
  padding: 12px;
  text-align: center;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .dashboard-header {
    padding: 0 16px;
  }
  .dashboard-header .logo {
    font-size: 16px;
  }
  .dashboard-header .logo .badge {
    display: none;
  }
  .dashboard-main {
    padding: 32px 16px 60px;
  }
  .dashboard-main .welcome h2 {
    font-size: 22px;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card {
    padding: 28px 20px 24px;
  }

  .search-header {
    padding: 0 12px;
    height: 56px;
  }
  .search-header .left .back-btn span {
    display: none;
  }
  .search-header .left .page-title {
    font-size: 14px;
  }
  .search-header .right .user-name {
    font-size: 12px;
  }
  .search-header .right .change-pwd-btn {
    padding: 4px 12px;
    font-size: 12px;
  }
  .search-header .right .logout-btn {
    padding: 4px 12px;
    font-size: 12px;
  }

  .search-container {
    padding: 12px 12px 24px;
  }
  .search-bar {
    flex-direction: column;
  }
  .search-bar .btn-primary {
    width: 100%;
  }
  .filters {
    gap: 8px;
  }
  .filters select {
    flex: 1;
    min-width: 0;
  }
  .content-wrapper {
    flex-direction: column;
    min-height: auto;
  }
  .function-list {
    width: 100%;
    min-width: auto;
    max-height: 300px;
  }
  .document-view {
    max-height: none;
    padding: 20px 16px;
  }
  .document-view .placeholder {
    margin-top: 60px;
  }

  .history-container {
    padding: 12px 12px 24px;
  }
  .history-toolbar {
    flex-direction: column;
    gap: 8px;
  }
  .history-toolbar input {
    width: 100%;
  }
  .history-table-wrapper {
    max-height: 65vh;
  }
  .timeline::before {
    left: 16px;
  }
  .timeline-year {
    width: 44px;
    min-width: 44px;
    font-size: 13px;
  }
  .timeline-item {
    gap: 8px;
  }
  .timeline-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    margin-top: 4px;
  }
  .brand-history-section {
    padding: 16px 12px;
  }
  .model-detail-grid {
    grid-template-columns: 1fr;
  }
  .model-detail-box {
    max-width: 95vw;
    padding: 24px 16px 20px;
  }
  .tracking-container {
    padding: 12px 12px 24px;
  }
  .tracking-month-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
  .tracking-iframe {
    height: 70vh;
  }
  .page-tabs {
    gap: 4px;
  }
  .page-tab {
    padding: 8px 14px;
    font-size: 13px;
  }
  .standards-view .placeholder {
    margin-top: 80px;
  }
  .hot-grid {
    padding: 14px 12px;
  }
  .hot-group-body {
    grid-template-columns: 1fr;
  }
  .tech-container {
    padding: 12px 12px 24px;
  }
  .tech-entry-btn {
    padding: 12px 16px;
    min-width: 100px;
  }
  .tech-detail-view {
    padding: 14px 12px;
  }

  .login-box {
    padding: 32px 24px 28px;
    margin: 16px;
  }
  .modal-box {
    padding: 28px 20px 24px;
  }
}

/* ===== 暗色主题补充 ===== */
.modal-box .form-group label { color: #d4d4d8; }
.modal-box .form-group input {
  background: #202026;
  color: #e4e4e8;
  border-color: #2a2a30;
}
.modal-box .form-group input:focus {
  background: #26262c;
  border-color: #0076F6;
  box-shadow: 0 0 0 4px rgba(0,118,246,0.15);
}
.modal-box .btn-secondary { background: #2a2a30; color: #d4d4d8; }
.modal-box .btn-secondary:hover { background: #33333a; }
.search-bar input, .history-toolbar input { color: #e4e4e8; }
.search-bar input::placeholder, .history-toolbar input::placeholder { color: #707078; }
.document-view pre { background: #0d0d10; color: #e8ecf1; }
.card .card-icon { display: inline-flex; align-items: center; justify-content: center; }
.card .card-icon .ci { display: block; line-height: 1; }
.card:nth-child(2) .card-icon .ci,
.card:nth-child(3) .card-icon .ci,
.card:nth-child(4) .card-icon .ci { filter: grayscale(1); }
