/* base.css - CSS 变量、全局重置、容器、响应式断点 */

/* Google Fonts - 衬线体 + 无衬线体 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS 变量（设计令牌）
   ======================================== */
:root {
  /* 颜色 - Leverstyle 风格 */
  --color-primary: #1a1a1a;
  --color-secondary: #2a2a2a;
  --color-accent: #c4956a;
  --color-accent-hover: #b07d52;
  --color-text: #1a1a1a;
  --color-text-light: #6b6b6b;
  --color-text-muted: #999999;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f6f3;
  --color-bg-dark: #1a1a1a;
  --color-border: #e5e5e5;

  /* 字体 */
  --font-serif: 'Playfair Display', 'Georgia', 'Noto Serif SC', serif;
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-family: var(--font-sans);
  --font-size-base: 16px;
  --font-size-h1: 95px;
  --font-size-h2: 51px;
  --font-size-h3: 1.5rem;
  --font-size-small: 0.875rem;
  --font-size-label: 17px;

  /* 间距 */
  --section-padding: 120px 0;
  --container-max-width: 1400px;

  /* 动画 */
  --transition-fast: 200ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* 阴影 */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ========================================
   全局重置
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   容器与板块通用样式
   ======================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
}

.section {
  padding: var(--section-padding);
}

.section-label {
  font-family: var(--font-sans);
  font-size: var(--font-size-label);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 51px;
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-title--center {
  text-align: center;
}

.section-description {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 60px;
}

.section-description--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* 分隔线标签 [ text ] */
.section-bracket-label {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* ========================================
   响应式断点
   ======================================== */
@media (max-width: 1023px) {
  :root {
    --font-size-h1: 60px;
    --font-size-h2: 2.25rem;
    --font-size-h3: 1.25rem;
    --section-padding: 80px 0;
  }

  .container {
    padding: 0 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --font-size-h1: 40px;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.125rem;
    --section-padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }
}

/* 悬浮联系按钮 - 固定右侧中间 */
.floating-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(26, 26, 26, 0.85);
  padding: 16px 12px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.floating-contact.visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-contact:hover {
  background: rgba(26, 26, 26, 0.95);
}

.floating-contact-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.floating-contact-label {
  color: #fff;
  font-size: 12px;
  font-family: var(--font-sans);
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  white-space: nowrap;
}

/* 二维码弹出 */
.floating-contact-qr {
  display: none;
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 12px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  text-align: center;
  white-space: nowrap;
}

.floating-contact:hover .floating-contact-qr {
  display: block;
}

.floating-contact-qr img {
  width: 320px;
  height: auto;
  display: block;
}

.floating-contact-qr span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #333;
}

@media (max-width: 767px) {
  .floating-contact { padding: 12px 8px; }
  .floating-contact-icon { width: 28px; height: 28px; }
  .floating-contact-label { font-size: 10px; }
  .floating-contact-qr {
    right: auto;
    left: auto;
    top: auto;
    bottom: 100%;
    transform: none;
    margin-right: 0;
    margin-bottom: 12px;
    right: 0;
  }
  .floating-contact-qr img { width: 200px; }
}
