/* Vibespp 官网 - 与 vibespp-client 一致的配色 */
:root {
  --primary: #667eea;
  --primary-dark: #7515DA;
  --primary-accent: #832BE3;
  --text: #333333;
  --text-muted: #666666;
  --text-light: #999999;
  --bg: #FFFFFF;
  --bg-alt: #F8F8F8;
  --bg-muted: #F5F5F5;
  --border: #F0F0F0;
  --white: #FFFFFF;
  --black: #000000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary-accent);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 导航 */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

/* 主内容区 */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

/* 首页 Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-muted) 100%);
  border-radius: 0 0 24px 24px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero .brand {
  color: var(--primary-dark);
}

/* 页脚 */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* 条款/隐私 内容页 */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content {
  background: var(--bg);
}

.legal-content h2 {
  font-size: 1.35rem;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text);
}

.legal-content ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--text);
}

.legal-content li {
  margin-bottom: 0.35rem;
}

/* 正文内超链接 */
.legal-content .legal-link {
  color: var(--primary-accent);
  text-decoration: underline;
}
.legal-content .legal-link:hover {
  color: var(--primary-dark);
}

/* 可展开区块 */
.legal-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 0.75rem;
  overflow: hidden;
}
.legal-section:first-of-type {
  margin-top: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: var(--bg-alt);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.section-header:hover {
  background: var(--bg-muted);
}

.section-title {
  flex: 1;
  padding-right: 0.5rem;
}

.section-chevron {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.legal-section.is-expanded .section-chevron {
  transform: rotate(180deg);
}

.section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.section-body.is-expanded {
  max-height: 5000px;
}

.section-body .legal-content p,
.section-body p {
  margin: 0 1rem 1rem;
  padding-top: 0.25rem;
}
.section-body .legal-content ul,
.section-body ul {
  margin: 0 1rem 1rem 1.5rem;
}
.section-body .legal-content li,
.section-body li {
  margin-bottom: 0.35rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary-accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--primary-dark);
}

@media (max-width: 640px) {
  .site-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  #lang-switcher {
    width: 100%;
    max-width: 140px;
  }
}

/* 语言切换 - 下拉框 */
#lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.lang-select {
  width: 100%;
  min-width: 120px;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  background-size: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--primary);
  outline: none;
}
