/* 立神 AI 工具箱 - 统一版本样式（科技蓝 #1677FF） */
:root {
  --primary: #1677ff;
  --primary-dark: #0957d1;
  --primary-light: #4096ff;
  --accent: #00bfff;
  --success: #52c41a;
  --warning: #faad14;
  --danger: #f5222d;
  --bg: #ffffff;
  --bg-light: #fafafa;
  --bg-card: #ffffff;
  --text: #000000;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #e8e8e8;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
}

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

/* 顶部导航栏 */
.navbar {
  background: var(--bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.main-nav .nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.main-nav .nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.language-switch select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-size: 14px;
  cursor: pointer;
}

.btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(22, 119, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* 左侧工具菜单 */
.sidebar {
  position: fixed;
  left: 0;
  top: 70px;
  bottom: 0;
  width: 250px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  overflow-y: auto;
  z-index: 900;
  transition: transform 0.3s ease;
}

.sidebar.collapsed {
  transform: translateX(-250px);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary);
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
}

.sidebar-nav ul li {
  margin: 8px 0;
}

.sidebar-nav ul li a {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-nav ul li a:hover {
  background: rgba(22, 119, 255, 0.1);
  color: var(--primary);
  border-left-color: var(--primary);
}

/* 主要内容区域 */
.main-content {
  margin-left: 250px;
  transition: margin-left 0.3s ease;
}

.main-content.full-width {
  margin-left: 0;
}

/* 英雄区域 */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f5faff 0%, #e6f2ff 100%);
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* 功能区块 */
.features {
  padding: 100px 0;
  background: var(--bg);
}

.features h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 60px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 定价 */
.pricing {
  padding: 100px 0;
  background: var(--bg-light);
}

.pricing h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 60px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 35px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}

.popular-tag {
  position: absolute;
  top: 15px;
  right: -25px;
  background: var(--gradient-primary);
  color: white;
  padding: 4px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  transform: rotate(45deg);
}

.pricing-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text);
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.features-list {
  list-style: none;
  margin: 25px 0;
}

.features-list li {
  padding: 10px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* 按次付费 */
.pay-per-use {
  padding: 80px 0;
  background: var(--bg);
}

.pay-per-use h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 50px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pay-per-use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.pay-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* 核心操作流程 */
.core-workflow {
  padding: 80px 0;
  background: var(--bg-light);
  text-align: center;
}

.core-workflow h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 50px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.workflow-steps {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  max-width: 200px;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.step p {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 演示 */
.demo {
  padding: 100px 0;
  background: var(--bg);
}

.demo h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 60px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.demo-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border);
}

.demo-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

/* 右侧会员提示区 */
.member-panel {
  position: fixed;
  right: 0;
  top: 70px;
  bottom: 0;
  width: 280px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.member-info h4,
.newbie-guide h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

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

#daily-usage {
  font-weight: 600;
  color: var(--primary);
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.membership-level {
  font-weight: 600;
  color: var(--primary);
}

.upgrade-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.upgrade-link:hover {
  text-decoration: underline;
}

.newbie-guide ul {
  list-style: none;
}

.newbie-guide li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.newbie-guide li::before {
  content: "•";
  color: var(--success);
  font-weight: bold;
  margin-right: 10px;
}

/* 页脚 */
.footer {
  background: var(--bg);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  margin-left: 250px;
  transition: margin-left 0.3s ease;
}

.footer.full-width {
  margin-left: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
  }
  .sidebar.collapsed {
    transform: translateX(-220px);
  }
  .main-content,
  .footer {
    margin-left: 220px;
  }
  .main-content.full-width,
  .footer.full-width {
    margin-left: 0;
  }
  .member-panel {
    width: 250px;
  }
}

@media (max-width: 992px) {
  .member-panel {
    display: none;
  }
  .main-content,
  .footer {
    margin-left: 220px;
  }
  .main-content.full-width,
  .footer.full-width {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-220px);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-content,
  .footer {
    margin-left: 0;
  }
  .navbar .container {
    flex-wrap: wrap;
    gap: 15px;
  }
  .main-nav .nav-links {
    gap: 15px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .stat-number {
    font-size: 1.4rem;
    margin-bottom: 5px;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  .features-grid,
  .pricing-grid,
  .pay-per-use-grid {
    grid-template-columns: 1fr;
  }
  .workflow-steps {
    flex-direction: column;
    gap: 30px;
  }
}