 :root {
        --primary: #4a6cf7;
        --secondary: #00f7ff;
        --accent: #ff6b9e;
        --dark: #0a0a1a;
        --light: #f0f5ff;
        --card-bg: rgba(255, 255, 255, 0.08);
        --card-border: rgba(255, 255, 255, 0.15);
        --transition: all 0.3s ease;
        --shadow: 0 10px 30px rgba(0, 247, 255, 0.1);
        --star-color: rgba(255, 255, 255, 0.8);
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
      }

      body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          sans-serif;
        background: radial-gradient(
          circle at top,
          #1a1a3e 0%,
          var(--dark) 100%
        );
        color: var(--light);
        line-height: 1.5;
        overflow-x: hidden;
        min-height: 100vh;
        position: relative;
      }

      /* 星空背景 */
      .stars {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        overflow: hidden;
      }

      .star {
        position: absolute;
        background-color: var(--star-color);
        border-radius: 50%;
        animation: twinkle var(--duration) infinite ease-in-out;
        opacity: var(--opacity);
      }

      @keyframes twinkle {
        0%,
        100% {
          opacity: 0.2;
        }
        50% {
          opacity: 1;
        }
      }

      /* 通用样式 */
      .container {
        width: 95%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
      }

      .section-header {
        text-align: center;
        margin-bottom: 40px;
        position: relative;
      }

      .section-title {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 15px;
        background: linear-gradient(to right, var(--light), var(--secondary));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        position: relative;
        display: inline-block;
      }

      .section-title::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(to right, var(--primary), var(--accent));
        border-radius: 3px;
      }

      .section-subtitle {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.8);
        max-width: 700px;
        margin: 0 auto;
      }

      /* 导航栏 */
      .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 15px 0;
        background: rgba(10, 10, 26, 0.98);
        z-index: 1000;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
      }

      .navbar.scrolled {
        padding: 10px 0;
        background: rgba(10, 10, 26, 0.95);
      }

      .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .brand {
        display: flex;
        align-items: center;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--light);
        text-decoration: none;
        transition: var(--transition);
      }

      .brand:hover {
        transform: translateY(-2px);
        text-shadow: 0 5px 15px rgba(74, 108, 247, 0.4);
      }

      .brand-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        color: white;
        font-size: 1.2rem;
        transition: var(--transition);
        box-shadow: 0 5px 15px rgba(74, 108, 247, 0.4);
      }

      .brand:hover .brand-icon {
        transform: rotate(15deg) scale(1.1);
        box-shadow: 0 8px 20px rgba(74, 108, 247, 0.6);
      }

      /* 主内容区 */
      .main-content {
        padding: 120px 0 80px;
      }

      /* 对比预览 */
      .comparison-container {
        width: 100%;
        max-width: 900px;
        margin: 0 auto 30px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow);
        position: relative;
        transition: var(--transition);
      }

      .comparison-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 247, 255, 0.2);
      }

      .image-wrapper {
        position: relative;
        width: 100%;
        height: 400px;
      }

      .comparison-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .image-before {
        z-index: 1;
      }

      .image-after {
        z-index: 2;
        width: 50%;
      }

      .resize-handle {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--secondary);
        cursor: ew-resize;
        z-index: 3;
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 0 10px var(--secondary);
      }

      .resize-handle::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--secondary);
        box-shadow: 0 0 15px var(--secondary);
      }

      .resize-handle::after {
        content: "↔";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: var(--dark);
        font-weight: bold;
        font-size: 12px;
      }

      /* 标签样式 */
      .image-label {
        position: absolute;
        bottom: 20px;
        padding: 5px 15px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 20px;
        font-size: 0.9rem;
        z-index: 4;
        transition: var(--transition);
      }

      .label-before {
        left: 20px;
        border: 1px solid var(--primary);
        color: var(--primary);
      }

      .label-after {
        right: 20px;
        border: 1px solid var(--accent);
        color: var(--accent);
      }

      /* 控制按钮 */
      .controls {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
      }

      .control-btn {
        padding: 10px 25px;
        border-radius: 30px;
        border: none;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 5px 15px rgba(74, 108, 247, 0.4);
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .control-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(74, 108, 247, 0.6);
      }

      .control-btn:active {
        transform: translateY(1px);
      }

      /* 响应式调整 */
      @media (max-width: 768px) {
        .section-title {
          font-size: 2rem;
        }
        .image-wrapper {
          height: 300px;
        }
      }

      @media (max-width: 480px) {
        .section-title {
          font-size: 1.8rem;
        }
        .image-wrapper {
          height: 250px;
        }
        .controls {
          flex-direction: column;
          align-items: center;
        }
      }