/* ========== 海洋青风格 - Ocean Cyan Theme ========== */
/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c3e50;
    background: #ecfeff;
    line-height: 1.8;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    display: none;
    z-index: 200;
    transition: all 0.3s ease;
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}
.back-to-top.show { display: block; }

/* ========== 文章详情页 ========== */
.topbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.topbar .logo {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.topbar .home-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}
.topbar .home-link:hover {
    background: #f0f0f0;
    color: #06b6d4;
}

.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.breadcrumb {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.breadcrumb a {
    color: #06b6d4;
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb a:hover { color: #0891b2; }

.article-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    transition: transform 0.3s;
}
.article-card h1 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.4;
    font-weight: 700;
}
.article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    gap: 20px;
}

.toc {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 4px solid #06b6d4;
    padding: 20px 24px;
    margin-bottom: 32px;
    border-radius: 0 12px 12px 0;
}
.toc h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #06b6d4;
    font-weight: 600;
}
.toc ul { list-style: none; padding: 0; }
.toc ul li { margin-bottom: 8px; }
.toc ul li a {
    color: #06b6d4;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-block;
    padding: 4px 0;
}
.toc ul li a:hover {
    color: #0891b2;
    transform: translateX(4px);
}

.article-content {
    font-size: 17px;
    line-height: 1.9;
    color: #444;
}
.article-content h2 {
    font-size: 1.6em;
    margin: 36px 0 18px;
    color: #2c3e50;
    border-bottom: 3px solid #06b6d4;
    padding-bottom: 10px;
    font-weight: 600;
}
.article-content p { margin: 18px 0; }
.article-content a {
    color: #06b6d4;
    text-decoration: none;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}
.article-content a:hover {
    color: #0891b2;
    border-bottom-color: #0891b2;
}

/* 广告卡片 */
.ad-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}
.ad-card a {
    display: inline-block;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 12px;
    font-weight: 600;
    transition: all 0.3s;
}
.ad-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.related-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}
.related-card h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 16px;
    font-weight: 600;
}
.related-card ul { list-style: none; padding: 0; }
.related-card ul li {
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}
.related-card ul li:hover {
    background: #e9ecef;
    transform: translateX(4px);
}
.related-card ul li a {
    color: #06b6d4;
    text-decoration: none;
    font-size: 15px;
}

.guide-card {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}
.guide-card p {
    font-size: 17px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 500;
}
.guide-card a {
    display: inline-block;
    background: #fff;
    color: #06b6d4;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}
.guide-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mobile-ad-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    z-index: 150;
    font-size: 15px;
}
.mobile-ad-bar a {
    color: #fff;
    background: rgba(255,255,255,0.25);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .mobile-ad-bar { display: block; }
    .article-card { padding: 24px 20px; }
    .article-card h1 { font-size: 1.7em; }
    .article-content { font-size: 16px; }
    .back-to-top { bottom: 70px; right: 16px; width: 44px; height: 44px; }
}

/* ========== 首页样式 ========== */
.site-header {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff;
    padding: 60px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.site-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}
.site-header h1 {
    font-size: 2.5em;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
}
.site-header p {
    font-size: 1.2em;
    opacity: 0.95;
    position: relative;
}
.site-header .brand-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
    backdrop-filter: blur(10px);
}
.site-header .brand-link:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

.home-main-container {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 20px 50px;
    position: relative;
    z-index: 10;
}
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-top: 24px;
}

.home-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    transition: all 0.3s;
}
.home-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.home-card h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #06b6d4;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.featured-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    border: 2px solid #f0f0f0;
}
.featured-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    border-color: #06b6d4;
}
.featured-item .feat-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 10px;
}
.featured-item .feat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-item:hover .feat-thumb img {
    transform: scale(1.08);
}
.featured-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.featured-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}
.featured-item h3 a:hover { color: #06b6d4; }
.featured-item .feat-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-item .feat-meta {
    margin-top: 12px;
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.article-list-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    transition: all 0.3s;
}
.article-list-item:hover {
    background: #f8f9fa;
    margin: 0 -28px;
    padding: 16px 28px;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item .al-thumb { flex-shrink: 0; }
.article-list-item .al-thumb img {
    display: block;
    border-radius: 8px;
    transition: transform 0.3s;
}
.article-list-item:hover .al-thumb img {
    transform: scale(1.05);
}
.article-list-item .al-title {
    flex: 1;
    font-size: 16px;
    min-width: 0;
}
.article-list-item .al-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 6px;
    line-height: 1.5;
    font-weight: 500;
}
.article-list-item .al-title a:hover { color: #06b6d4; }
.article-list-item .al-keyword {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}
.article-list-item .al-time {
    font-size: 13px;
    color: #aaa;
    white-space: nowrap;
    margin-left: 18px;
    flex-shrink: 0;
}

.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li { margin-bottom: 12px; }
.sidebar-card ul li a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    padding: 10px 14px;
    border-radius: 8px;
}
.sidebar-card ul li a:hover {
    color: #06b6d4;
    background: #f0f4ff;
}
.sidebar-card ul li .seed-count {
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 12px;
}
.about-text {
    font-size: 14px;
    color: #666;
    line-height: 1.9;
}

.random-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.random-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}
.random-item:hover {
    background: #e9ecef;
    border-color: #06b6d4;
    transform: translateY(-2px);
}
.random-item a {
    color: #2c3e50;
    text-decoration: none;
}
.random-item a:hover { color: #06b6d4; }

.pagination {
    text-align: center;
    margin-top: 24px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 6px;
    border-radius: 8px;
    background: #fff;
    color: #06b6d4;
    text-decoration: none;
    border: 2px solid #e9ecef;
    font-size: 15px;
    transition: all 0.3s;
    font-weight: 500;
}
.pagination a:hover {
    background: #06b6d4;
    color: #fff;
    border-color: #06b6d4;
    transform: translateY(-2px);
}
.pagination span.current {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff;
    border-color: #06b6d4;
}

.site-footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    color: #999;
    border-top: 1px solid #e9ecef;
    background: #fff;
}

@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; }
    .site-header h1 { font-size: 1.8em; }
    .featured-grid { grid-template-columns: 1fr; gap: 18px; }
    .featured-item .feat-thumb { height: 170px; }
    .random-grid { grid-template-columns: 1fr 1fr; }
    .article-list-item {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 14px 0;
    }
    .article-list-item .al-thumb img { width: 65px; height: 65px; }
    .article-list-item .al-title { font-size: 15px; }
    .article-list-item .al-time { margin-left: 14px; font-size: 12px; }
    .pagination { margin-top: 18px; }
    .pagination a, .pagination span {
        padding: 6px 12px;
        margin: 0 3px;
        font-size: 14px;
    }
    .back-to-top { bottom: 24px; right: 16px; width: 44px; height: 44px; }
}
@media (max-width: 480px) {
    .random-grid { grid-template-columns: 1fr; }
}
