/* 糖心视频平台 - 全站样式 */
/* Reset & Base */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:#333;line-height:1.6;background:#f8f9fa;-webkit-font-smoothing:antialiased}
a{color:#e84393;text-decoration:none;transition:color .3s}
a:hover{color:#d63384}
img{max-width:100%;height:auto;display:block}
ul{list-style:none}
.tx-container{max-width:1200px;margin:0 auto;padding:0 20px}

/* Header */
.tx-header{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(255,255,255,.97);box-shadow:0 2px 12px rgba(0,0,0,.08);transition:all .3s}
.tx-header.scrolled{background:rgba(255,255,255,.99);box-shadow:0 2px 20px rgba(0,0,0,.12)}
.tx-header .tx-container{display:flex;align-items:center;justify-content:space-between;height:68px}
.tx-logo a{display:flex;align-items:center;gap:10px}
.tx-logo img{border-radius:50%}
.tx-brand{font-size:1.5rem;font-weight:700;color:#e84393;letter-spacing:1px}
.tx-nav ul{display:flex;gap:8px}
.tx-nav a{padding:8px 16px;border-radius:20px;font-size:.95rem;color:#555;transition:all .3s}
.tx-nav a:hover,.tx-nav a.active{background:linear-gradient(135deg,#e84393,#a855f7);color:#fff}
.tx-menu-btn{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:8px}
.tx-menu-btn span{width:24px;height:2px;background:#333;border-radius:2px;transition:all .3s}

/* Search Bar */
.tx-search-bar{margin-top:68px;background:linear-gradient(135deg,#ffeef8,#f3e8ff);padding:20px 0}
.tx-search-form{display:flex;max-width:600px;margin:0 auto}
.tx-search-form input{flex:1;padding:12px 20px;border:2px solid #e84393;border-right:none;border-radius:25px 0 0 25px;font-size:1rem;outline:none;transition:border-color .3s}
.tx-search-form input:focus{border-color:#a855f7}
.tx-search-form button{padding:12px 28px;background:linear-gradient(135deg,#e84393,#a855f7);color:#fff;border:none;border-radius:0 25px 25px 0;font-size:1rem;cursor:pointer;transition:opacity .3s}
.tx-search-form button:hover{opacity:.9}
.tx-hot-tags{text-align:center;margin-top:12px;font-size:.85rem;color:#666}
.tx-hot-tags a{margin:0 8px;color:#e84393;font-size:.85rem}
.tx-hot-tags a:hover{text-decoration:underline}

/* Banner */
.tx-banner{position:relative;overflow:hidden;max-height:500px}
.tx-banner-inner{position:relative}
.tx-banner-inner img{width:100%;height:auto;object-fit:cover}
.tx-banner-text{position:absolute;bottom:0;left:0;right:0;padding:60px 40px 40px;background:linear-gradient(transparent,rgba(0,0,0,.75))}
.tx-banner-text h1{color:#fff;font-size:2rem;margin-bottom:12px;text-shadow:0 2px 8px rgba(0,0,0,.5)}
.tx-banner-text p{color:rgba(255,255,255,.9);font-size:1.1rem;margin-bottom:20px;max-width:700px}
.tx-btn-primary{display:inline-block;padding:12px 32px;background:linear-gradient(135deg,#e84393,#a855f7);color:#fff;border-radius:25px;font-size:1rem;font-weight:600;transition:transform .3s,box-shadow .3s}
.tx-btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(232,67,147,.4);color:#fff}

/* Breadcrumb */
.tx-breadcrumb{padding:15px 0;font-size:.85rem;color:#888}
.tx-breadcrumb a{color:#666}
.tx-breadcrumb a:hover{color:#e84393}

/* Sections */
.tx-section{padding:60px 0}
.tx-section:nth-child(even){background:#fff}
.tx-section-title{text-align:center;font-size:1.8rem;color:#222;margin-bottom:12px;position:relative}
.tx-section-title::after{content:'';display:block;width:60px;height:3px;background:linear-gradient(135deg,#e84393,#a855f7);margin:12px auto 0;border-radius:2px}
.tx-section-desc{text-align:center;color:#666;font-size:1rem;margin-bottom:40px;max-width:700px;margin-left:auto;margin-right:auto}

/* Video Grid */
.tx-video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tx-video-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 4px 15px rgba(0,0,0,.08);transition:transform .3s,box-shadow .3s;cursor:pointer}
.tx-video-card:hover{transform:translateY(-5px);box-shadow:0 12px 35px rgba(0,0,0,.15)}
.tx-video-thumb{position:relative;overflow:hidden;aspect-ratio:16/9}
.tx-video-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.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%);width:60px;height:60px;background:rgba(232,67,147,.85);border-radius:50%;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s}
.tx-play-icon{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,.75);color:#fff;padding:2px 8px;border-radius:4px;font-size:.75rem}
.tx-video-tag{position:absolute;top:8px;left:8px;background:linear-gradient(135deg,#e84393,#a855f7);color:#fff;padding:3px 10px;border-radius:12px;font-size:.72rem;font-weight:600}
.tx-video-info{padding:16px}
.tx-video-info h3{font-size:.95rem;color:#222;margin-bottom:8px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tx-video-meta{display:flex;gap:12px;font-size:.78rem;color:#999}
.tx-video-label{font-size:.75rem;color:#aaa;margin-top:6px}

/* Service Grid */
.tx-service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tx-service-item{background:#fff;padding:30px 24px;border-radius:12px;text-align:center;box-shadow:0 4px 15px rgba(0,0,0,.06);transition:transform .3s}
.tx-service-item:hover{transform:translateY(-3px)}
.tx-service-icon{font-size:2.5rem;margin-bottom:16px}
.tx-service-item h3{font-size:1.1rem;color:#222;margin-bottom:10px}
.tx-service-item p{font-size:.9rem;color:#666;line-height:1.6}

/* Entertainment Grid */
.tx-ent-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tx-ent-item{position:relative;border-radius:12px;overflow:hidden;aspect-ratio:16/9;cursor:pointer}
.tx-ent-item img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.tx-ent-item:hover img{transform:scale(1.08)}
.tx-ent-overlay{position:absolute;bottom:0;left:0;right:0;padding:30px 20px 20px;background:linear-gradient(transparent,rgba(0,0,0,.8))}
.tx-ent-overlay h4{color:#fff;font-size:1.1rem;margin-bottom:6px}
.tx-ent-overlay p{color:rgba(255,255,255,.85);font-size:.85rem}

/* AI Section */
.tx-ai-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.tx-ai-item{background:linear-gradient(135deg,#ffeef8,#f3e8ff);padding:28px;border-radius:12px;border:1px solid rgba(232,67,147,.15)}
.tx-ai-item h4{color:#e84393;font-size:1.1rem;margin-bottom:10px}
.tx-ai-item p{color:#555;font-size:.9rem;line-height:1.6}

/* Community Grid */
.tx-comm-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.tx-comm-item{background:#fff;padding:24px 20px;border-radius:12px;text-align:center;box-shadow:0 4px 12px rgba(0,0,0,.06);border-top:3px solid #e84393}
.tx-comm-item h4{color:#222;font-size:1rem;margin-bottom:8px}
.tx-comm-item p{color:#666;font-size:.85rem}

/* Expert Grid */
.tx-expert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.tx-expert-card{background:#fff;padding:24px;border-radius:12px;text-align:center;box-shadow:0 4px 15px rgba(0,0,0,.06)}
.tx-expert-avatar{width:60px;height:60px;background:linear-gradient(135deg,#e84393,#a855f7);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.5rem;font-weight:700;margin:0 auto 16px}
.tx-expert-card h4{font-size:.95rem;color:#222;margin-bottom:6px}
.tx-expert-title{font-size:.8rem;color:#e84393;margin-bottom:10px}
.tx-expert-card p{font-size:.82rem;color:#666;line-height:1.5;margin-bottom:12px}
.tx-expert-links{display:flex;gap:10px;justify-content:center}
.tx-expert-links a{padding:5px 14px;border:1px solid #e84393;border-radius:15px;font-size:.78rem;color:#e84393;transition:all .3s}
.tx-expert-links a:hover{background:#e84393;color:#fff}

/* Partners */
.tx-partner-wall{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;margin-top:30px}
.tx-partner-item{background:#fff;padding:20px;border-radius:8px;text-align:center;font-size:.9rem;color:#555;box-shadow:0 2px 8px rgba(0,0,0,.06);font-weight:600}

/* How-to Steps */
.tx-howto-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:30px}
.tx-step{text-align:center;padding:24px 16px}
.tx-step-num{width:50px;height:50px;background:linear-gradient(135deg,#e84393,#a855f7);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.5rem;font-weight:700;margin:0 auto 16px}
.tx-step h4{font-size:1rem;color:#222;margin-bottom:8px}
.tx-step p{font-size:.85rem;color:#666}

/* Reviews */
.tx-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tx-review-card{background:#fff;padding:24px;border-radius:12px;box-shadow:0 4px 15px rgba(0,0,0,.06)}
.tx-review-stars{color:#f59e0b;font-size:1.2rem;margin-bottom:12px}
.tx-review-text{font-size:.9rem;color:#444;line-height:1.7;margin-bottom:16px;font-style:italic}
.tx-review-author{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;color:#999}
.tx-review-name{font-weight:600;color:#555}

/* FAQ */
.tx-faq-list{max-width:800px;margin:0 auto}
.tx-faq-item{background:#fff;margin-bottom:12px;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.tx-faq-q{padding:18px 24px;font-size:1rem;color:#222;cursor:pointer;position:relative;padding-right:50px;transition:background .3s}
.tx-faq-q:hover{background:#ffeef8}
.tx-faq-q::after{content:'+';position:absolute;right:24px;top:50%;transform:translateY(-50%);font-size:1.5rem;color:#e84393;transition:transform .3s}
.tx-faq-item.active .tx-faq-q::after{transform:translateY(-50%) rotate(45deg)}
.tx-faq-a{max-height:0;overflow:hidden;transition:max-height .4s ease}
.tx-faq-item.active .tx-faq-a{max-height:300px}
.tx-faq-a p{padding:0 24px 18px;font-size:.9rem;color:#555;line-height:1.7}

/* Contact */
.tx-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.tx-contact-info h4{font-size:1.2rem;color:#222;margin-bottom:16px}
.tx-contact-info p{font-size:.9rem;color:#555;margin-bottom:10px;line-height:1.6}
.tx-contact-qr{display:flex;gap:30px;justify-content:center}
.tx-qr-item{text-align:center}
.tx-qr-item img{width:160px;height:160px;border-radius:8px;margin-bottom:8px}
.tx-qr-item p{font-size:.85rem;color:#666}

/* Share */
.tx-share{text-align:center;padding:40px 0}
.tx-share h3{font-size:1.2rem;color:#222;margin-bottom:20px}
.tx-share-btns{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.tx-share-btn{padding:10px 24px;border-radius:20px;color:#fff;font-size:.9rem;transition:transform .3s}
.tx-share-btn:hover{transform:scale(1.05);color:#fff}
.tx-share-wechat{background:#07c160}
.tx-share-weibo{background:#e6162d}
.tx-share-douyin{background:#111}
.tx-share-bilibili{background:#00a1d6}

/* Footer */
.tx-footer{background:#1a1a2e;color:#ccc;padding:50px 0 0}
.tx-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.1)}
.tx-footer-brand{display:flex;flex-direction:column;gap:12px}
.tx-footer-brand .tx-brand{color:#e84393}
.tx-footer-brand p{font-size:.85rem;color:#aaa;line-height:1.6}
.tx-footer-links h4,.tx-footer-contact h4{color:#fff;font-size:1rem;margin-bottom:16px}
.tx-footer-links ul li{margin-bottom:8px}
.tx-footer-links a{color:#aaa;font-size:.85rem;transition:color .3s}
.tx-footer-links a:hover{color:#e84393}
.tx-footer-contact p{font-size:.85rem;color:#aaa;margin-bottom:8px}
.tx-footer-bottom{text-align:center;padding:20px 0;font-size:.82rem;color:#888}
.tx-footer-bottom p{margin-bottom:4px}

/* Page Intro */
.tx-page-intro{background:linear-gradient(135deg,#ffeef8,#f3e8ff);padding:30px;border-radius:12px;margin-bottom:40px}
.tx-page-intro p{font-size:.95rem;color:#444;line-height:1.8;text-indent:2em}

/* Main Content */
.tx-main{padding:40px 0 60px}
.tx-main h1{font-size:1.8rem;color:#222;margin-bottom:20px}
.tx-main h2{font-size:1.4rem;color:#333;margin:40px 0 20px;padding-left:12px;border-left:4px solid #e84393}

/* Responsive */
@media(max-width:1024px){
  .tx-video-grid{grid-template-columns:repeat(2,1fr)}
  .tx-service-grid{grid-template-columns:repeat(2,1fr)}
  .tx-ent-grid{grid-template-columns:repeat(2,1fr)}
  .tx-expert-grid{grid-template-columns:repeat(2,1fr)}
  .tx-comm-grid{grid-template-columns:repeat(2,1fr)}
  .tx-partner-wall{grid-template-columns:repeat(3,1fr)}
  .tx-howto-steps{grid-template-columns:repeat(2,1fr)}
  .tx-review-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .tx-nav{position:fixed;top:68px;left:0;right:0;background:#fff;padding:20px;box-shadow:0 4px 20px rgba(0,0,0,.1);transform:translateY(-120%);transition:transform .3s;z-index:999}
  .tx-nav.active{transform:translateY(0)}
  .tx-nav ul{flex-direction:column;gap:4px}
  .tx-nav a{display:block;padding:12px 20px;border-radius:8px}
  .tx-menu-btn{display:flex}
  .tx-banner-text h1{font-size:1.3rem}
  .tx-banner-text p{font-size:.9rem}
  .tx-section-title{font-size:1.4rem}
  .tx-video-grid{grid-template-columns:1fr}
  .tx-service-grid{grid-template-columns:1fr}
  .tx-ent-grid{grid-template-columns:1fr}
  .tx-ai-grid{grid-template-columns:1fr}
  .tx-comm-grid{grid-template-columns:1fr}
  .tx-expert-grid{grid-template-columns:1fr}
  .tx-partner-wall{grid-template-columns:repeat(2,1fr)}
  .tx-howto-steps{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;gap:30px}
  .tx-main h1{font-size:1.4rem}
}
@media(max-width:480px){
  .tx-container{padding:0 15px}
  .tx-header .tx-container{height:56px}
  .tx-search-bar{margin-top:56px;padding:15px 0}
  .tx-search-form input{padding:10px 15px}
  .tx-search-form button{padding:10px 20px}
  .tx-banner-text{padding:30px 20px 20px}
  .tx-section{padding:40px 0}
  .tx-partner-wall{grid-template-columns:repeat(2,1fr)}
}
