/* ============================================
   环宇致胜文化科技研究院 - base.css
   重置 + CSS变量 + 基础排版
   ============================================ */

/* CSS Variables */
:root {
  /* 色彩 */
  --color-primary: #153D7A;
  --color-primary-dark: #0E2A56;
  --color-primary-light: #1E52A0;
  --color-primary-bg: #EDF2FA;
  --color-accent: #BF8F40;
  --color-accent-light: #D4A94E;
  --color-accent-bg: #F5EDE0;
  --color-info: #00A2D4;
  --color-text: #1A1A2E;
  --color-text-secondary: #4A5568;
  --color-text-muted: #8C95A6;
  --color-border: #E2E8F0;
  --color-bg: #F5F6F8;
  --color-white: #FFFFFF;
  --color-success: #38A169;
  --color-warning: #D69E2E;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #0E2A56 0%, #153D7A 50%, #1E52A0 100%);
  --gradient-gold: linear-gradient(135deg, #BF8F40 0%, #D4A94E 100%);

  /* 字体 */
  --font-cn: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-en: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;

  /* 间距 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 64px;
  --space-2xl: 80px;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(21, 61, 122, 0.06);
  --shadow-md: 0 4px 12px rgba(21, 61, 122, 0.08);
  --shadow-lg: 0 8px 24px rgba(21, 61, 122, 0.12);
  --shadow-hover: 0 12px 32px rgba(21, 61, 122, 0.16);

  /* 布局 */
  --container-width: 1200px;
  --sidebar-width: 270px;
  --header-height: 72px;
  --banner-height: 260px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-light);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

p {
  margin-bottom: 1em;
  color: var(--color-text-secondary);
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }

/* Section spacing */
.section {
  padding: var(--space-xl) 0;
}

.section--gray {
  background: var(--color-bg);
}

.section--dark {
  background: var(--color-primary-dark);
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-header .decor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-header .decor::before,
.section-header .decor::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.section-header .decor i {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

.section-header h2 {
  font-size: 26px;
  color: var(--color-text);
}

.section-header .en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.section-header--left {
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-header--left .decor {
  justify-content: flex-start;
}

.section-header--left .decor::after {
  display: none;
}

/* More link */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-primary);
  white-space: nowrap;
}

.link-more::after {
  content: '→';
  transition: transform 0.3s ease;
}

.link-more:hover {
  color: var(--color-accent);
}

.link-more:hover::after {
  transform: translateX(4px);
}

/* Rich text content */
.rich-text {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-secondary);
}

.rich-text p {
  margin-bottom: 1.2em;
  text-align: justify;
}

.rich-text img {
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.rich-text h2, .rich-text h3 {
  margin: 1.5em 0 0.8em;
  color: var(--color-text);
}

.rich-text ul, .rich-text ol {
  padding-left: 2em;
  margin-bottom: 1em;
  list-style: disc;
}

.rich-text ol {
  list-style: decimal;
}

.rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.rich-text table th,
.rich-text table td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  font-size: 14px;
  text-align: left;
}

.rich-text table th {
  background: var(--color-primary-bg);
  font-weight: 600;
  color: var(--color-primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation: fadeInUp 0.6s ease forwards;
}

.animated-delay-1 { animation-delay: 0.1s; }
.animated-delay-2 { animation-delay: 0.2s; }
.animated-delay-3 { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 991px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
  .section { padding: var(--space-lg) 0; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-header { margin-bottom: var(--space-md); }
  .section-header h2 { font-size: 20px; }
}
