/* 抖荫短视频 原创样式表 - pykxxkw.cn */
/* 配色方案: 深紫#6B2FA0 / 亮紫#9B59B6 / 粉金#F5C6AA / 暖白#FDF8F4 / 深灰#2D2D3A */

*,*::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:#2D2D3A;background:#FDF8F4;line-height:1.7;overflow-x:hidden}
a{color:#6B2FA0;text-decoration:none;transition:color .25s}
a:hover{color:#9B59B6}
img{max-width:100%;height:auto;display:block}
ul{list-style:none}
h1,h2,h3,h4,h5,h6{line-height:1.3;font-weight:700}

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

/* 头部 */
.tx-header{position:sticky;top:0;z-index:1000;background:rgba(253,248,244,0.97);backdrop-filter:blur(12px);border-bottom:1px solid rgba(107,47,160,0.08);padding:12px 0;transition:box-shadow .3s}
.tx-header.scrolled{box-shadow:0 2px 20px rgba(107,47,160,0.1)}
.tx-header-inner{max-width:1200px;margin:0 auto;padding:0 20px;display:flex;align-items:center;gap:24px}
.tx-logo img{height:44px;width:auto}
.tx-nav{flex:1}
.tx-nav ul{display:flex;gap:6px}
.tx-nav a{display:block;padding:8px 16px;border-radius:8px;font-size:15px;font-weight:500;color:#2D2D3A;transition:all .25s}
.tx-nav a:hover,.tx-nav a.active{background:linear-gradient(135deg,#6B2FA0,#9B59B6);color:#fff}
.tx-search{position:relative;width:220px}
.tx-search input{width:100%;padding:8px 40px 8px 14px;border:1.5px solid rgba(107,47,160,0.2);border-radius:20px;background:#fff;font-size:13px;outline:none;transition:border-color .3s}
.tx-search input:focus{border-color:#9B59B6}
.tx-search-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;color:#6B2FA0;cursor:pointer;padding:4px}
.tx-mobile-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:8px}
.tx-mobile-toggle span{display:block;width:24px;height:2.5px;background:#6B2FA0;border-radius:2px;transition:all .3s}

/* Hero区域 */
.tx-hero{position:relative;min-height:520px;display:flex;align-items:center;overflow:hidden}
.tx-hero-bg{position:absolute;inset:0;z-index:0}
.tx-hero-bg img{width:100%;height:100%;object-fit:cover}
.tx-hero-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(107,47,160,0.85),rgba(155,89,182,0.7))}
.tx-hero-content{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:60px 20px;color:#fff}
.tx-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.tx-hero-tags span{padding:4px 14px;background:rgba(255,255,255,0.18);border:1px solid rgba(255,255,255,0.3);border-radius:16px;font-size:13px}
.tx-hero-content h1{font-size:2.4rem;margin-bottom:12px;text-shadow:0 2px 8px rgba(0,0,0,0.2)}
.tx-hero-content h2{font-size:1.2rem;font-weight:400;opacity:0.92;margin-bottom:16px}
.tx-hero-desc{font-size:1rem;opacity:0.88;max-width:680px;margin-bottom:28px}
.tx-hero-btns{display:flex;gap:14px;flex-wrap:wrap}
.tx-btn{display:inline-block;padding:12px 28px;border-radius:8px;font-size:15px;font-weight:600;transition:all .3s;cursor:pointer}
.tx-btn-primary{background:#fff;color:#6B2FA0}
.tx-btn-primary:hover{background:#F5C6AA;color:#6B2FA0;transform:translateY(-2px)}
.tx-btn-outline{border:2px solid #fff;color:#fff;background:transparent}
.tx-btn-outline:hover{background:rgba(255,255,255,0.15);transform:translateY(-2px)}

/* 通用Section */
.tx-section{padding:64px 0}
.tx-section:nth-child(even){background:#fff}
.tx-section-header{text-align:center;margin-bottom:48px}
.tx-section-header h2{font-size:1.8rem;color:#6B2FA0;margin-bottom:10px}
.tx-section-header p{font-size:1rem;color:#666;max-width:600px;margin:0 auto}

/* 视频卡片网格 */
.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 20px rgba(107,47,160,0.06);transition:all .35s}
.tx-video-card:hover{transform:translateY(-6px);box-shadow:0 12px 36px rgba(107,47,160,0.12)}
.tx-video-thumb{position:relative;padding-top:56.25%;overflow:hidden}
.tx-video-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s}
.tx-video-card:hover .tx-video-thumb img{transform:scale(1.06)}
.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:12px;font-weight:500}
.tx-play-btn{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s}
.tx-video-card:hover .tx-play-btn{opacity:1}
.tx-video-info{padding:16px}
.tx-video-info h3{font-size:15px;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:12px;font-size:12px;color:#888}

/* 功能卡片网格 */
.tx-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tx-feature-card{background:#fff;border-radius:12px;padding:32px 24px;border:1px solid rgba(107,47,160,0.08);transition:all .3s}
.tx-feature-card:hover{border-color:#9B59B6;box-shadow:0 8px 28px rgba(107,47,160,0.1);transform:translateY(-4px)}
.tx-feature-icon{width:56px;height:56px;border-radius:12px;background:linear-gradient(135deg,rgba(107,47,160,0.08),rgba(155,89,182,0.08));display:flex;align-items:center;justify-content:center;margin-bottom:16px;color:#6B2FA0}
.tx-feature-card h3{font-size:1.1rem;margin-bottom:10px;color:#2D2D3A}
.tx-feature-card h4{font-size:1rem;margin-bottom:8px;color:#2D2D3A}
.tx-feature-card p{font-size:14px;color:#555;line-height:1.7}

/* AI卡片 */
.tx-ai-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.tx-ai-card{background:#fff;border-radius:12px;padding:28px 20px;text-align:center;border:1px solid rgba(107,47,160,0.06);transition:all .3s}
.tx-ai-card:hover{border-color:#9B59B6;box-shadow:0 6px 24px rgba(107,47,160,0.08)}
.tx-ai-icon{width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#6B2FA0,#9B59B6);display:flex;align-items:center;justify-content:center;margin:0 auto 14px;color:#fff}
.tx-ai-card h4{font-size:1rem;margin-bottom:8px;color:#6B2FA0}
.tx-ai-card p{font-size:13px;color:#666;line-height:1.6}

/* 社区卡片 */
.tx-community-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.tx-community-card{background:#fff;border-radius:12px;padding:28px 20px;border:1px solid rgba(107,47,160,0.06);transition:all .3s}
.tx-community-card:hover{border-color:#F5C6AA;box-shadow:0 6px 24px rgba(245,198,170,0.2)}
.tx-community-icon{width:48px;height:48px;border-radius:10px;background:linear-gradient(135deg,rgba(245,198,170,0.3),rgba(245,198,170,0.1));display:flex;align-items:center;justify-content:center;margin-bottom:14px;color:#6B2FA0}
.tx-community-card h4{font-size:1rem;margin-bottom:8px;color:#2D2D3A}
.tx-community-card p{font-size:13px;color:#666;line-height:1.6}

/* 专家卡片 */
.tx-expert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.tx-expert-card{background:#fff;border-radius:12px;padding:28px 20px;text-align:center;border:1px solid rgba(107,47,160,0.06);transition:all .3s}
.tx-expert-card:hover{border-color:#9B59B6;box-shadow:0 8px 28px rgba(107,47,160,0.1)}
.tx-expert-avatar{margin-bottom:14px}
.tx-avatar-placeholder{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#6B2FA0,#9B59B6);color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto;font-size:1.4rem;font-weight:700}
.tx-expert-card h4{font-size:1.05rem;margin-bottom:4px}
.tx-expert-title{font-size:13px;color:#9B59B6;margin-bottom:10px}
.tx-expert-desc{font-size:13px;color:#666;line-height:1.6;margin-bottom:12px}
.tx-expert-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-bottom:14px}
.tx-expert-tags span{padding:3px 10px;background:rgba(107,47,160,0.06);border-radius:12px;font-size:11px;color:#6B2FA0}
.tx-expert-btns{display:flex;justify-content:center;gap:8px}
.tx-btn-sm{display:inline-block;padding:6px 14px;border-radius:6px;font-size:12px;font-weight:500;background:linear-gradient(135deg,#6B2FA0,#9B59B6);color:#fff;transition:all .25s}
.tx-btn-sm:hover{transform:translateY(-1px);box-shadow:0 3px 12px rgba(107,47,160,0.3);color:#fff}
.tx-btn-sm-outline{background:transparent;border:1px solid #9B59B6;color:#9B59B6}
.tx-btn-sm-outline:hover{background:#9B59B6;color:#fff}

/* 合作品牌 */
.tx-partner-wall{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:48px}
.tx-partner-item{background:#fff;border:1px solid rgba(107,47,160,0.06);border-radius:10px;padding:20px;text-align:center;transition:all .3s}
.tx-partner-item:hover{border-color:#9B59B6;box-shadow:0 4px 16px rgba(107,47,160,0.08)}
.tx-partner-item span{font-size:14px;font-weight:600;color:#555}

/* HowTo步骤 */
.tx-howto{background:#fff;border-radius:16px;padding:40px;border:1px solid rgba(107,47,160,0.06)}
.tx-howto h3{text-align:center;font-size:1.4rem;color:#6B2FA0;margin-bottom:32px}
.tx-howto-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.tx-howto-step{text-align:center;position:relative}
.tx-step-num{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#6B2FA0,#9B59B6);color:#fff;font-size:1.1rem;font-weight:700;margin-bottom:12px}
.tx-howto-step h5{font-size:1rem;margin-bottom:8px;color:#2D2D3A}
.tx-howto-step p{font-size:13px;color:#666;line-height:1.6}

/* FAQ */
.tx-faq-list{max-width:800px;margin:0 auto}
.tx-faq-item{border:1px solid rgba(107,47,160,0.08);border-radius:10px;margin-bottom:12px;overflow:hidden;transition:border-color .3s}
.tx-faq-item:hover{border-color:#9B59B6}
.tx-faq-question{width:100%;display:flex;align-items:center;justify-content:space-between;padding:18px 24px;background:none;border:none;cursor:pointer;font-size:15px;font-weight:600;color:#2D2D3A;text-align:left;transition:color .3s}
.tx-faq-question:hover{color:#6B2FA0}
.tx-faq-question svg{transition:transform .3s;flex-shrink:0;margin-left:12px}
.tx-faq-item.active .tx-faq-question svg{transform:rotate(180deg)}
.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 24px 18px}
.tx-faq-answer p{font-size:14px;color:#555;line-height:1.7}

/* 评价 */
.tx-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tx-review-card{background:#fff;border-radius:12px;padding:28px 24px;border:1px solid rgba(107,47,160,0.06);transition:all .3s}
.tx-review-card:hover{border-color:#F5C6AA;box-shadow:0 6px 24px rgba(245,198,170,0.15)}
.tx-review-stars{margin-bottom:12px;color:#F5C6AA;font-size:18px}
.tx-review-stars span{margin-right:2px}
.tx-review-text{font-size:14px;color:#444;line-height:1.7;margin-bottom:16px;font-style:italic}
.tx-review-author{display:flex;align-items:center;gap:10px}
.tx-author-name{font-size:14px;font-weight:600;color:#2D2D3A}
.tx-author-role{font-size:12px;color:#888}

/* 联系 */
.tx-contact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.tx-contact-card{background:#fff;border-radius:12px;padding:32px;border:1px solid rgba(107,47,160,0.06)}
.tx-contact-card h4{font-size:1.2rem;color:#6B2FA0;margin-bottom:16px}
.tx-contact-card ul{list-style:none}
.tx-contact-card li{padding:8px 0;font-size:14px;color:#555;border-bottom:1px solid rgba(107,47,160,0.04)}
.tx-contact-card li:last-child{border-bottom:none}
.tx-qrcodes{display:flex;gap:20px;margin-top:16px}
.tx-qrcode{text-align:center}
.tx-qrcode span{display:block;margin-top:6px;font-size:12px;color:#888}

/* 分享 */
.tx-share{text-align:center}
.tx-share h3{font-size:1.2rem;color:#6B2FA0;margin-bottom:20px}
.tx-share-bar{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.tx-share-btn{display:inline-block;padding:10px 20px;border-radius:8px;font-size:13px;font-weight:500;color:#fff;transition:all .25s}
.tx-share-wechat{background:#07C160}
.tx-share-weibo{background:#E6162D}
.tx-share-douyin{background:#161823}
.tx-share-bilibili{background:#00A1D6}
.tx-share-qq{background:#12B7F5}
.tx-share-btn:hover{transform:translateY(-2px);opacity:0.9;color:#fff}

/* 页脚 */
.tx-footer{background:#2D2D3A;color:#ccc;padding:48px 0 0}
.tx-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;gap:32px;padding-bottom:32px;border-bottom:1px solid rgba(255,255,255,0.08)}
.tx-footer-col p{font-size:13px;line-height:1.7;margin-top:12px}
.tx-footer-col h5{color:#fff;font-size:15px;margin-bottom:14px}
.tx-footer-col ul li{margin-bottom:8px}
.tx-footer-col a{color:#aaa;font-size:13px;transition:color .25s}
.tx-footer-col a:hover{color:#F5C6AA}
.tx-footer-logo img{height:40px;width:auto;opacity:0.9}
.tx-footer-qrcodes{display:flex;gap:10px;margin-top:12px}
.tx-footer-bottom{padding:20px 0;text-align:center;font-size:12px;color:#888}
.tx-footer-bottom a{color:#aaa}
.tx-footer-bottom a:hover{color:#F5C6AA}

/* 面包屑 */
.tx-breadcrumb{padding:16px 0;max-width:1200px;margin:0 auto;padding-left:20px;padding-right:20px}
.tx-breadcrumb ol{display:flex;gap:8px;font-size:13px;color:#888}
.tx-breadcrumb li::after{content:'/';margin-left:8px;color:#ccc}
.tx-breadcrumb li:last-child::after{display:none}
.tx-breadcrumb li:last-child{color:#6B2FA0;font-weight:500}
.tx-breadcrumb a{color:#888}
.tx-breadcrumb a:hover{color:#6B2FA0}

/* 内页Hero */
.tx-page-hero{background:linear-gradient(135deg,rgba(107,47,160,0.06),rgba(155,89,182,0.04));padding:48px 0}
.tx-page-hero h1{font-size:1.8rem;color:#6B2FA0;margin-bottom:12px}
.tx-page-hero p{font-size:1rem;color:#555;max-width:700px}

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

/* 响应式 */
@media(max-width:1024px){
    .tx-video-grid,.tx-feature-grid,.tx-review-grid{grid-template-columns:repeat(2,1fr)}
    .tx-ai-grid,.tx-community-grid,.tx-expert-grid,.tx-howto-steps{grid-template-columns:repeat(2,1fr)}
    .tx-partner-wall{grid-template-columns:repeat(3,1fr)}
    .tx-footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
    .tx-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#FDF8F4;padding:20px;box-shadow:0 10px 30px rgba(0,0,0,0.1);border-radius:0 0 12px 12px}
    .tx-nav.open{display:block}
    .tx-nav ul{flex-direction:column}
    .tx-mobile-toggle{display:flex}
    .tx-search{width:160px}
    .tx-hero-content h1{font-size:1.6rem}
    .tx-hero{min-height:400px}
    .tx-video-grid,.tx-feature-grid,.tx-review-grid,.tx-ai-grid,.tx-community-grid,.tx-expert-grid{grid-template-columns:1fr}
    .tx-howto-steps{grid-template-columns:1fr}
    .tx-partner-wall{grid-template-columns:repeat(2,1fr)}
    .tx-contact-grid{grid-template-columns:1fr}
    .tx-footer-grid{grid-template-columns:1fr}
    .tx-section{padding:40px 0}
    .tx-section-header h2{font-size:1.4rem}
}
@media(max-width:480px){
    .tx-search{display:none}
    .tx-hero-content h1{font-size:1.3rem}
    .tx-hero-btns{flex-direction:column}
    .tx-btn{text-align:center}
}
