/* ============================================
   工鼎科技 - MMD工业风格网站样式
   基于 MMD Group (mmdsizers.com) 设计语言
   ============================================ */

/* --- 字体引入 --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* MMD 深色主题 */
  --bg-primary: #0c1015;
  --bg-secondary: #11161d;
  --bg-tertiary: #161c26;
  --bg-card: #1a1f2e;
  --bg-card-hover: #202637;

  /* 文字颜色 */
  --text-primary: #ffffff;
  --text-secondary: #b0b8c1;
  --text-tertiary: #6b7380;
  --text-inverse: #0c1015;

  /* MMD 橙色强调 */
  --accent: #f48220;
  --accent-light: #f59a47;
  --accent-dark: #d4701a;
  --accent-glow: rgba(244, 130, 32, 0.15);

  /* 辅助色 */
  --border: #2a3040;
  --border-light: #1e2530;
  --success: #2ecc71;
  --warning: #f39c12;
  --error: #e74c3c;
  --info: #3498db;

  /* 间距 */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* 阴影 */
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(244, 130, 32, 0.1);

  /* 过渡 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 全局重置 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 条纹分隔线 --- */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 50px;
  border-radius: 2px;
}

/* ============================================
   导航栏 - MMD风格固定深色导航
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(12, 16, 21, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(12, 16, 21, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 2px 12px rgba(244, 130, 32, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(244, 130, 32, 0.08);
}

.nav-links a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 8px;
}

.nav-links a.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(244, 130, 32, 0.3);
}

/* 移动端菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 1px;
}

/* ============================================
   Hero 横幅 - MMD全屏风格
   ============================================ */
.hero {
  margin-top: 72px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(244, 130, 32, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(26, 82, 118, 0.06) 0%, transparent 50%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 40px 0;
}

.hero-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(244, 130, 32, 0.1);
  border: 1px solid rgba(244, 130, 32, 0.2);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-content h1 .highlight {
  color: var(--accent);
  position: relative;
}

.hero-content h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0.3;
  border-radius: 2px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(244, 130, 32, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(244, 130, 32, 0.05);
}

.btn-white {
  background: #fff;
  color: var(--bg-primary);
}

.btn-white:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
}

/* Hero 向下滚动指示 */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-scroll .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ============================================
   通用区块
   ============================================ */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-darker {
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-label {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(244, 130, 32, 0.08);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   产品卡片 - MMD风格三列网格
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 130, 32, 0.3);
  box-shadow: var(--shadow-hover), var(--shadow-glow);
}

.product-card .card-img {
  height: 240px;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
}

.product-card .card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 16, 21, 0.8), transparent 60%);
}

.product-card .card-body {
  padding: 28px;
  position: relative;
}

.product-card .card-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.product-card .card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-card .card-body .card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.product-card .card-body .tag {
  padding: 4px 12px;
  background: rgba(244, 130, 32, 0.08);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid rgba(244, 130, 32, 0.15);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.card-link:hover { gap: 12px; color: var(--accent-light); }

/* ============================================
   数据统计 - 大数字展示
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.stat-item:hover {
  border-color: rgba(244, 130, 32, 0.2);
  transform: translateY(-2px);
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-item .stat-number span {
  font-size: 1.5rem;
  font-weight: 600;
}

.stat-item .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   特性展示
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  padding: 35px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: rgba(244, 130, 32, 0.2);
  transform: translateY(-3px);
}

.feature-item .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(244, 130, 32, 0.15), rgba(244, 130, 32, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   CTA 行动号召
   ============================================ */
.cta-section {
  background: var(--bg-secondary);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(244, 130, 32, 0.4),
    transparent
  );
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-section .highlight-cta {
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  margin-top: 40px;
}

.cta-section .highlight-cta h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section .highlight-cta p {
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 28px;
}

/* ============================================
   页脚 - MMD风格深色页脚
   ============================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* ============================================
   产品详情页样式
   ============================================ */
.page-hero {
  margin-top: 72px;
  background: var(--bg-secondary);
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.page-hero .breadcrumb a { color: var(--accent); }
.page-hero .breadcrumb a:hover { color: var(--accent-light); }

.page-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.page-hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* 产品详情区块 */
.product-detail {
  padding: 80px 0;
}

.product-detail .detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-detail .detail-image {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}

.product-detail .detail-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(244, 130, 32, 0.05), transparent 70%);
}

.product-detail .detail-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.product-detail .detail-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--accent);
}

.product-detail .detail-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.product-detail .detail-info ul {
  margin: 12px 0;
}

.product-detail .detail-info ul li {
  padding: 7px 0 7px 24px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.product-detail .detail-info ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}

/* 技术参数表 */
.spec-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.93rem;
}

.spec-table thead {
  background: var(--bg-card);
}

.spec-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.spec-table td {
  padding: 14px 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.spec-table tr:last-child td { border-bottom: none; }

.spec-table tbody tr {
  transition: var(--transition);
}

.spec-table tbody tr:hover {
  background: rgba(244, 130, 32, 0.03);
}

/* 引用/案例块 */
.case-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 24px 0;
}

.case-block .case-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.case-block .case-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.case-block .case-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.case-block .case-stat {
  text-align: center;
}

.case-block .case-stat .val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.case-block .case-stat .lbl {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ============================================
   资料商城页
   ============================================ */
.store-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.store-filter .filter-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.store-filter .filter-btn:hover {
  border-color: rgba(244, 130, 32, 0.4);
  color: var(--text-primary);
}

.store-filter .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.material-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.material-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 130, 32, 0.2);
  box-shadow: var(--shadow-hover);
}

.material-card .material-img {
  height: 160px;
  background: linear-gradient(135deg, rgba(244, 130, 32, 0.08), rgba(244, 130, 32, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

.material-card .material-body {
  padding: 20px;
}

.material-card .material-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.material-card .material-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.material-card .material-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.material-card .price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.material-card .price .unit {
  font-size: 0.75rem;
  font-weight: 400;
}

.material-card .btn-buy {
  padding: 7px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.material-card .btn-buy:hover {
  background: var(--accent-light);
}

/* ============================================
   聊天浮窗 - MMD风格
   ============================================ */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(244, 130, 32, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(244, 130, 32, 0.4);
}

.chat-box {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  max-height: 540px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-box.open { display: flex; }

.chat-box-header {
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-box-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-box-header .chat-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.chat-box-header .chat-close:hover {
  color: var(--accent);
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease;
}

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

.chat-msg.bot {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-form {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid var(--border-light);
}

.chat-form input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.chat-form input:focus {
  border-color: var(--accent);
}

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

.chat-form button {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.chat-form button:hover {
  background: var(--accent-light);
}

.chat-contact-form {
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.chat-contact-form input,
.chat-contact-form textarea {
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  resize: none;
  transition: var(--transition);
}

.chat-contact-form input:focus,
.chat-contact-form textarea:focus {
  border-color: var(--accent);
}

.chat-contact-form input::placeholder,
.chat-contact-form textarea::placeholder {
  color: var(--text-tertiary);
}

.chat-contact-form button {
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.chat-contact-form button:hover {
  background: var(--accent-light);
}

/* ============================================
   动画效果
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.5rem; }
  .product-detail .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(12, 16, 21, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links.show { display: flex; }
  .menu-toggle { display: flex; }

  .hero-content h1 { font-size: 2rem; }
  .hero { min-height: auto; }

  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: repeat(2, 1fr); }

  .chat-box {
    width: calc(100vw - 56px);
    right: -12px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-header h2 { font-size: 1.8rem; }
  .page-hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .store-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero-content h1 { font-size: 1.7rem; }
}
