/* 糖心视频 - 全站样式表 */
/* 原创配色方案：珊瑚粉+暖橙+深紫+奶白 */
:root {
    --tx-primary: #FF6B9D;
    --tx-primary-dark: #E85585;
    --tx-secondary: #FF8E53;
    --tx-accent: #9B59B6;
    --tx-dark: #2D1B3D;
    --tx-bg: #FFF5F7;
    --tx-bg-alt: #FFE8EC;
    --tx-text: #333333;
    --tx-text-light: #666666;
    --tx-white: #FFFFFF;
    --tx-border: #FFD0DC;
    --tx-shadow: 0 4px 20px rgba(255,107,157,0.15);
    --tx-radius: 12px;
    --tx-transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--tx-bg);
    color: var(--tx-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--tx-primary); text-decoration: none; transition: var(--tx-transition); }
a:hover { color: var(--tx-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* 头部导航 */
.tx-header {
    background: linear-gradient(135deg, var(--tx-dark) 0%, #3D2B5D 100%);
    color: var(--tx-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.tx-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.tx-logo-area { display: flex; align-items: center; }
.tx-logo-link { display: flex; align-items: center; gap: 10px; }
.tx-logo-img { height: 40px; width: auto; }
.tx-logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--tx-primary), var(--tx-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tx-nav { flex: 1; }
.tx-nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}
.tx-nav-item a {
    color: var(--tx-white);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    display: block;
}
.tx-nav-item a:hover, .tx-nav-item.active a {
    background: linear-gradient(135deg, var(--tx-primary), var(--tx-secondary));
    color: var(--tx-white);
}

.tx-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--tx-white);
    font-size: 28px;
    cursor: pointer;
}

/* 搜索框 */
.tx-search-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
}
.tx-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--tx-border);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: var(--tx-transition);
    background: var(--tx-white);
}
.tx-search-input:focus { border-color: var(--tx-primary); }
.tx-search-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--tx-primary), var(--tx-secondary));
    color: var(--tx-white);
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--tx-transition);
}
.tx-search-btn:hover { transform: scale(1.05); }

/* 面包屑 */
.tx-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.tx-breadcrumb a { color: rgba(255,255,255,0.8); }
.tx-breadcrumb a:hover { color: var(--tx-white); }
.tx-breadcrumb-sep { margin: 0 6px; }
.tx-breadcrumb-current { color: var(--tx-primary); }

/* 主内容区 */
.tx-main { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Hero区域 */
.tx-hero {
    background: linear-gradient(135deg, var(--tx-dark) 0%, #4A2D6D 50%, var(--tx-accent) 100%);
    border-radius: var(--tx-radius);
    padding: 50px 40px;
    margin-bottom: 30px;
    color: var(--tx-white);
    position: relative;
    overflow: hidden;
}
.tx-hero-content { position: relative; z-index: 2; max-width: 600px; }
.tx-hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.3;
}
.tx-hero h1 .tx-highlight {
    background: linear-gradient(135deg, var(--tx-primary), var(--tx-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tx-hero p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}
.tx-hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.tx-btn {
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--tx-transition);
    display: inline-block;
}
.tx-btn-primary {
    background: linear-gradient(135deg, var(--tx-primary), var(--tx-secondary));
    color: var(--tx-white);
}
.tx-btn-primary:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255,107,157,0.4); }
.tx-btn-outline {
    background: transparent;
    color: var(--tx-white);
    border: 2px solid var(--tx-white);
}
.tx-btn-outline:hover { background: var(--tx-white); color: var(--tx-dark); }
.tx-hero-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    border-radius: var(--tx-radius);
}

/* 区块标题 */
.tx-section { margin-bottom: 40px; }
.tx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.tx-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--tx-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.tx-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--tx-primary), var(--tx-secondary));
    border-radius: 2px;
}
.tx-section-more {
    font-size: 14px;
    color: var(--tx-primary);
}

/* 视频卡片网格 */
.tx-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 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(-5px); box-shadow: 0 8px 30px rgba(255,107,157,0.25); }
.tx-video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}
.tx-video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tx-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45,27,61,0.7);
    opacity: 0;
    transition: var(--tx-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tx-play-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--tx-primary), var(--tx-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--tx-transition);
    border: 3px solid var(--tx-white);
}
.tx-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid var(--tx-white);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}
.tx-video-info { padding: 12px 15px; }
.tx-video-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--tx-dark);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tx-video-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--tx-text-light);
}
.tx-video-meta span { display: flex; align-items: center; gap: 3px; }
.tx-video-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--tx-bg-alt);
    color: var(--tx-primary);
    border-radius: 4px;
    font-size: 11px;
    margin-right: 5px;
}

/* 内容专区 */
.tx-zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.tx-zone-card {
    background: var(--tx-white);
    border-radius: var(--tx-radius);
    padding: 25px 20px;
    box-shadow: var(--tx-shadow);
    transition: var(--tx-transition);
    text-align: center;
}
.tx-zone-card:hover { transform: translateY(-3px); }
.tx-zone-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--tx-white);
}
.tx-zone-icon.pink { background: linear-gradient(135deg, var(--tx-primary), #FF8EB3); }
.tx-zone-icon.orange { background: linear-gradient(135deg, var(--tx-secondary), #FFB347); }
.tx-zone-icon.purple { background: linear-gradient(135deg, var(--tx-accent), #C39BD3); }
.tx-zone-icon.blue { background: linear-gradient(135deg, #3498DB, #5DADE2); }
.tx-zone-card h3 { font-size: 18px; color: var(--tx-dark); margin-bottom: 10px; }
.tx-zone-card p { font-size: 14px; color: var(--tx-text-light); line-height: 1.6; }

/* FAQ区块 */
.tx-faq-list { display: flex; flex-direction: column; gap: 12px; }
.tx-faq-item {
    background: var(--tx-white);
    border-radius: var(--tx-radius);
    overflow: hidden;
    box-shadow: var(--tx-shadow);
}
.tx-faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--tx-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.tx-faq-question::after { content: '+'; font-size: 20px; color: var(--tx-primary); }
.tx-faq-item.active .tx-faq-question::after { content: '−'; }
.tx-faq-answer {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--tx-text-light);
    display: none;
    line-height: 1.7;
}

/* 用户评论 */
.tx-comment-list { display: flex; flex-direction: column; gap: 15px; }
.tx-comment-item {
    background: var(--tx-white);
    border-radius: var(--tx-radius);
    padding: 18px 20px;
    box-shadow: var(--tx-shadow);
    display: flex;
    gap: 15px;
}
.tx-comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tx-primary), var(--tx-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx-white);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.tx-comment-body { flex: 1; }
.tx-comment-name { font-size: 14px; font-weight: 600; color: var(--tx-dark); margin-bottom: 4px; }
.tx-comment-text { font-size: 14px; color: var(--tx-text-light); line-height: 1.6; }
.tx-comment-meta { font-size: 12px; color: #999; margin-top: 6px; }

/* 专家展示 */
.tx-expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.tx-expert-card {
    background: var(--tx-white);
    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(-3px); }
.tx-expert-avatar {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}
.tx-expert-avatar img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.tx-expert-info { padding: 15px; }
.tx-expert-name { font-size: 16px; font-weight: 700; color: var(--tx-dark); margin-bottom: 4px; }
.tx-expert-role { font-size: 13px; color: var(--tx-primary); margin-bottom: 8px; }
.tx-expert-desc { font-size: 13px; color: var(--tx-text-light); margin-bottom: 10px; line-height: 1.5; }
.tx-expert-btns { display: flex; gap: 8px; justify-content: center; }
.tx-expert-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: var(--tx-transition);
}
.tx-expert-btn.contact { background: var(--tx-primary); color: var(--tx-white); }
.tx-expert-btn.works { background: var(--tx-bg-alt); color: var(--tx-primary); }

/* 合作Logo墙 */
.tx-partner-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
}
.tx-partner-logo {
    width: 120px;
    height: 60px;
    background: var(--tx-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--tx-text-light);
    box-shadow: var(--tx-shadow);
    transition: var(--tx-transition);
}
.tx-partner-logo:hover { transform: scale(1.05); color: var(--tx-primary); }

/* 联系我们 */
.tx-contact-section {
    background: linear-gradient(135deg, var(--tx-bg-alt), var(--tx-bg));
    border-radius: var(--tx-radius);
    padding: 30px;
    margin-bottom: 30px;
}
.tx-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.tx-contact-item {
    background: var(--tx-white);
    border-radius: var(--tx-radius);
    padding: 20px;
    box-shadow: var(--tx-shadow);
}
.tx-contact-item h4 { font-size: 16px; color: var(--tx-dark); margin-bottom: 10px; }
.tx-contact-item p { font-size: 14px; color: var(--tx-text-light); margin-bottom: 5px; }

/* 底部 */
.tx-footer {
    background: var(--tx-dark);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
    margin-top: 40px;
}
.tx-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.tx-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}
.tx-footer-title { font-size: 20px; color: var(--tx-white); margin-bottom: 12px; }
.tx-footer-subtitle { font-size: 16px; color: var(--tx-white); margin-bottom: 12px; }
.tx-footer-desc { font-size: 13px; line-height: 1.7; }
.tx-footer-links { list-style: none; }
.tx-footer-links li { margin-bottom: 8px; }
.tx-footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; }
.tx-footer-links a:hover { color: var(--tx-primary); }
.tx-footer-qr { display: flex; gap: 15px; }
.tx-qr-item { text-align: center; }
.tx-qr-item span { display: block; font-size: 12px; margin-top: 6px; }
.tx-qr-img { border-radius: 8px; }

.tx-social-share {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}
.tx-share-label { font-size: 14px; margin-right: 10px; }
.tx-share-btn {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 5px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--tx-white);
    transition: var(--tx-transition);
}
.tx-share-btn:hover { background: var(--tx-primary); border-color: var(--tx-primary); }

.tx-footer-bottom {
    text-align: center;
    font-size: 13px;
    padding-top: 15px;
}
.tx-footer-bottom p { margin-bottom: 5px; }

/* 内页样式 */
.tx-page-header {
    background: linear-gradient(135deg, var(--tx-dark), var(--tx-accent));
    border-radius: var(--tx-radius);
    padding: 40px 30px;
    margin-bottom: 30px;
    color: var(--tx-white);
    text-align: center;
}
.tx-page-header h1 { font-size: 32px; margin-bottom: 12px; }
.tx-page-header p { font-size: 15px; opacity: 0.9; max-width: 800px; margin: 0 auto; }

.tx-content-section {
    background: var(--tx-white);
    border-radius: var(--tx-radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--tx-shadow);
}
.tx-content-section h2 {
    font-size: 22px;
    color: var(--tx-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tx-content-section h2::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(135deg, var(--tx-primary), var(--tx-secondary));
    border-radius: 2px;
}
.tx-content-section h3 { font-size: 18px; color: var(--tx-dark); margin: 20px 0 10px; }
.tx-content-section p { font-size: 15px; color: var(--tx-text); line-height: 1.8; margin-bottom: 12px; }
.tx-content-section ul, .tx-content-section ol { padding-left: 20px; margin-bottom: 15px; }
.tx-content-section li { font-size: 14px; color: var(--tx-text); margin-bottom: 6px; line-height: 1.7; }

/* 图文混排 */
.tx-text-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: center;
    margin: 20px 0;
}
.tx-text-image img { border-radius: var(--tx-radius); box-shadow: var(--tx-shadow); }
.tx-text-image.reverse { direction: rtl; }
.tx-text-image.reverse > * { direction: ltr; }

/* 标签云 */
.tx-tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
.tx-tag {
    padding: 6px 16px;
    background: var(--tx-bg-alt);
    color: var(--tx-primary);
    border-radius: 20px;
    font-size: 13px;
    transition: var(--tx-transition);
}
.tx-tag:hover { background: var(--tx-primary); color: var(--tx-white); }

/* 统计数据 */
.tx-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.tx-stat-item {
    text-align: center;
    padding: 20px;
    background: var(--tx-bg-alt);
    border-radius: var(--tx-radius);
}
.tx-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--tx-primary);
    margin-bottom: 5px;
}
.tx-stat-label { font-size: 14px; color: var(--tx-text-light); }

/* 响应式适配 */
@media (max-width: 768px) {
    .tx-header-inner { flex-wrap: wrap; height: auto; padding: 10px 15px; }
    .tx-nav { width: 100%; display: none; }
    .tx-nav.tx-nav-open { display: block; }
    .tx-nav-list { flex-direction: column; }
    .tx-nav-item { width: 100%; }
    .tx-mobile-toggle { display: block; }
    .tx-hero { padding: 30px 20px; }
    .tx-hero h1 { font-size: 24px; }
    .tx-hero-img { display: none; }
    .tx-video-grid { grid-template-columns: 1fr; }
    .tx-zone-grid { grid-template-columns: 1fr; }
    .tx-expert-grid { grid-template-columns: 1fr 1fr; }
    .tx-footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .tx-text-image { grid-template-columns: 1fr; }
    .tx-text-image.reverse { direction: ltr; }
    .tx-section-title { font-size: 20px; }
    .tx-page-header h1 { font-size: 24px; }
    .tx-content-section { padding: 20px 15px; }
    .tx-contact-grid { grid-template-columns: 1fr; }
    .tx-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .tx-expert-grid { grid-template-columns: 1fr; }
    .tx-stats { grid-template-columns: 1fr; }
    .tx-footer-qr { flex-direction: column; gap: 10px; }
}

/* CSS指纹微调样式追加位置 */

/* 指纹微调样式 - 由fingerprint.php动态注入 */
