/* OH6 Brand Visual System — 层次感・光效・渐变 */

:root {
  --primary: #0F172A;
  --primary-soft: #1e293b;
  --secondary: #334155;
  --cta: #0369A1;
  --cta-light: #0ea5e9;
  --cta-glow: rgba(3, 105, 161, 0.4);
  /* 第二强调色：信頼・実績・高級感 */
  --accent: #B45309;
  --accent-light: #D97706;
  --accent-soft: rgba(180, 83, 9, 0.12);
  --surface: #e2e8f0;
  --surface-warm: #cbd5e1;
  --surface-mid: #f1f5f9;
  --surface-tint: #fef9c3;
  --white: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: rgba(51, 65, 85, 0.25);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 12px -2px rgba(15, 23, 42, 0.12), 0 3px 6px -3px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.15), 0 6px 12px -4px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 40px -5px var(--cta-glow), 0 8px 25px -5px rgba(15, 23, 42, 0.15);
  /* 圆角不超过 16px */
  --radius: 0.75rem;
  --radius-lg: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== 背景层：禁止大面积白/浅色，使用深灰渐变 ========== */
.page-bg {
  background: linear-gradient(165deg, #cbd5e1 0%, #94a3b8 40%, #64748b 100%);
  min-height: 100vh;
  position: relative;
}

.page-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* 区块：中灰渐变 + 光效，非白底 */
.section-bg-soft {
  position: relative;
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.15) inset, 0 4px 20px rgba(0,0,0,0.06);
}

.section-bg-soft::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(3, 105, 161, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.section-bg-warm {
  position: relative;
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 50%, #cbd5e1 100%);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.1) inset;
}

.section-bg-warm::before {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(15, 23, 42, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* 区块：暖调深色，非白 */
.section-bg-tint {
  position: relative;
  background: linear-gradient(180deg, #d6d3d1 0%, #a8a29e 50%, #cbd5e1 100%);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.08) inset;
}

.section-bg-tint::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

/* 数字・实绩区块 */
.stat-number {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-number-accent {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

/* 徽章・标签 */
.badge-accent {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
}

/* 标题渐变（仅一行） */
.text-gradient-heading {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Hero: 渐变遮罩 + 光效 ========== */
.hero-wrap {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-wrap .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-wrap .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-wrap .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.75) 40%, rgba(3, 105, 161, 0.25) 100%);
}

.hero-wrap .hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(3, 105, 161, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.hero-wrap .hero-content {
  position: relative;
  z-index: 10;
}

/* ========== 强调层: CTA 按钮 渐变+光效 ========== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(135deg, var(--cta) 0%, var(--cta-light) 100%);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.1) inset, 0 4px 14px -2px var(--cta-glow);
  transition: box-shadow 0.25s ease, transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-cta:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.15) inset, 0 6px 20px -2px var(--cta-glow);
  opacity: 0.95;
}

.btn-cta:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.4);
}

/* ========== 内容层: 卡片 必有阴影、圆角≤16px ========== */
.card-layered {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md), 0 1px 0 0 rgba(255,255,255,0.4) inset, 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-layered:hover {
  box-shadow: var(--shadow-glow), 0 1px 0 0 rgba(255,255,255,0.5) inset, 0 8px 24px rgba(0,0,0,0.1);
  border-color: rgba(3, 105, 161, 0.3);
}

.card-layered .card-image {
  position: relative;
  overflow: hidden;
}

.card-layered .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.12) 100%);
  pointer-events: none;
}

/* 内页内容区块：强阴影，非扁平 */
.content-elevated {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 1px 0 0 rgba(255,255,255,0.35) inset, 0 4px 12px rgba(0,0,0,0.08);
}

/* ========== 深色区块 (CTA section / Footer): 渐变+微光 ========== */
.section-dark {
  position: relative;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-soft) 50%, #0f172a 100%);
  color: var(--white);
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(3, 105, 161, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.section-dark .btn-cta {
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.2) inset, 0 4px 20px -2px var(--cta-glow);
}

/* ========== 导航: 深色玻璃，非蓝白 ========== */
.nav-glass {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.92) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-glass a:not(.btn-cta) {
  color: #e2e8f0;
}

.nav-glass a:hover:not(.btn-cta) {
  color: #fff;
}

.nav-glass a[aria-current="page"] {
  color: #7dd3fc;
}

.nav-glass .font-serif,
.nav-glass a.font-serif {
  color: #fff !important;
}

/* ========== 标题下划线 渐变强调 ========== */
.heading-accent {
  position: relative;
  display: inline-block;
}

.heading-accent::after {
  content: "";
  position: absolute;
  bottom: -0.25em;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cta), var(--cta-light));
  opacity: 0.35;
}

/* ========== 列表/新闻 行悬停 层次 ========== */
.list-item-hover {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.list-item-hover:hover {
  background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 100%);
  box-shadow: var(--shadow-sm), 0 2px 8px rgba(0,0,0,0.06);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

/* ========== 动画 ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out both;
}

.animate-fade-in-delay-1 { animation-delay: 0.1s; }
.animate-fade-in-delay-2 { animation-delay: 0.2s; }
.animate-fade-in-delay-3 { animation-delay: 0.3s; }
