/* 创建新的堆叠上下文，确保背景图可见 */
    html {
      background: var(--bg-light);
    }
    body {
      position: relative;
      background: transparent;
      min-height: 100vh;
    }
    /* 背景图层 - 使用更高优先级 */
    body > .bg-layer,
    body::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 350px;
      background: linear-gradient(135deg, rgba(28,31,39,0.3), rgba(20,22,28,0.4)),
                  var(--page-bg-img, url('/standard/../shared/images/history-bg.webp')) center/cover no-repeat;
      z-index: 1;
      pointer-events: none;
    }
    .page-header {
      background: transparent;
    }
    .page-header::before {
      content: none;
      display: none;
    }

    /* ================================
       页面特有样式（顶部横幅样式已统一在 header.css 中）
       ================================ */

    :root {
      --primary-red: #C41E3A;
      --primary-dark-red: #8B0000;
      --accent-yellow: #FFCC00;
      --text-dark: #1A202C;
      --text-gray: #4A5568;
      --text-light: #718096;
      --bg-light: #F7FAFC;
      --bg-white: #FFFFFF;
      --border-color: #E2E8F0;
      --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
      --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html{overflow-y:scroll;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;background: var(--bg-light);}
    body { font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif; background: transparent; color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
    
    .page-header {
      position: relative;
      background: transparent;
      z-index: 10;
      color: #FFCC00;
      height: 350px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding-top: 0;
      box-sizing: border-box;
    }

    .page-header h1 { font-size: 42px; margin-bottom: 15px; }
    
    .history-section { 
      padding: 60px 0 80px; 
      max-width: 1400px; 
      margin: 0 auto; 
    }
    
    .history-intro { 
      padding: 40px;
      margin: 0 30px 50px;
      background: linear-gradient(135deg, rgba(28,31,39, 0.03), rgba(28,31,39, 0.01));
      border-radius: 24px;
      border: 1px solid rgba(28,31,39, 0.08);
      position: relative;
      overflow: hidden;
    }
    
    .history-intro::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary-red), var(--accent-yellow));
    }
    
    .history-intro h2 { 
      font-size: 32px; 
      color: var(--primary-dark-red); 
      margin-bottom: 24px;
      font-weight: 700;
      letter-spacing: -0.5px;
    }
    
    .history-intro p { 
      color: var(--text-gray); 
      line-height: 1.9; 
      margin-bottom: 16px; 
      font-size: 17px;
    }
    
    .gallery-grid { 
      display: grid; 
      grid-template-columns: repeat(4, 1fr); 
      gap: 28px; 
      padding: 0 30px;
    }
    
    .gallery-item { 
      position: relative; 
      border-radius: 20px; 
      overflow: hidden; 
      aspect-ratio: 4/3; 
      text-decoration: none; 
      display: block; 
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 16px rgba(28,31,39, 0.1);
      border: 1px solid rgba(28,31,39, 0.08);
    }
    
    .gallery-item::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 70%);
      z-index: 1;
      opacity: 0.9;
      transition: opacity 0.3s;
    }
    
    .gallery-item:hover { 
      transform: translateY(-12px) scale(1.02); 
      box-shadow: 0 20px 48px rgba(28,31,39, 0.25);
    }
    
    .gallery-item:hover::before {
      opacity: 1;
    }
    
    .gallery-item img { 
      width: 100%; 
      height: 100%; 
      object-fit: cover; 
      transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .gallery-item:hover img { 
      transform: scale(1.15);
    }
    
    .gallery-item .caption { 
      position: absolute; 
      bottom: 0; 
      left: 0; 
      right: 0; 
      padding: 24px 20px 20px;
      z-index: 2;
    }
    
    .gallery-item .caption::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 20px;
      width: 40px;
      height: 4px;
      background: var(--accent-yellow);
      border-radius: 2px;
      margin-bottom: 12px;
    }
    
    .gallery-item .caption span {
      display: block;
      color: rgba(255,255,255,0.8);
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    
    .gallery-item .caption div {
      color: white; 
      font-size: 17px; 
      font-weight: 700;
      line-height: 1.4;
      padding-top: 20px;
    }
    
    @media (max-width: 1024px) {
      .gallery-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px; 
        padding: 0 20px; 
      }
      
      .history-intro {
        margin: 0 20px 50px;
      }
    }
    
    @media (max-width: 768px) {
      .page-header {
        height: 280px;
      }
      
      .page-header h1 { 
        font-size: 28px; 
      }
      
      .gallery-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 16px; 
        padding: 0 16px; 
      }
      
      .history-intro { 
        padding: 28px 20px;
        margin: 0 16px 40px;
        border-radius: 16px;
      }
      
      .history-intro h2 { 
        font-size: 24px; 
      }
      
      .history-intro p { 
        font-size: 16px; 
      }
      
      .gallery-item .caption div {
        font-size: 15px;
      }
      
      .gallery-item .caption span {
        font-size: 12px;
      }
    }
    
    @media (max-width: 480px) {
      .gallery-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
      }
    }

    /* 模态框表单 */
    .modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 9999; align-items: center; justify-content: center; overflow-y: auto; padding: 20px; }
    .modal-overlay.active { display: flex; }
    .modal-container { background: white; border-radius: 15px; width: 100%; max-width: 800px; max-height: 90vh; overflow-y: auto; position: relative; animation: modalSlideIn 0.3s ease; }
    @keyframes modalSlideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    .modal-header { background: linear-gradient(135deg, var(--primary-red), var(--primary-dark-red)); color: white; padding: 25px 30px; display: flex; justify-content: space-between; align-items: center; }
    .modal-header h2 { font-size: 28px; font-weight: 700; }
    .modal-close { background: rgba(255,255,255,0.2); border: none; color: white; width: 35px; height: 35px; border-radius: 50%; font-size: 20px; cursor: pointer; transition: background 0.3s; }
    .modal-close:hover { background: rgba(255,255,255,0.3); }
    .modal-body { padding: 30px; }
    .modal-section { margin-bottom: 30px; }
    .modal-section h3 { font-size: 18px; color: var(--primary-red); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border-color); }
    .modal-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
    .modal-group { margin-bottom: 20px; }
    .modal-group.full { grid-column: 1 / -1; }
    .modal-group label { display: block; color: var(--text-dark); font-weight: 600; margin-bottom: 8px; font-size: 14px; }
    .modal-group label .required { color: #e53e3e; margin-left: 5px; }
    .modal-group input, .modal-group textarea, .modal-group select { width: 100%; padding: 12px 14px; border: 2px solid var(--border-color); border-radius: 8px; font-size: 14px; font-family: inherit; transition: border-color 0.3s; }
    .modal-group input:focus, .modal-group textarea:focus, .modal-group select:focus { outline: none; border-color: var(--primary-red); }
    .modal-group textarea { resize: vertical; min-height: 100px; }
    .modal-submit { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--primary-red), var(--primary-dark-red)); color: white; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s; margin-top: 20px; }
    .modal-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(28,31,39,0.3); }
    .modal-success { display: none; background: #c6f6d5; color: #22543d; padding: 20px; border-radius: 10px; margin-bottom: 25px; text-align: center; }
    .modal-success.show { display: block; }
    @media (max-width: 768px) { .modal-row { grid-template-columns: 1fr; } }
  

    

    /* 红色渐变背景层 - 从上到下逐渐透明 */
    body::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 315px;
      background: linear-gradient(to bottom,
        rgba(168, 40, 29, 1) 0%,
        rgba(168, 40, 29, 0.8) 50%,
        rgba(168, 40, 29, 0) 90%);
      z-index: 2;
      pointer-events: none;
    }