
    /* 基础样式重置 */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* 全局样式 */
    :root {
      --primary: #3B82F6;
      --primary-light: #60A5FA;
      --primary-dark: #2563EB;
      --secondary: #10B981;
      --accent: #8B5CF6;
      --dark: #1E293B;
      --light: #F8FAFC;
      --gray-50: #F9FAFB;
      --gray-100: #F3F4F6;
      --gray-200: #E5E7EB;
      --gray-300: #D1D5DB;
      --gray-400: #9CA3AF;
      --gray-500: #6B7280;
      --gray-600: #4B5563;
      --gray-700: #374151;
      --gray-800: #1F2937;
      --white: #FFFFFF;
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
      --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
      --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      --border-radius: 8px;
      --border-radius-lg: 12px;
      --transition: all 0.3s ease;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      line-height: 1.6;
      color: var(--gray-800);
      background-color: var(--gray-50);
      padding-top: 80px;
    }

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

    /* 标题样式 */
    h1, h2, h3, h4, h5, h6 {
      line-height: 1.3;
      margin-bottom: 1rem;
    }

    h1 {
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 800;
    }

    h2 {
      font-size: clamp(1.5rem, 3vw, 2.5rem);
      font-weight: 700;
    }

    h3 {
      font-size: 1.5rem;
      font-weight: 600;
    }

    h4 {
      font-size: 1.25rem;
      font-weight: 600;
    }

    /* 文本样式 */
    p {
      margin-bottom: 1rem;
      color: var(--gray-600);
    }

    a {
      color: var(--primary);
      text-decoration: none;
      transition: var(--transition);
    }

    a:hover {
      color: var(--primary-dark);
      text-decoration: underline;
    }

    /* 按钮样式 */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 20px;
      border-radius: var(--border-radius);
      font-weight: 500;
      cursor: pointer;
      transition: var(--transition);
      border: none;
      font-size: 1rem;
    }

    .btn-primary {
      background-color: var(--primary);
      color: white;
    }

    .btn-primary:hover {
      background-color: #8b5cf6;
      transform: translateY(-2px);
      text-decoration: none;
      color:#fff;
    }

    .btn-secondary {
      background-color: white;
      color: var(--primary);
      border: 1px solid var(--primary);
    }

    .btn-secondary:hover {
      background-color: var(--gray-50);
      transform: translateY(-2px);
        text-decoration: none;
      background:rgba(59, 130, 246, 0.1);
    }

    .btn-dark {
      background-color: var(--gray-800);
      color: white;
    }

    .btn-dark:hover {
      background-color: var(--gray-700);
      transform: translateY(-2px);
    }

    /* 布局工具类 */
    .flex {
      display: flex;
    }

    .flex-col {
      flex-direction: column;
    }

    .flex-wrap {
      flex-wrap: wrap;
    }

    .justify-between {
      justify-content: space-between;
    }

    .justify-center {
      justify-content: center;
    }

    .items-center {
      align-items: center;
    }

    .items-start {
      align-items: flex-start;
    }

    .gap-2 {
      gap: 8px;
    }

    .gap-4 {
      gap: 16px;
    }

    .gap-6 {
      gap: 24px;
    }

    .gap-8 {
      gap: 32px;
    }

    .grid {
      display: grid;
    }

    .grid-cols-1 {
      grid-template-columns: repeat(1, 1fr);
    }

    .grid-cols-2 {
      grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
      grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-9 {
      grid-template-columns: repeat(9, 1fr);
    }

    .grid-rows-3 {
      grid-template-rows: repeat(3, 1fr);
    }

    .relative {
      position: relative;
    }

    .absolute {
      position: absolute;
    }

    .inset-0 {
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
    }

    .z-10 {
      z-index: 10;
    }

    .z-50 {
      z-index: 50;
    }

    /* 间距工具类 */
    .m-auto {
      margin: 0 auto;
    }

    .mt-4 {
      margin-top: 16px;
    }

    .mt-6 {
      margin-top: 24px;
    }

    .mt-8 {
      margin-top: 32px;
    }

    .mb-4 {
      margin-bottom: 16px;
    }

    .mb-6 {
      margin-bottom: 24px;
    }

    .mb-8 {
      margin-bottom: 32px;
    }

    .mb-12 {
      margin-bottom: 48px;
    }

    .mb-16 {
      margin-bottom: 64px;
    }

    .mb-24 {
      margin-bottom: 96px;
    }

    .p-4 {
      padding: 16px;
    }

    .p-6 {
      padding: 24px;
    }

    .p-8 {
      padding: 32px;
    }

    .py-12 {
      padding-top: 48px;
      padding-bottom: 48px;
    }

    .px-4 {
      padding-left: 16px;
      padding-right: 16px;
    }

    /* 尺寸工具类 */
    .w-full {
      width: 100%;
    }

    .max-w-2xl {
      max-width: 600px;
    }

    .max-w-3xl {
      max-width: 720px;
    }

    .h-full {
      height: 100%;
    }

    .h-64 {
      height: 256px;
    }

    /* 文本工具类 */
    .text-center {
      text-align: center;
    }

    .text-left {
      text-align: left;
    }

    .text-white {
      color: white;
    }

    .text-primary {
      color: var(--primary);
    }

    .text-secondary {
      color: var(--secondary);
    }

    .text-accent {
      color: var(--accent);
    }

    .text-gray-400 {
      color: var(--gray-400);
    }

    .text-gray-500 {
      color: var(--gray-500);
    }

    .text-gray-600 {
      color: var(--gray-600);
    }

    .text-sm {
      font-size: 0.875rem;
    }

    .text-lg {
      font-size: 1.125rem;
    }

    .font-bold {
      font-weight: 700;
    }

    .font-semibold {
      font-weight: 600;
    }

    /* 背景和边框样式 */
    .bg-white {
      background-color: white;
    }

    .bg-gray-50 {
      background-color: var(--gray-50);
    }

    .bg-gray-100 {
      background-color: var(--gray-100);
    }

    .bg-gray-800 {
      background-color: var(--gray-800);
    }

    .bg-primary {
      background-color: var(--primary);
    }

    .bg-gradient-primary {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    }

    .border {
      border: 1px solid var(--gray-200);
    }

    .border-dashed {
      border-style: dashed;
    }

    .border-primary {
      border-color: var(--primary);
    }

    .rounded {
      border-radius: var(--border-radius);
    }

    .rounded-lg {
      border-radius: var(--border-radius-lg);
    }

    .rounded-full {
      border-radius: 9999px;
    }

    /* 阴影样式 */
    .shadow {
      box-shadow: var(--shadow);
    }

    .shadow-md {
      box-shadow: var(--shadow-md);
    }

    .shadow-lg {
      box-shadow: var(--shadow-lg);
    }

    /* 显示控制 - 修复了hidden类的定义 */
    .hidden {
      display: none !important; /* 添加!important确保优先级 */
    }

    .opacity-50 {
      opacity: 0.5;
    }

    /* 其他工具类 */
    .overflow-hidden {
      overflow: hidden;
    }

    .cursor-pointer {
      cursor: pointer;
    }

    .cursor-not-allowed {
      cursor: not-allowed;
    }

    .object-cover {
      object-fit: cover;
    }

    .object-contain {
      object-fit: contain;
    }

    .pointer-events-none {
      pointer-events: none;
    }

    /* 导航栏 */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background-color: white;
      box-shadow: var(--shadow-sm);
      z-index: 100;
      transition: var(--transition);
    }

    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 20px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      font-size: 1.25rem;
      color: var(--gray-800);
    }

    .logo-icon {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.25rem;
    }

    nav ul {
      display: flex;
      list-style: none;
      gap: 32px;
    }

    nav a {
      color: var(--gray-600);
      font-weight: 500;
      text-decoration: none;
    }

    nav a:hover {
      color: var(--primary);
    }

    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--gray-700);
    }

    /* 英雄区域 */
    .hero {
      display: flex;
      flex-direction: column;
      gap: 40px;
      margin-bottom: 96px;
    }

    .hero-content {
      flex: 1;
      margin-top: 80px;
    }

    .hero-image {
      flex: 1;
      position: relative;
    }

    .hero-image img {
      width: 100%;
      border-radius: var(--border-radius-lg);
      box-shadow: var(--shadow-lg);
    }

    .grid-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 1fr);
      gap: 2px;
    }

    .grid-overlay div {
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .gradient-text {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .user-avatars {
      display: flex;
      margin-top: 24px;
    }

    .user-avatars img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 2px solid white;
      margin-left: -10px;
    }

    .user-avatars img:first-child {
      margin-left: 0;
    }

    /* 上传区域 */
    .upload-section {
      background-color: white;
      border-radius: var(--border-radius-lg);
      box-shadow: var(--shadow-md);
      padding: 32px;
      margin-bottom: 96px;
    }

    .upload-container {
      display: flex;
      flex-direction: column;
      gap: 32px;
    }

    .upload-area {
      flex: 1;
      border: 2px dashed var(--gray-300);
      border-radius: var(--border-radius);
      padding: 40px 20px;
      text-align: center;
      cursor: pointer;
      transition: var(--transition);
      background-color: var(--gray-50);
    }

    .upload-area:hover {
      border-color: var(--primary);
      background-color: rgba(59, 130, 246, 0.05);
    }

    .upload-icon {
      font-size: 4rem;
      color: var(--gray-400);
      margin-bottom: 16px;
    }

    .preview-container {
      margin-top: 24px;
    }

    .image-preview {
      background-color: var(--gray-100);
      border-radius: var(--border-radius);
      height: 256px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }

    .image-preview img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .results-area {
      flex: 1;
      min-height: 300px; /* 确保结果区域有足够高度 */
    }

    .split-images {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-top: 16px;
    }

    .split-image-item {
      position: relative;
      border-radius: var(--border-radius);
      overflow: hidden;
      aspect-ratio: 1/1;
    }

    .split-image-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .download-btn {
      position: absolute;
      bottom: 8px;
      right: 8px;
      background-color: rgba(255, 255, 255, 0.8);
      border-radius: 50%;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      cursor: pointer;
      transition: var(--transition);
    }

    .download-btn:hover {
      background-color: white;
    }

    .placeholder {
      border: 2px dashed var(--gray-200);
      border-radius: var(--border-radius);
      height: 100%;
      min-height: 300px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 24px;
    }

    .placeholder-icon {
      font-size: 4rem;
      color: var(--gray-300);
      margin-bottom: 16px;
    }

    /* 功能特点 */
    .features {
      margin-bottom: 96px;
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 24px;
      margin-top: 48px;
    }

    .feature-card {
      background-color: white;
      border-radius: var(--border-radius-lg);
      padding: 24px;
      box-shadow: var(--shadow);
      transition: var(--transition);
    }

    .feature-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
    }

    .feature-icon {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
      font-size: 1.5rem;
    }

    .feature-icon.primary {
      background-color: rgba(59, 130, 246, 0.1);
      color: var(--primary);
    }

    .feature-icon.accent {
      background-color: rgba(139, 92, 246, 0.1);
      color: var(--accent);
    }

    .feature-icon.secondary {
      background-color: rgba(16, 185, 129, 0.1);
      color: var(--secondary);
    }

    .feature-icon.gray {
      background-color: var(--gray-100);
      color: var(--gray-700);
    }

    /* 案例展示 */
    .examples {
      margin-bottom: 96px;
    }

    .examples-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 24px;
      margin-top: 48px;
    }

    .example-card {
      background-color: white;
      border-radius: var(--border-radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: var(--transition);
    }

    .example-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
    }

    .example-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }

    .example-content {
      padding: 20px;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .tag {
      padding: 4px 12px;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 500;
    }

    .tag-primary {
      background-color: rgba(59, 130, 246, 0.1);
      color: var(--primary);
    }

    .tag-gray {
      background-color: var(--gray-100);
      color: var(--gray-700);
    }

    /* 使用教程 */
    .tutorial {
      margin-bottom: 96px;
    }

    .tutorial-steps {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 32px;
      margin-top: 48px;
    }

    .tutorial-step {
      background-color: white;
      border-radius: var(--border-radius-lg);
      padding: 24px;
      box-shadow: var(--shadow);
      position: relative;
    }

    .step-number {
      position: absolute;
      top: -16px;
      left: 24px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 700;
    }

    .step-number.step-1 {
      background-color: var(--primary);
    }

    .step-number.step-2 {
      background-color: var(--accent);
    }

    .step-number.step-3 {
      background-color: var(--secondary);
    }

    .tutorial-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: var(--border-radius);
      margin-bottom: 16px;
      margin-top: 16px;
    }

    /* 常见问题 */
    .faq {
      margin-bottom: 96px;
    }

    .faq-list {
      max-width: 720px;
      margin: 48px auto 0;
    }

    .faq-item {
      background-color: white;
      border-radius: var(--border-radius);
      box-shadow: var(--shadow-sm);
      margin-bottom: 16px;
      overflow: hidden;
    }

    .faq-question {
      width: 100%;
      padding: 20px;
      text-align: left;
      background: none;
      border: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      font-weight: 600;
      font-size: 1rem;
    }

    .faq-question:hover {
      background-color: var(--gray-50);
    }

    .faq-answer {
      padding: 0 20px 20px;
      color: var(--gray-600);
      display: none;
    }

    .faq-answer.active {
      display: block;
    }

    .faq-icon {
      transition: transform 0.3s ease;
    }

    .faq-icon.active {
      transform: rotate(180deg);
    }

    /* 行动召唤 */
    .cta {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      border-radius: var(--border-radius-lg);
      padding: 64px 20px;
      text-align: center;
      color: white;
      margin-bottom: 96px;
    }

    .cta h2 {
      color: white;
      margin-bottom: 24px;
    }

    .cta p {
      color: rgba(255, 255, 255, 0.9);
      max-width: 720px;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 32px;
    }

    .cta .btn {
      background-color: white;
      color: var(--primary);
      font-weight: 600;
      padding: 12px 32px;
      font-size: 1.125rem;
    }

    /* 页脚 */
    footer {
      background-color: var(--gray-800);
      color: white;
      padding: 64px 0 32px;
    }

    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 40px;
      margin-bottom: 48px;
    }

    .footer-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      font-size: 1.25rem;
      color: white;
      margin-bottom: 16px;
    }

    .footer-logo-icon {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.25rem;
    }

    .footer-description {
      color: var(--gray-400);
      margin-bottom: 24px;
    }

    .social-links {
      display: flex;
      gap: 16px;
    }

    .social-links a {
      color: var(--gray-400);
      font-size: 1.25rem;
      transition: var(--transition);
    }

    .social-links a:hover {
      color: white;
    }

    .footer-heading {
      font-weight: 600;
      font-size: 1.125rem;
      margin-bottom: 24px;
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 12px;
    }

    .footer-links a {
      color: var(--gray-400);
      transition: var(--transition);
    }

    .footer-links a:hover {
      color: white;
      text-decoration: none;
    }

    .footer-contact {
      list-style: none;
    }

    .footer-contact li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 12px;
      color: var(--gray-400);
    }

    .footer-contact i {
      margin-top: 4px;
    }

    .footer-bottom {
      border-top: 1px solid var(--gray-700);
      padding-top: 24px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .footer-bottom-links {
      display: flex;
      gap: 24px;
    }

    .footer-bottom-links a {
      color: var(--gray-400);
      font-size: 0.875rem;
      transition: var(--transition);
    }

    .footer-bottom-links a:hover {
      color: white;
      text-decoration: none;
    }

    .copyright {
      color: var(--gray-400);
      font-size: 0.875rem;
    }

    /* 响应式设计 */
    @media (min-width: 768px) {
      .hero {
        flex-direction: row;
      }

      .upload-container {
        flex-direction: row;
      }

      .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }
    }

    @media (max-width: 767px) {
      nav ul {
        display: none;
      }

      .mobile-menu-btn {
        display: block;
      }

      .features-grid,
      .examples-grid,
      .tutorial-steps {
        grid-template-columns: 1fr;
      }

      .hero-buttons {
        flex-direction: column;
      }
    }

    /* 动画效果 */
    @keyframes pulse {
      0%, 100% {
        opacity: 1;
      }
      50% {
        opacity: 0.6;
      }
    }

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

    .animate-pulse {
      animation: pulse 3s ease-in-out infinite;
    }

    .animate-float {
      animation: float 3s ease-in-out infinite;
      margin-top: 80px;
    }
