:root {
  --primary-color: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --secondary-color: #64748b;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 12px rgba(13,148,136,0.15);
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.clear {
  clear: both;
}

.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo:hover {
  color: rgba(255,255,255,0.9);
}

.search-box {
  display: flex;
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

.search-box input {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 20px 0 0 20px;
  font-size: 14px;
  outline: none;
}

.search-box button {
  padding: 8px 20px;
  background: var(--primary-dark);
  color: white;
  border: none;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.search-box button:hover {
  background: #0f766e;
}

.nav-channels {
  background: white;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-channels::-webkit-scrollbar {
  display: none;
}

.nav-channels ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  min-width: max-content;
}

.nav-channels li {
  padding: 0;
}

.nav-channels a {
  display: block;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-channels a:hover {
  color: var(--primary-color);
  background: rgba(13,148,136,0.05);
}

.nav-channels li.active a {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.main-content {
  padding: 20px 0;
}

.section {
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.section-title h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.section-title .more {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px 16px 16px 16px ;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.cards {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 0px 16px 16px 16px ;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0px;
  background: #e2e8f0;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.resource-list {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.resource-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-list li {
  border-bottom: 1px solid var(--border-color);
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.resource-list a:hover {
  background: rgba(13,148,136,0.05);
  color: var(--primary-color);
}

.resource-list .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 12px;
  object-fit: cover;
  background: #e2e8f0;
}

.resource-list .text {
  flex: 1;
  font-size: 0.9375rem;
}

.resource-list .date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 12px;
}

.link-group {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.link-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.link-group li {
  padding: 8px 0;
}

.link-group a {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(13,148,136,0.08);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: all 0.2s;
}

.link-group a:hover {
  background: var(--primary-color);
  color: white;
}

.link-group a.primary {
  background: var(--primary-color);
  color: white;
}

.link-group a.primary:hover {
  background: var(--primary-dark);
}

.link-group .bbclrc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 8px;
}

.hot-list {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.hot-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: hot-counter;
}

.hot-list li {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  counter-increment: hot-counter;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-list .rank {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

.hot-list li:nth-child(n+4) .rank {
  background: var(--secondary-color);
}

.hot-list .title {
  flex: 1;
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-list .title a {
  color: var(--text-primary);
}

.hot-list .title a:hover {
  color: var(--primary-color);
}

.hot-list .views {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 12px;
}

.category-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(13,148,136,0.1);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 8px;
}

.category-tag.voa { background: #ccfbf1; color: #0d9488; }
.category-tag.bbc { background: #ccfbf1; color: #0d9488; }
.category-tag.cnn { background: #ccfbf1; color: #0d9488; }
.category-tag.cri { background: #ccfbf1; color: #0d9488; }

.footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 32px 0 20px;
  margin-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-section h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.pagination .total {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-right: 8px;
}

.pagination .pages {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current {
  display: inline-block;
  padding: 8px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination .current {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination b {
  font-weight: 600;
  color: var(--primary-color);
}

.breadcrumb {
  padding: 12px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary-color);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-content {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.article-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.4;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.article-body {
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 1.125rem;
  margin: 24px 0 12px;
  color: var(--primary-color);
}

.article-body h3 {
  font-size: 1rem;
  margin: 20px 0 10px;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body .topic {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 16px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.article-body .topic-title {
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
}

.article-body .essay-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary-color);
  margin: 24px 0 16px;
  text-align: center;
}

.article-body .essay-content {
  text-indent: 2em;
  margin-bottom: 12px;
}

.article-body .notice-box {
  background: rgba(13,148,136,0.08);
  border: 1px solid rgba(13,148,136,0.2);
  padding: 16px;
  margin-top: 24px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9375rem;
}

.article-body .wechat {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .article-content {
    padding: 20px;
  }

  .article-header h1 {
    font-size: 1.25rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 8px;
  }
}

.detail-header {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.detail-header .cover {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.detail-header h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
}

.download-btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(13,148,136,0.3);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,148,136,0.4);
  color: white;
}

.resource-intro {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.resource-intro h2 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

.resource-intro .notice {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 0 8px 8px 0;
}

.resource-intro .intro-text {
  line-height: 1.8;
  color: var(--text-secondary);
}

.resource-intro .tags {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.resource-intro .tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(13,148,136,0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.875rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

.resource-table {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.resource-table h2 {
  font-size: 1.125rem;
  padding: 16px 20px;
  margin: 0;
  border-bottom: 2px solid var(--primary-color);
}

.resource-table table {
  width: 100%;
  border-collapse: collapse;
}

.resource-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.resource-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.resource-table tr:last-child td {
  border-bottom: none;
}

.resource-table tr:hover {
  background: rgba(13,148,136,0.03);
}

.resource-table .type-audio {
  color: var(--primary-color);
}

.resource-table .type-text {
  color: #059669;
}

.download-notes {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.download-notes h2 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

.download-notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-notes li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.download-notes li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.related-articles {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.related-articles h2 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.related-articles li:last-child {
  border-bottom: none;
}

.related-articles a {
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.related-articles a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .detail-header {
    padding: 16px;
  }

  .detail-header h1 {
    font-size: 1.25rem;
  }

  .resource-table {
    overflow-x: auto;
  }

  .resource-table table {
    min-width: 500px;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #334155;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .header-main {
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .search-box {
    order: 3;
    max-width: 100%;
    margin: 0;
    width: 100%;
  }

  .nav-channels a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .link-group ul {
    grid-template-columns: 1fr;
  }

  .resource-list a {
    padding: 12px;
  }

  .resource-list .icon {
    width: 36px;
    height: 36px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .nav-channels ul {
    justify-content: center;
  }

  .main-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }

  .main-content .primary-content {
    grid-column: 1;
  }

  .main-content .sidebar {
    grid-column: 2;
  }
}

.detail-header .notice {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 0 8px 8px 0;
}

.member-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.member-main {
  flex: 1;
  padding: 40px 20px;
}
.member-card {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 32px;
}
.member-title {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 24px;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 2px solid #0d9488;
}
.member-form-group {
  margin-bottom: 20px;
}
.member-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}
.member-form-group input[type="text"],
.member-form-group input[type="password"],
.member-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.member-form-group input:focus {
  outline: none;
  border-color: #0d9488;
}
.member-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.member-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,148,136,0.3);
}
.member-links {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.member-links a {
  color: #0d9488;
  margin: 0 10px;
}
.member-links a:hover {
  text-decoration: underline;
}
.member-notice {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #92400e;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.radio-group label {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.radio-group label:hover {
  border-color: #0d9488;
  background: rgba(13,148,136,0.05);
}
.radio-group input[type="radio"] {
  margin-right: 12px;
}

.detail-header .notice {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 0 8px 8px 0;
}