/* ========================================
   四川相如网络有限公司 - 官方网站样式
   ======================================== */

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

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --primary-dark: #0d1f33;
  --accent: #c8a45c;
  --accent-light: #d4b876;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #f0f2f5;
  --border: #e8e8e8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 28px 20px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-item:hover > a::after,
.nav-item.active > a::after {
  transform: scaleX(1);
}

.nav-item:hover > a {
  color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  min-width: 180px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 8px 0;
  border: 1px solid var(--border);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--text-light);
  white-space: nowrap;
  transition: var(--transition);
}

.dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 28px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ========================================
   Hero Banner
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(200,164,92,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(42,90,140,0.4) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(200,164,92,0.2) 0%, transparent 50%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particles::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(200,164,92,0.2);
  border-radius: 50%;
  top: 10%;
  right: 10%;
  animation: float 20s infinite linear;
}

.hero-particles::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  bottom: 15%;
  left: 5%;
  animation: float 15s infinite linear reverse;
}

@keyframes float {
  0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 14px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  border-radius: 50px;
  transition: var(--transition);
}

.hero-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 3px;
  text-align: center;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  margin: 10px auto 0;
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   Section Common
   ======================================== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ========================================
   Business Areas
   ======================================== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.business-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.business-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.business-card-icon {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-gray));
  position: relative;
  overflow: hidden;
}

.business-card-icon::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(200,164,92,0.1);
  top: -20px;
  right: -20px;
}

.business-card-body {
  padding: 28px;
}

.business-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.business-card-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.business-card-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

/* ========================================
   About Section
   ======================================== */
.about-section {
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-text {
  color: rgba(255,255,255,0.1);
  font-size: 120px;
  font-weight: 900;
  letter-spacing: -5px;
}

.about-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
}

.about-badge-number {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.about-badge-text {
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 1px;
}

.about-content h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.about-stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.about-stat-number span {
  font-size: 16px;
  color: var(--accent);
}

.about-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========================================
   Timeline
   ======================================== */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: 24px 30px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 5%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--accent);
  z-index: 1;
}

.timeline-year {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.timeline-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========================================
   Culture Section
   ======================================== */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.culture-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.culture-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.culture-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-gray));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.culture-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.culture-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========================================
   Page Banner (Sub Pages)
   ======================================== */
.page-banner {
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(200,164,92,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.page-banner-content {
  position: relative;
  color: #fff;
}

.page-banner h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.page-banner .breadcrumb {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.page-banner .breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.page-banner .breadcrumb a:hover {
  color: var(--accent);
}

.page-banner .breadcrumb span {
  margin: 0 8px;
}

/* ========================================
   Content Pages
   ======================================== */
.page-content {
  padding: 80px 0;
}

.page-content .container {
  max-width: 900px;
}

.content-block {
  margin-bottom: 50px;
}

.content-block h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-gray);
}

.content-block h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  margin-top: 24px;
}

.content-block p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 12px;
}

.content-block ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.content-block ul li {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2;
  position: relative;
  padding-left: 16px;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  text-align: center;
  padding: 40px 30px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}

.contact-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
}

/* ========================================
   Job Listing
   ======================================== */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.job-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.job-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.job-tag {
  padding: 4px 12px;
  background: var(--bg-light);
  color: var(--accent);
  font-size: 12px;
  border-radius: 20px;
  font-weight: 500;
}

.job-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.job-req {
  font-size: 14px;
  color: var(--text-muted);
}

.job-req strong {
  color: var(--text);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
}

.footer-brand .logo-text span {
  color: rgba(255,255,255,0.5);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  padding: 5px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ========================================
   Sub-page Specific Styles
   ======================================== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-item:hover {
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 40px;
  border-radius: var(--radius);
  margin: 30px 0;
}

.highlight-box h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
}

.highlight-box p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .culture-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 64px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  
  .nav.active {
    transform: translateX(0);
  }
  
  .nav-item > a {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }
  
  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-light);
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  
  .nav-item.open .dropdown {
    display: block;
  }
  
  .hero {
    min-height: 500px;
    max-height: 700px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-desc {
    font-size: 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .business-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image {
    height: 250px;
  }
  
  .culture-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }
  
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: 100%;
    margin: 0;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .page-banner {
    height: 260px;
  }
  
  .page-banner h1 {
    font-size: 28px;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .about-stat-number {
    font-size: 24px;
  }
}
