/* 豆一闪隐私政策 - 样式表 */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #FAFAF7;
  --fg: #2C2C2E;
  --muted: #8E8E93;
  --accent: #D4A054;
  --border: #E8E8E3;
  --card-bg: #F5F5F0;
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1C1E;
    --fg: #E5E5EA;
    --muted: #98989D;
    --accent: #E0B06A;
    --border: #38383A;
    --card-bg: #2C2C2E;
  }
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-stack);
  line-height: 1.8;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 淡入动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  animation: fadeIn 200ms ease-out both;
}

/* 顶部区域 */
.header {
  text-align: center;
  margin-bottom: 48px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #D4A054 0%, #E8C478 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(212, 160, 84, 0.2);
}

.app-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.app-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 1px;
}

/* 更新日期 */
.update-date {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 20px;
}

/* 分隔线 */
.divider {
  border: none;
  height: 1px;
  background-color: var(--border);
  margin: 36px 0;
}

/* 内容条目 */
.policy-section {
  margin-bottom: 32px;
}

.section-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background-color: var(--card-bg);
  flex-shrink: 0;
}

.section-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.section-text {
  font-size: 0.9375rem;
  color: var(--fg);
  line-height: 1.8;
  opacity: 0.85;
}

/* 联系区域 */
.contact-section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-email {
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.contact-email:hover {
  opacity: 0.75;
}

/* 底部 */
.footer {
  margin-top: 48px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.6;
}

/* 响应式 */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 36px 20px 48px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .header {
    margin-bottom: 36px;
  }
}
