/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #ff4757 0%, #ee5a6f 100%);
    border-bottom: 3px solid #ff3838;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: #ffffff;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 主要内容区域 */
.main {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #ff4757 0%, #ee5a6f 50%, #ff6b9d 100%);
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
}

.hero-title {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    font-weight: 600;
}

.hero-desc {
    font-size: 16px;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #ff4757 0%, #ee5a6f 100%);
    padding: 35px 0;
    margin-bottom: 40px;
    border-radius: 0 0 15px 15px;
}

.page-title {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-breadcrumb {
    color: #ffffff;
    font-size: 14px;
    opacity: 0.9;
}

.page-breadcrumb a {
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.page-breadcrumb a:hover {
    opacity: 1;
}

/* 内容区域 */
.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    color: #2d3436;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff4757;
    font-weight: 600;
}

.content-text {
    color: #636e72;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.content-text p {
    margin-bottom: 16px;
}

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

/* 视频卡片 */
.video-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.25);
}

.video-link {
    display: block;
    color: inherit;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    background: #f1f3f5;
}

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

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: rgba(255, 71, 87, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
    z-index: 10;
}

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

.video-info {
    padding: 18px;
}

.video-title {
    font-size: 17px;
    color: #2d3436;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.video-desc {
    font-size: 14px;
    color: #636e72;
    margin-bottom: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 视频详情卡片 */
.video-detail-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.video-detail-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    transition: box-shadow 0.3s ease;
}

.video-detail-card:hover {
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.2);
}

.video-detail-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #f1f3f5;
    border-radius: 8px;
}

.video-detail-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-detail-info h2 {
    font-size: 22px;
    color: #2d3436;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.video-meta {
    color: #636e72;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.video-description {
    color: #636e72;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.video-description p {
    margin-bottom: 12px;
}

.video-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* 服务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.2);
}

.service-card h3 {
    color: #ff4757;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #636e72;
    font-size: 15px;
    line-height: 1.8;
}

/* 链接区域 */
.link-section,
.related-links {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.link-section h3,
.related-links h3 {
    color: #2d3436;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.internal-links,
.related-links ul {
    list-style: none;
}

.internal-links li,
.related-links ul li {
    margin-bottom: 10px;
}

.internal-links a,
.related-links a {
    color: #ff4757;
    font-size: 15px;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.internal-links a:hover,
.related-links a:hover {
    color: #ee5a6f;
    text-decoration: underline;
}

/* 关于页面内容 */
.about-content {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #636e72;
    line-height: 1.8;
}

.about-content h2 {
    color: #2d3436;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff4757;
    font-weight: 600;
}

.about-content h3 {
    color: #ff4757;
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 15px;
}

/* 新闻列表样式 */
.news-list {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.news-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.2);
}

.news-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #f1f3f5;
    border-radius: 8px;
}

.news-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content h3 {
    font-size: 20px;
    color: #2d3436;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.news-content h3 a {
    color: #2d3436;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #ff4757;
}

.news-content p {
    color: #636e72;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.news-meta {
    color: #95a5a6;
    font-size: 14px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    border-top: 3px solid #ff4757;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
}

.footer p {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #ffffff;
    font-size: 14px;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-nav a:hover {
    color: #ff4757;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        justify-content: center;
        gap: 15px;
    }

    .logo {
        font-size: 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .page-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .video-detail-card {
        grid-template-columns: 1fr;
    }

    .video-detail-thumbnail {
        padding-top: 56.25%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .about-content {
        padding: 20px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

    .news-thumbnail {
        padding-top: 56.25%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }

    .hero {
        padding: 35px 0;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 13px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-title {
        font-size: 15px;
    }

    .video-desc {
        font-size: 13px;
    }

    .play-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .video-detail-info h2 {
        font-size: 18px;
    }

    .news-content h3 {
        font-size: 18px;
    }
}

/* 性能优化 */
.video-thumbnail img,
.video-detail-thumbnail img,
.news-thumbnail img {
    will-change: transform;
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .nav {
        display: none;
    }
}