
:root {
  --primary: #0f2027;
  --secondary: #203a43;
  --accent: #00c6ff;
  --text: #e0e0e0;
  --bg: #121f2a;
  --card-bg: rgba(32, 58, 67, 0.6);
  --neon: 0 0 10px rgba(0, 198, 255, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 198, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 198, 255, 0.1) 0%, transparent 50%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  text-align: center;
  padding: 60px 0 40px;
  position: relative;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: var(--neon);
}

h2 {
  font-size: 1.8rem;
  color: var(--accent);
  position: relative;
  padding-bottom: 10px;
  margin-top: 3rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  color: #fff;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: var(--neon);
}

.note {
  background: var(--card-bg);
  border-left: 3px solid var(--accent);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 5px 5px 0;
}

.note::before {
  content: "提示";
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--accent);
}

.img-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
  justify-content: center;
}

.img-card {
  width: 300px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.img-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 198, 255, 0.3);
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-card:hover img {
  transform: scale(1.1);
}

.img-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 198, 255, 0.1), transparent);
}

.code-container {
  background: #1e2b38;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  overflow: auto;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
}

.code-container::before {
  content: "CSS";
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #000;
  padding: 5px 15px;
  border-radius: 0 8px 0 8px;
  font-size: 0.8rem;
  font-weight: bold;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

code {
  font-family: 'Courier New', monospace;
  color: #a7c4d4;
}

code span {
  color: #00c6ff;
}

.section {
  padding: 60px 0;
  background: linear-gradient(to right, #141e30, #243b55);
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
  margin: 40px 0;
  border-radius: 10px;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3);
  margin: 20px 0;
}

.button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 198, 255, 0.5);
}

.accordion {
  margin: 40px 0;
}

.accordion-item {
  border-bottom: 1px solid #2c5364;
  margin-bottom: 10px;
}

.accordion-title {
  cursor: pointer;
  padding: 15px;
  font-family: 'Roboto', sans-serif;
  background: #203a43;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 5px;
}

.accordion-title:hover {
  background: #2c5364;
}

.accordion-title::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-title::after {
  content: "-";
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background: #2c5364;
  padding: 0 15px;
  border-radius: 0 0 5px 5px;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 15px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  background: #141e30;
  border-radius: 10px;
  margin: 40px 0;
}

.metric {
  text-align: center;
  color: #00c6ff;
  transition: all 0.3s ease;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.metric:hover {
  transform: scale(1.05);
  background: rgba(0, 198, 255, 0.1);
}

.metric-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.metric-value {
  font-size: 2rem;
  font-weight: bold;
  margin: 10px 0;
}

.metric-label {
  font-size: 1rem;
  opacity: 0.8;
}

.footer {
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(0, 198, 255, 0.2);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .img-card {
    width: 100%;
    max-width: 300px;
  }
  
  .dashboard {
    grid-template-columns: 1fr;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.particle {
  position: fixed;
  width: 2px;
  height: 2px;
  background: rgba(0, 198, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

