/* ========== Variables ========== */
:root {
  --color-bg: #FEFCF9;
  --color-surface: #FFFFFF;
  --color-text: #2D3436;
  --color-text-light: #636E72;
  --color-primary: #FF6B6B;
  --color-secondary: #48DBFB;
  --color-accent: #FECA57;
  --color-green: #55EFC4;
  --color-purple: #A29BFE;
  --color-border: #F0EDEA;
  --font-heading: 'Nunito', 'Noto Sans SC', sans-serif;
  --font-body: 'Nunito', 'Noto Sans SC', sans-serif;
  --container-max: 1100px;
  --container-narrow: 720px;
  --radius: 16px;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== Layout ========== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }
.main-content { min-height: calc(100vh - 160px); }

/* ========== Header ========== */
.site-header {
  padding: 20px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}
.logo-icon { font-size: 1.5rem; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--color-primary); }
.lang-switch {
  background: var(--color-accent);
  color: var(--color-text) !important;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  transition: transform 0.2s;
}
.lang-switch:hover { transform: scale(1.05); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== Hero ========== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, #FFF5F5 0%, #F0F9FF 50%, #F5F0FF 100%);
  border-bottom: 1px solid var(--color-border);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* ========== Sections ========== */
.section { padding: 60px 0; }
.section-alt { background: var(--color-surface); }
.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ========== Cards (Products) ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--color-border);
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-desc { color: var(--color-text-light); font-size: 0.95rem; }

/* ========== Post List ========== */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-item {
  display: block;
  padding: 24px 28px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.post-item time {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 600;
}
.post-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 6px 0;
}
.post-item p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ========== Single Page ========== */
.page-single { padding: 60px 0; }
.page-single h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.post-date {
  display: block;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ========== Content Prose ========== */
.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--color-text);
}
.content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
}
.content p { margin-bottom: 16px; }
.content ul, .content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.content li { margin-bottom: 6px; }
.content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: #FFF5F5;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text-light);
}
.content code {
  background: #F1F3F5;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}
.content pre {
  background: #2D3436;
  color: #DFE6E9;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 24px 0;
}
.content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* ========== Product Page ========== */
.product-header { text-align: center; margin-bottom: 40px; }
.product-icon { font-size: 4rem; display: block; margin-bottom: 16px; }
.product-tagline {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s;
}
.btn:hover { transform: scale(1.05); }
.btn-primary {
  background: var(--color-primary);
  color: white;
}
.product-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 24px;
}
.product-legal a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ========== Legal Page ========== */
.legal-updated, .legal-app {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.legal-page .content { margin-top: 24px; }

/* ========== Tags ========== */
.tag-list { display: flex; gap: 8px; margin: 12px 0 28px; flex-wrap: wrap; }
.tag {
  background: linear-gradient(135deg, #FFF5F5, #F0F9FF);
  color: var(--color-primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ========== Back Link ========== */
.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--color-primary);
  font-weight: 600;
  transition: transform 0.2s;
}
.back-link:hover { transform: translateX(-4px); }

/* ========== Footer ========== */
.site-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-title { font-size: 2rem; }
  .hero { padding: 50px 0 40px; }
  .page-single h1 { font-size: 1.7rem; }
  .card-grid { grid-template-columns: 1fr; }
}
