/* ==========================================================================
   山水云 (Shanshui Cloud) - 组件样式表 components.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero 主视觉区域
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 60px 0 80px;
  background: var(--hero-gradient);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  margin-bottom: 18px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -1px;
  color: #0f172a;
  margin-bottom: 16px;
}

.hero-title .brand-highlight {
  background: linear-gradient(135deg, #0284c7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(224, 231, 255, 0.8);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.hero-feature-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary-sky);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero 右侧动漫看板娘预留展示区 (根据用户指令，预留二次元人物与天空樱花位置) */
.hero-visual-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-anime-frame {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 4.8;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 249, 255, 0.7) 100%);
  border: 2px dashed rgba(255, 107, 157, 0.4);
  border-radius: 36px;
  box-shadow: 0 20px 50px -15px rgba(255, 107, 157, 0.25), 0 10px 30px -10px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.hero-anime-frame::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-anime-frame::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

/* 高清图片正式展示框（清除占位虚线与内边距，呈现完整二次元插画） */
.hero-art-frame {
  padding: 0;
  border: none;
  background: transparent;
  display: block;
}

.hero-art-frame::before,
.hero-art-frame::after {
  display: none;
}

.hero-art-frame img,
.about-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 36px;
  box-shadow: 0 20px 50px -15px rgba(255, 107, 157, 0.25), 0 10px 30px -10px rgba(56, 189, 248, 0.2);
}

.about-art-frame {
  padding: 0;
  border: none;
  background: transparent;
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 12 / 13;
  margin: 0 auto;
}

.about-art-frame::before,
.about-art-frame::after {
  display: none;
}

.anime-avatar-silhouette {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe 0%, #fce7f3 100%);
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.anime-avatar-silhouette svg {
  width: 72px;
  height: 72px;
  stroke: var(--sakura-pink);
  opacity: 0.85;
}

.hero-anime-spec {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  z-index: 2;
}

.hero-anime-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
  margin-bottom: 12px;
  z-index: 2;
}

.hero-floating-bubble {
  position: absolute;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  animation: floatSlow 4s ease-in-out infinite alternate;
}

.bubble-left {
  top: 15%;
  left: -15px;
  border: 1px solid var(--border-sky);
  color: var(--primary-sky-deep);
}

.bubble-right {
  bottom: 18%;
  right: -15px;
  border: 1px solid var(--border-pink);
  color: var(--sakura-pink-deep);
  animation-delay: -2s;
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   2. 多媒体与 AI 平台展示区域
   -------------------------------------------------------------------------- */
.platforms-section {
  padding: 50px 0 65px;
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.platform-cards-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.platform-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.28s ease;
  position: relative;
}

.platform-item-card:hover {
  background: #ffffff;
  border-color: var(--sakura-pink);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -8px rgba(255, 107, 157, 0.25);
}

.platform-icon-holder {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.28s ease;
}

.platform-item-card:hover .platform-icon-holder {
  border-color: var(--sakura-pink);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
  transform: scale(1.06);
}

.platform-icon-img {
  max-width: 32px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.platform-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.platform-status-tag {
  font-size: 0.72rem;
  color: #10b981;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.platform-disclaimer {
  max-width: 800px;
  margin: 0 auto;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.platform-disclaimer svg {
  flex-shrink: 0;
  stroke: var(--primary-sky-deep);
}

/* --------------------------------------------------------------------------
   3. 套餐价格板块 (三卡片二次元布局)
   -------------------------------------------------------------------------- */
.pricing-section {
  padding: 75px 0 85px;
  background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 100%);
  position: relative;
}

.pricing-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 40px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 26px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* 中间主推套餐（畅享版）粉色高亮 */
.pricing-card.featured-card {
  border: 2px solid var(--sakura-pink);
  box-shadow: 0 16px 40px -10px rgba(255, 107, 157, 0.35);
  transform: scale(1.03);
  z-index: 3;
}

.pricing-card.featured-card:hover {
  transform: scale(1.03) translateY(-6px);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sakura-gradient);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-pink-glow);
  letter-spacing: 0.5px;
}

.pricing-anime-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.pricing-avatar-pill {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fce7f3 0%, #e0f2fe 100%);
  border: 1.5px dashed var(--sakura-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--sakura-pink-deep);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.pricing-title-group h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.pricing-plan-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pricing-price-box {
  margin: 16px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #e2e8f0;
}

.price-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 2px;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 850;
  color: var(--text-main);
  line-height: 1;
}

.featured-card .price-amount {
  color: var(--sakura-pink-deep);
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.price-verification-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

.price-verification-tag.pending {
  color: #d97706;
  background: #fffbeb;
  border-color: #fde68a;
}

.pricing-features-list {
  flex-grow: 1;
  margin-bottom: 30px;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.pricing-features-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--primary-sky-deep);
  margin-top: 2px;
}

.featured-card .pricing-features-list svg {
  stroke: var(--sakura-pink);
}

.pricing-cta-btn {
  width: 100%;
  text-align: center;
}

/* 套餐真实价格透明提示 */
.pricing-policy-note {
  background: #ffffff;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. 用户评价模块
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: 70px 0 80px;
  background: #ffffff;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.testimonial-card {
  padding: 28px 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--sakura-pink);
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(255, 107, 157, 0.2);
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.user-avatar-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe 0%, #fce7f3 100%);
  border: 1.5px dashed var(--primary-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-main);
  font-weight: 700;
}

.user-meta-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
}

.user-meta-tag {
  font-size: 0.76rem;
  color: var(--text-light);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.testimonial-content {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.testimonial-date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 16px;
}

.testimonial-notice {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   5. 常见问题 FAQ (手风琴)
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 70px 0 85px;
  background: #f8fafc;
}

.faq-accordion-list {
  max-width: 860px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: var(--primary-sky);
  box-shadow: 0 8px 24px -6px rgba(56, 189, 248, 0.2);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-item.active .faq-question-btn {
  color: var(--primary-sky-deep);
}

.faq-arrow-icon {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-arrow-icon {
  transform: rotate(180deg);
  stroke: var(--primary-sky-deep);
}

.faq-answer-pane {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer-pane {
  max-height: 400px;
  padding-bottom: 22px;
}

.faq-bottom-cta {
  text-align: center;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   6. 知识科普入口卡片
   -------------------------------------------------------------------------- */
.knowledge-entry-section {
  padding: 70px 0 85px;
  background: #ffffff;
}

.knowledge-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.knowledge-article-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.knowledge-article-card:hover {
  border-color: var(--sakura-pink);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-cover-placeholder {
  height: 170px;
  background: linear-gradient(135deg, #e0f2fe 0%, #fce7f3 100%);
  border-bottom: 1.5px dashed var(--border-sky);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  position: relative;
}

/* 正式文章封面图容器 */
.card-cover-wrap {
  height: 170px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
}

.card-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.knowledge-article-card:hover .card-cover-wrap img {
  transform: scale(1.04);
}

.card-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.45;
}

.article-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.article-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sakura-pink-deep);
}

.article-read-link:hover {
  gap: 9px;
}

/* --------------------------------------------------------------------------
   7. 独立知识科普页 & 详情页排版组件
   -------------------------------------------------------------------------- */
.knowledge-hero-banner {
  background: linear-gradient(135deg, #e0f2fe 0%, #fdf2f8 60%, #ffffff 100%);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.knowledge-search-bar {
  max-width: 600px;
  margin: 24px auto 0;
  position: relative;
}

.knowledge-search-input {
  width: 100%;
  padding: 14px 24px 14px 50px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-full);
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.knowledge-search-input:focus {
  border-color: var(--primary-sky);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.knowledge-search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--text-light);
}

.category-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 36px 0 28px;
}

.cat-tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.cat-tab-btn.active, .cat-tab-btn:hover {
  background: var(--sakura-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-pink-glow);
}

/* 面包屑导航 Breadcrumbs */
.breadcrumbs-bar {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.breadcrumbs-bar a {
  color: var(--text-muted);
}

.breadcrumbs-bar a:hover {
  color: var(--primary-sky-deep);
}

.breadcrumbs-bar span.separator {
  margin: 0 8px;
  color: #cbd5e1;
}

.breadcrumbs-bar span.current {
  color: var(--text-main);
  font-weight: 600;
}

/* 文章正文阅读区域 */
.article-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0 80px;
}

.article-main-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.article-header-meta {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.article-main-title {
  font-size: 2.1rem;
  font-weight: 850;
  color: var(--text-main);
  line-height: 1.35;
  margin: 12px 0 16px;
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-body-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.article-body-text h2 {
  font-size: 1.55rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 36px 0 18px;
  padding-left: 12px;
  border-left: 4px solid var(--sakura-pink);
}

.article-body-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 26px 0 14px;
}

.article-body-text p {
  margin-bottom: 20px;
}

.article-body-text ul, .article-body-text ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.article-body-text li {
  list-style: disc;
  margin-bottom: 8px;
}

.article-callout-box {
  background: var(--primary-sky-soft);
  border-left: 4px solid var(--primary-sky);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 28px 0;
  color: var(--text-main);
}

/* 侧边栏 */
.sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: "✦";
  color: var(--sakura-pink);
}

.widget-links-list li {
  margin-bottom: 12px;
}

.widget-links-list a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: block;
}

.widget-links-list a:hover {
  color: var(--primary-sky-deep);
  transform: translateX(4px);
}
