
/* ====== 一比一复刻 oversealoan.com 样式 ====== */

/* 全局 */
:root {
    --bg-primary: #f0f5fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --border-color: #e2e8f0;
    --accent: #2E89FF;
    --accent-hover: #1a6fd4;
    --link-color: #2E89FF;
    --link-hover: #1a6fd4;
    --danger: #EF4444;
    --success: #10B981;
}
body { background: var(--bg-primary) !important; color: var(--text-primary); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; padding-top: 0 !important; }
a { color: var(--link-color); }

/* Header */
.site-header { background: var(--bg-secondary); box-shadow: 0 1px 3px rgba(0,0,0,0.3); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 999; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.site-logo h1 { font-size: 1.2em; color: var(--text-primary); margin: 0; font-weight: 700; }
.site-logo h1:hover { color: var(--link-color); }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-menu li a { display: block; padding: 8px 16px; color: var(--text-secondary); font-size: 13px; text-decoration: none; border-radius: 4px; transition: all 0.2s; }
.nav-menu li a:hover, .nav-menu li.active a { color: var(--link-color); background: rgba(4,226,255,0.08); }

/* Layout */
.content-layout { display: flex; gap: 30px; padding: 30px 0; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }
@media (max-width: 768px) { .content-layout { flex-direction: column; } .sidebar { width: 100%; } }

/* Article Card — 参考 oversealoan 卡片样式 */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: none; border: none; transition: transform 0.2s, box-shadow 0.2s; }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.article-card-inner { display: flex; gap: 24px; padding: 0; }
.article-thumb-link { flex-shrink: 0; }
.article-thumb { width: 240px; height: 320px; border-radius: 0; overflow: hidden; background: #e8ecf0; position: relative; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.no-image { width: 240px; height: 320px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: 64px; background: linear-gradient(135deg, #1a3a4a 0%, #0d2b3a 50%, #1a4a3a 100%); }
.article-body { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 20px 0; min-width: 0; }
.article-category { display: inline-block; padding: 3px 12px; background: rgba(0,102,204,0.08); color: #0066cc; font-size: 13px; border-radius: 4px; text-decoration: none; margin-bottom: 10px; font-weight: 500; letter-spacing: 0.01em; }
.article-category:hover { background: rgba(0,102,204,0.15); }

/* 标题 */
.article-title { font-size: 20px; margin: 0 0 8px; line-height: 1.4; }
.article-title a { color: #1a1a1a; text-decoration: none; font-weight: 700; }
.article-title a:hover { color: #0066cc; }

/* 元数据 */
.article-meta { display: flex; gap: 16px; font-size: 13px; color: #999; margin-bottom: 12px; }
.article-meta i { font-size: 13px; margin-right: 2px; }
.article-excerpt { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag-link { display: inline-block; padding: 2px 10px; background: rgba(0,102,204,0.06); color: #0066cc; font-size: 12px; border-radius: 3px; text-decoration: none; transition: all 0.2s; }
.tag-link:hover { background: #0066cc; color: #fff; }
.read-more { font-size: 14px; color: #0066cc; text-decoration: none; font-weight: 500; align-self: flex-start; }
.read-more:hover { text-decoration: underline; color: #004a99; }

/* 移动端适配 */
@media (max-width: 768px) {
  .article-card-inner { flex-direction: column; }
  .article-thumb { width: 100%; height: 220px; min-height: auto; }
  .article-body { padding: 16px; }
}

/* Sidebar */
.sidebar-card { background: var(--bg-card); border-radius: 0; padding: 20px; margin-bottom: 20px; border: none; box-shadow: none; }
.sidebar-title { font-size: 1em; font-weight: 700; color: var(--text-primary); border-left: 3px solid var(--accent); padding-left: 10px; margin: 0 0 15px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-item { padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.side-item:last-child { border-bottom: none; }
.side-item a { color: var(--text-secondary); font-size: 13px; text-decoration: none; line-height: 1.5; }
.side-item a:hover { color: var(--link-color); }
.side-num { display: inline-block; width: 20px; height: 20px; background: var(--bg-secondary); color: var(--text-muted); text-align: center; line-height: 20px; border-radius: 3px; font-size: 11px; margin-right: 8px; flex-shrink: 0; }
.side-dot { color: var(--accent); margin-right: 6px; font-size: 10px; }
.side-date { color: var(--text-muted); font-size: 11px; margin-right: 6px; }

/* Tags Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* Footer */
.site-footer { background: var(--bg-secondary); color: var(--text-muted); padding: 30px 0; margin-top: 50px; text-align: center; font-size: 13px; border-top: 1px solid var(--border-color); }
.footer-tech { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--link-color); }

/* Tag Page */
.tag-header-section { background: var(--bg-card); border-radius: 8px; padding: 25px 30px; margin-bottom: 20px; border: 1px solid var(--border-color); }
.tag-page-title { font-size: 1.5em; color: var(--text-primary); margin: 0 0 12px; }
.tag-description { font-size: 16px; color: var(--text-secondary); line-height: 1.8; padding: 15px; background: var(--bg-secondary); border-radius: 6px; border-left: 3px solid var(--accent); margin-bottom: 12px; }
.tag-stats { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }

/* Article Detail — 一比一复刻 */
.article-detail { background: var(--bg-card); border-radius: 8px; padding: 30px; border: 1px solid var(--border-color); }
.breadcrumb-nav { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; }
.breadcrumb-nav a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--link-color); }
.entry-title { font-size: 1.8em; color: var(--text-primary); margin: 0 0 15px; line-height: 1.4; font-weight: 700; }
.entry-meta { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }
.entry-content { font-size: 15px; color: #333333; line-height: 1.9; }
.entry-content h2,.entry-content h3 { color: #000; }
.entry-content img { max-width: 100%; border-radius: 6px; }
.entry-content p { margin-bottom: 1.2em; }
.article-tags-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.article-tags-section span { font-size: 13px; color: var(--text-secondary); }
.article-nav { display: flex; gap: 20px; margin-top: 30px; }
.article-nav .nav-prev, .article-nav .nav-next { flex: 1; background: var(--bg-card); border-radius: 8px; padding: 15px 20px; border: 1px solid var(--border-color); }
.article-nav a { text-decoration: none; }
.article-nav .nav-arrow { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.article-nav .nav-title { display: block; font-size: 13px; color: var(--text-secondary); }
.article-nav a:hover .nav-title { color: var(--link-color); }
.entry-copyright { margin-top: 20px; padding: 12px 16px; background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2); border-radius: 6px; font-size: 13px; color: #FBBF24; }

/* Pagination */
.pagination-wrapper { text-align: center; margin: 30px 0; }
.no-more { color: var(--text-muted); font-size: 13px; }
#load-more-btn { background: transparent; color: var(--link-color); border-color: var(--border-color); }
#load-more-btn:hover { background: rgba(4,226,255,0.1); border-color: var(--link-color); color: var(--link-hover); }

/* Responsive */
@media (max-width: 768px) {
    .article-card-inner { flex-direction: column; }
    .article-thumb { width: 100%; height: 180px; }
    .entry-title { font-size: 1.4em; }
    .nav-menu { display: none; }
    .navbar-toggle { display: block; }
}

/* navbar toggle */
.navbar-toggle { display: none; cursor: pointer; padding: 10px; }
.navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; background: var(--text-secondary); margin: 4px 0; border-radius: 1px; }
@media (max-width: 768px) {
    .navbar-toggle { display: block; }
    .navbar-collapse { display: none; }
    .navbar-collapse.open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-secondary); box-shadow: 0 4px 8px rgba(0,0,0,0.3); border-bottom: 1px solid var(--border-color); }
    .nav-menu { flex-direction: column; }
}

/* 自动标签链接 */
.auto-tag-link {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--link-color);
    transition: all 0.2s;
}
.auto-tag-link:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
    background: rgba(4,226,255,0.05);
}

/* Layui overrides for dark theme */
.layui-container { background: transparent; }
.layui-btn-primary { background: transparent; color: var(--link-color); border-color: var(--border-color); }
.layui-btn-primary:hover { background: rgba(4,226,255,0.1); border-color: var(--link-color); color: var(--link-hover); }
.layui-btn { border-radius: 4px; }
.fly-main { background: transparent; }
.layui-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); }
.layui-card-header { background: transparent; border-bottom: 1px solid var(--border-color); color: var(--text-primary); }
.layui-card-body { color: var(--text-secondary); }

/* Article list item (lists page) — 复刻 oversealoan.com 卡片 */
.article-list { display: flex; flex-direction: column; gap: 16px; list-style: none; padding: 0; }
.article-item-card { display: flex; background: #fff; border-radius: 0; overflow: hidden; box-shadow: none !important; transition: none; padding: 0; }
.article-item-card:hover { }
.article-item-card .article-thumb { width: 180px; height: 360px; flex-shrink: 0; background-color: #1a3a5c; background-size: cover; background-position: center; background-repeat: no-repeat; }
.article-item-card .article-thumb-link { flex-shrink: 0; display: block; }
.article-item-card .article-info { flex: 1; padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.article-item-card .article-title { font-size: 24px; margin: 0 0 10px; line-height: 1.3; }
.article-item-card .article-title a { color: #1a1a1a; text-decoration: none; font-weight: 700; }
.article-item-card .article-title a:hover { color: #0066cc; }
.article-item-card .article-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #999; margin-bottom: 12px; }
.article-item-card .meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #ccc; }
.article-item-card .article-abstract { font-size: 17px; color: #555; line-height: 1.7; }
.page-banner { background: linear-gradient(135deg, #1a3a5c, #2a6a9c); color: #fff; padding: 40px 0; text-align: center; margin-bottom: 20px; }
.page-banner h2 { font-size: 28px; margin-bottom: 8px; }
.page-banner p { font-size: 14px; opacity: 0.8; }
@media (max-width: 768px) {
  .article-item-card { flex-direction: column; }
  .article-item-card .article-thumb { width: 100%; height: 200px; }
  .article-item-card .article-info { padding: 16px; }
  .article-item-card .article-title { font-size: 18px; }
}

/* List page card container - transparent bg */
.layui-card { background: transparent; box-shadow: none; border: none; }
.layui-card-body { padding: 0; }

/* List page - transparent card container */
.layui-col-md9 > .layui-card { background: transparent; box-shadow: none; border: none; }
.layui-col-md9 > .layui-card > .layui-card-body { padding: 0; }

.article-list .article-item-card { margin-bottom: 0; padding-bottom: 0; }

.side-item { box-shadow: none !important; border-radius: 0; }

/* Article item tags */
.article-item-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.article-item-tags a { color: #0066cc; font-size: 13px; text-decoration: none; }
.article-item-tags a:hover { text-decoration: underline; }
.article-item-tags a::after { content: ','; color: #999; }
.article-item-tags a:last-child::after { content: ''; }

.article-read-more { color: #0066cc; font-size: 15px; font-weight: 500; text-decoration: none; margin-top: 12px; display: inline-block; }
.article-read-more:hover { text-decoration: underline; }

/* Pagination */
.pagination-links { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.pagination-links a { display: inline-block; padding: 6px 14px; border: 1px solid #ddd; border-radius: 4px; color: #333; text-decoration: none; font-size: 14px; transition: all 0.2s; }
.pagination-links a:hover { background: #0066cc; color: #fff; border-color: #0066cc; }
.pagination-links a.page-current { background: #0066cc; color: #fff; border-color: #0066cc; font-weight: 700; }
.pagination-links .page-prev, .pagination-links .page-next { font-weight: 500; }

.article-abstract.text-ellipsis-2 { -webkit-line-clamp: 3; }

/* Sidebar links - blue text, no background */
.side-item a { color: #0066cc; }
.side-item a:hover { color: #004a99; text-decoration: underline; }
.side-date { color: #999; }
.side-num { background: none; color: #0066cc; }
.tag-cloud .tag-link { background: none; border: none; color: #0066cc; padding: 2px 0; }
.tag-cloud .tag-link:hover { color: #004a99; text-decoration: underline; background: none; }
.site-logo-img { height: 36px; width: auto; vertical-align: middle; margin-right: 10px; }
.site-logo { display: flex; align-items: center; }
.site-logo h1 { margin: 0; }
/* List page top spacing */
.layui-row.layui-col-space16 { padding-top: 20px; }

/* Recommend section */
.recommend-section { margin-top: 30px; }
.recommend-title { font-size: 18px; font-weight: 700; color: #1a1a1a; border-left: 3px solid #0066cc; padding-left: 12px; margin-bottom: 16px; }
.recommend-list .article-item-card { margin-bottom: 12px; }

.site-logo h1 { font-size: 1.5em !important; }

/* Related articles section */
.related-section { margin-top: 36px; }
.related-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.related-card { display: flex; flex-direction: column; }
.related-thumb { width: 100%; aspect-ratio: 3/2; background-color: #e8ecf0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.related-thumb-noimg { background: linear-gradient(135deg, #1a3a5c, #0d2b3a); }
.related-card-title { font-size: 17px; font-weight: 700; margin: 14px 0 8px; line-height: 1.4; }
.related-card-title a { color: #1a1a1a; text-decoration: none; }
.related-card-title a:hover { color: #0066cc; }
.related-meta { font-size: 13px; color: #0066cc; }
.related-meta .meta-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #0066cc; margin: 0 6px; vertical-align: middle; }
@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-section { background: #fff; padding: 30px; border-radius: 0; }

.article-list .article-thumb { border-radius: 0; }