
  :root {
    --primary: #0d1b2a;
    --secondary: #1b263b;
    --accent: #0ff;
    --highlight: #ff0;
    --text: #e0e0e0;
    --card-bg: rgba(27, 38, 59, 0.8);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

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

  body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    min-height: 100%;
    padding: 80px 0 0;
  }

  @keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
  }

  .stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  .star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkling 5s infinite ease-in-out;
  }

  @keyframes twinkling {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
  }

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

  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
  }

  .logo::after {
    content: "这是一个网页样式设计参考";
    font-size: 0.8rem;
    color: var(--text);
    margin-left: 15px;
    font-weight: 400;
    opacity: 0.7;
  }

  .nav {
    display: flex;
    gap: 25px;
  }

  .nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
  }

  .nav-link:hover {
    color: var(--accent);
  }

  .nav-link:hover::after {
    width: 100%;
  }

  .hero {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
    animation: rotate 60s linear infinite;
    z-index: -1;
  }

  @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--accent), #f0f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
  }

  @keyframes titleGlow {
    0% { text-shadow: 0 0 10px rgba(0, 255, 255, 0.3); }
    100% { text-shadow: 0 0 30px rgba(0, 255, 255, 0.6); }
  }

  .hero-subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
  }

  .content-section {
    padding: 80px 0;
    position: relative;
  }

  .content-section:nth-child(even) {
    background: rgba(13, 27, 42, 0.5);
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--accent);
    position: relative;
    display: inline-block;
  }

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

  article {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
  }

  article h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--accent);
    position: relative;
  }

  article h2::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
  }

  article p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
  }

  .image-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
  }

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

  .image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
  }

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

  .image-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  }

  pre {
    background: rgba(13, 27, 42, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  pre::before {
    content: "CSS";
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: var(--primary);
    padding: 2px 10px;
    font-size: 0.8rem;
    border-bottom-left-radius: 5px;
  }

  code {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
  }

  .footer {
    background: rgba(13, 27, 42, 0.9);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-link {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
  }

  .footer-link:hover {
    color: var(--accent);
  }

  .copyright {
    opacity: 0.7;
    font-size: 0.9rem;
  }

  @media (max-width: 768px) {
    .hero-title {
      font-size: 2.5rem;
    }
    
    .hero-subtitle {
      font-size: 1.2rem;
    }
    
    .nav {
      gap: 15px;
    }
    
    .image-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 480px) {
    .header-container {
      flex-direction: column;
      gap: 15px;
    }
    
    .logo::after {
      display: none;
    }
    
    .hero-title {
      font-size: 2rem;
    }
    
    .section-title {
      font-size: 2rem;
    }
    
    article h2 {
      font-size: 1.5rem;
    }
  }

