/* ============================================
   全局样式 & 基础布局
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

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

/* 头部导航 */
.header {
    background: #000;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
.nav a {
    color: #ccc;
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
}
.nav a:hover, .nav a.active {
    color: #1890FF;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        background: #000;
        margin-top: 15px;
        border-top: 1px solid #333;
    }
    .nav.show {
        display: flex;
    }
    .nav a {
        margin: 10px 0;
        padding: 8px 0;
        border-bottom: 1px solid #333;
    }
    .header .container {
        position: relative;
    }
    .logo {
        font-size: 20px;
    }
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; opacity: 0.9; }
.btn {
    display: inline-block;
    background: #1890FF;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 30px;
    font-weight: bold;
    transition: background 0.3s;
}
.btn:hover { background: #0c6bdb; }

/* 通用区块 */
.section {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}
.card h3 { margin-bottom: 15px; }
.card p { color: #666; }

/* 页脚 */
.footer {
    background: #000;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .grid { grid-template-columns: 1fr; }
}

/* ============================================
   公用组件：面包屑、上一篇/下一篇
   ============================================ */
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding: 10px 0;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}
.breadcrumb a {
    text-decoration: none;
    color: #1890FF;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}
.post-navigation .prev,
.post-navigation .next {
    max-width: 45%;
}
.post-navigation a {
    text-decoration: none;
    color: #1890FF;
    transition: color 0.2s;
}
.post-navigation a:hover {
    color: #0c6bdb;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    .post-navigation .prev,
    .post-navigation .next {
        max-width: 100%;
    }
}

/* ============================================
   文章详情页
   ============================================ */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}
.article-detail h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}
.article-meta {
    color: #6c757d;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.article-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}
.article-content p {
    margin-bottom: 1.2em;
}
@media (max-width: 768px) {
    .article-detail {
        padding: 20px 15px;
    }
    .article-detail h1 {
        font-size: 1.4rem;
    }
    .article-content {
        font-size: 0.95rem;
    }
}

/* ============================================
   案例详情页
   ============================================ */
.case-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}
.case-detail h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}
.case-meta {
    color: #6c757d;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.case-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}
.case-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .case-detail {
        padding: 20px 15px;
    }
    .case-detail h1 {
        font-size: 1.4rem;
    }
    .case-content {
        font-size: 0.95rem;
    }
    .case-meta {
        font-size: 0.85rem;
        color: #6c757d;
    }
}
/* ============================================
   功能详情页（基于 Plyr 播放器，竖屏完整显示，全屏占满）
   ============================================ */
.feature-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    overflow-x: hidden;
}

.feature-description {
    margin: 20px 0 30px 0;
    padding: 16px 20px;
    background: #f8f9fa;
    border-left: 4px solid #1890FF;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}
.feature-description p {
    margin: 0;
}

.custom-player-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    width: 100%;
    max-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-player-container .plyr {
    width: 100%;
    height: auto;
    max-height: 100%;
}
.custom-player-container .plyr video {
    width: 100%;
    height: auto;
    object-fit: contain; /* 正常模式下完整显示，留黑边 */
    max-height: 50vh;
}

/* ============================================
   功能详情页（基于 Plyr 播放器，全屏占满，正常模式完整显示）
   ============================================ */
.feature-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    overflow-x: hidden;
}

.feature-description {
    margin: 20px 0 30px 0;
    padding: 16px 20px;
    background: #f8f9fa;
    border-left: 4px solid #1890FF;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}
.feature-description p {
    margin: 0;
}

/* 播放器容器：限制最大高度，保证正文可见 */
.custom-player-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    width: 100%;
    max-height: 50vh; /* 桌面端限制一半高度 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Plyr 播放器容器内部样式 */
.custom-player-container .plyr {
    width: 100%;
    height: auto;
}
.custom-player-container .plyr video {
    width: 100%;
    height: auto;
    object-fit: contain; /* 正常模式完整显示，留黑边 */
}

/* 全屏模式：移除所有限制，让 Plyr 自己管理全屏 */
.custom-player-container:fullscreen,
.custom-player-container:-webkit-full-screen,
.custom-player-container:-moz-full-screen {
    max-height: 100vh;
    height: 100% !important;
    width: 100% !important;
    border-radius: 0;
}
.custom-player-container:fullscreen .plyr,
.custom-player-container:-webkit-full-screen .plyr,
.custom-player-container:-moz-full-screen .plyr {
    height: 100% !important;
    width: 100% !important;
}
.custom-player-container:fullscreen .plyr video,
.custom-player-container:-webkit-full-screen .plyr video,
.custom-player-container:-moz-full-screen .plyr video {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover; /* 全屏时铺满，不留黑边 */
}

/* 返回阅读按钮（全屏时显示） */
.exit-fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(4px);
    display: none;
    transition: background 0.2s;
}
.exit-fullscreen-btn:hover {
    background: rgba(0,0,0,0.9);
}

.action-buttons {
    margin: 20px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.action-btn {
    background: #1890FF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.action-btn:hover {
    background: #0c6bdb;
}
.toast-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.toast-message.show {
    opacity: 1;
}

.feature-content {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
    margin-top: 20px;
}
.feature-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .feature-detail {
        padding: 20px 15px;
    }
    .feature-description {
        margin: 15px 0 20px;
        padding: 12px 16px;
        font-size: 1rem;
    }
    .feature-content {
        font-size: 0.95rem;
    }
    .exit-fullscreen-btn {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    .custom-player-container {
        max-height: 40vh; /* 移动端降低最大高度 */
    }
}

/* ============================================
   资讯列表页（手机端双列省略号）
   ============================================ */
.articles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.article-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    display: block;
    color: inherit;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.article-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-card .meta {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.article-card .excerpt {
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}
.pagination a:hover {
    background: #1890FF;
    color: white;
    border-color: #1890FF;
}
.pagination .current {
    background: #1890FF;
    color: white;
    border-color: #1890FF;
}
.pagination .disabled {
    color: #adb5bd;
    cursor: not-allowed;
}
@media (max-width: 768px) {
    .articles-list {
        gap: 15px;
    }
    .article-card {
        padding: 16px;
    }
    .article-card h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }
    .article-card .meta {
        font-size: 0.75rem;
    }
    .article-card .excerpt {
        font-size: 0.85rem;
        line-height: 1.4;
        -webkit-line-clamp: 6;
    }
    .pagination a, .pagination span {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
@media (max-width: 480px) {
    .articles-list {
        gap: 12px;
    }
    .article-card {
        padding: 12px;
    }
}

/* ============================================
   案例列表页（手机端双列省略号）
   ============================================ */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    display: block;
    color: inherit;
}
.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.case-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.case-content {
    padding: 20px;
}
.case-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-meta {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.case-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.case-btn {
    display: inline-block;
    background: #1890FF;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.case-btn:hover {
    background: #0c6bdb;
}
@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .cases-grid {
        gap: 12px;
    }
    .case-img {
        height: 110px;
    }
    .case-content {
        padding: 12px;
    }
    .case-content h3 {
        font-size: 0.9rem;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }
    .case-meta {
        font-size: 0.7rem;
        margin-bottom: 8px;
        color: #6c757d;
    }
    .case-excerpt {
        font-size: 0.8rem;
        margin-bottom: 10px;
        line-height: 1.4;
        -webkit-line-clamp: 6;
    }
    .case-btn {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
}
@media (max-width: 480px) {
    .cases-grid {
        gap: 10px;
    }
    .case-img {
        height: 100px;
    }
}

/* ============================================
   功能列表页
   ============================================ */
.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
    color: inherit;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.feature-card .icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.feature-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: #333;
}
.feature-card p {
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 992px) {
    .features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 640px) {
    .features-list {
        gap: 12px;
    }
    .feature-card {
        padding: 16px 12px;
    }
    .feature-card .icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    .feature-card h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    .feature-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* ============================================
   首页特有样式
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 20px;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.advantage-item {
    text-align: center;
    padding: 20px;
}
.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1890FF 0%, #096dd9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}
.advantage-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}
.advantage-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}
.functions-section {
    background: #f8f9fa;
}
.functions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.func-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    text-decoration: none;
    display: block;
    color: inherit;
}
.func-item:hover {
    border-color: #1890FF;
    box-shadow: 0 4px 12px rgba(24,144,255,0.1);
}
.func-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1890FF;
}
.func-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}
.platform-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 30px 0;
}
.platform-icon {
    text-align: center;
    font-size: 32px;
}
.platform-icon span {
    display: block;
    font-size: 12px;
    margin-top: 8px;
    color: #666;
}
.case-scroll-container {
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 360px;
    margin: 20px 0;
}
.case-scroll-list {
    animation: scrollUp 25s linear infinite;
    padding: 0;
    margin: 0;
    list-style: none;
}
.case-scroll-list:hover {
    animation-play-state: paused;
}
.case-scroll-item {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    margin-bottom: 1px;
    transition: background 0.2s;
}
.case-scroll-item:hover {
    background: #f1f3f5;
}
.case-scroll-item h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}
.case-scroll-item h3 a {
    text-decoration: none;
    color: #333;
}
.case-scroll-item h3 a:hover {
    color: #1890FF;
}
.case-scroll-item .meta {
    font-size: 0.85rem;
    color: #6c757d;
}
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .functions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .features-grid { gap: 16px; }
    .advantages-grid { gap: 20px; }
    .functions-grid { gap: 12px; }
    .case-scroll-container { height: 400px; }
    .case-scroll-list { animation-duration: 20s; }
    .case-scroll-item { padding: 16px; }
    .case-scroll-item h3 { font-size: 1rem; }
    .articles-grid { grid-template-columns: 1fr; gap: 20px; }
    .advantage-item { padding: 10px; }
    .func-item { padding: 15px; }
}