/* ============================================
   加拿大28 精密机械工坊 - 维多利亚蒸汽朋克风格
   全站主样式表
   ============================================ */

/* === 字体引入 (本地化) === */
@font-face {
  font-family: 'Ultra';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Ultra-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/RobotoSlab-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/RobotoSlab-Bold.woff2') format('woff2');
}

/* === CSS变量 === */
:root {
  --brass: #b5a642;
  --brass-light: #d4c080;
  --brass-dark: #8b6914;
  --leather: #8b4513;
  --leather-light: #a0522d;
  --leather-dark: #5c2e0a;
  --steam-white: #f5f5f5;
  --gauge-blue: #007bff;
  --bg-dark: #1a0e05;
  --bg-panel: #2a1a0a;
  --bg-module: #3a2a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #d4c080;
  --rivet-color: #b5a642;
  --danger: #cc0000;
  --font-title: 'Ultra', 'Georgia', 'SimSun', serif;
  --font-body: 'Roboto Slab', 'Georgia', 'SimSun', serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(181,166,66,0.05) 39px, rgba(181,166,66,0.05) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(181,166,66,0.05) 39px, rgba(181,166,66,0.05) 40px);
}

/* === 干扰标签隐藏 === */
.jammer-block {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* === 通用容器 === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === 链接 === */
a {
  color: var(--brass);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
a:hover {
  color: var(--brass-light);
  text-shadow: 0 0 8px rgba(181,166,66,0.5);
}

/* === 标题 === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--brass);
  line-height: 1.4;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

/* === 图片 === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   导航栏 (非Sticky)
   ============================================ */
.main-nav {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--leather-dark) 100%);
  border-bottom: 3px solid var(--brass);
  position: relative;
  z-index: 100;
}
.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 50px;
  width: auto;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
}
.nav-links li {
  position: relative;
}
.nav-links li::after {
  content: '⚙';
  color: var(--brass-dark);
  font-size: 0.7rem;
  padding: 0 8px;
}
.nav-links li:last-child::after {
  content: '';
}
.nav-links a {
  color: var(--steam-white);
  font-size: 0.95rem;
  padding: 8px 4px;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brass);
  border-bottom-color: var(--brass);
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--brass);
  color: var(--brass);
  font-size: 1.5rem;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}

/* === 面包屑 === */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.breadcrumb a {
  color: var(--brass);
}
.breadcrumb span {
  margin: 0 8px;
  color: var(--brass-dark);
}

/* ============================================
   仪表盘模块通用样式
   ============================================ */
.module-panel {
  background: var(--bg-panel);
  border: 2px solid var(--brass);
  border-radius: 8px;
  margin: 30px 0;
  padding: 40px 30px;
  position: relative;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.5),
    0 4px 20px rgba(0,0,0,0.5);
}
.module-panel::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid var(--brass-dark);
  border-radius: 4px;
  pointer-events: none;
}

/* 铆钉装饰 */
.module-panel::after {
  content: '● ● ● ●';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--brass);
  font-size: 0.6rem;
  letter-spacing: 20px;
  text-shadow: 0 0 4px rgba(181,166,66,0.5);
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}
.section-title h2 {
  font-size: 1.8rem;
  color: var(--brass);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  position: relative;
  display: inline-block;
}
.section-title h2::before,
.section-title h2::after {
  content: '⚙';
  margin: 0 15px;
  font-size: 1.2rem;
  vertical-align: middle;
}
.section-title p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 10px;
}

/* ============================================
   模块1: Hero视频区
   ============================================ */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}
.hero-overlay h1 {
  font-size: 3rem;
  color: var(--steam-white);
  text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 20px rgba(181,166,66,0.3);
  margin-bottom: 20px;
}
.hero-overlay p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* CTA按钮 */
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dark) 100%);
  color: var(--bg-dark);
  font-family: var(--font-title);
  font-size: 1.2rem;
  padding: 15px 40px;
  border: 2px solid var(--brass-light);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(181,166,66,0.3);
  position: relative;
  overflow: hidden;
}
.cta-btn:hover {
  background: linear-gradient(135deg, var(--brass-light) 0%, var(--brass) 100%);
  color: var(--bg-dark);
  box-shadow: 0 6px 25px rgba(181,166,66,0.5);
  transform: translateY(-2px);
}
.cta-btn::after {
  content: '⚙';
  margin-left: 10px;
  animation: spin-slow 4s linear infinite;
  display: inline-block;
}

/* ============================================
   模块2: 总工程师手记
   ============================================ */
.notebook-module {
  background: url('../images/notebook-bg.webp') center/cover no-repeat;
  color: #3a2a0a;
  border: 3px solid var(--leather);
  border-radius: 4px;
  padding: 50px 40px;
  margin: 30px 0;
  position: relative;
}
.notebook-module h2 {
  color: var(--leather-dark);
  border-bottom: 2px solid var(--leather);
  padding-bottom: 10px;
}
.notebook-module p {
  color: #4a3a2a;
  margin-bottom: 15px;
  text-indent: 2em;
}
.notebook-module h3 {
  color: var(--leather);
  margin-top: 25px;
}

/* ============================================
   模块3: 飞艇工坊
   ============================================ */
.airship-module {
  text-align: center;
}
.airship-module img {
  margin: 0 auto;
  border: 2px solid var(--brass);
  border-radius: 4px;
}

/* ============================================
   模块4: 齿轮罗盘
   ============================================ */
.compass-module {
  text-align: center;
}
.compass-wrapper {
  position: relative;
  display: inline-block;
  max-width: 500px;
  margin: 0 auto;
}
.compass-wrapper img {
  border-radius: 50%;
  border: 3px solid var(--brass);
}
.compass-info {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-module);
  border: 1px solid var(--brass-dark);
  border-radius: 4px;
}

/* ============================================
   模块5: 发明家评价
   ============================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}
.review-card {
  background: var(--bg-module);
  border: 2px solid var(--brass);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(181,166,66,0.2);
}
.review-card img {
  width: 150px;
  height: 180px;
  object-fit: cover;
  border: 2px solid var(--brass);
  border-radius: 4px;
  margin: 0 auto 15px;
}
.review-card h4 {
  color: var(--brass);
  margin-bottom: 5px;
}
.review-card .title-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 15px;
}
.review-card blockquote {
  color: var(--text-primary);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.7;
  border-left: 3px solid var(--brass);
  padding-left: 15px;
  text-align: left;
}

/* ============================================
   模块6: 文章卡片
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}
.article-card {
  background: var(--bg-module);
  border: 1px solid var(--brass-dark);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(181,166,66,0.2);
  border-color: var(--brass);
}
.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.article-card .card-body {
  padding: 20px;
}
.article-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.article-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   模块7: 注册模块
   ============================================ */
.register-module {
  background: url('../images/register-bg.webp') center/cover no-repeat;
  padding: 50px 30px;
  border-radius: 8px;
  text-align: center;
}
.register-form {
  max-width: 500px;
  margin: 30px auto 0;
  background: rgba(42,26,10,0.9);
  padding: 30px;
  border: 2px solid var(--brass);
  border-radius: 8px;
}
.register-form input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  background: var(--bg-dark);
  border: 1px solid var(--brass-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 4px;
}
.register-form input:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 8px rgba(181,166,66,0.3);
}

/* ============================================
   模块8: 负责任博彩
   ============================================ */
.responsible-module {
  background: var(--bg-module);
  border: 2px solid var(--danger);
  border-radius: 4px;
  padding: 30px;
}
.responsible-module .age-badge {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}
.responsible-module ul {
  list-style: none;
  padding: 0;
}
.responsible-module ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  border-bottom: 1px solid rgba(181,166,66,0.1);
}
.responsible-module ul li::before {
  content: '⚙';
  position: absolute;
  left: 0;
  color: var(--brass);
  font-size: 0.8rem;
}

/* ============================================
   模块9: UKGC牌照
   ============================================ */
.ukgc-module {
  text-align: center;
}
.ukgc-module img {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}
.ukgc-info {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================
   模块10: FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--brass-dark);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  background: var(--bg-module);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--brass);
  transition: background 0.3s ease;
}
.faq-question:hover {
  background: rgba(181,166,66,0.1);
}
.faq-question::after {
  content: '▼';
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-item.active .faq-answer {
  padding: 15px 20px;
  max-height: 500px;
}

/* ============================================
   内页通用
   ============================================ */
.page-header {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-header img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.page-header .overlay {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-header h1 {
  font-size: 2.5rem;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.content-area {
  padding: 40px 0;
}
.content-area p {
  margin-bottom: 15px;
  text-indent: 2em;
}
.content-area h2, .content-area h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}
.content-area img {
  margin: 20px auto;
  border: 2px solid var(--brass-dark);
  border-radius: 4px;
}

/* 内页图片网格 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.image-grid img {
  width: 100%;
  border: 2px solid var(--brass-dark);
  border-radius: 4px;
}

/* ============================================
   APP下载页
   ============================================ */
.app-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 30px 0;
}
.app-feature-card {
  background: var(--bg-module);
  border: 1px solid var(--brass-dark);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
}
.app-feature-card h4 {
  margin-top: 15px;
}
.qr-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 700px;
  margin: 30px auto;
}
.qr-card {
  text-align: center;
  background: var(--bg-module);
  border: 2px solid var(--brass);
  border-radius: 8px;
  padding: 25px;
}
.qr-card img {
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  border-radius: 50%;
}
.install-steps {
  counter-reset: step;
  max-width: 700px;
  margin: 30px auto;
}
.install-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--bg-module);
  border: 1px solid var(--brass-dark);
  border-radius: 4px;
}
.install-step::before {
  counter-increment: step;
  content: counter(step);
  background: var(--brass);
  color: var(--bg-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================================
   页脚
   ============================================ */
.main-footer {
  background: linear-gradient(180deg, var(--leather-dark) 0%, #0a0500 100%);
  border-top: 3px solid var(--brass);
  padding: 50px 0 20px;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--brass);
  margin-bottom: 15px;
  font-size: 1rem;
  border-bottom: 1px solid var(--brass-dark);
  padding-bottom: 8px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.footer-col ul li a:hover {
  color: var(--brass);
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.footer-social img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--brass-dark);
  transition: transform 0.3s ease;
}
.footer-social img:hover {
  transform: scale(1.1);
}
.footer-payments {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.footer-payments img {
  height: 35px;
  width: auto;
}
.footer-bottom {
  border-top: 1px solid var(--brass-dark);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.footer-bottom .age-badge {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
}

/* ============================================
   动画效果
   ============================================ */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes gauge-swing {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}
@keyframes steam-rise {
  0% { opacity: 0.6; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-60px) scale(1.5); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.gear-spin {
  animation: spin-slow 20s linear infinite;
}
.gear-spin-reverse {
  animation: spin-reverse 15s linear infinite;
}
.fade-in {
  animation: fade-in 0.8s ease forwards;
}

/* 齿轮背景装饰 */
.gear-decoration {
  position: fixed;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  font-size: 300px;
  color: var(--brass);
  animation: spin-slow 60s linear infinite;
}
.gear-decoration.top-left {
  top: -100px;
  left: -100px;
}
.gear-decoration.bottom-right {
  bottom: -100px;
  right: -100px;
  animation-direction: reverse;
}

/* ============================================
   压力表指针效果
   ============================================ */
.gauge-pointer {
  display: inline-block;
  transition: transform 0.3s ease;
}
a:hover .gauge-pointer,
.cta-btn:hover .gauge-pointer {
  animation: gauge-swing 0.5s ease;
}

/* ============================================
   蒸汽效果
   ============================================ */
.steam-effect {
  position: relative;
}
.steam-effect::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(245,245,245,0.3) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.steam-effect:hover::after {
  animation: steam-rise 1s ease forwards;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html { font-size: 14px; }

  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--bg-panel);
    padding: 10px 0;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li::after {
    content: '';
  }
  .nav-links a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid var(--brass-dark);
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .qr-section {
    grid-template-columns: 1fr;
  }
  .app-features {
    grid-template-columns: 1fr;
  }
  .image-grid {
    grid-template-columns: 1fr;
  }

  .module-panel {
    padding: 25px 15px;
    margin: 20px 0;
  }
  .notebook-module {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .hero-overlay h1 { font-size: 1.5rem; }
  .cta-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

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