/* ============================================
   米车 AI 萌宠工坊 - 主样式表
   主色调：小米橙 #FF6900 + 深空灰 #1A1A2E
   设计风格：简约轻奢
   ============================================ */

:root {
  --mi-orange: #FF6900;
  --mi-orange-dark: #E55D00;
  --mi-orange-light: #FF8C3A;
  --deep-gray: #1A1A2E;
  --deep-gray2: #2D2D3F;
  --bg-light: #F5F5F7;
  --bg-white: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #666680;
  --text-light: #9999AA;
  --border-color: #E8E8EF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-orange: 0 4px 16px rgba(255,105,0,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
}

/* 基础重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== 导航栏 ==================== */
.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--mi-orange), var(--mi-orange-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--mi-orange), var(--mi-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--mi-orange);
  background: rgba(255,105,0,0.06);
}

.nav-links a.active {
  font-weight: 600;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  color: var(--text-primary);
  padding: 8px;
}

/* ==================== 页面标题区域 ==================== */
.page-header {
  background: linear-gradient(135deg, var(--deep-gray), var(--deep-gray2));
  color: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,105,0,0.15), transparent 50%);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

/* ==================== 首页 Hero 轮播 ==================== */
.hero-section {
  background: var(--bg-white);
  padding: 40px 0;
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 21/9;
  min-height: 320px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.carousel-slide .banner-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.carousel-slide.has-banner-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.carousel-slide .slide-icon,
.carousel-slide .slide-content {
  position: relative;
  z-index: 2;
}

.carousel-slide .slide-icon {
  font-size: 80px;
  margin-right: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.carousel-slide .slide-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.carousel-slide .slide-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.carousel-slide .slide-btn {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 24px;
  font-weight: 500;
  transition: var(--transition);
}

.carousel-slide .slide-btn:hover {
  background: rgba(255,255,255,0.35);
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.4);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.carousel-dot.active {
  width: 28px;
  background: #fff;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
}

.carousel-arrow:hover {
  background: rgba(255,255,255,0.4);
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

/* ==================== 分区标题 ==================== */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--mi-orange);
  border-radius: 2px;
}

.section-more {
  color: var(--mi-orange);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.section-more:hover {
  gap: 8px;
}

/* ==================== 车型分类标签 ==================== */
.model-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.model-tag {
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.model-tag:hover,
.model-tag.active {
  border-color: var(--mi-orange);
  color: var(--mi-orange);
  background: rgba(255,105,0,0.04);
}

.model-tag.active {
  box-shadow: var(--shadow-orange);
}

/* ==================== 图片网格 ==================== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.image-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.image-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.image-card .card-img {
  aspect-ratio: 793 / 992;
  background: linear-gradient(135deg, #F0F0F5, #E0E0EB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.image-card .card-img.has-image {
  font-size: 0;
}

.image-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card .card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--mi-orange);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.image-card .card-body {
  padding: 16px;
}

.image-card .card-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.image-card .card-body p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.image-card .card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.image-card .card-model {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255,105,0,0.08);
  color: var(--mi-orange);
  font-weight: 500;
}

.image-card .card-download {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--mi-orange);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.image-card .card-download:hover {
  color: var(--mi-orange-dark);
}

/* ==================== 视频卡片 ==================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-card .video-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2D2D3F, #1A1A2E);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.video-card .video-thumb .play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--mi-orange);
  z-index: 1;
  transition: var(--transition);
}

.video-card .video-thumb:hover .play-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255,105,0,0.4);
}

.video-card .video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.video-card .video-body {
  padding: 16px;
}

.video-card .video-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.video-card .video-body p {
  font-size: 13px;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== 搜索栏 ==================== */
.search-bar {
  position: relative;
  margin: 0 20px;
  flex: 0 1 300px;
}

.search-bar input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  border: 2px solid var(--border-color);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  background: var(--bg-light);
}

.search-bar input:focus {
  border-color: var(--mi-orange);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(255,105,0,0.08);
}

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-light);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 999;
  display: none;
}

.search-results.show { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover {
  background: rgba(255,105,0,0.04);
}

.search-result-item .sr-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 8px;
  flex-shrink: 0;
}

.search-result-item .sr-info h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.search-result-item .sr-info span {
  font-size: 12px;
  color: var(--text-light);
}

.search-no-result {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

@media (max-width: 768px) {
  .search-bar {
    flex: 0 1 auto;
    margin: 0 12px;
    width: 140px;
  }
}

/* ==================== 分类标签筛选 ==================== */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-light);
  color: var(--text-secondary);
  border: none;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--mi-orange);
  color: #fff;
}

/* ==================== 教程板块 ==================== */
.tutorial-steps {
  display: grid;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.tutorial-step {
  display: flex;
  gap: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tutorial-step:hover {
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mi-orange), var(--mi-orange-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-tip {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255,105,0,0.06);
  border-radius: 8px;
  font-size: 13px;
  color: var(--mi-orange);
  font-weight: 500;
}

/* ==================== 模态框/弹窗 ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: none;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(0,0,0,0.7);
}

.modal-content video {
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-info {
  padding: 24px;
}

.modal-info h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==================== 底部 ==================== */
.footer {
  background: var(--deep-gray);
  color: rgba(255,255,255,0.6);
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--mi-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom .disclaimer {
  margin-top: 8px;
  color: rgba(255,255,255,0.25);
  font-size: 12px;
}

/* ==================== 占位图样式 ==================== */
.placeholder-pet {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-light);
}

.placeholder-pet .pet-emoji {
  font-size: 64px;
  animation: bounce 2s infinite;
}

.placeholder-pet .pet-text {
  font-size: 14px;
  color: var(--text-light);
}

.placeholder-video {
  font-size: 48px;
  color: rgba(255,255,255,0.3);
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==================== 提示消息 ==================== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 28px;
  border-radius: 24px;
  color: #fff;
  font-weight: 500;
  z-index: 9999;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-md);
}

.toast.success { background: #07C160; }
.toast.error { background: #FA5151; }
.toast.info { background: var(--mi-orange); }

/* ==================== 下载弹窗 ==================== */
.download-popup {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  position: relative;
}

.download-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.download-popup-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.download-popup-hint {
  padding: 8px 24px;
  font-size: 13px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.download-list {
  padding: 8px 16px;
  max-height: 360px;
  overflow-y: auto;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.download-item:last-child {
  border-bottom: none;
}

.download-item:hover {
  background: var(--bg-light);
}

.download-item-preview {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-item-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-item-info {
  flex: 1;
  min-width: 0;
}

.download-item-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.download-item-filename {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-item-btn {
  padding: 8px 16px;
  background: var(--mi-orange);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.download-item-btn:hover {
  background: var(--mi-orange-dark);
}

.download-popup-actions {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-color);
}

.download-all-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--mi-orange), var(--mi-orange-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.download-all-btn:hover {
  box-shadow: 0 8px 24px rgba(255,105,0,0.3);
  transform: translateY(-1px);
}

/* ==================== 浮动反馈按钮 ==================== */
.feedback-float-btn {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--mi-orange), var(--mi-orange-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(255,105,0,0.35);
  transition: all 0.3s ease;
  border: none;
  user-select: none;
}

.feedback-float-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 28px rgba(255,105,0,0.5);
}

.feedback-float-btn .feedback-float-label {
  position: absolute;
  right: 68px;
  background: var(--deep-gray);
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feedback-float-btn:hover .feedback-float-label {
  opacity: 1;
}

/* ==================== 反馈模态框 ==================== */
.feedback-modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  position: relative;
}

.feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.feedback-modal-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.feedback-form {
  padding: 20px 24px 24px;
}

.feedback-form .form-group {
  margin-bottom: 16px;
}

.feedback-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feedback-form .form-group textarea,
.feedback-form .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
  resize: vertical;
}

.feedback-form .form-group textarea:focus,
.feedback-form .form-group input:focus {
  border-color: var(--mi-orange);
  box-shadow: 0 0 0 3px rgba(255,105,0,0.08);
}

.feedback-type-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-type-option {
  display: block;
  cursor: pointer;
}

.feedback-type-option input[type="radio"] {
  display: none;
}

.fb-type-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feedback-type-option.selected .fb-type-content {
  border-color: var(--mi-orange);
  background: rgba(255,105,0,0.04);
}

.feedback-type-option:hover .fb-type-content {
  border-color: var(--mi-orange-light);
}

.fb-type-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.fb-type-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fb-type-text strong {
  font-size: 14px;
  color: var(--text-primary);
}

.fb-type-text small {
  font-size: 12px;
  color: var(--text-light);
}

.feedback-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--mi-orange), var(--mi-orange-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.feedback-submit-btn:hover {
  box-shadow: 0 8px 24px rgba(255,105,0,0.3);
  transform: translateY(-1px);
}

/* ==================== 反馈图片上传区 ==================== */
.feedback-upload-area {
  position: relative;
}

.feedback-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-light);
}

.feedback-upload-box:hover {
  border-color: var(--mi-orange);
  background: rgba(255,105,0,0.03);
}

.feedback-upload-icon {
  font-size: 32px;
}

.feedback-upload-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.feedback-upload-hint {
  font-size: 11px;
  color: var(--text-light);
}

.feedback-upload-preview {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--mi-orange);
}

.feedback-upload-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  background: #f5f5f5;
  display: block;
}

.feedback-upload-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.feedback-upload-remove:hover {
  background: rgba(250,81,81,0.85);
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .navbar .container { height: 56px; }
  
  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.open {
    transform: translateY(0);
  }
  
  .nav-links a {
    text-align: center;
    padding: 12px;
    width: 100%;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .carousel-slide {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }
  
  .carousel-slide .slide-icon {
    font-size: 56px;
    margin-right: 0;
    margin-bottom: 16px;
  }
  
  .carousel-slide .slide-content h2 {
    font-size: 22px;
  }
  
  .hero-carousel {
    aspect-ratio: auto;
    min-height: 240px;
  }
  
  .page-header h1 { font-size: 26px; }
  
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .tutorial-step {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .section { padding: 40px 0; }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .model-tags {
    gap: 8px;
  }
  
  .model-tag {
    padding: 8px 16px;
    font-size: 13px;
  }

  .feedback-float-btn {
    right: 12px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .feedback-float-btn .feedback-float-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .section-title { font-size: 20px; }
  
  .image-card .card-body h3 { font-size: 14px; }
  
  .image-card .card-body p { font-size: 12px; }
}
