/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
html, body {
    height: 100%;
    overflow: auto;
}

  /* 固定顶部导航栏样式 */
.navbar {
    position: sticky;
    background-color:transparent;
    padding: 10px 10px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 999;
    height: 65px;
}
  
.navbar a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    font-size: 25px; 
}
  
.navbar a:hover {
    color: #20dd0e;
}

.navbar a.active {
    color: #2ecc71;
    font-weight: bold;
}
  
  /* 每个内容区块样式 */
section {
    padding: 80px 20px;
    border-bottom: 1px solid #eee;
}

#progress-container {
    height: 6px;
    width: 100%;
    background-color: #20dd0e;
    position: fixed;
    top: 133px;
    z-index: 999;
    left: 0px;
  }
  
  #progress-bar {
    height: 100%;
    background-color: #5c9eff;
    width: 0%;
    transition: width 0.5s ease;
  }
  
  #progress-arrow {
    position: absolute;
    top: -20px;
    left: 0;
    transform: translateX(-50%) translateY(-6px);
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 1000;
  }
  
#progress-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
    transform-origin: center;
    transform: scale(1.3); 
}

#progress-percentage {
    background: rgba(255, 255, 255, 0.6); 
    position: fixed;
    border-radius: 60px;
    width: 120px;
    top: 220px;  
    text-align: center;
    font-size: 14px;
    color: #333;
    user-select: none;
    font-weight: bold;
  }
  

#progress-switcher {
    position: fixed;
    left:50%;
    transform: translateX(-50%);
    top: 170px;
}  
  #progress-switcher button {
    padding: 4px 12px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
  }
  
  #progress-switcher button.active {
    background: #20dd0e;
    color: white;
    border-color: #5c9eff;
  }
  
  .upload-container {
    position: fixed;
    top: 700px;
    left: 10px;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 8px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
  }
  
  .upload-label {
    display: flex;
    background-color: #2ecc71;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 13px;
    border: none;
  }
  
  #bg-upload {
    display: none;
  }
  
  .controls-panel.hidden {
    display: none;
  }
  
  .toggle-btn {
    width: 100%;
    background: #2ecc71;
    display: flex; 
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
  }
  
  
  .controls-content {
    margin-top: 10px;
  }
  
  .slider-group {
    margin-top: 8px;
  }
  
  .slider-group label {
    display: block;
    margin-bottom: 2px;
  }
  
  input[type="range"] {
    width: 100%;
  }
  
  .clear-btn {
    width: 180px;
    display: inline-flex;
    background-color: #e74c3c;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 13px;
    border: none;
    align-items: center;  
    justify-content: center;
  }

  body {
    position: relative;
    z-index: 0;
  }
  
  body::before {
    content: "";
    position: fixed;
    top: 140px; left: 0; right: 0; bottom: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--bg-opacity, 1);
    filter: blur(var(--bg-blur, 0));
    z-index: -1;
    transition: opacity 0.3s ease, filter 0.3s ease;
    pointer-events: none; /* 让背景不阻止页面点击 */
  }
  
/* 功能块 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #f4f4f4;
  padding: 40px;
}

.card-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 300px;
}

.card {
  flex: 1;
  min-width: 380px;
  max-width: 660px;
  background: white;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.card h2 {
  text-align:center;
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.card p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.card .icon {
  text-align:center;
  font-size: 40px;
  color: #4a90e2;
  margin-bottom: 12px;
}

@media (max-width: 1000px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }
}

a.grid-item {
  color: #333;       
  text-decoration: none; 
}

a.grid-item:hover {
  color: #20dd0e;    
}

.card1 {
  background-image: url('images/guofeng1.jpg');
  background-size: cover;
  background-position: center;
}

.card2 {
  background-image: url('images/guofeng2.jpg');
  background-size: cover;
  background-position: center;
}

.card3 {
  background-image: url('images/guofeng3.jpg');
  background-size: cover;
  background-position: center;
}

/* 功能块 */