/* ============================================================
   蘑菇视频 - 原创样式表
   品牌：蘑菇视频 | 域名：jghfdv.cn
   配色：糖果暖粉系
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --tx-pink: #E8457C;
  --tx-light-pink: #FF8FA3;
  --tx-orange: #FFB347;
  --tx-deep: #1A1225;
  --tx-dark: #241832;
  --tx-card: #2D1F3D;
  --tx-text: #F5F0FF;
  --tx-muted: #B8A9CC;
  --tx-gradient: linear-gradient(135deg, #E8457C, #FFB347);
  --tx-radius: 12px;
  --tx-shadow: 0 8px 32px rgba(232,69,124,0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--tx-deep);
  color: var(--tx-text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--tx-light-pink); text-decoration: none; transition: color .3s; }
a:hover { color: var(--tx-orange); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Container --- */
.tx-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.tx-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(26,18,37,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,69,124,0.15);
  transition: all .3s;
}
.tx-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 68px;
}
.tx-logo { display: flex; align-items: center; gap: 10px; }
.tx-logo img { height: 40px; width: auto; }
.tx-logo-text {
  font-size: 1.3rem; font-weight: 700;
  background: var(--tx-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tx-nav { display: flex; align-items: center; gap: 6px; }
.tx-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: .9rem;
  color: var(--tx-muted); transition: all .3s; white-space: nowrap;
}
.tx-nav a:hover, .tx-nav a.active {
  color: var(--tx-text); background: rgba(232,69,124,0.12);
}
.tx-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
}
.tx-mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--tx-text);
  position: absolute; left: 6px; transition: all .3s;
}
.tx-mobile-toggle span:nth-child(1) { top: 10px; }
.tx-mobile-toggle span:nth-child(2) { top: 17px; }
.tx-mobile-toggle span:nth-child(3) { top: 24px; }

/* --- Search Bar --- */
.tx-search-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(45,31,61,0.8); border: 1px solid rgba(232,69,124,0.2);
  border-radius: 24px; padding: 4px 4px 4px 16px; margin-left: 12px;
}
.tx-search-bar input {
  background: none; border: none; outline: none; color: var(--tx-text);
  font-size: .85rem; width: 140px;
}
.tx-search-bar input::placeholder { color: var(--tx-muted); }
.tx-search-bar button {
  background: var(--tx-gradient); border: none; border-radius: 20px;
  color: #fff; padding: 6px 14px; font-size: .8rem; cursor: pointer;
  transition: opacity .3s;
}
.tx-search-bar button:hover { opacity: .85; }

/* --- Hero --- */
.tx-hero {
  position: relative; min-height: 600px; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
  margin-top: 68px;
}
.tx-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
}
.tx-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(26,18,37,0.6) 0%, rgba(26,18,37,0.85) 100%);
}
.tx-hero-content { position: relative; z-index: 2; padding: 60px 20px; }
.tx-hero h1 {
  font-size: 3rem; font-weight: 800; margin-bottom: 16px;
  background: var(--tx-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tx-hero h2 { font-size: 1.2rem; color: var(--tx-muted); font-weight: 400; margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
.tx-hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 36px; }
.tx-hero-stat .num {
  font-size: 2.2rem; font-weight: 800;
  background: var(--tx-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tx-hero-stat .label { font-size: .85rem; color: var(--tx-muted); }

/* --- Buttons --- */
.tx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 28px; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all .3s; border: none;
}
.tx-btn-primary { background: var(--tx-gradient); color: #fff; }
.tx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,69,124,0.35); color: #fff; }
.tx-btn-outline {
  background: transparent; color: var(--tx-light-pink);
  border: 2px solid var(--tx-light-pink);
}
.tx-btn-outline:hover { background: rgba(232,69,124,0.1); color: var(--tx-text); }

/* --- Section --- */
.tx-section { padding: 80px 0; }
.tx-section-title {
  font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 12px;
}
.tx-section-subtitle {
  text-align: center; color: var(--tx-muted); font-size: 1rem; margin-bottom: 48px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.tx-section-alt { background: var(--tx-dark); }

/* --- Video Grid --- */
.tx-video-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.tx-video-card {
  background: var(--tx-card); border-radius: var(--tx-radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s; cursor: pointer;
}
.tx-video-card:hover { transform: translateY(-6px); box-shadow: var(--tx-shadow); }
.tx-video-thumb {
  position: relative; padding-top: 56.25%; overflow: hidden;
}
.tx-video-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.tx-video-card:hover .tx-video-thumb img { transform: scale(1.08); }
.tx-video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(26,18,37,0.5); opacity: 0; transition: opacity .3s; z-index: 2;
}
.tx-video-card:hover .tx-video-play { opacity: 1; }
.tx-play-icon {
  width: 56px; height: 56px; background: var(--tx-gradient); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.tx-play-icon::after {
  content: ''; display: block; width: 0; height: 0;
  border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.tx-video-duration {
  position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.75);
  color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 4px; z-index: 3;
}
.tx-video-info { padding: 14px; }
.tx-video-title {
  font-size: .95rem; font-weight: 600; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tx-video-meta { display: flex; gap: 12px; font-size: .8rem; color: var(--tx-muted); }
.tx-video-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tx-tag {
  font-size: .7rem; padding: 2px 8px; border-radius: 4px;
  background: rgba(232,69,124,0.12); color: var(--tx-light-pink);
}

/* --- Service/Feature Grid --- */
.tx-feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tx-feature-card {
  background: var(--tx-card); border-radius: var(--tx-radius); padding: 32px 24px;
  text-align: center; transition: transform .3s, box-shadow .3s;
}
.tx-feature-card:hover { transform: translateY(-4px); box-shadow: var(--tx-shadow); }
.tx-feature-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: var(--tx-gradient); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.tx-feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.tx-feature-card p { font-size: .9rem; color: var(--tx-muted); }

/* --- AI Section --- */
.tx-ai-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.tx-ai-image { border-radius: var(--tx-radius); overflow: hidden; }
.tx-ai-features { display: flex; flex-direction: column; gap: 20px; }
.tx-ai-feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--tx-card); padding: 20px; border-radius: var(--tx-radius);
}
.tx-ai-feature-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--tx-gradient); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.tx-ai-feature h4 { font-size: 1rem; margin-bottom: 4px; }
.tx-ai-feature p { font-size: .85rem; color: var(--tx-muted); }

/* --- Expert Grid --- */
.tx-expert-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.tx-expert-card {
  background: var(--tx-card); border-radius: var(--tx-radius); padding: 28px 20px;
  text-align: center; transition: transform .3s;
}
.tx-expert-card:hover { transform: translateY(-4px); }
.tx-expert-avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px;
  overflow: hidden; border: 3px solid var(--tx-pink);
}
.tx-expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tx-expert-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.tx-expert-role { font-size: .85rem; color: var(--tx-pink); margin-bottom: 8px; }
.tx-expert-desc { font-size: .8rem; color: var(--tx-muted); margin-bottom: 14px; }
.tx-expert-btns { display: flex; gap: 8px; justify-content: center; }
.tx-expert-btns a {
  font-size: .75rem; padding: 5px 12px; border-radius: 16px;
  border: 1px solid var(--tx-pink); color: var(--tx-pink); transition: all .3s;
}
.tx-expert-btns a:hover { background: var(--tx-pink); color: #fff; }

/* --- Brand Wall --- */
.tx-brand-wall {
  display: flex; gap: 32px; justify-content: center; align-items: center;
  flex-wrap: wrap; padding: 40px 0;
}
.tx-brand-item {
  background: var(--tx-card); padding: 16px 28px; border-radius: var(--tx-radius);
  font-size: 1rem; font-weight: 600; color: var(--tx-muted);
  border: 1px solid rgba(232,69,124,0.15); transition: all .3s;
}
.tx-brand-item:hover { border-color: var(--tx-pink); color: var(--tx-text); }

/* --- How-To Steps --- */
.tx-howto-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: step;
}
.tx-howto-step {
  background: var(--tx-card); border-radius: var(--tx-radius); padding: 28px 20px;
  text-align: center; position: relative;
}
.tx-step-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--tx-gradient); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: #fff;
}
.tx-howto-step h4 { font-size: 1rem; margin-bottom: 8px; }
.tx-howto-step p { font-size: .85rem; color: var(--tx-muted); }

/* --- Reviews --- */
.tx-review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tx-review-card {
  background: var(--tx-card); border-radius: var(--tx-radius); padding: 24px;
}
.tx-review-stars { color: var(--tx-orange); font-size: 1rem; margin-bottom: 12px; }
.tx-review-text { font-size: .9rem; color: var(--tx-muted); margin-bottom: 16px; font-style: italic; }
.tx-review-author { display: flex; align-items: center; gap: 12px; }
.tx-review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--tx-gradient); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #fff;
}
.tx-review-name { font-size: .9rem; font-weight: 600; }
.tx-review-date { font-size: .75rem; color: var(--tx-muted); }

/* --- FAQ --- */
.tx-faq-list { max-width: 800px; margin: 0 auto; }
.tx-faq-item {
  background: var(--tx-card); border-radius: var(--tx-radius); margin-bottom: 12px;
  overflow: hidden;
}
.tx-faq-question {
  padding: 18px 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: .95rem; transition: background .3s;
}
.tx-faq-question:hover { background: rgba(232,69,124,0.08); }
.tx-faq-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(232,69,124,0.15); display: flex; align-items: center; justify-content: center;
  transition: transform .3s; font-size: .8rem; color: var(--tx-pink);
}
.tx-faq-item.open .tx-faq-toggle { transform: rotate(180deg); }
.tx-faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
}
.tx-faq-answer-inner { padding: 0 24px 18px; font-size: .9rem; color: var(--tx-muted); }
.tx-faq-item.open .tx-faq-answer { max-height: 300px; }

/* --- Contact --- */
.tx-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
}
.tx-contact-info-card {
  background: var(--tx-card); border-radius: var(--tx-radius); padding: 32px;
}
.tx-contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.tx-contact-icon {
  width: 40px; height: 40px; min-width: 40px; border-radius: 10px;
  background: var(--tx-gradient); display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.tx-contact-label { font-size: .8rem; color: var(--tx-muted); }
.tx-contact-value { font-size: .95rem; font-weight: 500; }
.tx-qrcode-grid { display: flex; gap: 24px; }
.tx-qrcode-item { text-align: center; }
.tx-qrcode-item img { width: 140px; height: 140px; border-radius: 8px; margin-bottom: 8px; }
.tx-qrcode-item p { font-size: .8rem; color: var(--tx-muted); }

/* --- Share Bar --- */
.tx-share-bar { display: flex; gap: 12px; justify-content: center; padding: 24px 0; }
.tx-share-btn {
  width: 44px; height: 44px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: .85rem;
  color: #fff; transition: transform .3s; cursor: pointer;
}
.tx-share-btn:hover { transform: scale(1.15); color: #fff; }
.tx-share-wechat { background: #07C160; }
.tx-share-weibo { background: #E6162D; }
.tx-share-douyin { background: #161823; border: 1px solid #333; }
.tx-share-bilibili { background: #00A1D6; }

/* --- EEAT Declaration --- */
.tx-eeat {
  background: var(--tx-card); border-radius: var(--tx-radius); padding: 24px;
  margin-top: 40px; font-size: .85rem; color: var(--tx-muted); text-align: center;
  border: 1px solid rgba(232,69,124,0.1);
}

/* --- Footer --- */
.tx-footer {
  background: var(--tx-dark); border-top: 1px solid rgba(232,69,124,0.1);
  padding: 60px 0 24px;
}
.tx-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
  margin-bottom: 40px;
}
.tx-footer-brand p { font-size: .85rem; color: var(--tx-muted); margin-top: 12px; }
.tx-footer-col h4 {
  font-size: .95rem; margin-bottom: 16px; position: relative; padding-bottom: 8px;
}
.tx-footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--tx-gradient);
}
.tx-footer-col a { display: block; font-size: .85rem; color: var(--tx-muted); margin-bottom: 8px; }
.tx-footer-col a:hover { color: var(--tx-text); }
.tx-footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid rgba(232,69,124,0.1);
  font-size: .8rem; color: var(--tx-muted);
}

/* --- Breadcrumb --- */
.tx-breadcrumb {
  padding: 16px 0; font-size: .85rem;
}
.tx-breadcrumb-list { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tx-breadcrumb-sep { color: var(--tx-muted); }
.tx-breadcrumb a { color: var(--tx-muted); }
.tx-breadcrumb a:hover { color: var(--tx-pink); }
.tx-breadcrumb span:last-child { color: var(--tx-text); }

/* --- Page Hero --- */
.tx-page-hero {
  background: var(--tx-dark); padding: 100px 0 48px; text-align: center;
  margin-top: 68px;
}
.tx-page-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.tx-page-hero p { color: var(--tx-muted); max-width: 600px; margin: 0 auto; }

/* --- Content Card --- */
.tx-content-card {
  background: var(--tx-card); border-radius: var(--tx-radius); padding: 32px;
  margin-bottom: 24px;
}
.tx-content-card h2 { font-size: 1.4rem; margin-bottom: 16px; }
.tx-content-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--tx-light-pink); }
.tx-content-card p { color: var(--tx-muted); margin-bottom: 12px; }

/* --- Community Section --- */
.tx-community-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tx-community-card {
  background: var(--tx-card); border-radius: var(--tx-radius); overflow: hidden;
  transition: transform .3s;
}
.tx-community-card:hover { transform: translateY(-4px); }
.tx-community-card img { width: 100%; height: 200px; object-fit: cover; }
.tx-community-card-body { padding: 20px; }
.tx-community-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tx-community-card-body p { font-size: .85rem; color: var(--tx-muted); }

/* --- Animate --- */
.tx-animate-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.tx-animate-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .tx-video-grid { grid-template-columns: repeat(3, 1fr); }
  .tx-expert-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tx-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--tx-deep); flex-direction: column; padding: 20px; gap: 4px; border-bottom: 1px solid rgba(232,69,124,0.15); }
  .tx-nav.active { display: flex; }
  .tx-mobile-toggle { display: block; }
  .tx-search-bar { display: none; }
  .tx-hero h1 { font-size: 2rem; }
  .tx-hero-stats { gap: 24px; }
  .tx-hero-stat .num { font-size: 1.6rem; }
  .tx-video-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-feature-grid { grid-template-columns: 1fr; }
  .tx-ai-section { grid-template-columns: 1fr; }
  .tx-expert-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-howto-steps { grid-template-columns: repeat(2, 1fr); }
  .tx-review-grid { grid-template-columns: 1fr; }
  .tx-contact-grid { grid-template-columns: 1fr; }
  .tx-footer-grid { grid-template-columns: 1fr; }
  .tx-section { padding: 48px 0; }
  .tx-section-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .tx-video-grid { grid-template-columns: 1fr; }
  .tx-howto-steps { grid-template-columns: 1fr; }
  .tx-expert-grid { grid-template-columns: 1fr; }
}
