:root {
  --primary: #ff6b8a;
  --primary-light: #fff0f5;
  --primary-dark: #e85a78;
  --text: #333;
  --text-muted: #888;
  --card-shadow: 0 6px 24px rgba(255, 107, 138, 0.1);
  --radius: 16px;
  --max-width: 720px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--primary-light);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.site-header {
  background: linear-gradient(135deg, #ff6b8a 0%, #ff8fa8 100%);
  color: #fff;
  padding: 20px 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(255, 107, 138, 0.25);
}

.site-brand {
  text-align: center;
  margin-bottom: 16px;
}

.site-brand h1 {
  font-size: 22px;
  font-weight: 700;
}

.site-brand p {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 12px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  transition: background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--card-shadow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.badge {
  background: rgba(255, 107, 138, 0.12);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.date-text {
  font-size: 13px;
  color: var(--text-muted);
}

.quote-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.quote-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.tag {
  background: rgba(255, 107, 138, 0.1);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff8fa8);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(255, 107, 138, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.quote-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 0.15s;
}

.quote-item:hover {
  transform: translateY(-2px);
}

.quote-item p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.quote-item .meta {
  font-size: 12px;
  color: var(--text-muted);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab {
  padding: 8px 16px;
  border-radius: 20px;
  background: #fff;
  border: none;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab.active {
  background: var(--primary);
  color: #fff;
}

.tip-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 0.15s;
}

.tip-item:hover {
  transform: translateY(-2px);
}

.tip-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.tip-item .summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tip-item .meta {
  font-size: 12px;
  color: var(--text-muted);
}

.article-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-summary {
  background: rgba(255, 107, 138, 0.08);
  color: var(--primary);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.article-content {
  font-size: 16px;
  line-height: 2;
  text-align: justify;
  white-space: pre-wrap;
  margin-bottom: 24px;
}

.article-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.load-more {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.site-footer {
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer a {
  margin: 0 8px;
}

.site-beian {
  margin-top: 8px;
}

#toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-notice,
.mini-program-tip {
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 107, 138, 0.12);
  text-align: center;
}

.mini-program-tip strong {
  color: var(--primary);
}

.quote-list-static {
  list-style: none;
  padding: 0;
}

.quote-list-static li {
  position: relative;
  padding: 14px 0 14px 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 107, 138, 0.08);
}

.quote-list-static li:last-child {
  border-bottom: none;
}

.quote-list-static li::before {
  content: '“';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--primary);
  font-size: 18px;
}

.card-about .about-line {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.card-about .about-line:last-child {
  margin-bottom: 0;
}

.card-intro,
.card-more {
  text-align: center;
}

.intro-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.intro-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 10px;
}

.intro-text:last-of-type {
  margin-bottom: 0;
}

.mp-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 8px;
}

.mp-hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.tip-title-static {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 10px;
}

.tip-body-static {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.back-home {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.note-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 107, 138, 0.08);
}

.note-item:first-child {
  padding-top: 0;
}

.note-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.note-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
}

@media (min-width: 768px) {
  .site-brand h1 { font-size: 26px; }
  .quote-content { font-size: 20px; }
}
