/* ============================================
   糖心vlog - 原创样式表
   配色：蜜桃粉 #e84393 / 浅玫瑰 #fd79a8 / 暗紫黑 #2d1b3d / 蜜糖金 #ffeaa7
   ============================================ */

/* === 基础重置与全局 === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
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: #1e1030; color: #e8ddf0; line-height: 1.7; overflow-x: hidden; }
a { color: #fd79a8; text-decoration: none; transition: color .25s; }
a:hover { color: #ffeaa7; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* === 导航栏 === */
.tx-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(30,16,48,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(232,67,147,.15); transition: background .3s; }
.tx-header.scrolled { background: rgba(30,16,48,.98); }
.tx-nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.tx-logo img { height: 38px; width: auto; }
.tx-main-nav { flex: 1; }
.tx-nav-list { display: flex; gap: 6px; justify-content: center; }
.tx-nav-list li a { display: block; padding: 8px 16px; border-radius: 20px; font-size: 14px; color: #c9b8db; transition: all .25s; white-space: nowrap; }
.tx-nav-list li a:hover, .tx-nav-list li a.tx-nav-active { color: #fff; background: linear-gradient(135deg, #e84393, #fd79a8); }
.tx-search-box { display: flex; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(232,67,147,.2); border-radius: 22px; padding: 4px 4px 4px 14px; width: 220px; transition: all .3s; }
.tx-search-box:focus-within { border-color: #e84393; background: rgba(255,255,255,.12); width: 260px; }
.tx-search-input { background: none; border: none; outline: none; color: #e8ddf0; font-size: 13px; width: 100%; }
.tx-search-input::placeholder { color: #8a7a9e; }
.tx-search-btn { background: #e84393; border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; flex-shrink: 0; transition: background .25s; }
.tx-search-btn:hover { background: #d63384; }
.tx-mobile-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.tx-mobile-btn span { display: block; width: 24px; height: 2px; background: #e8ddf0; margin: 5px 0; border-radius: 2px; transition: all .3s; }

/* === Hero Banner === */
.tx-hero { position: relative; min-height: 520px; display: flex; align-items: center; margin-top: 64px; overflow: hidden; }
.tx-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.tx-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(45,27,61,.88) 0%, rgba(30,16,48,.75) 50%, rgba(232,67,147,.25) 100%); }
.tx-hero-content { position: relative; z-index: 2; text-align: center; padding: 60px 0; }
.tx-hero-title { font-size: 2.6rem; font-weight: 800; background: linear-gradient(135deg, #fff 0%, #ffeaa7 50%, #fd79a8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; line-height: 1.3; }
.tx-hero-sub { font-size: 1.05rem; color: #c9b8db; max-width: 680px; margin: 0 auto 32px; line-height: 1.8; }
.tx-hero-stats { display: flex; justify-content: center; gap: 40px; margin-bottom: 36px; flex-wrap: wrap; }
.tx-stat-item { text-align: center; }
.tx-stat-num { font-size: 2.2rem; font-weight: 800; color: #ffeaa7; }
.tx-stat-unit { font-size: 1rem; color: #ffeaa7; }
.tx-stat-label { display: block; font-size: .85rem; color: #b8a9c9; margin-top: 4px; }
.tx-hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === 按钮 === */
.tx-btn { display: inline-block; padding: 12px 28px; border-radius: 25px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .3s; border: 2px solid transparent; }
.tx-btn-primary { background: linear-gradient(135deg, #e84393, #fd79a8); color: #fff; }
.tx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,67,147,.4); color: #fff; }
.tx-btn-outline { border-color: #fd79a8; color: #fd79a8; background: transparent; }
.tx-btn-outline:hover { background: rgba(253,121,168,.1); color: #fff; border-color: #fff; }
.tx-btn-sm { padding: 6px 16px; font-size: 13px; border-radius: 18px; }

/* === 面包屑 === */
.tx-breadcrumb { background: rgba(45,27,61,.6); padding: 12px 0; border-bottom: 1px solid rgba(232,67,147,.1); }
.tx-breadcrumb ol { display: flex; gap: 8px; font-size: 13px; color: #8a7a9e; }
.tx-breadcrumb li::after { content: " / "; margin-left: 8px; color: #5a4a6e; }
.tx-breadcrumb li:last-child::after { content: ""; }
.tx-breadcrumb a { color: #b8a9c9; }

/* === 通用Section === */
.tx-section { padding: 70px 0; }
.tx-section-alt { background: rgba(45,27,61,.35); }
.tx-section-header { text-align: center; margin-bottom: 48px; }
.tx-section-title { font-size: 1.9rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.tx-section-title::after { content: ""; display: block; width: 60px; height: 3px; background: linear-gradient(90deg, #e84393, #ffeaa7); margin: 12px auto 0; border-radius: 3px; }
.tx-section-desc { font-size: .95rem; color: #b8a9c9; max-width: 650px; margin: 0 auto; }

/* === 视频卡片网格 === */
.tx-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tx-video-card { background: rgba(58,36,80,.5); border-radius: 14px; overflow: hidden; border: 1px solid rgba(232,67,147,.1); transition: all .35s; }
.tx-video-card:hover { transform: translateY(-6px); border-color: rgba(232,67,147,.35); box-shadow: 0 12px 35px rgba(232,67,147,.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 .4s; }
.tx-video-card:hover .tx-video-thumb img { transform: scale(1.06); }
.tx-play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.tx-video-card:hover .tx-play-overlay { opacity: 1; }
.tx-play-btn { width: 56px; height: 56px; background: rgba(232,67,147,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.tx-play-btn:hover { transform: scale(1.1); }
.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: 12px; }
.tx-video-tag { position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg, #e84393, #fd79a8); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.tx-video-info { padding: 16px; }
.tx-video-title { font-size: .92rem; font-weight: 600; color: #f0e6f8; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tx-video-meta { display: flex; gap: 14px; font-size: .78rem; color: #8a7a9e; }

/* === 服务卡片 === */
.tx-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tx-service-card { background: rgba(58,36,80,.4); border: 1px solid rgba(232,67,147,.1); border-radius: 14px; padding: 32px 24px; text-align: center; transition: all .35s; }
.tx-service-card:hover { transform: translateY(-5px); border-color: #e84393; box-shadow: 0 10px 30px rgba(232,67,147,.15); }
.tx-service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.tx-service-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.tx-service-card p { font-size: .88rem; color: #b8a9c9; line-height: 1.7; }

/* === 娱乐专区 === */
.tx-ent-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.tx-ent-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.tx-ent-large { grid-row: span 2; aspect-ratio: auto; }
.tx-ent-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tx-ent-card:hover img { transform: scale(1.08); }
.tx-ent-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(30,16,48,.9)); }
.tx-ent-overlay h3 { font-size: 1.1rem; color: #fff; margin-bottom: 6px; }
.tx-ent-overlay p { font-size: .85rem; color: #c9b8db; }

/* === AI展示 === */
.tx-ai-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tx-ai-image { border-radius: 14px; overflow: hidden; border: 1px solid rgba(232,67,147,.2); }
.tx-ai-image img { width: 100%; }
.tx-ai-features { display: flex; flex-direction: column; gap: 20px; }
.tx-ai-item { background: rgba(58,36,80,.4); border-left: 3px solid #e84393; padding: 18px 22px; border-radius: 0 10px 10px 0; transition: all .3s; }
.tx-ai-item:hover { background: rgba(58,36,80,.6); border-left-color: #ffeaa7; }
.tx-ai-item h3 { font-size: 1rem; color: #ffeaa7; margin-bottom: 6px; }
.tx-ai-item p { font-size: .88rem; color: #b8a9c9; }

/* === 专家展示 === */
.tx-expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tx-expert-card { background: rgba(58,36,80,.4); border: 1px solid rgba(232,67,147,.1); border-radius: 14px; padding: 28px 20px; text-align: center; transition: all .35s; }
.tx-expert-card:hover { transform: translateY(-5px); border-color: #e84393; }
.tx-expert-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid #e84393; }
.tx-expert-card h3 { font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
.tx-expert-role { font-size: .82rem; color: #e84393; margin-bottom: 10px; }
.tx-expert-desc { font-size: .83rem; color: #b8a9c9; line-height: 1.6; margin-bottom: 12px; }
.tx-expert-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.tx-expert-tags span { background: rgba(232,67,147,.15); color: #fd79a8; padding: 3px 10px; border-radius: 12px; font-size: .75rem; }
.tx-expert-btns { display: flex; gap: 8px; justify-content: center; }

/* === 社区功能 === */
.tx-community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tx-comm-card { background: rgba(58,36,80,.4); border: 1px solid rgba(232,67,147,.1); border-radius: 14px; padding: 32px 20px; text-align: center; transition: all .35s; }
.tx-comm-card:hover { transform: translateY(-5px); border-color: #ffeaa7; }
.tx-comm-icon { font-size: 2.5rem; margin-bottom: 14px; }
.tx-comm-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.tx-comm-card p { font-size: .88rem; color: #b8a9c9; line-height: 1.7; }

/* === 合作品牌 === */
.tx-partner-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tx-partner-item { background: rgba(58,36,80,.35); border: 1px solid rgba(232,67,147,.1); border-radius: 10px; padding: 22px; text-align: center; font-size: .95rem; color: #c9b8db; font-weight: 500; transition: all .3s; }
.tx-partner-item:hover { border-color: #e84393; color: #fff; background: rgba(232,67,147,.1); }

/* === How-To步骤 === */
.tx-howto-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tx-step { text-align: center; padding: 30px 24px; }
.tx-step-num { font-size: 2.8rem; font-weight: 800; background: linear-gradient(135deg, #e84393, #ffeaa7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 14px; }
.tx-step h3 { font-size: 1.1rem; color: #fff; margin-bottom: 10px; }
.tx-step p { font-size: .88rem; color: #b8a9c9; line-height: 1.7; }

/* === FAQ === */
.tx-faq-list { max-width: 800px; margin: 0 auto; }
.tx-faq-item { border: 1px solid rgba(232,67,147,.15); border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: rgba(58,36,80,.3); }
.tx-faq-question { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; transition: background .25s; }
.tx-faq-question:hover { background: rgba(232,67,147,.08); }
.tx-faq-question h3 { font-size: .95rem; color: #f0e6f8; font-weight: 500; }
.tx-faq-toggle { font-size: 1.4rem; color: #e84393; transition: transform .3s; font-weight: 300; }
.tx-faq-item.active .tx-faq-toggle { transform: rotate(45deg); }
.tx-faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.tx-faq-item.active .tx-faq-answer { max-height: 300px; padding: 0 22px 18px; }
.tx-faq-answer p { font-size: .9rem; color: #b8a9c9; line-height: 1.8; }

/* === 用户评论 === */
.tx-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tx-review-card { background: rgba(58,36,80,.4); border: 1px solid rgba(232,67,147,.1); border-radius: 14px; padding: 26px; transition: all .3s; }
.tx-review-card:hover { border-color: #ffeaa7; transform: translateY(-3px); }
.tx-review-stars { color: #ffeaa7; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.tx-review-text { font-size: .9rem; color: #d4c8e2; line-height: 1.8; margin-bottom: 16px; font-style: italic; }
.tx-review-author strong { color: #fff; font-size: .9rem; display: block; margin-bottom: 2px; }
.tx-review-author span { font-size: .78rem; color: #8a7a9e; }

/* === 联系我们 === */
.tx-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.tx-contact-info, .tx-contact-community { background: rgba(58,36,80,.4); border: 1px solid rgba(232,67,147,.1); border-radius: 14px; padding: 32px; }
.tx-contact-info h3, .tx-contact-community h3 { font-size: 1.15rem; color: #fff; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(232,67,147,.15); }
.tx-contact-info li, .tx-contact-community li { padding: 8px 0; font-size: .9rem; color: #c9b8db; }
.tx-contact-info strong, .tx-contact-community strong { color: #fd79a8; }

/* === 页脚 === */
.tx-footer { background: rgba(20,10,32,.95); border-top: 1px solid rgba(232,67,147,.15); padding: 50px 0 0; }
.tx-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.tx-footer-logo { height: 36px; width: auto; margin-bottom: 14px; }
.tx-footer-desc { font-size: .85rem; color: #8a7a9e; line-height: 1.7; margin-bottom: 16px; }
.tx-social-links { display: flex; gap: 10px; }
.tx-social-item { background: rgba(232,67,147,.15); color: #fd79a8; padding: 6px 14px; border-radius: 16px; font-size: .8rem; transition: all .25s; }
.tx-social-item:hover { background: #e84393; color: #fff; }
.tx-footer-col h4 { font-size: .95rem; color: #fff; margin-bottom: 16px; }
.tx-footer-col ul li { padding: 5px 0; }
.tx-footer-col ul li a, .tx-footer-col ul li { font-size: .85rem; color: #8a7a9e; }
.tx-footer-col ul li a:hover { color: #fd79a8; }
.tx-qr-group { display: flex; gap: 16px; }
.tx-qr-item { text-align: center; }
.tx-qr-item img { width: 88px; height: 88px; border-radius: 8px; margin-bottom: 6px; }
.tx-qr-item span { font-size: .78rem; color: #8a7a9e; }
.tx-footer-bottom { border-top: 1px solid rgba(232,67,147,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.tx-footer-bottom p { font-size: .82rem; color: #6a5a7e; }
.tx-share-bar { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: #6a5a7e; }
.tx-share-bar a { color: #8a7a9e; transition: color .25s; }
.tx-share-bar a:hover { color: #e84393; }

/* === 内页通用 === */
.tx-page-hero { padding: 100px 0 50px; text-align: center; background: linear-gradient(135deg, rgba(45,27,61,.9), rgba(232,67,147,.15)); margin-top: 64px; }
.tx-page-hero h1 { font-size: 2rem; color: #fff; margin-bottom: 10px; }
.tx-page-hero p { color: #b8a9c9; font-size: 1rem; }
.tx-page-content { padding: 50px 0; }
.tx-page-content h2 { font-size: 1.5rem; color: #fff; margin-bottom: 20px; }
.tx-page-content p { font-size: .95rem; color: #c9b8db; line-height: 1.8; margin-bottom: 16px; }

/* === 响应式 === */
@media (max-width: 1024px) {
    .tx-video-grid, .tx-review-grid { grid-template-columns: repeat(2, 1fr); }
    .tx-service-grid, .tx-expert-grid, .tx-community-grid { grid-template-columns: repeat(2, 1fr); }
    .tx-partner-wall { grid-template-columns: repeat(2, 1fr); }
    .tx-footer-grid { grid-template-columns: 1fr 1fr; }
    .tx-ai-showcase { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .tx-main-nav { position: fixed; top: 64px; left: 0; right: 0; background: rgba(30,16,48,.98); padding: 20px; transform: translateY(-120%); transition: transform .35s; z-index: 999; }
    .tx-main-nav.open { transform: translateY(0); }
    .tx-nav-list { flex-direction: column; gap: 4px; }
    .tx-mobile-btn { display: block; }
    .tx-search-box { width: 160px; }
    .tx-search-box:focus-within { width: 180px; }
    .tx-hero-title { font-size: 1.7rem; }
    .tx-hero-stats { gap: 20px; }
    .tx-stat-num { font-size: 1.6rem; }
    .tx-video-grid, .tx-review-grid, .tx-service-grid, .tx-expert-grid, .tx-community-grid { grid-template-columns: 1fr; }
    .tx-ent-grid { grid-template-columns: 1fr; }
    .tx-ent-large { grid-row: span 1; }
    .tx-howto-steps { grid-template-columns: 1fr; }
    .tx-contact-grid { grid-template-columns: 1fr; }
    .tx-partner-wall { grid-template-columns: 1fr 1fr; }
    .tx-footer-grid { grid-template-columns: 1fr; }
    .tx-footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .tx-hero { min-height: 420px; }
    .tx-hero-title { font-size: 1.4rem; }
    .tx-section { padding: 45px 0; }
    .tx-section-title { font-size: 1.4rem; }
}
