/* ============================================
   水润天地 · 公共样式
   导航 / 页脚 / 按钮 / 卡片 / 布局 / 工具类
   ============================================ */

@import url('./tokens.css');

/* ========= 全局重置 ========= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--gold-light);
}

/* ========= 导航 ========= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: rgba(10,46,31,0);
  transition: all var(--dur-normal) var(--ease);
}

.site-nav.scrolled {
  background: rgba(10,46,31,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 48px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.15);
}

.site-nav__brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ivory);
  letter-spacing: 0.12em;
  font-weight: var(--w-semibold);
}

.site-nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.site-nav__links a {
  color: rgba(250,248,245,0.75);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  transition: color var(--dur-fast) var(--ease);
}

.site-nav__links a:hover,
.site-nav__links a.active {
  color: var(--gold-light);
}

/* 页面内部导航（非首页）默认深色背景 */
.page-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(10,46,31,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.15);
}

.page-nav .site-nav__brand {
  font-size: 1.25rem;
}

.page-nav .site-nav__links a {
  color: rgba(250,248,245,0.7);
}

.page-nav .site-nav__links a:hover,
.page-nav .site-nav__links a.active {
  color: var(--gold-light);
}

/* 语言切换器 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid rgba(250,248,245,0.15);
}

.lang-switch a {
  color: rgba(250,248,245,0.45);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  padding: 2px 6px;
  transition: color var(--dur-fast) var(--ease);
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--gold-light);
}

.lang-switch__sep {
  color: rgba(250,248,245,0.2);
  font-size: var(--text-xs);
  pointer-events: none;
}

/* 导航 CTA 按钮 */
.nav-cta {
  padding: 8px 24px;
  border: 1px solid rgba(250,248,245,0.3);
  color: var(--ivory);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  background: transparent;
  font-family: var(--font-sans);
}

.nav-cta:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--forest);
}

/* ========= 页脚 ========= */
.site-footer {
  padding: 80px 48px 40px;
  background: var(--forest-light);
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: rgba(250,248,245,0.9);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.site-footer__desc {
  font-size: var(--text-sm);
  color: rgba(250,248,245,0.4);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.site-footer__col-title {
  font-size: var(--text-xs);
  color: rgba(250,248,245,0.5);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  font-weight: var(--w-medium);
}

.site-footer__link {
  display: block;
  font-size: var(--text-sm);
  color: rgba(250,248,245,0.6);
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease);
}

.site-footer__link:hover {
  color: var(--gold-light);
}

.site-footer__bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(250,248,245,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(250,248,245,0.3);
}

/* ========= Footer 联系信息栏 ========= */
.site-footer__contact-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  max-width: var(--content-max);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.contact-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 120px;
}

.contact-bar__qr {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  border: 2px solid rgba(250,248,245,0.2);
  background: var(--ivory);
  overflow: hidden;
  padding: 4px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease);
}

.contact-bar__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.contact-bar__qr--phone {
  font-size: 36px;
  color: var(--forest);
  line-height: 1;
}

.contact-bar__qr:hover {
  border-color: var(--gold-light);
}

.contact-bar__label {
  font-size: var(--text-xs);
  color: rgba(250,248,245,0.5);
  letter-spacing: 0.1em;
  font-weight: var(--w-medium);
}

.contact-bar__value {
  font-size: var(--text-sm);
  color: rgba(250,248,245,0.85);
  font-weight: var(--w-medium);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ========= 按钮体系 ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--w-medium);
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease);
  padding: 14px 36px;
}

.btn--primary {
  background: var(--gold-light);
  color: var(--forest);
  font-weight: var(--w-semibold);
}

.btn--primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(184,134,11,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(250,248,245,0.3);
}

.btn--outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn--dark-outline {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}

.btn--dark-outline:hover {
  background: var(--forest);
  color: var(--ivory);
}

.btn--gold {
  background: transparent;
  border: 1px solid rgba(212,168,67,0.3);
  color: var(--gold-light);
  font-size: var(--text-base);
}

.btn--gold:hover {
  background: rgba(212,168,67,0.08);
}

/* ========= 卡片 ========= */
.card {
  background: var(--white);
  border: 1px solid rgba(26,23,20,0.04);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-normal) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ========= 布局工具类 ========= */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 48px;
}

.container--narrow {
  max-width: 900px;
}

.section {
  padding: var(--sp-8, 140px) 48px;
}

.section--dark {
  background: var(--forest);
}

.section--light {
  background: var(--ivory);
}

.section--white {
  background: var(--white);
}

/* 区块标题 */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 100px;
}

.section-header__label {
  font-size: var(--text-xs);
  color: var(--gold-light);
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  font-weight: var(--w-medium);
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--forest);
  font-weight: var(--w-bold);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.section-header--light .section-header__title {
  color: var(--ivory);
}

.section-header--light .section-header__label {
  color: rgba(212,168,67,0.6);
}

/* 金线装饰 */
.gold-divider {
  width: 40px;
  height: 1px;
  background: var(--gold-light);
  opacity: 0.6;
  margin: 28px 0;
}

/* 页面 Hero 通用 */
.page-hero {
  padding: 180px 48px 80px;
  background: var(--forest);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,168,67,0.04) 0%, transparent 70%);
}

.page-hero__label {
  font-size: var(--text-xs);
  color: rgba(250,248,245,0.4);
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ivory);
  font-weight: var(--w-bold);
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.page-hero__sub {
  font-size: var(--text-base);
  color: rgba(250,248,245,0.5);
  letter-spacing: 0.06em;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ========= 滚动条 ========= */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--ink-faint);
  border-radius: 2px;
}

/* ========= 响应式 ========= */
@media (max-width: 900px) {
  .site-nav,
  .site-nav.scrolled,
  .page-nav {
    padding: 16px 24px;
  }

  .site-nav__links {
    display: none;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-hero {
    padding: 140px 24px 60px;
  }

  .site-footer__contact-bar {
    flex-wrap: wrap;
    gap: 28px;
  }

  .contact-bar__item {
    min-width: 100px;
  }
}

@media (max-width: 540px) {
  .site-footer__contact-bar {
    gap: 24px;
  }

  .contact-bar__qr {
    width: 64px;
    height: 64px;
  }
}