/* ===== 基础变量 ===== */
:root {
  --color-primary: #1a1a1a;
  --color-secondary: #8b7355;
  --color-accent: #c9a96e;
  --color-bg: #ffffff;
  --color-bg-dark: #1a1a1a;
  --color-bg-light: #f8f6f3;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  --font-jp: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-cn: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --container-max: 1200px;
  --transition: 0.3s ease;
}

/* ===== 重置 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body:lang(zh) {
  font-family: var(--font-cn);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ===== 容器 ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-accent);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn-large {
  padding: 18px 56px;
  font-size: 16px;
}

/* ===== 导航栏 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  line-height: 1.2;
}

.logo-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.05em;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #ddd;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  color: var(--color-text-light);
}

.lang-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.6) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-text-white);
}

.hero-title {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 2;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* ===== 通用板块 ===== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
}

.section-title {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 0.03em;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.section-cta {
  text-align: center;
  margin-top: 50px;
}

/* ===== 服务卡片 ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid #eee;
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.service-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 16px;
  font-weight: 500;
  padding: 20px 20px 8px;
  letter-spacing: 0.05em;
}

.service-card p {
  font-size: 13px;
  color: var(--color-text-light);
  padding: 0 20px 24px;
  line-height: 1.8;
}

/* ===== 流程 ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.process-step {
  text-align: center;
  padding: 0 20px;
}

.step-num {
  font-size: 48px;
  font-weight: 200;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.process-step p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
}

/* ===== 特色 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 0 10px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--color-accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.feature-item p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===== CTA ===== */
.cta-section {
  background: var(--color-bg-light);
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 36px;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text-white);
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.9;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-white);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-contact p {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ===== 内页通用 ===== */
.page-header {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-dark);
  margin-top: 72px;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center/cover;
  opacity: 0.3;
}

.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-white);
}

.page-header-content h1 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.page-header-content p {
  font-size: 14px;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* ===== 关于我们页 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-info {
  background: var(--color-bg-light);
  padding: 40px;
}

.about-info-item {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid #e0ddd8;
}

.about-info-item:last-child {
  border-bottom: none;
}

.about-info-label {
  width: 120px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.about-info-value {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.about-philosophy h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.about-philosophy p {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
}

/* ===== 服务详情页 ===== */
.service-detail {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail-grid.reverse {
  direction: rtl;
}

.service-detail-grid.reverse > * {
  direction: ltr;
}

.service-detail-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-text h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.service-detail-text p {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
}

.service-notice {
  background: var(--color-bg-light);
  padding: 40px;
  margin-top: 60px;
}

.service-notice h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.service-notice p {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-light);
}

/* ===== 联系页 ===== */
.contact-info-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--color-bg-light);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--color-accent);
}

.contact-card-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===== 滚动动画 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .service-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    height: 60px;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border-bottom: 1px solid #eee;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 500px;
    height: auto;
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .service-grid,
  .feature-grid,
  .process-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-step {
    padding: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid,
  .service-detail-grid,
  .contact-info-page {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-detail-grid.reverse {
    direction: ltr;
  }

  .page-header {
    height: 240px;
    margin-top: 60px;
  }

  .page-header-content h1 {
    font-size: 26px;
  }
}