/* ==========================================================================
   本翼资本官网 - 主样式表
   品牌色：勃艮第红 + 标志橙红渐变
   主元素：鹰翼、几何分隔、深色质感
   ========================================================================== */

/* ----- 设计 Token ----- */
:root {
  /* Color - 品牌红系 */
  --red-50:  #FEF2F2;
  --red-100: #FEE2E2;
  --red-200: #FECACA;
  --red-300: #FCA5A5;
  --red-400: #F87171;
  --red-500: #EF4444;
  --red-600: #DC2626;
  --red-700: #B91C1C;
  --red-800: #991B1B;
  --red-900: #7F1D1D;
  --red-950: #450A0A;

  /* 品牌橙红 - logo 用色 */
  --brand-orange: #FB923C;
  --brand-amber:  #F59E0B;

  /* 中性 */
  --ink-50:  #FAFAF9;
  --ink-100: #F5F5F4;
  --ink-200: #E7E5E4;
  --ink-300: #D6D3D1;
  --ink-400: #A8A29E;
  --ink-500: #78716C;
  --ink-600: #57534E;
  --ink-700: #44403C;
  --ink-800: #292524;
  --ink-900: #18181B;

  /* 渐变 */
  --gradient-brand: linear-gradient(135deg, #FB923C 0%, #EF4444 50%, #B91C1C 100%);
  --gradient-deep:  linear-gradient(135deg, #B91C1C 0%, #7F1D1D 100%);
  --gradient-soft:  linear-gradient(180deg, #FFFFFF 0%, #FEF2F2 100%);
  --gradient-dark:  linear-gradient(180deg, #1C0606 0%, #450A0A 100%);

  /* 字号 */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;
  --fs-7xl:  4.5rem;

  /* 字间距 */
  --tracking-tight: -0.02em;
  --tracking-wide:  0.05em;
  --tracking-wider: 0.15em;
  --tracking-widest: 0.25em;

  /* 间距 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* 圆角 */
  --rounded-sm: 4px;
  --rounded:   8px;
  --rounded-md: 12px;
  --rounded-lg: 16px;
  --rounded-xl: 24px;
  --rounded-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-red: 0 12px 24px -8px rgba(185, 28, 28, 0.35);

  /* 容器 */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 4vw, 3rem);

  /* 字体 */
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Source Han Serif SC', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* 动效 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.4s;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink-800);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--red-700);
  color: #FFFFFF;
}

/* ----- 排版 ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }

p {
  line-height: 1.75;
  color: var(--ink-600);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  color: var(--red-700);
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--red-700);
}

.section-title {
  margin-top: var(--space-3);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-900);
}

.section-subtitle {
  margin-top: var(--space-4);
  font-size: var(--fs-lg);
  color: var(--ink-600);
  max-width: 56ch;
}

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

.container--narrow {
  max-width: 960px;
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  position: relative;
}

.section--tight {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--dark {
  background: var(--ink-900);
  color: var(--ink-100);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #FFFFFF;
}

.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section--red {
  background: var(--gradient-brand);
  color: #FFFFFF;
}

.section--cream {
  background: var(--ink-50);
}

.section--soft-red {
  background: var(--red-50);
}

/* ----- 按钮 ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--rounded-full);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #FFFFFF;
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(185, 28, 28, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--ink-200);
}

.btn--ghost:hover {
  border-color: var(--red-700);
  color: var(--red-700);
}

.btn--white {
  background: #FFFFFF;
  color: var(--red-800);
}

.btn--white:hover {
  background: var(--red-50);
}

.btn--outline-white {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-sm);
}

.btn__arrow {
  transition: transform var(--duration) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ----- 卡片 ----- */
.card {
  background: #FFFFFF;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--ink-200);
  padding: var(--space-8);
  transition: all var(--duration) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ----- 鹰翼分隔符（用作装饰） ----- */
.wing-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--red-700);
  opacity: 0.6;
}

.wing-divider svg {
  width: 32px;
  height: 32px;
}

/* ----- 实用工具类 ----- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.z-10 { position: relative; z-index: 10; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ----- 通用动画 ----- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wing-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ----- 响应式断点 ----- */
@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 1rem;
  }
}

/* ----- 排版优化：标题均衡换行，避免末行孤字 ----- */
h1, h2, h3, h4,
.section-title,
.section-header__title,
.hero__title,
.about-hero h1,
.join-hero h1,
.contact-hero h1,
.product-card__tag,
.team-card__name,
.footer__logo-text,
.benefit-pill__name,
.advantage-card__title,
.culture-card__title,
.job-card__title {
  text-wrap: balance;
}

p, li, .team-card__bio, .contact-item__value, .product-card__desc {
  text-wrap: pretty;
}
