:root {
    --brand-bg: #0f0b1a;
    --brand-bg-alt: #181126;
    --brand-purple: #a855f7;
    --brand-pink: #ec4899;
    --brand-text: #e5e0f0;
    --brand-muted: #9d94b8;
    --brand-border: rgba(168, 85, 247, 0.2);
    --brand-card: #1f1730;
    --gradient-text: linear-gradient(90deg, #f472b6, #a855f7, #60a5fa, #34d399);
  }

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

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px; /* 底部浮动窗留白 */
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul {
    list-style: none;
  }

  /* 头部导航 */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 11, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--brand-border);
  }

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

  .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo-area img {
    height: 32px;
    width: auto;
  }

  .logo-area span {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .desktop-nav {
    display: none;
    gap: 20px;
    font-size: 15px;
    color: var(--brand-muted);
  }

  .desktop-nav a {
    transition: color 0.2s, text-shadow 0.2s;
  }

  .desktop-nav a:hover {
    color: var(--brand-pink);
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--brand-text);
    font-size: 24px;
    cursor: pointer;
  }

  .mobile-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--brand-bg-alt);
    border-bottom: 1px solid var(--brand-border);
    padding: 10px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-nav.is-active {
    display: flex;
  }

  .mobile-nav a {
    padding: 8px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* 首屏 */
  .hero-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .hero-bg-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168,85,247,0.3) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
  }

  .hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-desc {
    font-size: 15px;
    color: var(--brand-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-desc span {
    color: var(--brand-pink);
    font-weight: 600;
  }

  .hero-visuals {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    height: 200px;
    perspective: 1000px;
  }

  .hero-img-box {
    flex: 0 0 30%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--brand-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s;
  }

  .hero-img-box:nth-child(1) { transform: rotate(-5deg) translateY(10px); }
  .hero-img-box:nth-child(2) { transform: translateY(-10px) scale(1.05); z-index: 2; }
  .hero-img-box:nth-child(3) { transform: rotate(5deg) translateY(10px); }

  .hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .download-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-pink));
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
  }

  .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
  }

  .btn-outline {
    background: transparent;
    border: 1px solid var(--brand-purple);
    color: var(--brand-text);
    box-shadow: none;
  }
  
  .btn-outline:hover {
    background: rgba(168, 85, 247, 0.1);
  }

  /* 跑马灯 */
  .marquee-wrap {
    width: 100%;
    overflow: hidden;
    background: #000;
    padding: 10px 0;
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
    margin-top: 20px;
  }

  .marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll 15s linear infinite;
  }

  .marquee-content span {
    display: inline-block;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
  }

  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* 通用区块样式 */
  .section-block {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-header {
    text-align: center;
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 24px;
    color: var(--brand-text);
    margin-bottom: 8px;
  }

  .section-header p {
    color: var(--brand-muted);
    font-size: 14px;
  }

  /* 核心功能 */
  .feature-section {
    background: var(--brand-bg-alt);
  }
  
  .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    background: var(--brand-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--brand-border);
    transition: transform 0.2s, border-color 0.2s;
  }

  .feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-purple);
  }

  .feature-card h3 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 6px;
  }

  .feature-card p {
    font-size: 14px;
    color: var(--brand-muted);
  }

  /* 使用教程 */
  .tutorial-section {
    background: var(--brand-bg);
  }

  .tutorial-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tutorial-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    padding: 14px;
    border-radius: 10px;
  }

  .tutorial-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-purple);
    color: #fff;
    text-align: center;
    font-size: 13px;
    line-height: 24px;
    font-weight: bold;
  }
  
  .tutorial-text h3 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
  }
  
  .tutorial-text p {
    font-size: 13px;
    color: var(--brand-muted);
  }

  /* 角色广场 */
  .roles-section {
    background: #140e20;
  }

  .role-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .role-scroll::-webkit-scrollbar {
    height: 4px;
  }
  .role-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-purple);
    border-radius: 2px;
  }

  .role-card {
    scroll-snap-align: start;
    flex: 0 0 140px;
    background: var(--brand-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
  }

  .role-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }

  .role-info {
    padding: 8px;
  }

  .role-info h3 {
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .role-info p {
    font-size: 11px;
    color: var(--brand-muted);
  }

  .role-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(236, 72, 153, 0.8);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
  }

  /* 个性定制 */
  .custom-section {
    background: var(--brand-bg-alt);
  }

  .custom-split {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .custom-img-box {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--brand-border);
  }

  .custom-img-box img {
    width: 100%;
    display: block;
    object-fit: cover;
  }

  .custom-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .custom-item {
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--brand-pink);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
  }

  .custom-item h3 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 2px;
  }

  .custom-item p {
    font-size: 13px;
    color: var(--brand-muted);
  }

  /* AI聊天 */
  .chat-section {
    background: var(--brand-bg);
  }

  .chat-demo-box {
    background: #000;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--brand-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .chat-msg.ai {
    flex-direction: row;
  }

  .chat-msg.user {
    flex-direction: row-reverse;
  }

  .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
  }
  
  .avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .bubble {
    background: var(--brand-card);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 80%;
    border: 1px solid rgba(255,255,255,0.05);
  }

  .chat-msg.user .bubble {
    background: #3b1e5e;
    color: #fff;
  }

  /* 隐私安全 */
  .privacy-section {
    background: #1a1125;
  }

  .privacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .privacy-card {
    background: rgba(255,255,255,0.03);
    padding: 16px;
    border-radius: 10px;
  }

  .privacy-card h3 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .privacy-card h3::before {
    content: "✓";
    color: #34d399;
    font-weight: bold;
  }

  .privacy-card p {
    font-size: 13px;
    color: var(--brand-muted);
    padding-left: 20px;
  }

  /* 意见反馈 */
  .feedback-section {
    background: var(--brand-bg-alt);
  }

  .feedback-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feedback-item {
    background: var(--brand-card);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .fb-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
  }

  .fb-text h3 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 2px;
  }

  .fb-text p {
    font-size: 13px;
    color: var(--brand-muted);
  }

  /* 常见问题 */
  .faq-section {
    background: var(--brand-bg);
  }

  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .faq-item {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 16px;
  }

  .faq-item h3 {
    font-size: 15px;
    color: var(--brand-pink);
    margin-bottom: 6px;
  }

  .faq-item p {
    font-size: 13px;
    color: var(--brand-muted);
  }

  /* 下载专区 */
  .download-section {
    background: linear-gradient(180deg, var(--brand-bg), #1a1125);
    text-align: center;
    padding: 60px 20px;
  }

  .download-section img {
    max-width: 200px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--brand-border);
  }

  .download-section h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
  }

  .download-section p {
    color: var(--brand-muted);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .install-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px;
    background: rgba(255,255,255,0.03);
    padding: 16px;
    border-radius: 12px;
  }

  .install-steps li {
    font-size: 13px;
    color: var(--brand-text);
    margin-bottom: 8px;
    list-style: decimal;
    margin-left: 16px;
  }

  /* 底部浮动窗 */
  .float-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(31, 23, 48, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--brand-purple);
    border-radius: 40px;
    padding: 8px 16px 8px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    z-index: 999;
    width: max-content;
    max-width: 90vw;
  }

  .float-download img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .float-text {
    display: flex;
    flex-direction: column;
  }

  .float-text h4 {
    font-size: 14px;
    color: #fff;
  }

  .float-text span {
    font-size: 11px;
    color: var(--brand-muted);
  }

  .float-btn {
    background: var(--brand-purple);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
  }

  /* 页脚 */
  .site-footer {
    background: #0a0710;
    padding: 30px 20px;
    text-align: center;
    color: var(--brand-muted);
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
  }

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

  .footer-links a {
    color: var(--brand-muted);
    transition: color 0.2s;
  }

  .footer-links a:hover {
    color: var(--brand-pink);
  }

  .footer-info p {
    margin-bottom: 6px;
  }

  .footer-info a {
    color: var(--brand-muted);
  }

  /* 弹窗 */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }

  .modal-overlay.is-active {
    display: flex;
  }

  .modal-box {
    background: var(--brand-card);
    padding: 24px;
    border-radius: 16px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--brand-border);
  }

  .modal-box h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .copy-input {
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--brand-border);
    color: var(--brand-text);
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
  }

  .modal-btn {
    background: var(--brand-purple);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
  }

  /* 响应式 */
  @media (min-width: 768px) {
    .desktop-nav {
      display: flex;
    }
    .mobile-menu-btn {
      display: none;
    }
    .hero-title {
      font-size: 42px;
    }
    .hero-visuals {
      height: 350px;
      gap: 20px;
    }
    .hero-img-box {
      flex: 0 0 25%;
    }
    .feature-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .tutorial-list {
      grid-template-columns: repeat(2, 1fr);
    }
    .privacy-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .feedback-list {
      grid-template-columns: repeat(2, 1fr);
    }
    .custom-split {
      flex-direction: row;
      align-items: stretch;
    }
    .custom-img-box {
      flex: 0 0 40%;
    }
    .custom-content {
      flex: 0 0 60%;
    }
    .role-card {
      flex: 0 0 180px;
    }
    .role-card img {
      height: 240px;
    }
  }

  @media (min-width: 1024px) {
    .hero-title {
      font-size: 52px;
    }
    .hero-visuals {
      height: 450px;
    }
    .hero-img-box {
      flex: 0 0 20%;
    }
    .feature-grid {
      grid-template-columns: repeat(4, 1fr);
    }
    .tutorial-list {
      grid-template-columns: repeat(3, 1fr);
    }
    .privacy-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .feedback-list {
      grid-template-columns: repeat(3, 1fr);
    }
    .custom-img-box {
      flex: 0 0 35%;
    }
    .custom-content {
      flex: 0 0 65%;
    }
    .role-scroll {
      flex-wrap: wrap;
      overflow-x: visible;
    }
    .role-card {
      flex: 0 0 calc(20% - 10px);
    }
  }