/* =========================================
   CSS 模块: 全局变量与主题 (Theme Variables)
   ========================================= */
:root {
    --bg-body: #f4f1ec;
    --bg-surface: #ffffff;
    --text-primary: #4a4a4a;
    --text-secondary: #8c8c8c;
    --accent-color: #92a6a1;
    --accent-hover: #7b8e89;
    --accent-color-rgb: 146, 166, 161;
    --border-color: #e6e4de;
    --btn-text: #ffffff;
    --danger-color: #c78b8b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-body: #0f0f0f;
    --bg-surface: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --accent-color: #76a29a;
    --accent-hover: #8fb5ad;
    --accent-color-rgb: 118, 162, 154;
    --border-color: rgba(255, 255, 255, 0.08);
    --btn-text: #ffffff;
    --danger-color: #a86464;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* =========================================
   CSS 模块: 全局与重置 (Reset & Base)
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { 
    border: none; background: none; cursor: pointer; 
    font-family: inherit; color: inherit; outline: none; 
}

/* =========================================
   CSS 模块: 布局与通用组件 (Layout & Components)
   ========================================= */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

[data-theme="dark"] .site-header {
    background-color: rgba(26, 26, 26, 0.8);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}
.logo { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 12px;
    font-size: 1.25rem; 
    font-weight: bold; 
    cursor: pointer; 
    color: var(--accent-color); 
}
.nav-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.search-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: var(--bg-surface);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 300px;
    min-width: 100px;
}

.search-input:focus {
    border-color: var(--accent-color);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
    }
    .logo {
        justify-content: flex-start;
    }
    .nav-actions {
        justify-content: space-between;
    }
    .search-input {
        max-width: none;
        height: 48px;
        font-size: 16px;
        padding: 8px 12px;
    }
    .btn {
        height: 44px;
        padding: 0 12px;
    }
    .main-content {
        padding: 20px 16px;
    }
    .btn-fav {
        min-width: 44px;
        min-height: 44px;
    }
    .pagination-btn {
        min-width: 70px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .pagination-info {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
}
.btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.btn-primary {
    background-color: var(--accent-color);
    color: var(--btn-text);
    border-color: var(--accent-color);
}
.btn-primary:hover { background-color: var(--accent-hover); color: var(--btn-text); }

.btn-icon {
    padding: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content { padding: 24px 0; min-height: 80vh; }

/* =========================================
   CSS 模块: 业务组件 (Modules & Lists)
   ========================================= */
.article-module {
    background-color: var(--bg-surface);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 30px;
    border: none;
    box-shadow: var(--shadow-sm);
    margin-left: 10px;
    margin-right: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.article-module:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.module-title { font-size: 1rem; font-weight: 600; }

.article-list { display: flex; flex-direction: column; }
.article-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    position: relative;
}
.article-item:last-child { border-bottom: none; }
.article-item:hover .article-title { color: var(--accent-color); }
.article-item:active {
    background-color: rgba(var(--accent-color-rgb), 0.05);
}

.article-info { flex: 1; display: flex; flex-direction: column; overflow: hidden; margin-right: 12px; }
.article-title {
    font-size: 0.9rem; font-weight: 500; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    cursor: pointer;
}
.article-meta { font-size: 0.75rem; color: var(--text-secondary); display: flex; gap: 8px; align-items: center; }

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* =========================================
   CSS 模块: 今日推荐 (Hot Articles)
   ========================================= */
.hot-module {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-surface);
}

[data-theme="dark"] .hot-module {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-surface);
}

.hot-module .module-title {
    font-size: 1.18rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-list.compact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    transition: background-color 0.18s ease;
}

[data-theme="dark"] .hot-item {
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-item:hover {
    background: rgba(255, 107, 53, 0.08);
}

[data-theme="dark"] .hot-item:hover {
    background: rgba(255, 107, 53, 0.12);
}

.hot-item .article-title-line {
    flex: 1;
    min-width: 0;
}

.hot-item .article-title {
    font-size: 0.92rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.hot-item .article-meta.compact-meta {
    font-size: 0.73rem;
    color: var(--text-secondary);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-item .new-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.btn-fav {
    font-size: 1.1rem;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border-width: 1px;
    background: transparent;
    transition: all 0.2s ease;
}
.btn-fav.active {
    color: #ffb74d;
    border-color: #ffb74d;
    background: rgba(255, 183, 77, 0.12);
}
.btn-fav:hover {
    transform: scale(1.15);
    background: rgba(var(--accent-color-rgb), 0.1);
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    min-width: 80px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--accent-color);
    color: var(--btn-text);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.25);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 16px;
    background-color: rgba(var(--accent-color-rgb), 0.08);
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.fav-module-container {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.fav-module-container .article-list {
    flex: 1;
}

.module-list-container {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.module-list-container .article-list {
    flex: 1;
}

.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-secondary);
}

.fav-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 10px;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.tab-item {
    flex: 0 0 auto;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
}
.tab-item.active { background-color: var(--accent-color); color: var(--btn-text); border-color: var(--accent-color); }

.article-item {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================
   CSS 模块: 瀑布流布局 (Masonry Grid)
   ========================================= */
.masonry-container {
    column-count: 3;
    column-gap: 20px;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

@media (max-width: 900px) {
    .masonry-container { column-count: 2 !important; }
}
@media (max-width: 600px) {
    .masonry-container { 
        column-count: 1 !important; 
    }
    .masonry-item {
        margin-left: 0;
        margin-right: 0;
    }
}

/* =========================================
   CSS 模块: 蒙版弹窗 (Overlay Modal)
   ========================================= */
.overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.overlay-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(146, 166, 161, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(146, 166, 161, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.overlay-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-body) 100%);
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(146, 166, 161, 0.03), transparent 30%);
    animation: modalShimmer 8s linear infinite;
    pointer-events: none;
}

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

.overlay-modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(var(--accent-color-rgb), 0.35);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.modal-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.modal-article-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background-color: var(--bg-body);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all 0.2s ease;
}

.modal-article-item:hover {
    border-color: var(--accent-color);
}

.modal-article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-article-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow: hidden;
}

.modal-article-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.modal-article-meta .new-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
}

#modal-fav-btn {
    flex-shrink: 0;
    margin-left: 12px;
    align-self: center;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.modal-btn:active::before {
    width: 300px;
    height: 300px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--btn-text);
    box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.4);
}

.modal-btn-primary:active {
    transform: translateY(0);
}

.modal-btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.modal-btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(var(--accent-color-rgb), 0.05);
    transform: translateY(-2px);
}

.modal-btn-secondary:active {
    transform: translateY(0);
}

.modal-close-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
    animation: fadeInUp 0.5s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 32px 24px;
        margin: 16px;
        width: calc(100% - 32px);
    }
    
    .modal-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .modal-article-title {
        font-size: 1.2rem;
    }
    
    .modal-btn {
        padding: 12px 24px;
    }
}

/* =========================================
   CSS 模块: 文章显示 (Show Article)
   ========================================= */
#showarticle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    z-index: 10000;
    display: none;
}

.showarticle-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10001;
}

.showarticle-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.showarticle-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

#showarticle-fav.active {
    background-color: rgba(255, 183, 77, 0.12);
    border-color: #ffb74d;
    color: #ffb74d;
}

.showarticle-iframe {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 56px);
    border: none;
    background-color: var(--bg-body);
}

.iframe-loading-overlay {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 56px);
    background-color: var(--bg-body);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    transition: opacity 0.3s ease;
}

.iframe-loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

@keyframes iframe-spin {
    to { transform: rotate(360deg); }
}

.iframe-loading-text {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.3s ease;
}

.page-loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

@keyframes page-spin {
    to { transform: rotate(360deg); }
}

.page-loading-text {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* =========================================
   CSS 模块: 外部链接区域 (External Links)
   ========================================= */
.external-links-section {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-surface);
}

.external-links-section .section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.external-links-section .section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    color: var(--text-primary);
}

.external-links-section .section-header .line {
    height: 1px;
    background: var(--border-color);
    flex-grow: 1;
}

.external-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .external-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .external-links-grid {
        grid-template-columns: 1fr;
    }
}

.external-link-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.external-link-card:hover {
    border-color: var(--accent-color);
    background: var(--bg-surface);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.external-link-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-color-rgb), 0.1);
    border-radius: 8px;
}

.external-link-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.external-link-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.external-link-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.external-link-card.back-home {
    border-color: rgba(var(--accent-color-rgb), 0.4);
    background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.08) 0%, transparent 100%);
}

.external-link-card.back-home:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.15) 0%, transparent 100%);
}

.footer-copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}
