/* 
 * 基础设置 
 * 采用苹果推荐的设计规范，使用 CSS 变量来管理颜色和间距，方便后期维护
 */
:root {
    /* 苹果风常用的背景与文字色 */
    --bg-color: #F5F5F7;           /* 非常淡的灰，几乎是白 */
    --surface-color: #FFFFFF;      /* 纯白，用来做卡片底色 */
    --text-primary: #1D1D1F;       /* 苹果经典的深灰黑，对比度比纯黑更柔和 */
    --text-secondary: #86868B;     /* 次级文字色，做辅助说明 */
    
    /* 中国红主题色 */
    --theme-red: #D2232A;          /* 优雅的中国红 */
    --theme-red-light: #FCE8E9;    /* 配合红色的极淡背景，常用于标签或 hover 效果 */
    
    /* 间距和圆角 */
    --radius-sm: 8px;
    --radius-md: 18px;             /* 苹果风常用的大圆角 */
    --radius-lg: 24px;
    --spacing-sm: 12px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    
    /* 阴影 */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* 全局重置与基础排版 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* 字体栈：优先使用苹果系统字体，找不到再用 Inter 和其它无衬线字体 */
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px); /* 苹果风经典的毛玻璃效果 */
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.brand-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.highlight-red {
    color: var(--theme-red);
}

.nav-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-item:hover {
    color: var(--theme-red);
}

/* 主体内容 */
.main-content {
    min-height: calc(100vh - 140px);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 首页卡片网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* 卡片样式：苹果风要求干净、圆滑、轻微阴影 */
.card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.card-body {
    padding: 32px;
    flex-grow: 1;
}

/* 封面图样式 */
.card-cover {
    width: 100%;
    height: 200px;
    background-color: #e5e5ea;
    position: relative;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover .cover-image {
    transform: scale(1.05); /* 鼠标悬浮时图片微放大，经典的苹果动效 */
}

/* 默认封面：通过 CSS 渐变色生成一个好看的底图 */
.default-cover {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.placeholder-cover {
    background: linear-gradient(135deg, var(--theme-red-light) 0%, #ffe0e0 100%);
    color: var(--theme-red);
    font-weight: 500;
}

/* 发布时间 */
.article-meta {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.article-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* 金句样式 */
.article-quote {
    background-color: var(--theme-red-light);
    color: var(--theme-red);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 16px;
    position: relative;
    border-left: 4px solid var(--theme-red);
}

.quote-icon {
    font-family: Georgia, serif;
    font-size: 24px;
    line-height: 0;
    vertical-align: -10px;
    margin: 0 2px;
}

/* 点评与摘要 */
.article-comment {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-primary);
    background: #f9f9fb;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.comment-label {
    font-weight: 600;
    color: var(--theme-red);
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

.article-preview {
    font-size: 15px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 20px 32px;
    border-top: 1px solid rgba(0,0,0,0.04);
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-red);
    text-align: right;
}

/* 详情页样式 */
.detail-page {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 64px;
    max-width: 800px;
    margin: 0 auto;
}

.detail-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.detail-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.detail-meta {
    font-size: 15px;
    color: var(--text-secondary);
}

.detail-cover {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.large-cover {
    font-size: 18px;
}

.dot {
    margin: 0 8px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.detail-quote {
    font-size: 20px;
    font-weight: 500;
    color: var(--theme-red);
    text-align: center;
    margin: 40px 0;
    padding: 0 40px;
    position: relative;
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 60px;
    color: var(--theme-red-light);
    position: absolute;
    top: -20px;
    left: 0;
}

.quote-mark-right {
    left: auto;
    right: 0;
    top: auto;
    bottom: -40px;
}

.detail-comment {
    background-color: #f9f9fb;
    padding: 32px;
    border-radius: var(--radius-md);
    margin: 40px 0;
    border-left: 4px solid var(--theme-red);
}

.detail-comment h3 {
    font-size: 18px;
    color: var(--theme-red);
    margin-bottom: 12px;
}

.detail-content {
    margin-top: 48px;
}

.detail-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 8px;
    display: inline-block;
}

.content-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap; /* 保持多行文本的换行 */
}

.detail-footer {
    margin-top: 64px;
    text-align: center;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px; /* 胶囊按钮，苹果风经典 */
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.btn-outline-red {
    border: 1px solid var(--theme-red);
    color: var(--theme-red);
    background: transparent;
}

.btn-outline-red:hover {
    background: var(--theme-red);
    color: white;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-note {
    margin-top: 8px;
    opacity: 0.7;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 0;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.empty-state h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* 骨架屏动画 */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.skeleton-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.skeleton-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #e5e5ea 0px, #f0f0f0 40px, #e5e5ea 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-title {
    height: 28px;
    width: 80%;
    border-radius: 4px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #e5e5ea 0px, #f0f0f0 40px, #e5e5ea 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-meta {
    height: 16px;
    width: 40%;
    border-radius: 4px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #e5e5ea 0px, #f0f0f0 40px, #e5e5ea 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #e5e5ea 0px, #f0f0f0 40px, #e5e5ea 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-text.short {
    width: 60%;
}

/* 搜索和筛选 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-form input {
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 14px;
    width: 200px;
    transition: border-color 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--theme-red);
}

.search-btn {
    padding: 10px 20px;
    background: var(--theme-red);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #b81c22;
}

.clear-search {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.clear-search:hover {
    color: var(--theme-red);
}

.category-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-color);
    transition: all 0.3s;
}

.category-tag:hover {
    color: var(--theme-red);
    background: var(--theme-red-light);
}

.category-tag.active {
    background: var(--theme-red);
    color: white;
}

/* 封面图 */
.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* 评论区 */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.comments-section h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.comments-count {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-secondary);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: #f9f9fb;
    padding: 20px;
    border-radius: var(--radius-sm);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--theme-red);
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-body {
    font-size: 15px;
    line-height: 1.6;
}

.comment-body p {
    margin: 0;
}

/* 错误页面 */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--theme-red);
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0.8;
}

.error-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.error-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }

    .detail-page {
        padding: 32px 20px;
        border-radius: 0;
    }

    .detail-title {
        font-size: 28px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        width: 100%;
    }

    .search-form input {
        flex: 1;
        width: auto;
    }

    .category-filter {
        justify-content: flex-start;
    }

    .error-code {
        font-size: 80px;
    }

    .skeleton-grid {
        grid-template-columns: 1fr;
    }
}
 / *   - - -   U I   OSeX7h_  - - -   * / 
 / *   R{|`nmh~{  * / 
 . c a r d - c a t e g o r y - b a d g e   { 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   1 6 p x ; 
         r i g h t :   1 6 p x ; 
         b a c k g r o u n d - c o l o r :   r g b a ( 2 1 0 ,   3 5 ,   4 2 ,   0 . 8 5 ) ; 
         c o l o r :   # f f f ; 
         p a d d i n g :   4 p x   1 2 p x ; 
         b o r d e r - r a d i u s :   2 0 p x ; 
         f o n t - s i z e :   1 2 p x ; 
         f o n t - w e i g h t :   6 0 0 ; 
         z - i n d e x :   1 0 ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 5 ) ; 
         b a c k d r o p - f i l t e r :   b l u r ( 8 p x ) ; 
         - w e b k i t - b a c k d r o p - f i l t e r :   b l u r ( 8 p x ) ; 
 } 
 
 / *   mr!j_Sϑ  * / 
 [ d a t a - t h e m e = \  
 d a r k \ ]   { 
         - - b g - c o l o r :   # 0 0 0 0 0 0 ; 
         - - s u r f a c e - c o l o r :   # 1 C 1 C 1 E ; 
         - - t e x t - p r i m a r y :   # F 5 F 5 F 7 ; 
         - - t e x t - s e c o n d a r y :   # A 1 A 1 A 6 ; 
         - - t h e m e - r e d - l i g h t :   r g b a ( 2 1 0 ,   3 5 ,   4 2 ,   0 . 1 5 ) ; 
         - - s h a d o w - c a r d :   0   4 p x   2 4 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 4 ) ; 
         - - s h a d o w - h o v e r :   0   1 2 p x   3 2 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 6 ) ; 
 } 
 
 [ d a t a - t h e m e = \ d a r k \ ]   . n a v b a r   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 2 8 ,   2 8 ,   3 0 ,   0 . 8 ) ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
 } 
 
 [ d a t a - t h e m e = \ d a r k \ ]   . a r t i c l e - c o m m e n t , 
 [ d a t a - t h e m e = \ d a r k \ ]   . d e t a i l - c o m m e n t , 
 [ d a t a - t h e m e = \ d a r k \ ]   . c o m m e n t - i t e m , 
 [ d a t a - t h e m e = \ d a r k \ ]   . f i l t e r - b a r , 
 [ d a t a - t h e m e = \ d a r k \ ]   . s e a r c h - f o r m   i n p u t , 
 [ d a t a - t h e m e = \ d a r k \ ]   . c a t e g o r y - t a g   { 
         b a c k g r o u n d - c o l o r :   # 2 C 2 C 2 E ; 
         b o r d e r - c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
 } 
 
 [ d a t a - t h e m e = \ d a r k \ ]   . c a r d - c o v e r   { 
         b a c k g r o u n d - c o l o r :   # 2 C 2 C 2 E ; 
 } 
 
 [ d a t a - t h e m e = \ d a r k \ ]   . v i s i t o r - s t a t s   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 )   ! i m p o r t a n t ; 
 } 
 
 [ d a t a - t h e m e = \ d a r k \ ]   . s k e l e t o n - c o v e r , 
 [ d a t a - t h e m e = \ d a r k \ ]   . s k e l e t o n - t i t l e , 
 [ d a t a - t h e m e = \ d a r k \ ]   . s k e l e t o n - m e t a , 
 [ d a t a - t h e m e = \ d a r k \ ]   . s k e l e t o n - t e x t   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 9 0 d e g ,   # 2 C 2 C 2 E   0 p x ,   # 3 A 3 A 3 C   4 0 p x ,   # 2 C 2 C 2 E   8 0 p x ) ; 
         b a c k g r o u n d - s i z e :   2 0 0 p x   1 0 0 % ; 
 } 
  
 