/* Base styles */
:root {
    --primary: #002418;
    --accent: #1CC780;
    --accent-light: rgba(28, 199, 128, 0.1);
    --accent-lighter: rgba(28, 199, 128, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
}

/* Header styles */
header {
    background: linear-gradient(to bottom, rgba(0, 36, 24, 0.95), var(--primary));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo span {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Stats section */
.stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.share-btn:hover {
    background: var(--accent-lighter);
    transform: translateY(-1px);
}

/* Main content */
main {
    max-width: 1080px;
    margin: 80px auto 0;
    padding: 2rem 1rem;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: radial-gradient(circle at center, var(--accent-light) 0%, transparent 70%);
    border-radius: 24px;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Categories section */
.categories {
    margin-bottom: 4rem;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-item {
    background: var(--accent-lighter);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.15s ease;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: var(--accent-lighter);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.15s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-info {
    padding: 1.25rem;
}

.video-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.video-date {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.5rem;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.video-description {
    font-size: 0.9rem;
    color: #ccc;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-player-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.video-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    cursor: pointer;
    min-height: 120px;
}

.video-container video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    background-color: #000;
    z-index: 1;
    object-fit: contain;
    max-width: 100%;
}

/* 确保视频控件正常显示 */
.video-container video[controls] {
    z-index: 3;
}

/* 播放按钮样式 */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1; /* 默认显示 */
    transition: opacity 0.2s ease;
    z-index: 2;
}

.play-button {
    background-color: rgba(28, 199, 128, 0.9);
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    font-size: 1.8rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    background-color: var(--accent);
    transform: scale(1.15);
}

/* 播放时隐藏播放按钮 */
.video-container.playing .play-button-overlay {
    opacity: 0;
    pointer-events: none;
}

/* 暂停时显示播放按钮 */
.video-container:not(.playing):hover .play-button {
    transform: scale(1.1);
}

/* 响应式视频播放调整 */
@media (max-width: 768px) {
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* 移动设备上确保控件更容易点击 */
    .video-container video[controls] {
        z-index: 3;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-info h4 {
        font-size: 1rem;
    }
    
    .video-date {
        font-size: 0.875rem;
    }
}

.tweet-container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary-color);
}

.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.twitter-tweet {
    margin: 0 !important;
    width: 100% !important;
    max-width: 550px !important;
}

/* About section */
.about {
    margin: 4rem 0;
    padding: 3rem;
    background: var(--accent-lighter);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent);
}

.about > p {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.feature h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* FAQ section */
.faq {
    margin: 4rem 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent);
}

.faq-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background: var(--accent-lighter);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.faq-item h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    background: linear-gradient(to top, rgba(0, 36, 24, 0.95), var(--primary));
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1080px;
    margin: 2rem auto 0;
    padding: 2rem 1rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
}

/* Floating share bar */
.floating-share-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 36, 24, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.floating-share-bar.show {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.15s ease-out;
}

.share-message {
    color: var(--text-secondary);
    margin-right: 1rem;
}

.close-share-bar {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .share-buttons {
        margin-top: 1rem;
    }
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.15s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section Headers */
section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent);
}

/* Share Buttons */
.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
}

.share-btn.facebook:hover {
    background: #4267B2;
}

.share-btn.linkedin:hover {
    background: #0077B5;
}

.share-btn.telegram:hover {
    background: #0088cc;
}

.share-btn.copy-link:hover {
    background: #4CAF50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .share-buttons {
        margin-top: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats {
        flex-direction: row;
        justify-content: center;
    }
}

/* Floating Share Bar */
.floating-share-bar {
    position: fixed;
    bottom: -150px;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.floating-share-bar.show {
    transform: translateY(-150px);
}

.share-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.share-message {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

.close-share-bar {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-share-bar:hover {
    opacity: 1;
}

/* Responsive adjustments for floating share bar */
@media (max-width: 768px) {
    .share-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .share-message {
        font-size: 1rem;
    }

    .floating-share-bar {
        padding: 0.8rem;
    }

    .floating-share-bar.show {
        transform: translateY(-200px);
    }
} 

/* 加载指示器 */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 3rem 0;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #ff5252;
    text-align: center;
    grid-column: 1 / -1;
    padding: 2rem;
}

/* 备用视频数据提示 */
.fallback-message {
    background-color: rgba(255, 165, 0, 0.1);
    border: 1px solid #ff9800;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
    color: #e65100;
    width: 100%;
    text-align: center;
}

.fallback-message p {
    margin: 0;
    font-size: 14px;
}

#currentVideo {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
}

/* 视频控件自定义样式 */
video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    opacity: 1 !important;
    display: flex !important;
    z-index: 5 !important;
}

video::-webkit-media-controls-panel {
    display: flex !important;
    opacity: 1 !important;
}

video::-webkit-media-controls-play-button {
    display: flex !important;
    opacity: 1 !important;
}

video::-webkit-media-controls-timeline {
    display: flex !important;
    opacity: 1 !important;
    height: 8px !important;
}

video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    display: flex !important;
    opacity: 1 !important;
}

video::-webkit-media-controls-volume-slider {
    display: flex !important;
    opacity: 1 !important;
}

/* 确保视频控件在移动设备上也能正常显示 */
@media (max-width: 768px) {
    video::-webkit-media-controls-panel {
        padding: 0 10px;
    }
}

/* 自定义动画（从原来的tailwind配置中迁移）*/
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.15s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.15s ease-out;
}

/* 自定义颜色类（从原来的tailwind配置中迁移）*/
.bg-primary {
    background-color: var(--primary);
}

.bg-accent {
    background-color: var(--accent);
}

.text-accent {
    color: var(--accent);
}

/* 视频加载提示样式 */
.video-loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.video-loading-indicator span {
    margin-top: 10px;
    color: #fff;
    font-size: 0.9rem;
}

/* 视频元素容器样式 */
.video-element-container {
    width: 100%;
    position: relative;
}

.video-element-container video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    background-color: #000;
    z-index: 1;
    object-fit: cover;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    cursor: pointer;
}

/* 视频错误提示样式 */
.video-error-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 5;
    border-radius: 8px 8px 0 0;
}

.error-content {
    background-color: rgba(204, 51, 51, 0.8);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 80%;
}

.error-content p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.retry-button {
    background-color: white;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.retry-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

/* 视频加载中样式增强 */
.video-loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 16px;
    z-index: 4;
    border-radius: 8px 8px 0 0;
}

.video-loading-indicator a {
    color: var(--accent);
    text-decoration: underline;
    margin-left: 5px;
}

.video-loading-indicator a:hover {
    color: white;
}

/* 分页控件样式 */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--accent-lighter);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
}

.pagination-btn:hover:not([disabled]) {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(28, 199, 128, 0.2);
}

.pagination-btn.active {
    background-color: var(--accent);
    color: white;
    font-weight: bold;
}

.pagination-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.prev-btn, .next-btn {
    padding: 0 1rem;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pagination-controls {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .prev-btn, .next-btn {
        padding: 0 0.75rem;
    }
}

/* 移除加载更多按钮样式，改为分页样式 */
.load-more-container {
    display: none;
}

/* 滚动到顶部按钮 */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* 新闻和更新模块样式 */
.news-updates {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--accent-lighter);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.news-image {
    position: relative;
    width: 100%;
    height: 180px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.news-content {
    padding: 1.25rem;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.news-link i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.news-link:hover {
    opacity: 0.8;
}

.news-link:hover i {
    transform: translateX(3px);
}

/* 教程和资源模块样式 */
.tutorials-resources {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tutorial-card {
    background: var(--accent-lighter);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tutorial-image {
    position: relative;
    width: 100%;
    height: 180px;
}

.tutorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutorial-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tutorial-content {
    padding: 1.25rem;
}

.tutorial-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.tutorial-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tutorial-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tutorial-link i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.tutorial-link:hover {
    opacity: 0.8;
}

.tutorial-link:hover i {
    transform: translateX(3px);
}

/* 工具对比模块样式 */
.tool-comparisons {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.comparisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.comparison-card {
    background: var(--accent-lighter);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.comparison-header {
    background: linear-gradient(135deg, var(--primary), #003d2b);
    padding: 1.5rem;
    text-align: center;
}

.comparison-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tool-badge {
    background: var(--accent);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.vs-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.comparison-content {
    padding: 1.25rem;
}

.comparison-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.comparison-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.comparison-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.comparison-link i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.comparison-link:hover {
    opacity: 0.8;
}

.comparison-link:hover i {
    transform: translateX(3px);
}

/* 查看全部按钮样式 */
.view-all-container {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-all-btn i {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.view-all-btn:hover {
    background: #19b673;
    transform: translateY(-2px);
}

.view-all-btn:hover i {
    transform: translateX(3px);
}

/* 响应式样式调整 */
@media (max-width: 768px) {
    .news-grid,
    .tutorials-grid,
    .comparisons-grid {
        grid-template-columns: 1fr;
    }
    
    .news-image,
    .tutorial-image {
        height: 160px;
    }
    
    .view-all-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 导航链接样式 */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 页脚法律链接样式 */
.footer-legal {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-legal ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--accent);
}

.coming-soon {
    background-color: var(--accent-light);
    color: var(--accent);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* 在移动端暂时隐藏导航链接，后续可以实现汉堡菜单 */
    }
    
    .footer-legal ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 视频统计信息样式 */
.video-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0 2rem;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.video-stats span {
    display: inline-flex;
    align-items: center;
    background: var(--accent-lighter);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .video-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
} 