/* 
  Harbor Official Website Style Sheet
  Theme: Apple Minimalist White (苹果极简白风格)
*/

@charset "UTF-8";

/* ==========================================================================
   1. 设计系统变量 (Design System Tokens)
   ========================================================================== */
:root {
  --bg-color: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #fafafa;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #b6b6bb;
  --accent-color: #0071e3;
  --accent-hover: #0077ed;
  --accent-light: #e8f2ff;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.04);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.06);
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --max-width: 1100px;
}

/* ==========================================================================
   2. 基础重置与规范 (Base Styles)
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.015em;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   3. 布局与通用组件 (Layout & Utility)
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 400;
}

/* 按钮样式 (Buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 30px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: scale(1.02);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: scale(1.02);
}

.btn-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-color);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-text::after {
  content: "→";
  transition: transform 0.2s ease;
}

.btn-text:hover::after {
  transform: translateX(4px);
}

/* 滚动曝光动画 (Reveal Animation) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   4. 导航栏 (Header & Navbar)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

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

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 13px;
  color: var(--text-primary);
  opacity: 0.8;
  font-weight: 400;
}

.nav-link:hover {
  opacity: 1;
  color: var(--accent-color);
}

.nav-cta .btn {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 20px;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 4px 0;
  transition: var(--transition-fast);
}

/* ==========================================================================
   5. Hero 主视觉区 (Hero Section)
   ========================================================================== */
.hero {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(0, 113, 227, 0.03) 0%, rgba(255, 255, 255, 0) 60%);
}

.hero-tag {
  background-color: var(--bg-secondary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-tag span {
  width: 6px;
  height: 6px;
  background-color: #34c759;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #34c759;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, #111 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 22px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px auto;
  line-height: 1.4;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-platforms {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 60px;
}

.hero-platforms span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-platforms svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Hero 截图容器 */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 10px;
  background-color: var(--bg-secondary);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.hero-image-wrapper img {
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   6. 便当格核心功能 (Bento Grid Section)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-color);
}

.bento-card-header {
  margin-bottom: 24px;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.bento-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-color);
}

.bento-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.45;
}

/* 便当格特定尺寸扩展 (Bento Grid Span Variations) */
.span-2 {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.span-2 .bento-content {
  flex: 1;
  padding-right: 20px;
}

.span-2 .bento-illustration {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.bento-illustration img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  max-height: 240px;
  object-fit: cover;
}

.protocol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.protocol-tag {
  background-color: #ffffff;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   7. 多端协同与远程访问 (Ecosystem & Connection)
   ========================================================================== */
.ecosystem {
  background-color: var(--bg-secondary);
  position: relative;
}

.ecosystem-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.ecosystem-info {
  flex: 1;
}

.ecosystem-image {
  flex: 1.2;
  position: relative;
  background-color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.ecosystem-image img {
  border-radius: 12px;
  width: 100%;
}

.device-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.device-tab {
  background: none;
  border: none;
  text-align: left;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.device-tab.active {
  background-color: #ffffff;
  border-color: var(--border-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.device-tab h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-tab h4 svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.device-tab.active h4 svg {
  color: var(--accent-color);
}

.device-tab p {
  font-size: 13px;
  color: var(--text-secondary);
  display: none;
}

.device-tab.active p {
  display: block;
}

/* ==========================================================================
   8. 截图展示画廊 (Gallery Showcase)
   ========================================================================== */
.gallery-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.gallery-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.gallery-slide {
  min-width: 100%;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-slide img {
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  max-height: 480px;
  width: auto;
}

.gallery-caption {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.gallery-arrow {
  background-color: var(--bg-secondary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.gallery-arrow:hover {
  background-color: var(--border-color);
  transform: scale(1.05);
}

.gallery-arrow svg {
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
}

.gallery-dots {
  display: flex;
  gap: 8px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-tertiary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

/* ==========================================================================
   9. 商业模式与定价 (Pricing)
   ========================================================================== */
.pricing {
  background-color: var(--bg-tertiary);
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 44px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
}

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

.pricing-card.premium {
  border: 2px solid var(--accent-color);
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
}

.pricing-card-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
}

.pricing-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 4px;
}

.pricing-features {
  margin-bottom: 40px;
}

.pricing-features li {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features svg {
  width: 14px;
  height: 14px;
  color: #34c759;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* ==========================================================================
   10. 产品路线图 (Roadmap)
   ========================================================================== */
.roadmap-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 32px;
  border-left: 2px solid var(--border-color);
}

.roadmap-item {
  position: relative;
  margin-bottom: 60px;
}

.roadmap-item:last-child {
  margin-bottom: 0;
}

.roadmap-dot {
  position: absolute;
  left: -42px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.2);
}

.roadmap-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
  background-color: var(--accent-light);
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.roadmap-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.roadmap-list {
  padding-left: 20px;
  list-style-type: disc;
  color: var(--text-secondary);
}

.roadmap-list li {
  font-size: 15px;
  margin-bottom: 6px;
}

/* ==========================================================================
   11. 页脚 (Footer)
   ========================================================================== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 17px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-nav a {
  color: var(--text-secondary);
}

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

.footer-copyright {
  margin-bottom: 8px;
  font-weight: 400;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-tertiary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   12. 响应式布局媒体查询 (Responsive Media Queries)
   ========================================================================== */

/* 针对 iPad / 窄屏笔记本 */
@media (max-width: 900px) {
  .hero-title {
    font-size: 48px;
  }
  
  .hero-desc {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .span-2 {
    grid-column: span 2;
  }
  
  .ecosystem-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .ecosystem-info, .ecosystem-image {
    width: 100%;
    flex: none;
  }
  
  .device-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .device-tab {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    text-align: center;
  }
  
  .device-tab h4 {
    justify-content: center;
  }
  
  .device-tab p {
    display: none !important;
  }
}

/* 针对手机端 */
@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .hero-desc {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .hero-platforms {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .span-2 {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .span-2 .bento-content {
    padding-right: 0;
    margin-bottom: 20px;
  }
  
  .span-2 .bento-illustration {
    width: 100%;
    justify-content: center;
  }
  
  .device-tabs {
    flex-direction: column;
  }
  
  .pricing-grid {
    flex-direction: column;
    gap: 24px;
    padding: 0 12px;
  }
  
  .gallery-slide img {
    max-height: 280px;
  }
  
  .roadmap-timeline {
    padding-left: 24px;
  }
  
  .roadmap-dot {
    left: -33px;
    width: 16px;
    height: 16px;
  }
}

/* ==========================================================================
   13. Subpage Styles (Support & Privacy)
   ========================================================================== */
.subpage-hero {
  padding: 120px 0 60px 0;
  text-align: center;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.subpage-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.subpage-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.subpage-content {
  padding: 60px 0 100px 0;
  max-width: 720px;
  margin: 0 auto;
}

.subpage-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 16px 0;
  color: var(--text-primary);
}

.subpage-content h2:first-child {
  margin-top: 0;
}

.subpage-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.subpage-content ul, .subpage-content ol {
  padding-left: 20px;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.subpage-content li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.contact-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  margin-top: 48px;
  border: 1px solid var(--border-light);
  text-align: center;
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  margin-bottom: 24px;
}

.contact-card .btn {
  padding: 10px 24px;
  font-size: 15px;
}

