/* 糖心vlog - stncpsc.com 原创样式 */
/* 品牌色系：粉色渐变 #FF6B9D -> #C44569 */

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

:root {
    --tx-primary: #FF6B9D;
    --tx-secondary: #C44569;
    --tx-accent: #FFB6C1;
    --tx-dark: #2D1F3D;
    --tx-light: #FFF5F7;
    --tx-gradient: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    --tx-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--tx-light);
}

/* 头部导航 */
.tx-header {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--tx-shadow);
}

.tx-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.tx-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.tx-logo img {
    height: 50px;
    margin-right: 10px;
}

.tx-logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tx-nav {
    display: flex;
    list-style: none;
    gap: 5px;
}

.tx-nav li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
}

.tx-nav li a:hover,
.tx-nav li a.active {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* 搜索框 */
.tx-search-bar {
    background: rgba(255,255,255,0.15);
    padding: 12px 20px;
}

.tx-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.tx-search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tx-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--tx-gradient);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tx-search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

/* 英雄区域 */
.tx-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tx-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.tx-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,107,157,0.7) 0%, rgba(196,69,105,0.7) 100%);
    z-index: 2;
}

.tx-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.tx-hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.tx-hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.tx-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: var(--tx-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tx-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.tx-btn-primary {
    background: var(--tx-gradient);
    color: #fff;
}

/* 内容区块 */
.tx-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.tx-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.tx-section-title h2 {
    font-size: 36px;
    color: var(--tx-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.tx-section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--tx-gradient);
    border-radius: 2px;
}

.tx-section-title p {
    color: #666;
    font-size: 18px;
}

/* 视频卡片 */
.tx-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.tx-video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tx-video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255,107,157,0.3);
}

.tx-video-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.tx-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tx-video-card:hover .tx-video-thumb img {
    transform: scale(1.1);
}

.tx-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,107,157,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tx-video-card:hover .tx-play-btn {
    opacity: 1;
}

.tx-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.tx-video-info {
    padding: 20px;
}

.tx-video-info h3 {
    font-size: 18px;
    color: var(--tx-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.tx-video-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 14px;
}

.tx-video-stats {
    display: flex;
    gap: 15px;
}

.tx-video-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 服务模块 */
.tx-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.tx-service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tx-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,107,157,0.2);
}

.tx-service-icon {
    width: 80px;
    height: 80px;
    background: var(--tx-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #fff;
}

.tx-service-card h3 {
    font-size: 22px;
    color: var(--tx-dark);
    margin-bottom: 15px;
}

.tx-service-card p {
    color: #666;
    line-height: 1.8;
}

/* 专家团队 */
.tx-experts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tx-expert-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tx-expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,107,157,0.2);
}

.tx-expert-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.tx-expert-info {
    padding: 25px;
}

.tx-expert-info h3 {
    font-size: 20px;
    color: var(--tx-dark);
    margin-bottom: 5px;
}

.tx-expert-title {
    color: var(--tx-primary);
    font-size: 14px;
    margin-bottom: 15px;
}

.tx-expert-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.tx-expert-links {
    display: flex;
    gap: 10px;
}

.tx-expert-links a {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tx-expert-links a.tx-link-primary {
    background: var(--tx-gradient);
    color: #fff;
}

.tx-expert-links a.tx-link-secondary {
    background: var(--tx-light);
    color: var(--tx-primary);
}

/* 用户评价 */
.tx-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.tx-review-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.tx-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tx-review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--tx-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
}

.tx-review-user h4 {
    font-size: 18px;
    color: var(--tx-dark);
}

.tx-review-user span {
    color: #999;
    font-size: 14px;
}

.tx-review-stars {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
}

.tx-review-card p {
    color: #666;
    line-height: 1.8;
}

/* 联系我们 */
.tx-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.tx-contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.tx-contact-card h4 {
    font-size: 18px;
    color: var(--tx-dark);
    margin-bottom: 15px;
}

.tx-contact-card img {
    max-width: 150px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.tx-contact-card p {
    color: #666;
    font-size: 14px;
}

/* 页脚 */
.tx-footer {
    background: linear-gradient(135deg, #2D1F3D 0%, #1a1225 100%);
    color: #fff;
    padding: 60px 20px 30px;
}

.tx-footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.tx-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.tx-footer-col h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--tx-accent);
}

.tx-footer-col ul {
    list-style: none;
}

.tx-footer-col ul li {
    margin-bottom: 12px;
}

.tx-footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tx-footer-col ul li a:hover {
    color: var(--tx-accent);
}

.tx-footer-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 10px;
}

.tx-footer-qr {
    display: flex;
    gap: 20px;
}

.tx-footer-qr-item {
    text-align: center;
}

.tx-footer-qr-item img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.tx-footer-qr-item span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.tx-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.tx-footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 10px;
}

.tx-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.tx-social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tx-social-links a:hover {
    background: var(--tx-primary);
    transform: translateY(-3px);
}

/* 面包屑导航 */
.tx-breadcrumb {
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tx-breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
}

.tx-breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.tx-breadcrumb ul li {
    display: flex;
    align-items: center;
}

.tx-breadcrumb ul li::after {
    content: '>';
    margin-left: 10px;
    color: #999;
}

.tx-breadcrumb ul li:last-child::after {
    display: none;
}

.tx-breadcrumb ul li a {
    color: var(--tx-primary);
    text-decoration: none;
}

.tx-breadcrumb ul li span {
    color: #666;
}

/* FAQ模块 */
.tx-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.tx-faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tx-faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--tx-dark);
}

.tx-faq-answer {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.8;
    display: none;
}

.tx-faq-item.active .tx-faq-answer {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tx-nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .tx-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tx-hero-content h1 {
        font-size: 32px;
    }
    
    .tx-hero-content p {
        font-size: 16px;
    }
    
    .tx-section-title h2 {
        font-size: 28px;
    }
    
    .tx-video-grid,
    .tx-services,
    .tx-experts,
    .tx-reviews {
        grid-template-columns: 1fr;
    }
    
    .tx-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tx-footer-qr {
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tx-animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* 懒加载占位 */
.tx-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tx-lazy.loaded {
    opacity: 1;
}
