/* 糖心vlog - zhiliye.com 原创样式表 */
/* 品牌色彩系统 - 甜美粉色系 */
:root {
    --tx-primary: #FF6B9D;
    --tx-secondary: #FFB6C1;
    --tx-accent: #FF85A2;
    --tx-light: #FFF0F5;
    --tx-dark: #8B4D6B;
    --tx-text: #4A3040;
    --tx-white: #FFFFFF;
    --tx-gradient: linear-gradient(135deg, #FF6B9D 0%, #FFB6C1 50%, #FF85A2 100%);
    --tx-shadow: 0 4px 20px rgba(255, 107, 157, 0.25);
    --tx-radius: 12px;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    background: var(--tx-light);
    color: var(--tx-text);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--tx-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--tx-dark);
}

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

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

/* 头部导航 */
.tx-header {
    background: var(--tx-white);
    box-shadow: 0 2px 15px rgba(255, 107, 157, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tx-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.tx-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-logo img {
    height: 45px;
    width: auto;
}

.tx-logo-text {
    font-size: 24px;
    font-weight: bold;
    background: var(--tx-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tx-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.tx-menu a {
    color: var(--tx-text);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: var(--tx-radius);
    transition: all 0.3s ease;
}

.tx-menu a:hover,
.tx-menu a.active {
    background: var(--tx-gradient);
    color: var(--tx-white);
}

/* 搜索框 */
.tx-search-box {
    background: var(--tx-light);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.tx-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--tx-white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--tx-shadow);
}

.tx-search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    outline: none;
}

.tx-search-btn {
    background: var(--tx-gradient);
    border: none;
    padding: 15px 30px;
    color: var(--tx-white);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tx-search-btn:hover {
    opacity: 0.9;
}

/* 英雄区域 */
.tx-hero {
    background: var(--tx-gradient);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.tx-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tx-hero-text h1 {
    font-size: 42px;
    color: var(--tx-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.tx-hero-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 30px;
    line-height: 1.8;
}

.tx-hero-img {
    border-radius: var(--tx-radius);
    box-shadow: var(--tx-shadow);
}

/* 按钮样式 */
.tx-btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.tx-btn-primary {
    background: var(--tx-white);
    color: var(--tx-primary);
}

.tx-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--tx-dark);
}

.tx-btn-outline {
    background: transparent;
    border: 2px solid var(--tx-white);
    color: var(--tx-white);
}

.tx-btn-outline:hover {
    background: var(--tx-white);
    color: var(--tx-primary);
}

/* 区块标题 */
.tx-section {
    padding: 60px 0;
}

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

.tx-section-title h2 {
    font-size: 32px;
    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: 60px;
    height: 4px;
    background: var(--tx-gradient);
    border-radius: 2px;
}

.tx-section-title p {
    color: #888;
    font-size: 16px;
    margin-top: 20px;
}

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

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

.tx-video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tx-shadow);
}

.tx-video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

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

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

.tx-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    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;
}

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

.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: 5px;
}

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

.tx-video-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--tx-text);
    line-height: 1.5;
}

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

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

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

.tx-expert-card {
    background: var(--tx-white);
    border-radius: var(--tx-radius);
    padding: 30px;
    text-align: center;
    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: var(--tx-shadow);
}

.tx-expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--tx-secondary);
}

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

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

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

.tx-expert-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 社区功能 */
.tx-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.tx-feature-item {
    background: var(--tx-white);
    border-radius: var(--tx-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tx-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--tx-shadow);
}

.tx-feature-icon {
    width: 70px;
    height: 70px;
    background: var(--tx-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--tx-white);
}

.tx-feature-item h3 {
    font-size: 16px;
    color: var(--tx-dark);
    margin-bottom: 10px;
}

.tx-feature-item p {
    color: #666;
    font-size: 14px;
}

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

.tx-review-card {
    background: var(--tx-white);
    border-radius: var(--tx-radius);
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.tx-review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--tx-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx-white);
    font-weight: bold;
}

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

.tx-review-stars {
    color: #FFD700;
    font-size: 14px;
}

.tx-review-content {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

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

.tx-contact-item {
    background: var(--tx-white);
    border-radius: var(--tx-radius);
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.tx-contact-item h3 {
    font-size: 16px;
    color: var(--tx-dark);
    margin-bottom: 15px;
}

.tx-contact-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.tx-qrcode {
    width: 150px;
    height: 150px;
    margin: 15px auto;
    border-radius: 8px;
    overflow: hidden;
}

.tx-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 页脚 */
.tx-footer {
    background: var(--tx-dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 30px;
}

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

.tx-footer-col h3 {
    color: var(--tx-white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.tx-footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--tx-primary);
    border-radius: 2px;
}

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

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

.tx-footer-col a {
    color: rgba(255,255,255,0.7);
}

.tx-footer-col a:hover {
    color: var(--tx-primary);
}

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

.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: var(--tx-white);
    transition: all 0.3s ease;
}

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

/* 面包屑 */
.tx-breadcrumb {
    background: var(--tx-white);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

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

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

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

.tx-breadcrumb a {
    color: #666;
}

.tx-breadcrumb span {
    color: var(--tx-primary);
}

/* 内页Banner */
.tx-page-banner {
    background: var(--tx-gradient);
    padding: 50px 0;
    text-align: center;
    color: var(--tx-white);
}

.tx-page-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.tx-page-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .tx-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tx-hero-text h1 {
        font-size: 32px;
    }
    
    .tx-menu {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .tx-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .tx-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tx-hero-text h1 {
        font-size: 28px;
    }
    
    .tx-section-title h2 {
        font-size: 26px;
    }
    
    .tx-video-grid,
    .tx-expert-grid,
    .tx-feature-grid {
        grid-template-columns: 1fr;
    }
}

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

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

/* 懒加载占位 */
.tx-lazy {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
