/* ============================================
   糖心vlog - 原创样式表
   品牌：糖心vlog | 域名：twxsv60.cn
   定位：影视传媒公司 + 视频社区
   ============================================ */

/* --- CSS Variables --- */
:root {
  --tx-primary: #E8456B;
  --tx-secondary: #2D1B69;
  --tx-accent: #FF8C42;
  --tx-bg-dark: #0F0A1E;
  --tx-bg-card: #1A1230;
  --tx-text-light: #F0E6FF;
  --tx-text-muted: #A89CC8;
  --tx-border: #2E2050;
  --tx-gradient: linear-gradient(135deg, #E8456B, #FF8C42);
  --tx-shadow: 0 4px 24px rgba(232,69,107,0.15);
  --tx-radius: 12px;
  --tx-transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background: var(--tx-bg-dark);
  color: var(--tx-text-light);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--tx-primary); text-decoration: none; transition: var(--tx-transition); }
a:hover { color: var(--tx-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }

/* --- Container --- */
.tx-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.tx-section { padding: 60px 0; }
.tx-section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 16px;
  background: var(--tx-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tx-section-desc {
  text-align: center;
  color: var(--tx-text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* --- Header / Navigation --- */
.tx-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15,10,30,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tx-border);
  transition: var(--tx-transition);
}
.tx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.tx-logo { display: flex; align-items: center; gap: 10px; }
.tx-logo img { height: 42px; width: auto; }
.tx-logo-img { height: 42px; width: auto; border-radius: 6px; }
.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: 28px; }
.tx-nav a {
  color: var(--tx-text-light);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.tx-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tx-gradient);
  transition: var(--tx-transition);
}
.tx-nav a:hover::after, .tx-nav a.active::after { width: 100%; }
.tx-nav a:hover { color: var(--tx-primary); -webkit-text-fill-color: unset; }

/* Mobile menu toggle */
.tx-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.tx-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--tx-text-light);
  transition: var(--tx-transition);
}

/* --- Search Bar --- */
.tx-search-bar {
  background: var(--tx-bg-card);
  border-bottom: 1px solid var(--tx-border);
  padding: 12px 0;
  margin-top: 68px;
}
.tx-search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.tx-search-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--tx-border);
  border-radius: 24px;
  padding: 10px 48px 10px 20px;
  color: var(--tx-text-light);
  font-size: 0.95rem;
  outline: none;
  transition: var(--tx-transition);
}
.tx-search-input::placeholder { color: var(--tx-text-muted); }
.tx-search-input:focus { border-color: var(--tx-primary); box-shadow: 0 0 0 3px rgba(232,69,107,0.15); }
.tx-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--tx-gradient);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

/* --- Hero Banner --- */
.tx-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.tx-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.tx-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding-left: 60px;
}
.tx-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.tx-hero p {
  font-size: 1.1rem;
  color: rgba(240,230,255,0.85);
  margin-bottom: 28px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.tx-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--tx-gradient);
  color: #fff;
  border-radius: 28px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--tx-transition);
  border: none;
  cursor: pointer;
}
.tx-btn:hover { transform: translateY(-2px); box-shadow: var(--tx-shadow); color: #fff; }
.tx-btn-outline {
  background: transparent;
  border: 2px solid var(--tx-primary);
  color: var(--tx-primary);
}
.tx-btn-outline:hover { background: var(--tx-primary); color: #fff; }

/* --- Video Cards Grid --- */
.tx-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.tx-video-card {
  background: var(--tx-bg-card);
  border-radius: var(--tx-radius);
  overflow: hidden;
  border: 1px solid var(--tx-border);
  transition: var(--tx-transition);
  position: relative;
}
.tx-video-card:hover { transform: translateY(-6px); box-shadow: var(--tx-shadow); border-color: var(--tx-primary); }
.tx-video-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.tx-video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--tx-transition); }
.tx-video-card:hover .tx-video-thumb img { transform: scale(1.05); }
.tx-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  background: rgba(232,69,107,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--tx-transition);
}
.tx-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.tx-video-card:hover .tx-play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tx-video-info { padding: 16px; }
.tx-video-title { font-size: 1.05rem; 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: 16px; color: var(--tx-text-muted); font-size: 0.82rem; }
.tx-video-meta span { display: flex; align-items: center; gap: 4px; }
.tx-video-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tx-gradient);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 3;
}
.tx-video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  z-index: 3;
}

/* --- Feature Modules --- */
.tx-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.tx-feature-card {
  background: var(--tx-bg-card);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--tx-transition);
}
.tx-feature-card:hover { border-color: var(--tx-primary); transform: translateY(-4px); }
.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.15rem; margin-bottom: 10px; }
.tx-feature-card p { color: var(--tx-text-muted); font-size: 0.9rem; }

/* --- Expert Cards --- */
.tx-expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.tx-expert-card {
  background: var(--tx-bg-card);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 28px;
  text-align: center;
  transition: var(--tx-transition);
}
.tx-expert-card:hover { border-color: var(--tx-primary); }
.tx-expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--tx-primary);
}
.tx-expert-card h4 { font-size: 1.1rem; margin-bottom: 6px; }
.tx-expert-card .tx-role { color: var(--tx-accent); font-size: 0.85rem; margin-bottom: 10px; }
.tx-expert-card p { color: var(--tx-text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.tx-expert-btns { display: flex; gap: 10px; justify-content: center; }
.tx-expert-btns a { font-size: 0.82rem; padding: 6px 16px; border-radius: 20px; }

/* --- FAQ Accordion --- */
.tx-faq-list { max-width: 800px; margin: 0 auto; }
.tx-faq-item {
  background: var(--tx-bg-card);
  border: 1px solid var(--tx-border);
  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: 1rem;
  transition: var(--tx-transition);
}
.tx-faq-question:hover { color: var(--tx-primary); }
.tx-faq-question::after { content: '+'; font-size: 1.4rem; color: var(--tx-primary); transition: var(--tx-transition); }
.tx-faq-item.active .tx-faq-question::after { content: '-'; }
.tx-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 24px;
  color: var(--tx-text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}
.tx-faq-item.active .tx-faq-answer { max-height: 300px; padding-bottom: 18px; }

/* --- Reviews --- */
.tx-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.tx-review-card {
  background: var(--tx-bg-card);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 24px;
}
.tx-review-stars { color: var(--tx-accent); font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 2px; }
.tx-review-text { color: var(--tx-text-muted); font-size: 0.92rem; margin-bottom: 16px; font-style: italic; line-height: 1.7; }
.tx-review-author { font-weight: 600; font-size: 0.9rem; }
.tx-review-date { color: var(--tx-text-muted); font-size: 0.78rem; }

/* --- Partner Logos --- */
.tx-partner-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  align-items: center;
}
.tx-partner-logo {
  width: 120px;
  height: 60px;
  background: var(--tx-bg-card);
  border: 1px solid var(--tx-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: var(--tx-transition);
  color: var(--tx-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.tx-partner-logo:hover { border-color: var(--tx-primary); }

/* --- Social Share --- */
.tx-share-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.tx-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  transition: var(--tx-transition);
}
.tx-share-btn:hover { transform: translateY(-2px); 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; }

/* --- Footer --- */
.tx-footer {
  background: #0A0716;
  border-top: 1px solid var(--tx-border);
  padding: 48px 0 24px;
}
.tx-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.tx-footer h4 { font-size: 1.05rem; margin-bottom: 16px; background: var(--tx-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tx-footer p, .tx-footer li { color: var(--tx-text-muted); font-size: 0.88rem; line-height: 2; }
.tx-footer a { color: var(--tx-text-muted); }
.tx-footer a:hover { color: var(--tx-primary); }
.tx-footer-qr { display: flex; gap: 20px; }
.tx-footer-qr img { width: 100px; height: 100px; border-radius: 8px; border: 1px solid var(--tx-border); }
.tx-footer-qr-label { text-align: center; font-size: 0.78rem; color: var(--tx-text-muted); margin-top: 6px; }
.tx-footer-bottom {
  border-top: 1px solid var(--tx-border);
  padding-top: 20px;
  text-align: center;
  color: var(--tx-text-muted);
  font-size: 0.82rem;
}
.tx-footer-bottom a { color: var(--tx-text-muted); }

/* --- Breadcrumb --- */
.tx-breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--tx-text-muted);
}
.tx-breadcrumb a { color: var(--tx-text-muted); }
.tx-breadcrumb a:hover { color: var(--tx-primary); }
.tx-breadcrumb span { margin: 0 8px; }

/* --- Page Header (inner pages) --- */
.tx-page-header {
  background: linear-gradient(135deg, var(--tx-secondary), var(--tx-bg-dark));
  padding: 100px 0 40px;
  text-align: center;
}
.tx-page-header h1 { font-size: 2.2rem; margin-bottom: 12px; }
.tx-page-header p { color: var(--tx-text-muted); font-size: 1rem; }

/* --- Content Area --- */
.tx-content { padding: 40px 0; }
.tx-content p { margin-bottom: 16px; color: var(--tx-text-muted); font-size: 0.95rem; }
.tx-content h2 { font-size: 1.6rem; margin: 32px 0 16px; color: var(--tx-text-light); }
.tx-content h3 { font-size: 1.3rem; margin: 24px 0 12px; color: var(--tx-text-light); }
.tx-content img { border-radius: var(--tx-radius); margin: 20px 0; }

/* --- Contact Info --- */
.tx-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.tx-contact-card {
  background: var(--tx-bg-card);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 28px;
}
.tx-contact-card h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--tx-primary); }
.tx-contact-card p { color: var(--tx-text-muted); font-size: 0.9rem; margin-bottom: 8px; }

/* --- AI Section --- */
.tx-ai-banner {
  position: relative;
  border-radius: var(--tx-radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.tx-ai-banner img { width: 100%; height: 280px; object-fit: cover; filter: brightness(0.6); }
.tx-ai-banner-text {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
}
.tx-ai-banner-text h3 { font-size: 1.5rem; margin-bottom: 8px; }
.tx-ai-banner-text p { color: rgba(240,230,255,0.8); font-size: 0.95rem; }

/* --- How-To Guide --- */
.tx-howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.tx-howto-step {
  background: var(--tx-bg-card);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 28px 20px;
  text-align: center;
  counter-increment: step;
  position: relative;
}
.tx-howto-step::before {
  content: counter(step);
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: var(--tx-gradient);
  border-radius: 50%;
  margin: 0 auto 16px;
  font-weight: 700;
  font-size: 1.1rem;
}
.tx-howto-step h4 { margin-bottom: 8px; font-size: 1rem; }
.tx-howto-step p { color: var(--tx-text-muted); font-size: 0.88rem; }

/* --- Stats Bar --- */
.tx-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 40px 0;
}
.tx-stat-num { font-size: 2.4rem; font-weight: 700; background: var(--tx-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tx-stat-label { color: var(--tx-text-muted); font-size: 0.9rem; margin-top: 6px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .tx-nav { display: none; position: fixed; top: 68px; left: 0; width: 100%; background: rgba(15,10,30,0.98); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--tx-border); }
  .tx-nav.active { display: flex; }
  .tx-menu-toggle { display: flex; }
  .tx-hero { height: 380px; }
  .tx-hero-content { padding-left: 20px; }
  .tx-hero h1 { font-size: 1.8rem; }
  .tx-section-title { font-size: 1.5rem; }
  .tx-stats { grid-template-columns: repeat(2, 1fr); }
  .tx-footer-grid { grid-template-columns: 1fr; }
  .tx-video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tx-expert-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tx-video-grid { grid-template-columns: 1fr; }
  .tx-expert-grid { grid-template-columns: 1fr; }
  .tx-hero { height: 300px; }
  .tx-hero h1 { font-size: 1.5rem; }
}

/* --- Lazy Load --- */
img[loading="lazy"] { opacity: 0; transition: opacity 0.5s; }
img[loading="lazy"].loaded, img[loading="lazy"][src] { opacity: 1; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--tx-bg-dark); }
::-webkit-scrollbar-thumb { background: var(--tx-secondary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--tx-primary); }
