/* 肥猫云官网 - 极简现代化清新风视觉系统 */
:root {
  --primary: #4e8397;
  --primary-hover: #3d6a7b;
  --primary-light: #eef6f8;
  --accent: #ff6b8b;
  --accent-light: #fff0f3;
  --bg-gradient: linear-gradient(135deg, #e3f2fd 0%, #f7f9fc 50%, #e8f5e9 100%);
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(255, 255, 255, 0.95);
  --text-main: #2c3e50;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm: 0 4px 15px rgba(78, 131, 151, 0.05);
  --shadow-md: 0 10px 30px rgba(78, 131, 151, 0.1);
  --shadow-lg: 0 20px 40px rgba(78, 131, 151, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏 */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1rem 2rem;
  transition: var(--transition);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #4e8397, #ff6b8b);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(255, 107, 139, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* 下拉菜单 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid #f1f5f9;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 14px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

/* 搜索与动作 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-trigger {
  background: #f1f5f9;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-trigger:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8ea3);
  color: white;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 107, 139, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 139, 0.45);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

/* Modal Search */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.search-box-modal {
  background: white;
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.search-input-group {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
}

.search-input-group input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
}

.hot-tags {
  margin-top: 16px;
}

.hot-tags-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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

.tag-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.tag-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* 核心 Hero & Dashboard 混合展示区 */
.hero-dashboard {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #2c3e50 0%, #4e8397 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.badge {
  background: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* 模拟仪表盘组件 */
.dashboard-preview {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.user-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid #f1f5f9;
}

.stat-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

.node-list-preview {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid #f1f5f9;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
}

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

.node-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.node-ping {
  font-size: 0.8rem;
  color: #10b981;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 10px;
}

/* 图1 配色适配：透明实惠的套餐价格板块 */
.pricing-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 20px;
}

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

.section-title h2 {
  font-size: 2.2rem;
  color: #2b3952;
  font-weight: 800;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 8px;
}

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

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid #ff6b8b;
  box-shadow: 0 12px 30px rgba(255, 107, 139, 0.15);
}

.badge-pop {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b8b, #ff8ea3);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.card-plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2b3952;
  text-align: center;
  margin-bottom: 20px;
}

.card-price {
  text-align: center;
  margin-bottom: 24px;
}

.card-price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: #1a2536;
}

.card-price .unit {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 30px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #475569;
}

.feature-list li i {
  color: #10b981;
}

.btn-plan {
  width: 100%;
  padding: 14px;
  border-radius: 25px;
  border: 2px solid #ff6b8b;
  background: white;
  color: #ff6b8b;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  display: block;
}

.btn-plan:hover, .pricing-card.featured .btn-plan {
  background: linear-gradient(135deg, #ff6b8b, #ff8ea3);
  color: white;
}

/* 快捷配置/客户端教程 */
.clients-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 20px;
}

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

.client-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  text-align: center;
  transition: var(--transition);
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.client-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* 文章科普板块 */
.articles-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 20px;
}

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

.article-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 10px;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
  text-decoration: none;
}

.article-title:hover {
  color: var(--primary);
}

.article-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FAQ 板块 */
.faq-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 页脚 */
.footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 60px 20px 30px 20px;
  margin-top: 100px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

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

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

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  border-top: 1px solid #334155;
  padding-top: 20px;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .hero-dashboard, .pricing-grid, .articles-grid {
    grid-template-columns: 1fr;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}
