/* ==========================================================================
   AirRelay Design System · Morandi Slate Theme
   莫兰迪雅致灰调设计系统 (零 Emoji · 纯 SVG · 物理温润触感)
   ========================================================================== */

:root {
  /* 莫兰迪低饱和度色彩矩阵 */
  --bg-primary: #F7F6F3;
  --bg-secondary: #EFECE6;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #FAF9F6;
  
  --text-main: #2A303A;
  --text-secondary: #5C6573;
  --text-muted: #8E98A5;
  --text-inverse: #FFFFFF;

  --accent-slate: #4A5B6D;       /* 灰雾蓝石 */
  --accent-slate-hover: #3D4C5C;
  --accent-sand: #8C7D6B;        /* 沉香砂褐 */
  --accent-sage: #5E7A6B;        /* 莫兰迪鼠尾绿 */

  --border-hairline: rgba(42, 48, 58, 0.08);
  --border-focus: rgba(74, 91, 109, 0.35);

  --shadow-sm: 0 2px 8px rgba(42, 48, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(42, 48, 58, 0.06);
  --shadow-lg: 0 16px 40px rgba(42, 48, 58, 0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 容器骨架 */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航 */
.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(247, 246, 243, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-slate);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-btn {
  background: var(--accent-slate);
  color: var(--text-inverse);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background: var(--accent-slate-hover);
  transform: translateY(-1px);
}

/* 首屏 Hero */
.hero {
  padding: 80px 0 50px;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--accent-slate);
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
  font-weight: 400;
}

/* 下载行动区 */
.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-slate);
  color: var(--text-inverse);
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-slate-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-hairline);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

/* 模拟实时演示器 (Live Demo Showcase) */
.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  max-width: 860px;
  margin: 0 auto 70px;
  text-align: left;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-sage);
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent-sage);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(94, 122, 107, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(94, 122, 107, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(94, 122, 107, 0); }
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 34px;
  }
}

.device-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px;
}

.device-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.clip-input {
  width: 100%;
  height: 90px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-main);
  resize: none;
  outline: none;
  transition: var(--transition-smooth);
}

.clip-input:focus {
  border-color: var(--accent-slate);
  box-shadow: 0 0 0 3px rgba(74, 91, 109, 0.1);
}

/* 核心特性卡片网格 */
.features-section {
  padding: 40px 0 70px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  color: var(--accent-slate);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.feature-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 价格大盘卡片 (对标日历清单) */
.pricing-section {
  padding: 40px 0 80px;
}

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

@media (max-width: 860px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card.popular {
  border: 2px solid var(--accent-slate);
  box-shadow: var(--shadow-lg);
  background: #FFF;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-slate);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 38px;
}

.plan-price {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price .currency {
  font-size: 20px;
  font-weight: 500;
}

.plan-price .period {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.check-icon {
  color: var(--accent-sage);
  flex-shrink: 0;
}

.plan-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-hairline);
  background: var(--bg-card-subtle);
  color: var(--text-main);
}

.plan-btn:hover {
  background: var(--bg-secondary);
}

.pricing-card.popular .plan-btn {
  background: var(--accent-slate);
  color: var(--text-inverse);
  border: none;
}

.pricing-card.popular .plan-btn:hover {
  background: var(--accent-slate-hover);
}

/* 页脚 */
.footer {
  border-top: 1px solid var(--border-hairline);
  padding: 48px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text-main);
}

/* 控制台与导航解耦类 (零行内样式) */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.showcase-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-title-text {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 600;
}

.showcase-subtitle-text {
  font-size: 12px;
  color: var(--text-muted);
}

.room-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.room-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.room-input {
  padding: 6px 12px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  background: var(--bg-card-subtle);
  color: var(--text-main);
  width: 160px;
}

.room-btn {
  padding: 6px 14px;
  background: var(--accent-slate);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.room-btn:hover {
  background: var(--accent-slate-hover);
}

.room-tip {
  font-size: 12px;
  color: var(--text-muted);
}

.device-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.device-status-badge {
  font-size: 11px;
  color: var(--text-muted);
}

.device-box-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-action-text {
  font-size: 12px;
  color: var(--accent-slate);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
}

.btn-action-primary {
  padding: 7px 16px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
}

.device-info-text {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-copy-box {
  font-size: 12px;
  color: var(--accent-slate);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.btn-copy-box:hover {
  background: var(--bg-secondary);
}
