:root{
  --bg:#050507;
  --muted: rgba(255,255,255,0.65);
  --accent-green: #9efc8d;
  --accent-red: #ff6b6b;
  --max-width: 1200px;
}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto;background:var(--bg);color:#fff;overflow-x:hidden;scroll-behavior:smooth;}
/* 背景渐变晕染 */
.bg-layer{position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(800px 600px at var(--x,40%) var(--y,40%), rgba(158,252,141,0.12), transparent 70%),
    radial-gradient(900px 700px at calc(100% - var(--x,60%)) calc(100% - var(--y,60%)), rgba(255,107,107,0.12), transparent 70%),
    radial-gradient(1200px 1000px at 50% 80%, rgba(80,120,255,0.08), transparent 70%),
    linear-gradient(160deg,#050507,#0a0a0f);
  transition:background-position .15s linear;
}
.container{max-width:var(--max-width);margin:0 auto;padding:48px 24px;}
header{display:flex;justify-content:space-between;align-items:center;}
.logo{width:42px;height:42px;display:flex;align-items:center;justify-content:center;}
nav{display:flex;gap:18px;align-items:center}
nav a{color:var(--muted);text-decoration:none;}
.btn{padding:12px 20px;border-radius:12px;text-decoration:none;font-weight:600;transition:all .2s ease;background:rgba(255,255,255,0.15);border:1px solid rgba(255,255,255,0.3);color:#fff;display:inline-block;}
.btn.highlight{background:linear-gradient(90deg,var(--accent-green),#3af0c4);color:#021;}
.btn:hover{opacity:0.9;}
.btn.pill-btn{border-radius:50px;}
.logout-btn-small{padding:8px 16px !important;font-size:14px;}

/* 小尺寸按钮样式 - 减弱视觉比重 */
.btn-small {
  padding: 6px 12px !important;
  font-size: 14px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.btn-small:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.btn-small.highlight {
  background: rgba(158, 252, 141, 0.15) !important;
  border-color: rgba(158, 252, 141, 0.3) !important;
  color: var(--accent-green) !important;
}

.btn-small.highlight:hover {
  background: rgba(158, 252, 141, 0.25) !important;
  border-color: rgba(158, 252, 141, 0.4) !important;
}
.hero{text-align:center;padding:60px 0}
.hero h2{font-size:52px;margin-bottom:20px}
.hero p{color:var(--muted);max-width:680px;margin:0 auto}
.demo-box{margin:30px auto;width:100%;max-width:900px;height:500px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));display:flex;align-items:center;justify-content:center;color:var(--muted);transform:scale(.9);transition:all 1s ease-out;opacity:0}
.demo-box.visible{transform:scale(1);opacity:1}
.feature-section{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:80px 0;}
.feature-text{flex:1;}
.feature-text h3{font-size:32px;margin-bottom:14px}
.feature-text p{color:var(--muted)}
.feature-demo{flex:1;height:380px;border-radius:16px;background:linear-gradient(90deg,rgba(255,255,255,0.03),rgba(255,255,255,0.01));display:flex;align-items:center;justify-content:center;color:var(--muted);transform:translateY(40px) scale(.95);opacity:0;transition:all 1s ease-out;}
.feature-demo.visible{transform:translateY(0) scale(1);opacity:1}
video{max-width:100%;border-radius:12px}

/* Pricing 横向布局 */
.pricing{display:flex;gap:20px;justify-content:center;padding:80px 0;flex-wrap:wrap}
.plan{flex:1;min-width:280px;max-width:360px;border-radius:20px;padding:32px;background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.05);display:flex;flex-direction:column;justify-content:space-between}
.plan:hover{border-color:rgba(255,255,255,0.15);}
.plan-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.plan h4{font-size:24px;margin:0}
.plan .price{font-size:26px;color:var(--accent-green)}
.plan ul{list-style:none;padding:0;margin:0 0 20px 0;color:var(--muted);line-height:1.8;font-size:15px;text-align:left}
.plan-footer{text-align:center;margin-top:auto}

footer{border-top:1px solid rgba(255,255,255,0.05);padding:40px 0;text-align:center;color:var(--muted)}
footer a{color:var(--accent-green);margin:0 8px;text-decoration:none}
@media(max-width:900px){.feature-section{flex-direction:column;}.feature-demo{width:100%}.pricing{flex-direction:column;align-items:center}.plan{max-width:100%}}

/* 移动端导航栏样式 */
.main-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  padding: 12px 24px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo-text {
  font-weight: 600;
  font-size: 18px;
}

.header-nav {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 4%;
  position: relative;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 8px 16px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.header-nav a:hover {
  color: var(--accent-green);
}

.header-nav a.active {
  color: var(--accent-green);
}

/* 导航指示器 */
.nav-indicator {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 20px;
  background: linear-gradient(90deg, var(--accent-green), #3af0c4);
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  transform: translateX(0);
  filter: blur(8px);
}

.nav-indicator.mouse-follow {
  transition: all 0.15s ease-out;
}

.header-actions {
  flex: 0 0 auto;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--muted);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 20px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  border-radius: 0 0 24px 24px;
  z-index: 999;
}

/* 确保PC端移动端菜单完全隐藏 */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 0;
  text-align: center;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--accent-green);
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
  .main-header {
    width: 95%;
    padding: 12px 16px;
    position: relative;
  }
  
  .header-nav {
    display: none;
  }
  
  .header-actions {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-nav {
    display: none;
  }
  
  .mobile-nav.show {
    display: flex;
  }
  
  .logo-text {
    font-size: 16px;
  }
  
  .header-logo img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .main-header {
    width: 98%;
    padding: 10px 12px;
  }
  
  .logo-text {
    font-size: 14px;
  }
  
  .header-logo {
    gap: 8px;
  }
}

/* 登录页面样式 */
.auth-container {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.auth-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.3s ease;
}

.auth-tab.active {
  color: var(--accent-green);
  border-bottom: 2px solid var(--accent-green);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 2px rgba(158,252,141,0.2);
}

.auth-footer {
  margin-top: 30px;
  text-align: center;
}

.auth-footer a {
  color: var(--accent-green);
  text-decoration: none;
}

.error-message {
  color: var(--accent-red);
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.success-message {
  color: var(--accent-green);
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

/* 图标样式 */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo img {
  max-width: 100%;
  height: auto;
}

/* 用户面板样式 */
.dashboard-card {
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-5px);
}

.dashboard-card h3 {
  margin: 0 0 15px 0;
  font-size: 24px;
}

.stat-card {
  padding: 25px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255,255,255,0.15);
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  color: var(--accent-green);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

/* Dashboard 侧边栏样式 */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 30px 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 0 30px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 30px;
}

.sidebar-nav {
  padding: 0 15px;
}

.nav-item {
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--accent-green);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.nav-item.active::before {
  transform: scaleY(1);
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.nav-link.active {
  background: rgba(158,252,141,0.1);
  color: var(--accent-green);
}

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 30px;
}

.content-header {
  margin-bottom: 30px;
}

.content-header h1 {
  margin: 0 0 10px 0;
  font-size: 28px;
}

.content-header p {
  color: var(--muted);
  margin: 0;
}

.settings-section {
  margin-bottom: 40px;
}

.settings-section h2 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #fff;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.setting-card {
  padding: 25px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.setting-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.setting-card h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #fff;
}

.usage-item {
  margin-bottom: 20px;
}

.usage-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.usage-label span:first-child {
  color: #fff;
}

.usage-label span:last-child {
  color: var(--muted);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), #3af0c4);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.subscription-info {
  text-align: center;
  padding: 20px;
}

.subscription-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(158,252,141,0.2);
  color: var(--accent-green);
  margin-bottom: 10px;
}

.subscription-details {
  color: var(--muted);
  font-size: 14px;
}

/* 新增样式 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 32px;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-green);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.settings-section {
  max-width: 800px;
  margin: 0 auto;
}

.setting-item {
  margin-bottom: 20px;
}

.setting-item label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.profile-section {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.profile-avatar {
  text-align: center;
  flex: 0 0 120px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), #3af0c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: #021;
  margin: 0 auto 15px;
}

.profile-info {
  flex: 1;
}

.plan-status {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.plan-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(158,252,141,0.2);
  color: var(--accent-green);
}

.plan-description {
  color: var(--muted);
}

.plan-actions {
  text-align: center;
}

.chart-item {
  margin-bottom: 30px;
}

.chart-item h4 {
  margin: 0 0 15px 0;
  color: #fff;
  font-size: 16px;
}

.usage-section {
  margin: 40px 0;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
}

.usage-section h3 {
  margin: 0 0 25px 0;
  font-size: 24px;
  color: #fff;
  text-align: center;
}

.current-plan {
  margin-bottom: 20px;
}

.plan-status {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.plan-price {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-green);
}

.plan-description ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.plan-description li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.plan-description li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

.knowledge-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.kb-tab {
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.kb-tab.active {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

.kb-content {
  display: none;
}

.kb-content.active {
  display: block;
}

.knowledge-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  justify-content: center;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-green);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.kb-list {
  min-height: 200px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  color: #fff;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

/* 知识库页面对齐修复 */
.knowledge-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.knowledge-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  justify-content: center;
}

.knowledge-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  justify-content: center;
  align-items: center;
}

.knowledge-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }
  
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  
  .dashboard-container {
    flex-direction: column;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
  }
  
  .knowledge-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .knowledge-actions {
    flex-direction: column;
    align-items: center;
  }
}