/* 思锐工作室官网 - 主样式表 */
/* 字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary-400: #8c24f0;
    --color-primary-500: #7a1fd6;
    --color-primary-600: #6c1cd0;
    --color-secondary-400: #ad48ff;
    --color-accent-400: #ff6bdb;
}

/* 全局样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #111827;
    color: #f3f4f6;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
nav {
    background-color: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #374151;
    transition: background 0.3s ease;
}

nav.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
}

/* 英雄区域基础样式 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, rgba(17, 24, 39, 0.95), rgba(37, 99, 235, 0.3)),
                url('images/hero-bg.png') center/cover;
    isolation: isolate;
    overflow: hidden;
    padding: 120px 0;
}

.hero-overlay {
    background: radial-gradient(circle at 50% 50%, 
              rgba(140, 36, 240, 0.6) 0%, 
              rgba(172, 72, 255, 0.8) 100%);
}

/* 文字样式 */
.hero-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.hero-title span {
    background: linear-gradient(45deg, #8B5CF6 0%, #EC4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

#mobile-menu {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
  }
  #mobile-menu.show {
    max-height: 300px;
  }

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 按钮系统 */
.hero-button {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    padding: 1.25em 2em;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, #8c24f0 0%, #ad48ff 100%);
    box-shadow: 0 8px 32px rgba(140, 36, 240, 0.35);
}

.btn-secondary {
    border: 2px solid rgba(59, 130, 246, 0.5);
    backdrop-filter: blur(8px);
}

/* 按钮动效 */
.hero-button:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7a1fd6 0%, #9b3ce5 100%);
    box-shadow: 0 12px 40px rgba(140, 36, 240, 0.5);
}

.btn-secondary:hover {
    border-color: #8c24f0;
    background: rgba(140, 36, 240, 0.1);
    transform: translateY(-2px) scale(1.02);
}

/* 图标动画 */
.button-icon {
    transition: transform 0.3s ease;
}

.hero-button:hover .button-icon {
    transform: translateX(4px) rotate(var(--rotate, 0deg)) scale(1.15);
}

/* 桌面端专属样式 */
@media (min-width: 1024px) {
    .hero-section {
        background-position: 80% center;
        padding: 160px 0;
    }

    .desktop-layout {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 80px;
    }

    .hero-title {
        font-size: 5.5rem;
        line-height: 1.05;
        letter-spacing: -0.05em;
        text-align: left;
        max-width: 800px;
    }

    .hero-subtitle {
        font-size: 2rem;
        text-align: left;
        max-width: 600px;
        margin-bottom: 60px;
    }

    .hero-buttons {
        justify-content: flex-start !important;
        gap: 40px !important;
    }

    /* 代码窗口效果 */
    .code-window {
        background: rgba(17, 24, 39, 0.8);
        border-radius: 16px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        overflow: hidden;
        transform: perspective(1500px) rotateY(10deg);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .code-window:hover {
        transform: perspective(1500px) rotateY(5deg) translateY(-10px);
    }

    .window-header {
        background: #1f2937;
        padding: 12px 20px;
        border-bottom: 1px solid #374151;
    }

    .window-controls span {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        margin-right: 8px;
        display: inline-block;
    }

    .window-controls .red { background: #ef4444; }
    .window-controls .yellow { background: #eab308; }
    .window-controls .green { background: #22c55e; }

    .window-content {
        padding: 2rem;
        background: linear-gradient(45deg, #172554, #1e3a8a);
    }

    .window-content pre {
        font-family: 'Fira Code', monospace;
        color: #93c5fd;
        font-size: 1.1rem;
        line-height: 1.8;
    }

    /* 动态装饰元素 */
    .desktop-deco {
        position: absolute;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .glow-ball {
        position: absolute;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, 
            rgba(59, 130, 246, 0.15) 0%, 
            rgba(59, 130, 246, 0) 70%);
        right: -20%;
        top: 30%;
        animation: float 8s ease-in-out infinite;
    }

    .circuit-line {
        position: absolute;
        width: 80%;
        height: 2px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(59, 130, 246, 0.3) 50%, 
            transparent 100%);
        top: 50%;
        left: 10%;
        opacity: 0.3;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-20px) rotate(2deg); }
    }
}

/* 移动端优化 */
@media (max-width: 1023px) {
    .hero-section {
        min-height: 100vh;
        background-attachment: scroll;
        padding: 100px 0;
    }

    .hero-title {
        font-size: 3.5rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem !important;
    }

    .desktop-deco,
    .desktop-graphic {
        display: none;
    }
}


/* 文字样式 */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: white;
}

h1 span {
    color: #a566ff;
}

h2 {
    font-size: 2.5rem;
    color: white;
}

h2 span {
    color: #a566ff;
}

p {
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary {
    background-color: #1f2937;
    color: white;
    border: 1px solid #374151;
}

/* 视频容器 */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #374151;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* 卡片样式 */
.card {
    background-color: #1f2937;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #374151;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2);
    border-color: #a566ff;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.tag {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.2);
    color: #a566ff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

/* 社区入口样式 */
.community-card {
    background-color: #1f2937;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #374151;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2);
    border-color: #a566ff;
}

.community-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #a566ff;
}

/* 页脚样式 */
footer {
    background-color: #1f2937;
    border-top: 1px solid #374151;
}

.footer-link {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #a566ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        background-attachment: scroll;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem !important;
    }

    .hero-button {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
    }
    .product-card {
        margin: 0 8px; /* 添加左右边距 */
        border-radius: 12px; /* 优化圆角 */
      }
      
      .product-iframe {
        height: 180px; /* 调整iframe高度 */
      }
      
      .product-description {
        font-size: 14px; /* 调小字号 */
        line-height: 1.4; /* 优化行高 */
        padding: 12px; /* 调整内边距 */
      }
}

@media (max-width: 640px) {
    .community-card {
      padding: 1.5rem;
      margin: 0 10px;
    }
    
    .community-icon {
      font-size: 2.5rem;
      margin-bottom: 0.8rem;
    }
    
    .community-button {
      padding: 0.8rem 1.2rem;
      font-size: 14px;
    }
  }

.text-gradient {
    text-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
  }

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}
::-webkit-scrollbar-thumb {
    background: #8c24f0;
}

::-webkit-scrollbar-thumb:hover {
    background: #8c24f0;
}

/* 工具类 */
.text-purple-400 {
    color: #8c24f0;
}

.transform {
    position: relative;
    z-index: 1;
  }

.bg-purple-600 {
    background-color: #6c1cd0;
}

.border-gray-700 {
    border-color: #374151;
}

.border-purple-400 {
    border-color: #8c24f0;
}

/* 图片悬停效果 */
.img-hover-zoom {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.img-hover-zoom:hover {
    transform: scale(1.02);
    opacity: 1;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 1.5rem;
}

.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);
}

/* 间距工具 */
.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* 弹性布局 */
.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.right {
    display: inline-block;
}

.about_think {
    float: left; /* 修改为向左浮动 */
}

.items-center {
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

/* 隐藏元素 */
.hidden {
    display: none;
}

/* 移动端菜单 */
#mobile-menu {
    max-height: 0;
    transition: max-height 0.3s ease-out;
  }
  #mobile-menu.show {
    max-height: 500px;
  }

/* 链接箭头动画 */
.link-arrow {
    transition: transform 0.3s ease;
}

a:hover .link-arrow {
    transform: translateX(3px);
}

@media (max-width: 640px) {
    h1 br { display: none; }
    h1 { word-break: keep-all; }
    .product-card {
        margin: 0 5px;
        min-width: 280px;
      }
      .product-iframe {
        height: 160px;
      }
}

/* 限制动画影响范围 */
.hero-button {
    will-change: transform;
  }
  
  /* 智能背景加载 */
  @media (prefers-reduced-motion: reduce) {
    .hero-section {
      background-attachment: scroll;
    }
  }
  
  @keyframes slideDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-slideDown {
    animation: slideDown 0.3s ease-out;
}

/* 在styles.css中添加 */
@media (pointer: coarse) {
    .hero-button {
      min-width: 140px;
      padding: 1rem 1.5rem;
      font-size: 16px;
    }
    
    .card {
      border-width: 2px; /* 增加触控反馈 */
    }
  }  

  @media (min-width: 1024px) {
    /* 主容器最大宽度限制 */
    .container {
      max-width: 1440px;
    }
  
    /* 动态字体大小 */
    html {
      font-size: clamp(14px, 0.8vw, 18px);
    }
  
    /* 产品卡片缩放优化 */
    .product-card {
      transform-origin: center;
      transition: transform 0.3s ease;
    }
  
    /* 动态列数调整 */
    @media (max-width: 1440px) {
      .lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  
    @media (min-width: 768px) {
        .product-card {
          min-height: 400px; /* 统一卡片高度 */
        }
        .product-image-container {
          height: 240px; /* 增大图片区域高度 */
        }
      }
      @media (min-width: 1024px) {
        #products .grid {
          gap: 2rem; /* 增大桌面端间距 */
          grid-template-columns: repeat(2, minmax(400px, 1fr));
        }
      }
      
      @media (max-width: 767px) {
        .product-card {
          margin: 0 10px; /* 移动端增加边距 */
        }
      }

    @media (max-width: 1280px) {
      .lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
      }
      
      .hero-title {
        font-size: 4.5rem;
      }
      #community .grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
      }
    }
  
  
  }
  
  /* 通用缩放优化 */
  * {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
       -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
            text-size-adjust: 100%;
  }

  .container {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
}
  
  /* 图片缩放限制 */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
/* 添加以下响应式改进 */
@media (max-width: 1024px) {
  .container {
    padding: 0 5%;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  #community .grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (hover: none) {
  .hero-button:hover {
    transform: none !important;
  }
}

p {
    margin-bottom: 1.8rem;
    line-height: 1.8;
    color: #e5e7eb;
  }

@media (max-width: 768px) { 
  .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.2;

  }
  .community-card {
    min-width: 260px;
  }
}
/* 防止极端缩放下的布局错乱 */
body {
  min-width: 320px;
  overflow-x: hidden;
}

img, iframe {
  max-width: 100%;
  height: auto;
}

/* 在styles.css中添加以下关键样式 */
.aspect-w-16 {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.aspect-w-16 > * {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 640px) {
    .aspect-w-16 {
        padding-bottom: 100%; /* 改为正方形比例 */
    }
}

.product-image-animation {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s ease-in-out;
    opacity: 0;
}

.product-image-loaded {
    opacity: 1;
}

/* 在styles.css添加 */
/* 英雄区域调整 */
.hero-section .container {
    padding-left: 2rem;
}

/* 核心成员调整 */
.core-member-item {
    margin: 10rem 0; /* 增大垂直外边距 */
    padding: 2rem 1.5rem; /* 整体内边距调整 */
    position: relative;
  }

  .core-member-item img {
    transition: transform 0.3s ease, border-color 0.3s ease;
    margin-left: 1rem; /* 左侧留白 */
  }
  
.core-member-item > div {
  padding-left: 1.5rem; /* 文字区域左侧留白 */
  flex: 1;
  min-width: 0; /* 防止内容溢出 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .core-member-item {
      flex-direction: column;
      align-items: start;
      padding: 1.5rem;
    }
    
    .core-member-item img {
      margin-left: 0;
      margin-bottom: 1.5rem;
      width: 80px;
      height: 80px;
    }
    
    .core-member-item > div {
      padding-left: 0;
    }
  }

.core-member-avatar {
    min-width: 5rem;
    background: #374151;
}

@media (min-width: 768px) {
    .core-member-item {
        margin-left: 2.5rem;
    }
}

/* RBC特殊样式 */
.member-rbc {
    order: 999;
    background: linear-gradient(to bottom right, #374151, #1f2937);
}

.member-rbc img {
    filter: grayscale(30%);
    border-color: #4b5563;
}

/* 点击动画 */
@keyframes ping {
    75%, 100% {
        transform: scale(1.1);
        opacity: 0;
    }
}
.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1);
}

/* 音频可视化效果 */
.member-rbc:hover .rbc-avatar {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
}

.rbc-avatar {
    position: relative;
    overflow: hidden;
}

.rbc-avatar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.rbc-avatar:active::after {
    opacity: 1;
}

.rbc-avatar {
    filter: grayscale(30%) brightness(0.3) contrast(1.5);
    transition: filter 0.3s ease;
}

/* 悬停时显示原图 */
.rbc-avatar:hover {
    filter: grayscale(0) brightness(1);
}

/* 移动端触摸反馈 */
.rbc-avatar:active {
    filter: grayscale(50%) brightness(0.7);
}

/* 移动端优化 */
@media (pointer: coarse) {
    .rbc-avatar {
        min-width: 80px;
        min-height: 80px;
    }
}


.grid {
  grid-auto-rows: 1fr;
}

/* 关于我们版块优化 */
#about {
    --base-padding: 2rem;
    padding-left: calc(var(--base-padding) + 1.5rem);
}

#about .max-w-4xl {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}



/* 移动端优化 */
@media (max-width: 768px) {
    #about .max-w-4xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .core-member-item {
        margin: 0 0.5rem 1rem;
        padding: 1rem;
    }
    
    .core-member-item img {
        width: 64px;
        height: 64px;
    }
}

/* 文字段落优化 */
#about p {
    line-height: 1.8;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* 引文区块阴影效果 */
#about .bg-gray-800 {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#about .bg-gray-800:hover {
    transform: translateY(-2px);
}


#community h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center !important;
    display: block;
    width: 100%;
}

#community .grid {
    grid-template-columns: repeat(3, 1fr);
    overflow-x: auto; /* 添加横向滚动保证极端情况下的显示 */
}

/* 在styles.css中添加 */
.product-image-container {
    aspect-ratio: 16/9; /* 固定宽高比 */
    overflow: hidden;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 完整显示图片内容 */
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}


@media (max-width: 640px) {
    .product-image-container {
        height: 180px;
        aspect-ratio: 1; /* 正方形展示 */
    }
}

.product-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image.loaded {
    opacity: 1;
}


@media (max-width: 767px) {
    #community h2 span.whitespace-nowrap {
        white-space: normal !important;
        display: block;
    }
}

@media (min-width: 768px) {
    #community h2 {
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    #community h2 {
        font-size: 2rem;
        white-space: normal;
    }
}

/* 社区标题专用样式 */
.community-title {
    display: block !important;
    width: 100%;
}

/* 桌面端样式 */
@media (min-width: 768px) {
    .community-title {
        font-size: 2.5rem;
    }
    .title-line {
        display: inline !important;
    }
}

/* 移动端样式 */
@media (max-width: 767px) {
    .community-title {
        font-size: 2rem;
    }
    .title-line {
        display: block;
        white-space: normal !important;
    }
}

.community-card {
    min-height: 280px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.community-card p {
    flex-grow: 1;
}

#about {
    text-align: left !important;
}


#about {
    text-align: left !important;
}


#about .md\:w-1\/2 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 0 !important; /* 移除左侧内边距 */
    margin-left: 0 !important;
}

#about .md\:pr-12 {
    padding-right: 3rem; /* 保持图文间距 */
}

#about {
    text-align: left !important;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
}

#about p,
#about div {
    text-align: left !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}

#about h2,
#about p,
#about div {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

#about .bg-gray-800 { /* 引文区块 */
    margin-left: 0 !important;
    width: 100%;
}

@media (max-width: 768px) {
    #about .md\:w-1\/2 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0 !important;
    }
    
    #about img {
        margin-top: 2rem;
        margin-left: 0 !important;
    }
}


/* 活动状态 */
button:active {
    transform: scale(0.98);
    background: var(--color-primary-500);
}

@media (max-width: 768px) {
    #about h2 {
        font-size: 2rem;
    }
    
    #about .bg-gray-800 p {
        font-size: 1.1rem;
    }
    nav .container {
        padding: 0 1rem;
      }
      #mobile-menu {
        max-height: 100vh;
        transition: max-height 0.3s ease-in-out;
      }   
}

#adblock-alert {
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    animation: slideDown 0.5s ease-out;
  }
  
  @keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
  }
  
  .fa-exclamation-triangle {
    animation: pulse 1.5s infinite;
  }
  
  @keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
  }

  /* 确保提示条不会被其他元素遮挡 */
#adblock-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    pointer-events: auto;
  }
  
  /* 添加媒体查询排除打印模式 */
  @media print {
    #adblock-alert {
      display: none !important;
    }
  }
/* 在styles.css中添加 */
.ad-placeholder {
    position: relative;
    border: 1px solid #4a5568;
    border-radius: 6px;
    overflow: hidden;
    transition: opacity 0.3s;
  }
  
  .ad-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 50%, rgba(159, 122, 234, 0.1) 100%);
    z-index: 1;
  }
  
  .ad-placeholder .ad-content {
    position: relative;
    z-index: 2;
    text-align: center;
  }
  
  /* 模拟广告加载动画 */
  @keyframes ad-loading {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
  }
  
  .ad-placeholder .ad-text {
    animation: ad-loading 1.5s infinite;
  }

  /* 添加广告位加载动画 */
.ad-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #718096;
  }
  
  .fa-circle-notch {
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .ad-fallback {
    display: none;
    text-align: center;
    padding: 12px;
  }
  
  /* 当广告位被屏蔽时的备用样式 */
  .ad-placeholder[data-blocked] .ad-loader {
    display: none;
  }
  
  .ad-placeholder[data-blocked] .ad-fallback {
    display: block;
    color: #cbd5e0;
    background: rgba(113, 128, 150, 0.1);
    border-radius: 4px;
  }
  
  .ad-contact {
    color: #9f7aea;
    margin-left: 8px;
  }
  
/* 深色模式调整 */
@media (prefers-color-scheme: dark) {
    nav img {
        filter: brightness(0.9) contrast(1.2);
    }
}

/* 强制深色模式适配 */
.dark footer img {
    filter: brightness(1.1) drop-shadow(0 0 2px rgba(255,255,255,0.1));
}

/* 关于我们板块间距优化 */
#about .max-w-4xl {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

#about .space-y-8 > * + * {
    margin-top: 2rem;
}

/* 段落间距调整 */
#about p {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

/* 团队成员卡片间距 */


/* 移动端优化 */
@media (max-width: 768px) {
    #about .max-w-4xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .core-member-item {
        margin: 0 0.5rem 1rem;
        padding: 1rem;
    }
    
    #about p {
        padding: 0 0.5rem;
    }
}

/* 桌面端大屏优化 */
@media (min-width: 1536px) {
    #about .max-w-4xl {
        max-width: 80rem;
    }
}

/* 文字段落平衡对齐 */
#about p {
    text-wrap: pretty;
    hyphens: auto;
}

.hero-section .hero-subtitle {
    margin-bottom: 8rem;
}

/* 3D悬停效果 */
.product-card {
    transform: perspective(1000px);
    transform-style: preserve-3d;
  }
  
  .product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), 
      rgba(139, 92, 246, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .product-card:hover::after {
    opacity: 1;
  }

:target {
    scroll-margin-top: 6rem; /* 根据导航栏高度调整 */
}

/* 自定义滚动行为 */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 6rem; /* 匹配导航栏高度 */
    }
}

  
  /* 辉光效果 */
  .glow-effect {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
    animation: glow-pulse 3s ease-in-out infinite;
  }
  
  @keyframes glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
  }
  
  /* 加载动画 */
  @keyframes card-entrance {
    from {
      opacity: 0;
      transform: translateY(50px) rotateX(-30deg);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  
  .product-card {
    animation: card-entrance 0.6s ease-out both;
  }
  

/* 专门为按钮区域添加额外间距 */
.hero-buttons-with-space {
    margin-top: 2rem; /* 在原基础上额外增加的间距 */
}

/* 响应式调整 - 在移动端保持适当的间距比例 */
@media (max-width: 768px) {
    .hero-section .hero-title {
        margin-bottom: 3rem;
    }
    
    .hero-section .hero-subtitle {
        margin-bottom: 4rem;
    }
    
    .hero-buttons-with-space {
        margin-top: 1.5rem;
    }
}


/* 引文区块动态间距 */
#about .bg-gray-800 {
    margin: 1.5rem 0;
    transition: transform 0.3s ease;
}

/* 卡片悬停效果优化 */
.core-member-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.1);
}
/* 关于我们成员间距调整 */
#about .grid {
    padding-left: 1.5rem;
  }
  
  @media (min-width: 768px) {
    #about .grid {
      padding-left: 3rem;
    }
  }
  
  /* 移动端优化 */
  @media (max-width: 640px) {
    #about .grid {
      padding-left: 1rem;
      margin-right: -0.5rem;
    }
  }
  