/* ===== 全局重置与基础样式 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: #222;
  background: #f5f7fa;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

a {
  color: #b8860b;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #d4a017;
}

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

ul, ol {
  list-style: none;
  padding-left: 0;
}

/* ===== 暗色模式 ===== */
body.dark-mode {
  background: #0f0f1a;
  color: #d0d0d8;
}

body.dark-mode a {
  color: #f0c040;
}

body.dark-mode a:hover {
  color: #ffd966;
}

/* ===== 辅助类 ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 滚动动画（Intersection Observer） ===== */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 头部导航 ===== */
#site-header {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a3e 50%, #2a1a3e 100%);
  color: #fff;
  padding: 0.6rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(13, 13, 26, 0.92);
  border-bottom: 1px solid rgba(240, 192, 64, 0.15);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}

#site-header.sticky {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  background: rgba(10, 10, 22, 0.96);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

nav a[aria-label="皇冠体育官网首页"] {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.3s ease;
}

nav a[aria-label="皇冠体育官网首页"]:hover {
  transform: scale(1.03);
}

nav ul {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

nav ul li a {
  color: #e0d8c0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: #f0c040;
  background: rgba(240, 192, 64, 0.12);
}

nav ul li a[aria-current="page"] {
  color: #f0c040;
  background: rgba(240, 192, 64, 0.15);
}

#nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #f0c040;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

#nav-toggle:hover {
  background: rgba(240, 192, 64, 0.15);
}

/* 深色/搜索按钮 */
#dark-mode-toggle,
#search-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(240, 192, 64, 0.2);
  color: #f0c040;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  line-height: 1;
}

#dark-mode-toggle:hover,
#search-toggle:hover {
  background: rgba(240, 192, 64, 0.2);
  transform: scale(1.08);
}

/* 搜索区域 */
#search-simulation {
  background: rgba(13, 13, 26, 0.95);
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid rgba(240, 192, 64, 0.15);
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 0 0 16px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#search-simulation form {
  display: flex;
  gap: 0.6rem;
  max-width: 600px;
  margin: 0 auto;
}

#search-simulation input {
  flex: 1;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

#search-simulation input:focus {
  border-color: #f0c040;
  box-shadow: 0 0 20px rgba(240, 192, 64, 0.15);
}

#search-simulation input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#search-simulation button {
  padding: 0.7rem 1.8rem;
  background: linear-gradient(135deg, #f0c040, #d4a017);
  border: none;
  border-radius: 30px;
  color: #1a1a2e;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

#search-simulation button:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 15px rgba(240, 192, 64, 0.4);
}

/* ===== 主内容区 ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ===== 通用卡片/区块样式 ===== */
section {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

section:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

body.dark-mode section {
  background: rgba(30, 30, 50, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(240, 192, 64, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode section:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

h1, h2, h3 {
  color: #1a1a2e;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #f0c040;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #f0c040, #d4a017);
  border-radius: 4px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: #444;
}

body.dark-mode p {
  color: #b0b0c0;
}

/* ===== Hero 区域（渐变Banner） ===== */
#hero {
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  border-radius: 24px;
  min-height: 380px;
}

#hero .hero-slider {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a3e 30%, #2d1a3e 60%, #1a2a2a 100%);
  overflow: hidden;
}

#hero .hero-slider::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(240, 192, 64, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2%, -2%) rotate(3deg); }
}

.slide {
  display: none;
  text-align: center;
  padding: 3rem 2.5rem;
  position: relative;
  z-index: 2;
  animation: slideFadeIn 0.6s ease forwards;
}

.slide.active {
  display: block;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slide h1,
.slide h2 {
  color: #fff;
  font-size: 2.6rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.8rem;
}

.slide h2::after {
  background: linear-gradient(90deg, #f0c040, #ffd966);
  width: 80px;
  left: 50%;
  transform: translateX(-50%);
}

.slide p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, #f0c040, #d4a017);
  color: #1a1a2e;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(240, 192, 64, 0.5);
  color: #1a1a2e;
}

/* 轮播按钮 */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 2.2rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(240, 192, 64, 0.25);
  border-color: #f0c040;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dots button[aria-selected="true"] {
  background: #f0c040;
  border-color: #f0c040;
  box-shadow: 0 0 12px rgba(240, 192, 64, 0.5);
}

.slider-dots button:hover {
  border-color: #f0c040;
  transform: scale(1.2);
}

/* ===== About 区域 ===== */
#about {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(245, 240, 230, 0.7));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.dark-mode #about {
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.8), rgba(40, 35, 50, 0.8));
}

.team-highlight {
  margin: 1.5rem 0;
  padding: 1.2rem 1.8rem;
  background: rgba(240, 192, 64, 0.06);
  border-radius: 16px;
  border-left: 4px solid #f0c040;
}

.team-highlight ul li {
  padding: 0.4rem 0;
  font-size: 0.98rem;
}

.team-highlight strong {
  color: #b8860b;
}

body.dark-mode .team-highlight strong {
  color: #f0c040;
}

address {
  font-style: normal;
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  font-size: 0.95rem;
}

body.dark-mode address {
  background: rgba(255, 255, 255, 0.04);
}

address a {
  font-weight: 600;
}

/* ===== 产品网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.product-grid article {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1.8rem 1.5rem;
  border-radius: 18px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.product-grid article:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(240, 192, 64, 0.3);
  background: rgba(255, 255, 255, 0.8);
}

body.dark-mode .product-grid article {
  background: rgba(40, 40, 65, 0.6);
  border-color: rgba(240, 192, 64, 0.08);
}

body.dark-mode .product-grid article:hover {
  background: rgba(50, 50, 80, 0.8);
  border-color: rgba(240, 192, 64, 0.25);
}

.product-grid article h3 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
}

.product-grid article h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #f0c040, #d4a017);
  border-radius: 4px;
}

/* ===== 服务列表 ===== */
#services ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

#services ul li {
  background: rgba(240, 192, 64, 0.06);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-weight: 500;
  border-left: 3px solid #f0c040;
  transition: all 0.3s ease;
}

#services ul li:hover {
  background: rgba(240, 192, 64, 0.12);
  transform: translateX(4px);
}

/* ===== Features ===== */
#features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

#features ul li {
  padding: 1rem 1.3rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-weight: 500;
}

body.dark-mode #features ul li {
  background: rgba(40, 40, 65, 0.4);
  border-color: rgba(240, 192, 64, 0.08);
}

#features ul li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(240, 192, 64, 0.2);
}

/* ===== Testimonials ===== */
#testimonials blockquote {
  background: rgba(240, 192, 64, 0.05);
  padding: 1.2rem 1.8rem;
  border-radius: 16px;
  border-left: 4px solid #f0c040;
  margin: 1rem 0;
  font-style: italic;
  transition: all 0.3s ease;
}

#testimonials blockquote:hover {
  background: rgba(240, 192, 64, 0.1);
  transform: translateX(4px);
}

#testimonials blockquote p {
  margin-bottom: 0;
}

/* ===== 资讯/Insights ===== */
#insights article {
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

body.dark-mode #insights article {
  background: rgba(40, 40, 65, 0.4);
  border-color: rgba(240, 192, 64, 0.06);
}

#insights article:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

#insights time {
  display: inline-block;
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
  padding: 0.2rem 0.8rem;
  background: rgba(240, 192, 64, 0.1);
  border-radius: 20px;
}

body.dark-mode #insights time {
  color: #aaa;
  background: rgba(240, 192, 64, 0.08);
}

/* ===== FAQ 手风琴 ===== */
.faq-item {
  margin-bottom: 0.6rem;
  border-radius: 14px;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: rgba(240, 192, 64, 0.06);
  border: 1px solid rgba(240, 192, 64, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item button::after {
  content: '+';
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  color: #f0c040;
}

.faq-item button[aria-expanded="true"] {
  background: rgba(240, 192, 64, 0.15);
  border-color: #f0c040;
  border-radius: 14px 14px 0 0;
}

.faq-item button[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-item button:hover {
  background: rgba(240, 192, 64, 0.12);
}

body.dark-mode .faq-item button {
  color: #e0d8c0;
  background: rgba(240, 192, 64, 0.04);
  border-color: rgba(240, 192, 64, 0.08);
}

body.dark-mode .faq-item button[aria-expanded="true"] {
  background: rgba(240, 192, 64, 0.12);
  border-color: #f0c040;
}

.faq-item div[hidden] {
  display: none;
}

.faq-item div:not([hidden]) {
  display: block;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(240, 192, 64, 0.1);
  border-top: none;
  border-radius: 0 0 14px 14px;
  animation: faqSlide 0.3s ease;
}

body.dark-mode .faq-item div:not([hidden]) {
  background: rgba(40, 40, 65, 0.3);
}

@keyframes faqSlide {
  from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
  to { opacity: 1; max-height: 300px; }
}

/* ===== HowTo ===== */
#howto ol {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

#howto ol li {
  counter-increment: step;
  padding: 1.2rem 1.5rem;
  background: rgba(240, 192, 64, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(240, 192, 64, 0.08);
  position: relative;
  padding-left: 3.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f0c040, #d4a017);
  color: #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

#howto ol li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  background: rgba(240, 192, 64, 0.08);
}

body.dark-mode #howto ol li {
  background: rgba(240, 192, 64, 0.03);
  border-color: rgba(240, 192, 64, 0.06);
}

/* ===== Contact ===== */
#contact address {
  background: rgba(240, 192, 64, 0.04);
  border: 1px solid rgba(240, 192, 64, 0.08);
}

/* ===== 页脚 ===== */
footer {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a3e 100%);
  color: #b0b0c0;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid rgba(240, 192, 64, 0.08);
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.2rem;
  margin-bottom: 1.2rem;
}

footer nav ul li a {
  color: #c0b898;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

footer nav ul li a:hover {
  color: #f0c040;
  background: rgba(240, 192, 64, 0.06);
}

footer p {
  font-size: 0.85rem;
  color: #8888a0;
  margin-bottom: 0.3rem;
}

/* ===== 返回顶部 ===== */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #1a1a3e, #0d0d1a);
  color: #f0c040;
  border: 1px solid rgba(240, 192, 64, 0.2);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 999;
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 30px rgba(240, 192, 64, 0.25);
  border-color: #f0c040;
  background: linear-gradient(135deg, #2a2a5e, #1a1a3e);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .slide h1, .slide h2 { font-size: 2rem; }
  section { padding: 1.5rem; }
}

@media (max-width: 768px) {
  #nav-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.8rem;
    gap: 0.2rem;
    background: rgba(13, 13, 26, 0.95);
    padding: 0.8rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  nav ul.open {
    display: flex;
  }

  nav ul li a {
    padding: 0.7rem 1rem;
    border-radius: 10px;
  }

  #site-header {
    padding: 0.5rem 1rem;
  }

  main {
    padding: 0.8rem;
  }

  section {
    margin: 1.5rem 0;
    padding: 1.2rem;
    border-radius: 16px;
  }

  #hero {
    border-radius: 16px;
  }

  #hero .hero-slider {
    min-height: 300px;
    border-radius: 16px;
  }

  .slide {
    padding: 2rem 1.2rem;
  }

  .slide h1, .slide h2 {
    font-size: 1.6rem;
  }

  .slide p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
  }

  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }

  .product-grid {
    grid-template-columns: 1fr;
  }

  #services ul {
    grid-template-columns: 1fr;
  }

  #features ul {
    grid-template-columns: 1fr;
  }

  #howto ol {
    grid-template-columns: 1fr;
  }

  #back-to-top {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    bottom: 1.2rem;
    right: 1.2rem;
  }

  footer nav ul {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  .slide h1, .slide h2 { font-size: 1.4rem; }
  section { padding: 1rem; }
  .product-grid article { padding: 1.2rem; }
  #search-simulation form { flex-direction: column; }
  #search-simulation button { width: 100%; }
}

/* ===== 暗色模式微调 ===== */
body.dark-mode .btn-primary {
  color: #1a1a2e;
}

body.dark-mode .btn-primary:hover {
  color: #1a1a2e;
}

body.dark-mode .team-highlight {
  border-left-color: #f0c040;
}

body.dark-mode address {
  border-color: rgba(240, 192, 64, 0.08);
}

body.dark-mode #services ul li {
  border-left-color: #f0c040;
}

/* ===== 打印样式 ===== */
@media print {
  #site-header,
  #back-to-top,
  .slider-prev,
  .slider-next,
  .slider-dots,
  #dark-mode-toggle,
  #search-toggle,
  #search-simulation {
    display: none !important;
  }

  section {
    opacity: 1 !important;
    transform: none !important;
    break-inside: avoid;
    background: #fff !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  body {
    color: #000 !important;
    background: #fff !important;
  }
}