/* 基础布局样式 */

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  padding-top: 65px;
}

/* 容器 */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base) var(--ease-in-out);
  display: flex;
  align-items: center;
  min-height: 65px;
  padding: 0 24px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex: 1;
  width: 100%;
  max-width: 1360px;
  padding: 0;
  margin: 0 auto;
}

/* Section 通用样式 */
section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

section:nth-child(even) {
  background-color: var(--bg-light);
}

.section-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-gold), var(--accent-orange));
  margin: var(--spacing-sm) auto 0;
  border-radius: var(--radius-sm);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-medium);
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.8;
}

/* Hero Section */
.hero {
  --hero-bg-image: url('../images/hero-bg.jpg');
  height: 84vh;
  min-height: 680px;
  max-height: 920px;
  margin-top: 0;
  padding-top: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-bg-image) center/cover no-repeat;
  opacity: 0.42;
  z-index: 0;
  transform: scale(1.03);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(201, 169, 97, 0.28), transparent 34%),
    radial-gradient(circle at 82% 26%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(105deg, rgba(0, 26, 58, 0.88) 12%, rgba(0, 61, 122, 0.72) 52%, rgba(0, 61, 122, 0.32) 100%);
  z-index: 0;
}

.hero.has-custom-hero-bg::before {
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 40px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.hero-panel {
  padding: 28px 28px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 45px -28px rgba(0, 0, 0, 0.45);
}

/* 页脚 */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* 网格布局 */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Flex 布局 */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 文本对齐 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}
