/* ==========================================
   Personal Navigation Page - Soft iOS Style
   All content visible, no tab switching
   ========================================== */

:root {
  --color-bg: #F5F5F7;
  --color-primary: #4F6DF5;
  --color-primary-dark: #3A54D4;
  --color-white: #FFFFFF;
  --color-text: #1D1D1F;
  --color-text-secondary: #86868B;
  --color-text-tertiary: #AEAEB2;
  --color-border: #E5E5EA;
  --color-divider: #F2F2F7;
  --color-success: #34C759;
  --color-wechat: #07C160;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 50%;

  --shadow-soft: 0 2px 12px rgba(0,0,0,0.04), 0 0 1px rgba(0,0,0,0.03);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-avatar: 0 6px 20px rgba(0,0,0,0.1);

  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --content-max-width: 480px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-xxl: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  background: #EAEAEA;
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  box-shadow: 0 0 60px rgba(0,0,0,0.05);
}

/* ===== Banner ===== */
.banner {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.banner-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #667eea;
}
.banner-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}
.banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(245,245,247,0.7));
  pointer-events: none;
}

/* ===== Profile Info ===== */
.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -48px;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 2;
}
.avatar {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-full);
  border: 4px solid var(--color-bg);
  object-fit: cover;
  background: #D1D1D6;
  box-shadow: var(--shadow-avatar);
  margin-bottom: var(--spacing-sm);
}
.nickname {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.bio {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

/* ===== Content ===== */
.content {
  padding: 4px var(--spacing-lg) var(--spacing-xl);
}

/* ===== Section ===== */
.section {
  margin-bottom: var(--spacing-xl);
}
.section:last-child {
  margin-bottom: 0;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  padding-left: 2px;
}
.section-title svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

/* ===== Software Card ===== */
.software-list { display: flex; flex-direction: column; gap: 8px; }
.software-card {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 14px 12px 14px 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.software-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-medium); }
.software-card:active { transform: scale(0.98); }
.software-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}
.software-icon-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
}
.software-info {
  flex: 1;
  min-width: 0;
}
.software-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}
.software-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.software-action {
  flex-shrink: 0;
  margin-left: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
}
.software-action svg { width: 16px; height: 16px; }

/* ===== Article Card ===== */
.article-list { display: flex; flex-direction: column; gap: 8px; }
.article-card {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 14px 12px 14px 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.article-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-medium); }
.article-card:active { transform: scale(0.98); }
.article-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  background: #ECFDF5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}
.article-icon svg { width: 20px; height: 20px; }
.article-info {
  flex: 1;
  min-width: 0;
}
.article-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-summary {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.article-date {
  font-size: 11px;
  color: var(--color-text-tertiary);
}
.article-source {
  font-size: 10px;
  color: var(--color-wechat);
  background: #ECFDF5;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.article-arrow {
  flex-shrink: 0;
  margin-left: 6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
}
.article-arrow svg { width: 14px; height: 14px; }

/* ===== Card Grid (Navigation) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 18px 10px 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  min-height: 96px;
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.link-card:active { transform: scale(0.97); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.card-icon-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  line-height: 1.3;
}
.card-desc {
  font-size: 11px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Dynamic List ===== */
.dynamic-list { display: flex; flex-direction: column; gap: 10px; }
.dynamic-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.dynamic-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.dynamic-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: #D1D1D6;
  margin-right: 10px;
  flex-shrink: 0;
}
.dynamic-meta { flex: 1; }
.dynamic-author {
  font-size: 14px;
  font-weight: 600;
}
.dynamic-time {
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.dynamic-body {}
.dynamic-image {
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
  width: 100%;
}
.dynamic-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.dynamic-text {
  font-size: 14px;
  color: #48484A;
  line-height: 1.7;
}

/* ===== Ad & Footer ===== */
.ad-footer {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}
.footer {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg) 36px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ===== Responsive: Tablet ===== */
@media (min-width: 600px) {
  :root { --content-max-width: 600px; }
  .banner { height: 220px; }
  .avatar { width: 88px; height: 88px; }
  .card-grid { gap: 12px; }
}

/* ===== Responsive: Desktop ===== */
@media (min-width: 900px) {
  :root { --content-max-width: 720px; }
  body {
    background: linear-gradient(135deg, #EAEAEA 0%, #D9D9D9 50%, #EAEAEA 100%);
  }
  .container {
    box-shadow: 0 0 80px rgba(0,0,0,0.06);
  }
  .banner { height: 260px; }
  .avatar { width: 92px; height: 92px; margin-top: 4px; }
  .nickname { font-size: 21px; }
  .bio { font-size: 14px; max-width: 360px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .content { padding: 4px var(--spacing-xl) var(--spacing-xxl); }
  .link-card { padding: 20px 14px 16px; min-height: 106px; }
  .link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
  .card-icon { width: 50px; height: 50px; }
}
