/**
 * 全站补充样式：会员中心 + 价格方案 + 通用修复
 */

/* 避免固定头部遮挡 */
main {
  min-height: 45vh;
}

/* ===== 会员中心 ===== */
.member-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 70px);
  margin-top: 70px;
}

.member-sidebar {
  background: #243447;
  color: #fff;
  padding: 24px 0;
}

.member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 2rem;
}

.member-sidebar h3,
.member-level {
  text-align: center;
}

.member-level {
  opacity: 0.75;
  font-size: 0.8125rem;
}

.member-nav {
  margin-top: 24px;
}

.member-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  padding: 11px 24px;
  border-left: 3px solid transparent;
}

.member-nav a:hover,
.member-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--primary-color);
}

.member-content {
  background: var(--bg-gray);
  padding: 24px;
}

.member-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 20px;
}

.member-card h2,
.member-card h3 {
  margin-bottom: 14px;
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.member-stat-item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-stat-value {
  font-weight: 700;
  font-size: 1.4rem;
}

.member-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 10px 6px;
  text-align: left;
}

.admin-table th {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===== 价格页 ===== */
.plan-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-gray);
  border-radius: var(--radius-xl);
  padding: 5px;
  width: fit-content;
  margin: 0 auto 48px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
}

.plan-tab {
  padding: 9px 28px;
  border-radius: calc(var(--radius-xl) - 4px);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
}

.plan-tab.active {
  background: #fff;
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.plan-grid,
.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan-card,
.addon-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.plan-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid rgba(28, 39, 60, 0.06);
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 36px rgba(25, 35, 56, 0.14);
}

.plan-card.featured {
  border: 2px solid var(--primary-color);
  box-shadow: 0 14px 34px rgba(231,76,60,0.2);
}

.plan-card.featured .plan-header {
  background: linear-gradient(180deg, rgba(231, 76, 60, 0.06) 0%, rgba(231, 76, 60, 0) 100%);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 22px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  z-index: 2;
  letter-spacing: 0.05em;
}

.plan-header {
  padding: 34px 30px 24px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.plan-card.featured .plan-header {
  padding-top: 44px;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.5;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 10px 0 6px;
}

.plan-currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

.plan-amount {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  letter-spacing: 0.01em;
}

.plan-unit {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plan-original {
  color: var(--text-light);
  text-decoration: line-through;
  font-size: 0.8rem;
  margin-top: 4px;
}

.plan-features {
  padding: 26px 30px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  border-bottom: 1px dashed var(--border-color);
}

.plan-feature-item:last-child {
  border-bottom: none;
}

.plan-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(39,174,96,0.12);
  color: var(--success-color);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-feature-text {
  flex: 1;
  line-height: 1.5;
}

.plan-feature-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.plan-footer {
  padding: 4px 30px 30px;
}

.plan-btn {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 10px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.plan-btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(231,76,60,0.28);
}

.plan-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231,76,60,0.36);
}

.plan-btn-outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.plan-btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: center;
  font-size: 0.9375rem;
}

.compare-table th {
  background: var(--secondary-color);
  color: #fff;
  font-weight: 600;
}

.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

.compare-table th.featured-col {
  background: var(--primary-color);
}

.compare-table tr:nth-child(even) td {
  background: var(--bg-gray);
}

.compare-table tr:hover td {
  background: rgba(231,76,60,0.04);
}

.compare-section {
  padding: 64px 0;
  background: #fff;
}

.faq-section {
  padding: 64px 0;
  background: var(--bg-gray);
}

.news-item-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-item-img-placeholder span {
  font-size: 2.2rem;
}

.check-icon {
  color: var(--success-color);
  font-weight: 700;
}

.cross-icon {
  color: #bbb;
}

.addon-card {
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.addon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(25, 35, 56, 0.1);
}

.addon-icon {
  font-size: 2.25rem;
  flex-shrink: 0;
}

.addon-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.addon-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.addon-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.addon-price-amount {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary-color);
}

.addon-price-unit {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.addon-section {
  background: linear-gradient(180deg, #f7f8fb 0%, #f0f2f7 100%);
  padding: 64px 0;
}

.faq-section .faq-list {
  max-width: 920px;
  margin: 0 auto;
}

.faq-section .faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.pricing-plan-section .container {
  max-width: 1200px;
}

.pricing-plan-section .section-title h2,
.compare-section .section-title h2,
.faq-section .section-title h2,
.addon-section .section-title h2 {
  font-size: 2.1rem;
}

.pricing-plan-section .section-title p,
.compare-section .section-title p,
.faq-section .section-title p,
.addon-section .section-title p {
  font-size: 1rem;
}

/* ===== 帮助中心 + 案例页 + 模板中心 ===== */
.service-features-grid a.service-feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-features-grid a.service-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.partner-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 14px 10px;
  color: var(--text-secondary);
  font-weight: 600;
}

.filter-bar {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tag {
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--text-secondary);
  background: #fff;
}

.filter-tag.active {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.template-item {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.template-item-img {
  height: 200px;
  position: relative;
}

.template-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.template-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 35, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.template-item:hover .template-item-overlay {
  opacity: 1;
}

.template-item-info {
  padding: 14px;
}

.template-item-category {
  font-size: 0.8125rem;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.template-item-title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.template-item-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

@media (max-width: 1024px) {
  .member-layout {
    grid-template-columns: 1fr;
  }

  .member-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .member-grid-2,
  .plan-grid,
  .addon-grid,
  .template-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .plan-grid {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .plan-amount {
    font-size: 2.9rem;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .member-content {
    padding: 14px;
  }

  .member-stats {
    grid-template-columns: 1fr;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .filter-group {
    align-items: flex-start;
  }

  .template-item-img {
    height: 180px;
  }

  .plan-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .plan-tabs::-webkit-scrollbar {
    display: none;
  }

  .plan-tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .plan-header {
    padding: 28px 24px 20px;
  }

  .plan-features {
    padding: 20px 24px;
  }

  .plan-footer {
    padding: 2px 24px 24px;
  }
}

/* ===== 新闻详情页 ===== */
.news-detail-header .page-title {
  margin-bottom: 12px;
}

.news-detail-header .page-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.news-detail-section {
  padding-top: 56px;
}

.news-detail-container {
  max-width: 860px;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.news-breadcrumb a {
  color: var(--text-secondary);
}

.news-breadcrumb a:hover {
  color: var(--primary-color);
}

.news-breadcrumb .current {
  color: var(--text-primary);
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-cover {
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-body {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  line-height: 1.95;
  font-size: 1.02rem;
}

.article-body p,
.article-body li {
  margin-bottom: 12px;
}

.article-body h2,
.article-body h3 {
  margin: 18px 0 12px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.article-nav-link {
  display: block;
  padding: 16px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.article-nav-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.article-nav-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.article-nav-title {
  font-weight: 600;
}

.text-right {
  text-align: right;
}

.article-back {
  text-align: center;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .news-detail-section {
    padding-top: 42px;
  }

  .article-body {
    padding: 20px 18px;
    line-height: 1.85;
    font-size: 0.96rem;
  }

  .news-breadcrumb {
    font-size: 0.8125rem;
    margin-bottom: 14px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .text-right {
    text-align: left;
  }
}

/* ===== 会员中心独立布局（不复用公用头尾） ===== */
.member-portal {
  background: #f4f6fb;
  min-height: 100vh;
}

.member-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(30, 45, 70, 0.08);
  box-shadow: 0 4px 14px rgba(22, 32, 50, 0.05);
}

.member-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.member-logo {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-color);
}

.member-topnav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.member-topnav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.member-topnav a:hover {
  color: var(--primary-color);
}

.member-top-user {
  font-size: 1.05rem;
  color: #5d4a88;
}

.member-portal .member-layout {
  max-width: 1320px;
  margin: 18px auto 0;
  min-height: calc(100vh - 82px);
  grid-template-columns: 220px 1fr;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(22, 32, 52, 0.08);
}

.member-portal .member-sidebar {
  background: linear-gradient(180deg, #1f3046 0%, #223a54 100%);
  padding: 20px 0;
}

.member-portal .member-content {
  padding: 18px;
}

.member-portal .member-card {
  border: 1px solid rgba(20, 32, 54, 0.06);
  border-radius: 12px;
}

@media (max-width: 900px) {
  .member-topnav {
    display: none;
  }

  .member-portal .member-layout {
    margin: 12px 10px 0;
    max-width: none;
    min-height: auto;
  }
}
