/* TopClaw 橙色主题样式表 - 响应式设计 */
:root {
  --primary: #FF6B00;
  --primary-dark: #E55A00;
  --primary-light: #FF8C42;
  --primary-bg: #FFF5EB;
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --white: #FFFFFF;
  --shadow: rgba(255, 107, 0, 0.15);
  --shadow-dark: rgba(229, 90, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

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

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow);
  z-index: 1000;
  padding: 15px 0;
  transition: padding 0.3s;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

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

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

.nav-btn {
  background: var(--primary);
  color: white !important;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
}

.nav-btn:hover {
  background: var(--primary-dark);
}

.nav-btn::after {
  display: none;
}

/* 移动端菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* 首屏区域 */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, var(--primary-bg) 0%, var(--white) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  overflow: visible;
}

.hero-text h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

.hero-text p {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

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

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

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

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  overflow: visible;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 8px 30px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--shadow-dark);
}

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

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

/* macOS下拉菜单 */
.mac-dropdown-wrapper {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.mac-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.mac-dropdown-wrapper.active .dropdown-arrow {
  transform: rotate(180deg);
}

.mac-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
}

.mac-dropdown-wrapper.active .mac-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mac-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  border-bottom: 1px solid #eee;
}

.mac-dropdown-item:last-child {
  border-bottom: none;
}

.mac-dropdown-item:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.mac-dropdown-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.hero-image {
  position: relative;
}

.hero-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
}

.hero-card::before {
  display: none;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.card-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: contain;
}

.card-info h4 {
  font-size: 18px;
  margin-bottom: 3px;
}

.card-info span {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #52c41a;
  border-radius: 50%;
  margin: 0 4px;
  vertical-align: middle;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-message {
  background: #f5f5f5;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  max-width: 90%;
}

.card-message.bot {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  margin-left: 0;
}

.card-message.user {
  align-self: flex-end;
}

/* 下载步骤 */
.steps-section {
  padding: 100px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.section-title h2 span {
  color: var(--primary);
}

.section-title p {
  color: var(--text-gray);
  font-size: 18px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  position: relative;
  opacity: 1;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px var(--shadow);
}

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

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-gray);
  font-size: 15px;
}

.step-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.step-icon-img {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  display: block;
  object-fit: contain;
}

/* 本地部署方法 */
.deploy-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--primary-bg) 0%, var(--white) 100%);
}

.deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.deploy-list {
  list-style: none;
}

.deploy-list li {
  display: flex;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.deploy-list li:last-child {
  border-bottom: none;
}

.deploy-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.deploy-content h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.deploy-content p {
  color: var(--text-gray);
  font-size: 14px;
}

.deploy-image {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px var(--shadow);
}

.deploy-image pre {
  background: #1a1a2e;
  color: #fff;
  padding: 30px;
  border-radius: 15px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
}

.deploy-image pre .comment {
  color: #666;
}

.deploy-image pre .keyword {
  color: #ff6b00;
}

.deploy-image pre .string {
  color: #98c379;
}

.deploy-image pre .function {
  color: #61afef;
}

/* 优势板块 */
.advantages-section {
  padding: 100px 0;
  background: var(--white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-card {
  text-align: center;
  padding: 40px 25px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  opacity: 1;
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-bg), var(--primary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 25px;
}

.advantage-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.advantage-card p {
  color: var(--text-gray);
  font-size: 14px;
}

/* Skills技能介绍 */
.skills-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--primary-bg) 0%, var(--white) 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.skill-card {
  background: var(--white);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  opacity: 1;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow);
}

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

.skill-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.skill-header h3 {
  font-size: 18px;
}

.skill-header span {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 3px 10px;
  border-radius: 10px;
}

.skill-card p {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

/* 聊天通道板块 */
.channels-section {
  padding: 100px 0;
  background: var(--white);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.channel-card {
  background: var(--white);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  border: 2px solid transparent;
  opacity: 1;
}

.channel-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.channel-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.channel-icon.wechat {
  background: linear-gradient(135deg, #07c160, #06ad56);
}

.channel-icon.qq {
  background: linear-gradient(135deg, #12b7f5, #1a9fe8);
}

.channel-icon.feishu {
  background: linear-gradient(135deg, #3370ff, #2860df);
}

.channel-icon.dingtalk {
  background: linear-gradient(135deg, #1677ff, #0958d9);
}

.channel-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.channel-card p {
  color: var(--text-gray);
  font-size: 13px;
  margin-bottom: 15px;
}

.channel-status {
  display: inline-block;
  padding: 5px 15px;
  background: #e6f7e9;
  color: #52c41a;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

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

/* 底部 */
.footer {
  background: #1a1a2e;
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary);
}

.footer-brand p {
  color: #999;
  font-size: 14px;
  line-height: 1.8;
}

.footer-links h4 {
  margin-bottom: 20px;
  font-size: 16px;
}

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

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

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 36px;
  }

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

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

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

  .deploy-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 30px var(--shadow);
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .channels-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

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

/* 滚动动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}
