/* ========================================
   甘肃旭阳鸿业建设工程有限公司 - 官网样式
   ======================================== */

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

:root {
  --primary: #0d2137;
  --primary-light: #1a3a5c;
  --accent: #c8944a;
  --accent-light: #d4a85a;
  --blue: #1a5276;
  --blue-light: #2980b9;
  --bg: #f5f6f8;
  --bg-white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --max-width: 1200px;
  --header-height: 72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 12px 32px; border-radius: 4px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .3s;
  border: 2px solid transparent; text-align: center;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-outline {
  border-color: #fff; color: #fff; background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-outline-dark {
  border-color: var(--primary); color: var(--primary); background: transparent;
}
.btn-outline-dark:hover { background: var(--primary); color: #fff; }

/* --- Section Titles --- */
.section-title {
  text-align: center; margin-bottom: 56px;
}
.section-title h2 {
  font-size: 32px; color: var(--primary); margin-bottom: 12px;
  letter-spacing: 2px;
}
.section-title .subtitle {
  color: var(--text-muted); font-size: 16px; letter-spacing: 1px;
}
.section-title .divider {
  width: 60px; height: 3px; background: var(--accent); margin: 16px auto 0;
}

/* --- Header / Nav --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  height: var(--header-height); display: flex; align-items: center;
}
.header .container {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
}
.logo {
  display: flex; align-items: center; gap: 12px;
}
.logo-icon {
  width: 40px; height: 40px; background: var(--primary); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 20px; font-weight: 700;
}
.logo-img { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.logo-text small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 18px; font-size: 15px; color: var(--text); border-radius: 4px;
  transition: all .25s; font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--accent); background: rgba(200,148,74,.08); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
  background: none; border: none;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--primary); transition: all .3s; border-radius: 1px;
}

/* --- Hero --- */
.hero {
  height: 100vh; min-height: 600px; background: linear-gradient(135deg, var(--primary) 0%, #152a42 50%, #0d1f30 100%);
  display: flex; align-items: center; justify-content: center; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 50 L5 50 Z' fill='none' stroke='rgba(255,255,255,.03)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}
.hero-content { position: relative; z-index: 1; color: #fff; padding: 0 24px; }
.hero-content h1 { font-size: 44px; font-weight: 700; letter-spacing: 4px; margin-bottom: 16px; }
.hero-content .hero-subtitle { font-size: 20px; letter-spacing: 6px; color: var(--accent); margin-bottom: 12px; }
.hero-content .hero-tagline { font-size: 16px; color: rgba(255,255,255,.7); margin-bottom: 40px; letter-spacing: 2px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); animation: bounce 2s infinite; cursor: pointer;
}
.scroll-down svg { width: 24px; height: 24px; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Stats --- */
.stats {
  padding: 64px 0; background: var(--bg-white);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.stat-item .stat-number { font-size: 42px; font-weight: 700; color: var(--accent); }
.stat-item .stat-label { font-size: 15px; color: var(--text-muted); margin-top: 8px; }
.stat-item .stat-suffix { font-size: 22px; color: var(--accent); font-weight: 600; }

/* --- Service Cards --- */
.services-section { padding: 80px 0; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 36px 28px;
  box-shadow: var(--shadow); transition: all .35s; text-align: center;
  border-top: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  border-top-color: var(--accent);
}
.service-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; background: rgba(13,33,55,.05);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* --- Page Banner (inner pages) --- */
.page-banner {
  padding: 120px 0 60px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  text-align: center; color: #fff;
}
.page-banner h1 { font-size: 36px; letter-spacing: 3px; margin-bottom: 8px; }
.page-banner .breadcrumb { font-size: 14px; color: rgba(255,255,255,.6); }
.page-banner .breadcrumb a { color: var(--accent); }

/* --- About Page --- */
.about-section { padding: 80px 0; background: var(--bg-white); }
.about-section.alt { background: var(--bg); }

.about-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about-intro img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text h3 { font-size: 24px; color: var(--primary); margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 15px; }

/* Timeline */
.timeline { position: relative; padding: 40px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--border); transform: translateX(-50%);
}
.timeline-item { display: flex; margin-bottom: 48px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-item:nth-child(odd) .timeline-content { text-align: left; }
.timeline-item:nth-child(even) .timeline-content { text-align: right; }
.timeline-dot {
  position: absolute; left: 50%; top: 8px; width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%; transform: translateX(-50%);
  border: 3px solid #fff; box-shadow: 0 0 0 3px var(--accent);
  z-index: 2;
}
.timeline-content {
  width: 45%; padding: 20px 24px; background: var(--bg-white);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.timeline-content h4 { color: var(--primary); margin-bottom: 6px; }
.timeline-year {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 4px 14px; border-radius: 20px; font-size: 14px; margin-bottom: 8px;
}

/* Values Grid */
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.value-card {
  padding: 36px 20px; background: var(--bg-white); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: all .3s;
}
.value-card:hover { transform: translateY(-4px); }
.value-card .value-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; background: rgba(200,148,74,.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.value-card h4 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }

/* --- Services Page --- */
.services-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.services-tabs button {
  padding: 10px 24px; border: 1px solid var(--border); background: #fff;
  border-radius: 30px; font-size: 15px; cursor: pointer; transition: all .3s;
  color: var(--text);
}
.services-tabs button.active,
.services-tabs button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.service-detail { display: none; }
.service-detail.active { display: block; }

.service-block { margin-bottom: 48px; }
.service-block h3 { font-size: 22px; color: var(--primary); margin-bottom: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }

.service-items {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.service-item {
  display: flex; gap: 16px; padding: 20px; background: var(--bg-white);
  border-radius: var(--radius); box-shadow: var(--shadow); align-items: flex-start;
}
.service-item-icon {
  width: 44px; height: 44px; min-width: 44px; background: rgba(13,33,55,.06);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.service-item-text h4 { font-size: 16px; color: var(--primary); margin-bottom: 4px; }
.service-item-text p { font-size: 14px; color: var(--text-light); }

/* --- Projects Page --- */
.projects-section { padding: 80px 0; }
.project-filters {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 22px; border: 1px solid var(--border); background: #fff;
  border-radius: 30px; font-size: 14px; cursor: pointer; transition: all .3s;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.project-card {
  background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .35s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.project-image {
  height: 200px; background: linear-gradient(135deg, var(--primary-light), var(--blue));
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4);
  font-size: 48px; font-weight: 700;
}
.project-info { padding: 20px; }
.project-info .project-type {
  display: inline-block; font-size: 12px; background: rgba(200,148,74,.15);
  color: var(--accent); padding: 3px 10px; border-radius: 3px; margin-bottom: 8px;
}
.project-info h4 { font-size: 16px; color: var(--primary); margin-bottom: 8px; line-height: 1.5; }
.project-info .project-amount { font-size: 18px; font-weight: 700; color: var(--accent); }

/* --- Qualifications Page --- */
.quals-section { padding: 80px 0; }
.quals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.qual-card {
  text-align: center; padding: 32px 20px; background: var(--bg-white);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: all .3s;
}
.qual-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.qual-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; background: rgba(13,33,55,.06);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.qual-card h4 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.qual-card p { font-size: 14px; color: var(--text-light); }

.credential-list { max-width: 700px; margin: 60px auto 0; }
.credential-list h3 { text-align: center; color: var(--primary); margin-bottom: 24px; }
.credential-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--bg-white); border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.credential-item .cred-name { font-weight: 600; color: var(--primary); }
.credential-item .cred-meta { font-size: 14px; color: var(--text-muted); }

/* --- Contact Page --- */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-info .info-item {
  display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start;
}
.info-item-icon {
  width: 44px; height: 44px; min-width: 44px; background: rgba(200,148,74,.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.info-item h4 { font-size: 16px; color: var(--primary); margin-bottom: 4px; }
.info-item p { color: var(--text-light); font-size: 15px; }

.contact-form { background: var(--bg-white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 22px; color: var(--primary); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 6px; font-size: 14px; color: var(--text);
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 15px; font-family: inherit; transition: border-color .3s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Footer --- */
.footer {
  background: var(--primary); color: rgba(255,255,255,.7); padding: 48px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer p { font-size: 14px; margin-bottom: 8px; }
.footer-links a { display: block; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 8px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  text-align: center; font-size: 13px; color: rgba(255,255,255,.4);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }

  .hero { min-height: 100svh; }
  .hero-content h1 { font-size: 32px; letter-spacing: 3px; }
  .hero-content .hero-subtitle { font-size: 17px; }

  .services-grid, .projects-grid, .quals-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .about-intro > div:first-child { height: 240px !important; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .service-items { grid-template-columns: 1fr 1fr; }

  .timeline::before { left: 24px; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: row; }
  .timeline-item:nth-child(even) .timeline-content { text-align: left; }
  .timeline-dot { left: 24px; }
  .timeline-content { width: calc(100% - 60px); margin-left: 60px; }

  .contact-grid { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .container { padding: 0 16px; }

  /* Mobile header */
  .logo-text { font-size: 15px; }
  .logo-icon { width: 34px; height: 34px; font-size: 17px; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 8px 0; gap: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.1); display: none;
    max-height: calc(100vh - var(--header-height)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; width: 100%; border-radius: 0; font-size: 16px; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-content { padding: 0 16px; }
  .hero-content h1 { font-size: 26px; letter-spacing: 2px; line-height: 1.4; }
  .hero-content .hero-subtitle { font-size: 15px; letter-spacing: 2px; }
  .hero-content .hero-tagline { font-size: 13px; letter-spacing: 1px; margin-bottom: 32px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .hero-buttons .btn { width: 200px; padding: 14px 24px; }

  /* Section spacing */
  .services-section { padding: 56px 0; }
  .about-section { padding: 56px 0; }
  .projects-section { padding: 56px 0; }
  .quals-section { padding: 56px 0; }
  .contact-section { padding: 56px 0; }
  .stats { padding: 44px 0; }

  /* Section titles */
  .section-title { margin-bottom: 36px; }
  .section-title h2 { font-size: 24px; letter-spacing: 1px; }
  .section-title .subtitle { font-size: 14px; }

  /* Single column grids */
  .services-grid, .projects-grid, .quals-grid, .values-grid, .service-items { grid-template-columns: 1fr; }
  .services-grid { gap: 20px; }
  .projects-grid { gap: 16px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item .stat-number { font-size: 28px; }
  .stat-item .stat-label { font-size: 13px; }

  /* Service tabs */
  .services-tabs { gap: 8px; margin-bottom: 32px; }
  .services-tabs button { padding: 8px 18px; font-size: 14px; }

  /* Service cards */
  .service-card { padding: 28px 20px; }
  .service-card h3 { font-size: 16px; }
  .service-item { flex-direction: column; align-items: center; text-align: center; padding: 16px; }
  .service-item-icon { margin-bottom: 8px; }

  /* Project cards */
  .project-image { height: 160px; font-size: 36px; }
  .project-info { padding: 16px; }
  .project-info h4 { font-size: 15px; }
  .project-info .project-amount { font-size: 16px; }

  /* Filters */
  .project-filters { gap: 8px; margin-bottom: 28px; }
  .filter-btn { padding: 6px 16px; font-size: 13px; }

  /* Timeline */
  .timeline { padding: 24px 0; }
  .timeline-item { margin-bottom: 32px; }
  .timeline-content { width: calc(100% - 48px); margin-left: 48px; padding: 16px; }
  .timeline-content h4 { font-size: 15px; }
  .timeline-content p { font-size: 13px; }
  .timeline-year { font-size: 12px; padding: 3px 12px; }
  .timeline::before { left: 20px; }
  .timeline-dot { left: 20px; width: 12px; height: 12px; }

  /* Values */
  .values-grid { gap: 16px; }
  .value-card { padding: 24px 16px; }
  .value-card .value-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 10px; }
  .value-card h4 { font-size: 16px; }

  /* Quals */
  .qual-card { padding: 24px 16px; }
  .qual-card h4 { font-size: 15px; }
  .qual-icon { width: 52px; height: 52px; }

  .credential-list { margin-top: 40px; }
  .credential-item { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
  .credential-item .cred-meta { font-size: 12px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 24px 20px; }
  .contact-form h3 { font-size: 20px; }
  .contact-info h3 { font-size: 20px !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 36px 0 16px; }
  .footer h4 { font-size: 15px; }

  /* Page banner */
  .page-banner { padding: 100px 0 44px; }
  .page-banner h1 { font-size: 24px; letter-spacing: 2px; }

  /* CTA section */
  section[style*="padding:72px"] { padding: 48px 0 !important; }
  section[style*="padding:72px"] h2 { font-size: 22px !important; }
  section[style*="padding:72px"] p { font-size: 14px !important; }

  /* About section */
  .about-text h3 { font-size: 20px; }
  .about-text p { font-size: 14px; }

  /* Buttons */
  .btn { padding: 10px 24px; font-size: 14px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 22px; }
  .hero-content .hero-subtitle { font-size: 14px; }
  .hero-content .hero-tagline { font-size: 12px; }

  .stats-grid { gap: 12px; }
  .stat-item .stat-number { font-size: 24px; }
  .stat-item .stat-suffix { font-size: 16px; }
  .stat-item .stat-label { font-size: 12px; }

  .services-tabs button { padding: 6px 14px; font-size: 13px; }
  .page-banner h1 { font-size: 22px; }

  .contact-form { padding: 20px 16px; }
  .form-group input, .form-group textarea { padding: 10px 12px; font-size: 14px; }
}
