
:root {
  --primary: linear-gradient(135deg, #03A9F4 0%, #1E88E5 100%);
  --secondary: #B39DDB;
  --accent: #4CAF50;
  --text: #333;
  --light: rgba(255,255,255,0.8);
  --dark: #121212;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #f9f9ff;
  margin: 0;
  padding: 0;
}

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

.header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.header::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: var(--primary);
  margin: 1.5rem auto;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  color: #1E88E5;
  margin-top: 2rem;
}

h2 {
  font-size: 2rem;
  background: var(--primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(30, 136, 229, 0.2);
}

h3 {
  font-size: 1.5rem;
  color: #555;
  position: relative;
  padding-left: 1rem;
}

h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  height: 1.5rem;
  width: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

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

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.code-block {
  background: #282c34;
  color: #abb2bf;
  padding: 1.5rem;
  border-radius: var(--radius);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 2rem 0;
  overflow-x: auto;
  position: relative;
}

.code-block::before {
  content: "CSS";
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius) 0 var(--radius) 0;
  font-size: 0.75rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery img:hover {
  transform: scale(1.03);
}

.notice {
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.notice::before {
  content: "提示";
  display: block;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}

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

.decorative {
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

.decorative:nth-child(1) {
  top: 10%;
  left: 5%;
  width: 150px;
  height: 150px;
}

.decorative:nth-child(2) {
  top: 60%;
  right: 5%;
  animation-delay: 1s;
}

.decorative:nth-child(3) {
  bottom: 10%;
  left: 20%;
  width: 80px;
  height: 80px;
  animation-delay: 2s;
}

