/* ============================================
   全局组件与版块
   ============================================ */

.page-header {
  position: relative;
  padding: 140px 0 90px;
  background: linear-gradient(120deg, rgba(9, 13, 24, 0.95), rgba(15, 18, 30, 0.95)),
              url('../images/factory_exterior_01.png') center/cover;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 60%),
                    var(--blueprint-grid);
  opacity: 0.4;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 48px;
  margin-bottom: var(--spacing-sm);
}

.page-header p {
  max-width: 640px;
  color: var(--color-text-muted);
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 14px;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-muted);
}

.page-actions {
  margin-top: var(--spacing-md);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.content-section {
  padding: var(--spacing-2xl) 0;
  background: rgba(12, 15, 23, 0.88);
  border-bottom: 1px solid var(--color-line);
}

.content-section.alt {
  background: rgba(16, 20, 31, 0.95);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: var(--spacing-xl);
}

.section-head p {
  max-width: 620px;
}

.blueprint-panel {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.blueprint-panel::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.metal-card {
  position: relative;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(29, 34, 49, 0.95), rgba(13, 15, 22, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.metal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.metal-card:hover::after {
  opacity: 1;
}

.icon-chip {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: var(--spacing-md);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--spacing-lg);
}

.stat-card {
  padding: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.stat-card .value {
  font-size: 36px;
  font-weight: 600;
}

.list-check {
  list-style: none;
  display: grid;
  gap: 10px;
}

.list-check li::before {
  content: '▢';
  color: var(--color-secondary);
  margin-right: 10px;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  align-items: center;
}

.metric-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: var(--spacing-sm);
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--color-secondary), #FF996A);
}

.cta-panel {
  background: linear-gradient(120deg, rgba(255, 107, 53, 0.1), rgba(74, 85, 104, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

/* 表单 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--color-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--color-text-primary);
  font-size: 15px;
}

.form-group textarea { min-height: 150px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: var(--glow-primary);
}

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

thead {
  background: rgba(255, 255, 255, 0.04);
}

th, td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
}

th {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--color-text-primary);
}

/* 页脚 */
.footer {
  background: #05070C;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer h3 {
  font-size: 18px;
  margin-bottom: var(--spacing-md);
}

.footer a {
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 20px;
  box-shadow: var(--glow-primary);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 50;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* 时间轴 */
.timeline {
  position: relative;
  margin-top: var(--spacing-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--color-secondary), transparent);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: var(--spacing-lg);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 80px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 80px;
}

.timeline-item::before {
  content: attr(data-year);
  position: absolute;
  top: var(--spacing-lg);
  font-size: 24px;
  color: var(--color-secondary);
}

.timeline-item:nth-child(odd)::before { right: -60px; }
.timeline-item:nth-child(even)::before { left: -60px; }

.timeline-dot {
  position: absolute;
  top: var(--spacing-lg);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.8);
}

.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

.timeline-card {
  background: rgba(14, 18, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

/* 图片框 */
.image-frame {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* 标签墙 */
.label-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 响应式 */
@media (max-width: 992px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .timeline::before { left: 8px; }
  .timeline-item,
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-lg) 48px;
  }
  .timeline-item::before { left: -40px; right: auto; }
  .timeline-dot { left: -1px !important; }
}

@media (max-width: 600px) {
  .page-header { padding: 120px 0 70px; }
  .page-header h1 { font-size: 34px; }
  .page-actions { flex-direction: column; width: 100%; }
  .page-actions .btn { width: 100%; text-align: center; }
}
