/* 91 全站样式表 - 原创设计 */
/* 基础重置与全局变量 */
:root {
    --tx-primary: #FF6B8A;
    --tx-primary-dark: #E8527A;
    --tx-secondary: #7C3AED;
    --tx-accent: #FFB4A2;
    --tx-dark: #1A1A2E;
    --tx-darker: #16213E;
    --tx-text: #333333;
    --tx-text-light: #666666;
    --tx-bg: #FAFAFA;
    --tx-white: #FFFFFF;
    --tx-gradient: linear-gradient(135deg, #FF6B8A 0%, #7C3AED 100%);
    --tx-gradient-light: linear-gradient(135deg, #FFE0E6 0%, #E8D5F5 100%);
    --tx-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --tx-shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --tx-radius: 12px;
    --tx-transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif; color: var(--tx-text); background: var(--tx-bg); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: var(--tx-primary); transition: var(--tx-transition); }
a:hover { color: var(--tx-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部导航 */
.tx-header { background: var(--tx-white); box-shadow: 0 2px 10px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }
.tx-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; max-width: 1200px; margin: 0 auto; }
.tx-logo { display: flex; align-items: center; gap: 10px; }
.tx-logo img { height: 42px; width: auto; }
.tx-logo-text { font-size: 22px; 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: 15px; color: var(--tx-text); font-weight: 500; transition: var(--tx-transition); }
.tx-nav a:hover, .tx-nav a.active { background: var(--tx-gradient-light); color: var(--tx-primary); }
.tx-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.tx-hamburger span { width: 24px; height: 2px; background: var(--tx-text); transition: var(--tx-transition); border-radius: 2px; }

/* 搜索栏 */
.tx-search-bar { background: var(--tx-gradient-light); padding: 14px 0; }
.tx-search-bar .container { display: flex; justify-content: center; }
.tx-search-wrap { display: flex; max-width: 600px; width: 100%; background: var(--tx-white); border-radius: 50px; overflow: hidden; box-shadow: var(--tx-shadow); }
.tx-search-wrap input { flex: 1; border: none; padding: 12px 24px; font-size: 15px; outline: none; background: transparent; }
.tx-search-wrap button { background: var(--tx-gradient); color: var(--tx-white); border: none; padding: 12px 28px; cursor: pointer; font-size: 15px; font-weight: 600; transition: var(--tx-transition); }
.tx-search-wrap button:hover { opacity: 0.9; }

/* Hero区域 */
.tx-hero { position: relative; overflow: hidden; background: var(--tx-dark); }
.tx-hero-img { width: 100%; height: 420px; object-fit: cover; opacity: 0.7; }
.tx-hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; background: linear-gradient(to bottom, rgba(26,26,46,0.3), rgba(26,26,46,0.7)); }
.tx-hero-overlay h1 { font-size: 42px; color: var(--tx-white); margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.tx-hero-overlay h1 em { font-style: normal; color: var(--tx-accent); }
.tx-hero-overlay p { font-size: 18px; color: rgba(255,255,255,0.9); max-width: 700px; margin-bottom: 24px; }
.tx-hero-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tx-hero-tags span { background: rgba(255,255,255,0.15); color: var(--tx-white); padding: 6px 16px; border-radius: 20px; font-size: 14px; backdrop-filter: blur(4px); }
.tx-btn { display: inline-block; padding: 12px 32px; border-radius: 50px; font-weight: 600; font-size: 16px; transition: var(--tx-transition); cursor: pointer; border: none; }
.tx-btn-primary { background: var(--tx-gradient); color: var(--tx-white); }
.tx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,138,0.4); color: var(--tx-white); }
.tx-btn-outline { border: 2px solid var(--tx-white); color: var(--tx-white); background: transparent; }
.tx-btn-outline:hover { background: var(--tx-white); color: var(--tx-primary); }

/* 区块标题 */
.tx-section { padding: 60px 0; }
.tx-section-alt { background: var(--tx-white); }
.tx-section-title { text-align: center; margin-bottom: 40px; }
.tx-section-title h2 { font-size: 30px; color: var(--tx-dark); margin-bottom: 10px; position: relative; display: inline-block; }
.tx-section-title h2::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--tx-gradient); border-radius: 3px; }
.tx-section-title p { color: var(--tx-text-light); font-size: 16px; margin-top: 16px; }

/* 视频卡片网格 */
.tx-video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tx-video-card { background: var(--tx-white); border-radius: var(--tx-radius); overflow: hidden; box-shadow: var(--tx-shadow); transition: var(--tx-transition); cursor: pointer; position: relative; }
.tx-video-card:hover { transform: translateY(-6px); box-shadow: var(--tx-shadow-hover); }
.tx-video-card .tx-thumb { position: relative; padding-top: 56.25%; overflow: hidden; background: #f0e6f6; }
.tx-video-card .tx-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: var(--tx-transition); display: block; }
.tx-video-card:hover .tx-thumb img { transform: scale(1.05); }
.tx-video-card .tx-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 50px; height: 50px; background: rgba(255,107,138,0.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--tx-transition); }
.tx-video-card:hover .tx-play-icon { opacity: 1; }
.tx-play-icon::after { content: ''; border-left: 16px solid var(--tx-white); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.tx-video-card .tx-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.75); color: var(--tx-white); padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tx-video-card .tx-card-body { padding: 14px; }
.tx-video-card .tx-card-body h3 { font-size: 15px; color: var(--tx-dark); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.tx-video-card .tx-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--tx-text-light); }
.tx-video-card .tx-card-meta .tx-views { display: flex; align-items: center; gap: 4px; }
.tx-video-card .tx-tag { position: absolute; top: 10px; left: 10px; background: var(--tx-gradient); color: var(--tx-white); padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }

/* 分类标签 */
.tx-category-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.tx-category-tabs a { padding: 8px 20px; border-radius: 20px; background: var(--tx-white); color: var(--tx-text); border: 1px solid #eee; font-size: 14px; transition: var(--tx-transition); }
.tx-category-tabs a:hover, .tx-category-tabs a.active { background: var(--tx-gradient); color: var(--tx-white); border-color: transparent; }

/* 专家展示 */
.tx-expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tx-expert-card { background: var(--tx-white); border-radius: var(--tx-radius); padding: 30px; text-align: center; box-shadow: var(--tx-shadow); transition: var(--tx-transition); }
.tx-expert-card:hover { transform: translateY(-4px); box-shadow: var(--tx-shadow-hover); }
.tx-expert-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--tx-accent); }
.tx-expert-card h4 { font-size: 18px; color: var(--tx-dark); margin-bottom: 6px; }
.tx-expert-card .tx-role { color: var(--tx-primary); font-size: 14px; margin-bottom: 10px; }
.tx-expert-card p { font-size: 13px; color: var(--tx-text-light); margin-bottom: 16px; line-height: 1.6; }
.tx-expert-card .tx-expert-btns { display: flex; gap: 10px; justify-content: center; }
.tx-expert-card .tx-expert-btns a { padding: 6px 16px; border-radius: 20px; font-size: 13px; }

/* FAQ */
.tx-faq-list { max-width: 800px; margin: 0 auto; }
.tx-faq-item { background: var(--tx-white); border-radius: var(--tx-radius); margin-bottom: 12px; box-shadow: var(--tx-shadow); overflow: hidden; }
.tx-faq-q { padding: 18px 24px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--tx-dark); transition: var(--tx-transition); }
.tx-faq-q:hover { color: var(--tx-primary); }
.tx-faq-q::after { content: '+'; font-size: 22px; color: var(--tx-primary); transition: var(--tx-transition); }
.tx-faq-item.active .tx-faq-q::after { content: '-'; }
.tx-faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 14px; color: var(--tx-text-light); line-height: 1.8; }
.tx-faq-item.active .tx-faq-a { max-height: 300px; padding: 0 24px 18px; }

/* 用户评论 */
.tx-review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tx-review-card { background: var(--tx-white); border-radius: var(--tx-radius); padding: 24px; box-shadow: var(--tx-shadow); }
.tx-review-card .tx-stars { color: #FFB800; font-size: 16px; margin-bottom: 10px; }
.tx-review-card p { font-size: 14px; color: var(--tx-text); line-height: 1.7; margin-bottom: 12px; }
.tx-review-card .tx-reviewer { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tx-text-light); }
.tx-review-card .tx-reviewer-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--tx-gradient-light); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--tx-primary); font-size: 14px; }

/* 合作品牌 */
.tx-partner-wall { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.tx-partner-item { background: var(--tx-white); padding: 20px 30px; border-radius: var(--tx-radius); box-shadow: var(--tx-shadow); font-size: 18px; font-weight: 700; color: var(--tx-text-light); transition: var(--tx-transition); }
.tx-partner-item:hover { color: var(--tx-primary); transform: scale(1.05); }

/* 社区指南 */
.tx-guide-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.tx-guide-step { background: var(--tx-white); border-radius: var(--tx-radius); padding: 28px 20px; text-align: center; box-shadow: var(--tx-shadow); position: relative; counter-increment: step; }
.tx-guide-step::before { content: counter(step); width: 40px; height: 40px; background: var(--tx-gradient); color: var(--tx-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; margin: 0 auto 16px; }
.tx-guide-step h4 { font-size: 16px; color: var(--tx-dark); margin-bottom: 8px; }
.tx-guide-step p { font-size: 13px; color: var(--tx-text-light); }

/* 联系我们 */
.tx-contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.tx-contact-info { background: var(--tx-white); border-radius: var(--tx-radius); padding: 30px; box-shadow: var(--tx-shadow); }
.tx-contact-info h3 { font-size: 20px; color: var(--tx-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--tx-gradient-light); }
.tx-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--tx-text); }
.tx-contact-icon { width: 36px; height: 36px; background: var(--tx-gradient-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }

/* 社交分享 */
.tx-share-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tx-share-btn { padding: 10px 20px; border-radius: 8px; color: var(--tx-white); font-size: 14px; font-weight: 600; transition: var(--tx-transition); display: flex; align-items: center; gap: 6px; }
.tx-share-btn:hover { transform: translateY(-2px); color: var(--tx-white); opacity: 0.9; }
.tx-share-wechat { background: #07C160; }
.tx-share-weibo { background: #E6162D; }
.tx-share-douyin { background: #161823; }
.tx-share-bilibili { background: #00A1D6; }

/* 页脚 */
.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: 30px; margin-bottom: 40px; }
.tx-footer h4 { color: var(--tx-white); font-size: 18px; margin-bottom: 16px; }
.tx-footer p { font-size: 14px; line-height: 1.8; }
.tx-footer a { color: rgba(255,255,255,0.6); font-size: 14px; }
.tx-footer a:hover { color: var(--tx-primary); }
.tx-footer-links { display: flex; flex-direction: column; gap: 10px; }
.tx-footer-qr { display: flex; gap: 20px; }
.tx-footer-qr img { width: 110px; height: 110px; border-radius: 8px; }
.tx-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 13px; }
.tx-footer-bottom .tx-update-time { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.5); }

/* 面包屑 */
.tx-breadcrumb { padding: 14px 0; font-size: 14px; color: var(--tx-text-light); }
.tx-breadcrumb a { color: var(--tx-text-light); }
.tx-breadcrumb a:hover { color: var(--tx-primary); }
.tx-breadcrumb span { margin: 0 6px; }

/* 视频播放页 */
.tx-player-wrap { background: #000; padding: 20px 0; }
.tx-player-wrap video { width: 100%; max-height: 600px; display: block; margin: 0 auto; }
.tx-video-info { padding: 30px 0; }
.tx-video-info h1 { font-size: 24px; color: var(--tx-dark); margin-bottom: 12px; }
.tx-video-stats { display: flex; gap: 20px; font-size: 14px; color: var(--tx-text-light); margin-bottom: 20px; }
.tx-video-desc { font-size: 15px; color: var(--tx-text); line-height: 1.8; padding: 20px; background: var(--tx-white); border-radius: var(--tx-radius); box-shadow: var(--tx-shadow); }

/* 内页通用 */
.tx-page-header { background: var(--tx-gradient); padding: 50px 0; text-align: center; color: var(--tx-white); }
.tx-page-header h1 { font-size: 36px; margin-bottom: 10px; }
.tx-page-header p { font-size: 16px; opacity: 0.9; }
.tx-content-section { padding: 40px 0; }
.tx-content-section h2 { font-size: 24px; color: var(--tx-dark); margin-bottom: 20px; }
.tx-content-section p { font-size: 15px; color: var(--tx-text); line-height: 1.8; margin-bottom: 16px; }

/* 数据统计条 */
.tx-stats-bar { background: var(--tx-gradient); padding: 40px 0; }
.tx-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; color: var(--tx-white); }
.tx-stat-item .tx-stat-num { font-size: 36px; font-weight: 700; margin-bottom: 6px; }
.tx-stat-item .tx-stat-label { font-size: 14px; opacity: 0.9; }

/* 懒加载 */
.tx-lazy { opacity: 0; transition: opacity 0.5s ease; }
.tx-lazy.loaded { opacity: 1; }

/* 响应式 */
@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); }
    .tx-guide-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .tx-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--tx-white); flex-direction: column; padding: 20px; box-shadow: var(--tx-shadow); gap: 4px; }
    .tx-nav.active { display: flex; }
    .tx-hamburger { display: flex; }
    .tx-hero-overlay h1 { font-size: 28px; }
    .tx-hero-overlay p { font-size: 15px; }
    .tx-hero-img { height: 300px; }
    .tx-video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tx-expert-grid { grid-template-columns: 1fr; }
    .tx-review-grid { grid-template-columns: 1fr; }
    .tx-contact-grid { grid-template-columns: 1fr; }
    .tx-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tx-footer-grid { grid-template-columns: 1fr; }
    .tx-section { padding: 40px 0; }
    .tx-section-title h2 { font-size: 24px; }
    .tx-guide-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .tx-video-grid { grid-template-columns: 1fr; }
    .tx-hero-overlay h1 { font-size: 22px; }
    .tx-stats-grid { grid-template-columns: 1fr; }
}

/* 内页内容区h3 */
.tx-content-section h3 { font-size: 20px; color: var(--tx-dark); margin: 24px 0 12px; padding-left: 12px; border-left: 3px solid var(--tx-primary); }
.tx-contact-info h2 { font-size: 22px; color: var(--tx-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--tx-accent); }
.tx-video-desc h2 { font-size: 18px; color: var(--tx-dark); margin-bottom: 12px; }

/* 视频卡片点击样式 */
.tx-video-card[data-href] { cursor: pointer; }
.tx-video-card[data-href]:active { transform: scale(0.98); }

/* 最新视频更新模块 */
.tx-latest-list { max-width: 900px; margin: 0 auto; }
.tx-latest-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; transition: var(--tx-transition); }
.tx-latest-item:hover { background: var(--tx-gradient-light); border-radius: 8px; }
.tx-latest-badge { display: inline-block; background: var(--tx-gradient); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; font-weight: 600; flex-shrink: 0; }
.tx-latest-time { color: var(--tx-text-light); font-size: 13px; flex-shrink: 0; min-width: 50px; }
.tx-latest-item a { color: var(--tx-text); font-size: 15px; line-height: 1.5; }
.tx-latest-item a:hover { color: var(--tx-primary); }

/* EEAT认证标识 */
.tx-eeat-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.tx-eeat-badge { display: flex; align-items: center; gap: 6px; background: var(--tx-white); border: 1px solid #e0e0e0; border-radius: 8px; padding: 8px 16px; font-size: 13px; color: var(--tx-text-light); }
.tx-eeat-badge strong { color: var(--tx-primary); }

/* 隐私政策与用户协议页面 */
.tx-legal-content { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.tx-legal-content h1 { font-size: 28px; color: var(--tx-dark); margin-bottom: 20px; background: var(--tx-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tx-legal-content h2 { font-size: 20px; color: var(--tx-dark); margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--tx-gradient-light); }
.tx-legal-content p { margin-bottom: 14px; line-height: 1.8; color: var(--tx-text); }
.tx-legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.tx-legal-content ul li { margin-bottom: 8px; line-height: 1.7; color: var(--tx-text); list-style: disc; }

/* 专家grid 5列适配 */
@media (min-width: 1024px) {
    .tx-expert-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .tx-expert-grid { grid-template-columns: repeat(3, 1fr); }
}
