/* ============================================
   糖心vlog - 原创样式表
   品牌：糖心vlog | 域名：gv516.cn
   配色方案：糖心粉+活力橙+深夜蓝
   ============================================ */

/* CSS Variables */
:root {
  --tx-pink: #E83E8C;
  --tx-orange: #FF6B35;
  --tx-dark: #1A1A2E;
  --tx-light: #F8F0E3;
  --tx-gold: #FFD700;
  --tx-gradient: linear-gradient(135deg, #E83E8C, #FF6B35);
  --tx-gradient-dark: linear-gradient(135deg, #1A1A2E, #16213E);
  --tx-shadow: 0 4px 20px rgba(232, 62, 140, 0.15);
  --tx-radius: 12px;
  --tx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
  background: var(--tx-light);
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--tx-pink); text-decoration: none; transition: var(--tx-transition); }
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; }
.tx-container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ============ Header & Navigation ============ */
.tx-header {
  background: var(--tx-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.tx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
  height: 68px;
}
.tx-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tx-logo img {
  height: 42px;
  width: auto;
}
.tx-logo-text {
  font-size: 1.4rem;
  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: 0; }
.tx-nav a {
  color: #ccc;
  padding: 22px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: var(--tx-transition);
}
.tx-nav a:hover, .tx-nav a.active {
  color: #fff;
  background: rgba(232, 62, 140, 0.15);
}
.tx-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--tx-gradient);
  transition: var(--tx-transition);
  border-radius: 2px;
}
.tx-nav a:hover::after, .tx-nav a.active::after { width: 60%; }

/* Mobile Menu Toggle */
.tx-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}
.tx-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: var(--tx-transition);
}

/* Search Bar */
.tx-search-bar {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  padding: 12px 0;
  border-bottom: 1px solid rgba(232, 62, 140, 0.2);
}
.tx-search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.tx-search-input {
  flex: 1;
  padding: 10px 20px;
  border: 2px solid rgba(232, 62, 140, 0.3);
  border-radius: 25px 0 0 25px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--tx-transition);
}
.tx-search-input::placeholder { color: rgba(255,255,255,0.4); }
.tx-search-input:focus { border-color: var(--tx-pink); background: rgba(255,255,255,0.12); }
.tx-search-btn {
  padding: 10px 28px;
  background: var(--tx-gradient);
  border: none;
  border-radius: 0 25px 25px 0;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--tx-transition);
}
.tx-search-btn:hover { opacity: 0.9; transform: scale(1.02); }

/* ============ Hero Banner ============ */
.tx-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--tx-dark);
}
.tx-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.tx-hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(26,26,46,0.3), rgba(26,26,46,0.85));
}
.tx-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 20px;
}
.tx-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.tx-hero h1 span {
  background: var(--tx-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tx-hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin-bottom: 30px;
}
.tx-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.tx-hero-tag {
  padding: 6px 18px;
  background: rgba(232, 62, 140, 0.2);
  border: 1px solid rgba(232, 62, 140, 0.4);
  border-radius: 20px;
  color: #fff;
  font-size: 0.85rem;
}

/* ============ Section Styles ============ */
.tx-section {
  padding: 60px 0;
}
.tx-section-alt {
  background: #fff;
}
.tx-section-dark {
  background: var(--tx-dark);
  color: #fff;
}
.tx-section-title {
  text-align: center;
  margin-bottom: 45px;
}
.tx-section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tx-dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.tx-section-dark .tx-section-title h2 { color: #fff; }
.tx-section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--tx-gradient);
  margin: 10px auto 0;
  border-radius: 2px;
}
.tx-section-title p {
  color: #777;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.tx-section-dark .tx-section-title p { color: rgba(255,255,255,0.6); }

/* ============ Video Card Grid ============ */
.tx-video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tx-video-card {
  background: #fff;
  border-radius: var(--tx-radius);
  overflow: hidden;
  box-shadow: var(--tx-shadow);
  transition: var(--tx-transition);
  cursor: pointer;
}
.tx-video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(232, 62, 140, 0.25);
}
.tx-section-dark .tx-video-card {
  background: rgba(255,255,255,0.06);
}
.tx-video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.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.08);
}
.tx-video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(232, 62, 140, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--tx-transition);
}
.tx-video-card:hover .tx-video-play { opacity: 1; }
.tx-video-play::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.tx-video-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.tx-video-info {
  padding: 14px;
}
.tx-video-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tx-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tx-section-dark .tx-video-info h3 { color: #fff; }
.tx-video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #999;
}
.tx-video-meta span { display: flex; align-items: center; gap: 4px; }
.tx-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tx-tag {
  padding: 2px 10px;
  background: rgba(232, 62, 140, 0.08);
  color: var(--tx-pink);
  border-radius: 12px;
  font-size: 0.75rem;
}

/* ============ Feature Grid ============ */
.tx-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.tx-feature-card {
  background: #fff;
  border-radius: var(--tx-radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--tx-shadow);
  transition: var(--tx-transition);
  border: 1px solid transparent;
}
.tx-feature-card:hover {
  border-color: var(--tx-pink);
  transform: translateY(-4px);
}
.tx-feature-icon {
  width: 70px; height: 70px;
  background: var(--tx-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: #fff;
}
.tx-feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--tx-dark);
}
.tx-feature-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ============ Expert Cards ============ */
.tx-expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.tx-expert-card {
  background: #fff;
  border-radius: var(--tx-radius);
  overflow: hidden;
  box-shadow: var(--tx-shadow);
  transition: var(--tx-transition);
  text-align: center;
}
.tx-expert-card:hover { transform: translateY(-4px); }
.tx-expert-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 25px auto 15px;
  overflow: hidden;
  border: 3px solid var(--tx-pink);
}
.tx-expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tx-expert-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tx-dark);
}
.tx-expert-role {
  color: var(--tx-pink);
  font-size: 0.85rem;
  margin: 4px 0 10px;
}
.tx-expert-desc {
  padding: 0 20px;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}
.tx-expert-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 20px;
}

/* ============ Buttons ============ */
.tx-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tx-transition);
  border: none;
  text-align: center;
}
.tx-btn-primary {
  background: var(--tx-gradient);
  color: #fff;
}
.tx-btn-primary:hover { opacity: 0.9; transform: translateY(-2px); color: #fff; }
.tx-btn-outline {
  background: transparent;
  border: 2px solid var(--tx-pink);
  color: var(--tx-pink);
}
.tx-btn-outline:hover {
  background: var(--tx-pink);
  color: #fff;
}
.tx-btn-sm { padding: 6px 16px; font-size: 0.8rem; }

/* ============ FAQ Section ============ */
.tx-faq-list { max-width: 800px; margin: 0 auto; }
.tx-faq-item {
  background: #fff;
  border-radius: var(--tx-radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}
.tx-faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--tx-transition);
}
.tx-faq-question:hover { color: var(--tx-pink); }
.tx-faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--tx-pink);
  transition: var(--tx-transition);
}
.tx-faq-item.active .tx-faq-question::after {
  content: '-';
}
.tx-faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}
.tx-faq-item.active .tx-faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

/* ============ Reviews ============ */
.tx-review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tx-review-card {
  background: #fff;
  border-radius: var(--tx-radius);
  padding: 24px;
  box-shadow: var(--tx-shadow);
}
.tx-review-stars {
  color: var(--tx-gold);
  font-size: 1rem;
  margin-bottom: 10px;
}
.tx-review-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px;
}
.tx-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tx-review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--tx-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.tx-review-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tx-dark);
}
.tx-review-date {
  font-size: 0.75rem;
  color: #999;
}

/* ============ Partner Logos ============ */
.tx-partner-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
}
.tx-partner-item {
  padding: 15px 30px;
  background: #fff;
  border-radius: var(--tx-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-size: 1.1rem;
  font-weight: 600;
  color: #888;
  transition: var(--tx-transition);
}
.tx-partner-item:hover { color: var(--tx-pink); box-shadow: var(--tx-shadow); }

/* ============ Contact Section ============ */
.tx-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.tx-contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--tx-dark);
}
.tx-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.tx-contact-icon {
  width: 40px; height: 40px;
  background: rgba(232, 62, 140, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-pink);
  flex-shrink: 0;
}
.tx-contact-item p { font-size: 0.9rem; color: #555; }
.tx-contact-item strong { color: var(--tx-dark); }
.tx-qrcode-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
}
.tx-qrcode-item {
  text-align: center;
}
.tx-qrcode-item img {
  width: 150px; height: 150px;
  border-radius: var(--tx-radius);
  margin-bottom: 8px;
}
.tx-qrcode-item p { font-size: 0.85rem; color: #666; }

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

/* ============ Footer ============ */
.tx-footer {
  background: var(--tx-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}
.tx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tx-footer-brand img { height: 40px; margin-bottom: 15px; }
.tx-footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.tx-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.tx-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--tx-gradient);
}
.tx-footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: 5px 0;
  font-size: 0.85rem;
}
.tx-footer-links a:hover { color: var(--tx-pink); }
.tx-footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============ Breadcrumb ============ */
.tx-breadcrumb {
  padding: 15px 0;
  font-size: 0.85rem;
  color: #999;
}
.tx-breadcrumb a { color: var(--tx-pink); }
.tx-breadcrumb span { margin: 0 8px; }

/* ============ How-To Guide ============ */
.tx-howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.tx-howto-step {
  background: #fff;
  border-radius: var(--tx-radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--tx-shadow);
  position: relative;
  counter-increment: step;
}
.tx-howto-step::before {
  content: counter(step);
  display: block;
  width: 45px; height: 45px;
  background: var(--tx-gradient);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 45px;
  margin: 0 auto 15px;
}
.tx-howto-step h3 { font-size: 1rem; margin-bottom: 8px; color: var(--tx-dark); }
.tx-howto-step p { font-size: 0.85rem; color: #666; }

/* ============ Image Loading ============ */
img { opacity: 1; transition: opacity 0.3s; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .tx-video-grid { grid-template-columns: repeat(3, 1fr); }
  .tx-review-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-howto-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tx-nav { display: none; }
  .tx-menu-toggle { display: flex; }
  .tx-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--tx-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
  }
  .tx-nav.open a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .tx-hero { height: 400px; }
  .tx-hero h1 { font-size: 2rem; }
  .tx-video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tx-feature-grid { grid-template-columns: 1fr; }
  .tx-expert-grid { grid-template-columns: 1fr; }
  .tx-review-grid { grid-template-columns: 1fr; }
  .tx-contact-grid { grid-template-columns: 1fr; }
  .tx-footer-grid { grid-template-columns: 1fr; }
  .tx-howto-steps { grid-template-columns: 1fr; }
  .tx-section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .tx-video-grid { grid-template-columns: 1fr; }
  .tx-hero { height: 320px; }
  .tx-hero h1 { font-size: 1.6rem; }
}

/* ============ Animations ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.tx-animate { animation: fadeInUp 0.6s ease forwards; }

/* ============ Inner Page Banner ============ */
.tx-page-banner {
  height: 300px;
  position: relative;
  overflow: hidden;
  background: var(--tx-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tx-page-banner img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.tx-page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.tx-page-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.tx-page-banner p { font-size: 1rem; opacity: 0.8; }

/* ============ Video List (Inner Pages) ============ */
.tx-video-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .tx-video-list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tx-video-list-grid { grid-template-columns: 1fr; }
}

/* ============ About Page ============ */
.tx-about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.tx-about-text h2 {
  font-size: 1.8rem;
  color: var(--tx-dark);
  margin-bottom: 16px;
}
.tx-about-text p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}
.tx-about-image { border-radius: var(--tx-radius); overflow: hidden; }

@media (max-width: 768px) {
  .tx-about-content { grid-template-columns: 1fr; }
}

/* ============ Stats ============ */
.tx-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tx-stat-card {
  text-align: center;
  padding: 30px;
}
.tx-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--tx-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tx-stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}

@media (max-width: 768px) {
  .tx-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
