/* ============================================
   WG17 MacCMS - 暖阳橙韵风格
   Warm Sunset Theme v2.0 (MacCMS Edition)
   基于 WG Spider17 原始设计
   ============================================ */

:root {
    --orange: #f97316;
    --amber: #f59e0b;
    --coral: #fb7185;
    --peach: #fda4af;
    --gold: #eab308;
    
    --brown-dark: #78350f;
    --brown: #92400e;
    --brown-light: #b45309;
    
    --bg: #fffbf5;
    --bg-warm: #fef7ed;
    --bg-card: #ffffff;
    --bg-cream: #fefcf3;
    
    --txt: #451a03;
    --txt-sub: #78350f;
    --txt-light: #a16207;
    --txt-white: #ffffff;
    
    --border: #fed7aa;
    --border-light: #ffedd5;
    
    --grad-sun: linear-gradient(135deg, #f97316 0%, #f59e0b 50%, #fbbf24 100%);
    --grad-warm: linear-gradient(135deg, #fb7185 0%, #f97316 100%);
    --grad-soft: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    
    --shadow: 0 4px 20px rgba(249,115,22,0.15);
    --shadow-lg: 0 8px 30px rgba(249,115,22,0.2);
    --shadow-card: 0 2px 12px rgba(120,53,15,0.08);
    
    --w: 1180px;
    --nav: 68px;
    --r: 16px;
    --r-lg: 24px;
    --r-full: 100px;
}

/* 基础 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--txt);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrapper {
    width: 100%;
    max-width: var(--w);
    margin: 0 auto;
    padding: 0 20px;
}

/* 渐变文字 */
.sun-text {
    background: var(--grad-sun);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   导航
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav);
    background: rgba(255,251,245,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
}

.navbar-inner {
    max-width: var(--w);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img { height: 36px; }
.brand span {
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--txt-sub);
    border-radius: var(--r);
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--orange);
    background: var(--bg-warm);
}

.nav-cta {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-white);
    background: var(--grad-sun);
    border-radius: var(--r-full);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-burger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-warm);
    border-radius: var(--r);
}

.nav-burger i {
    width: 20px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-burger.active i:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-burger.active i:nth-child(2) { opacity: 0; }
.nav-burger.active i:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ============================================
   首页 - 主视觉
   ============================================ */
.banner {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.banner .wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.banner-text { max-width: 500px; }

.banner-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    margin-bottom: 20px;
}

.banner-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--txt);
    margin-bottom: 18px;
}

.banner-desc {
    font-size: 17px;
    color: var(--txt-sub);
    line-height: 1.8;
    margin-bottom: 32px;
}

.banner-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--r-full);
    transition: all 0.3s;
}

.btn-sun {
    color: var(--txt-white);
    background: var(--grad-sun);
    box-shadow: var(--shadow);
}

.btn-sun:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-soft {
    color: var(--txt-sub);
    background: var(--bg-card);
    border: 2px solid var(--border);
}

.btn-soft:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* 右侧卡片 */
.banner-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.b-card {
    padding: 26px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.b-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--orange);
}

.b-card .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    padding: 10px;
    background: var(--grad-soft);
    border-radius: var(--r);
}

.b-card .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.b-card h4 {
    font-size: 30px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 4px;
}

.b-card p {
    font-size: 14px;
    color: var(--txt-light);
}

/* ============================================
   功能区
   ============================================ */
.features {
    padding: 90px 0;
    background: var(--bg-card);
}

.sec-header {
    text-align: center;
    margin-bottom: 50px;
}

.sec-header span {
    display: inline-block;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    background: var(--bg-warm);
    border-radius: var(--r-full);
    margin-bottom: 14px;
}

.sec-header h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 10px;
}

.sec-header p {
    font-size: 16px;
    color: var(--txt-light);
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.feat-box {
    padding: 30px 22px;
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    text-align: center;
    transition: all 0.3s;
}

.feat-box:hover {
    background: var(--bg-card);
    border-color: var(--orange);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.feat-box .ico {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    padding: 14px;
    background: var(--grad-sun);
    border-radius: var(--r);
}

.feat-box .ico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feat-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--txt);
    margin-bottom: 8px;
}

.feat-box p {
    font-size: 14px;
    color: var(--txt-light);
    line-height: 1.6;
}

/* ============================================
   数据统计
   ============================================ */
.stats {
    padding: 70px 0;
    background: var(--grad-sun);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    color: var(--txt-white);
}

.stat-item .pic {
    width: 80px;
    height: 80px;
    margin: 0 auto 14px;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.4);
}

.stat-item .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-item strong {
    display: block;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 15px;
    opacity: 0.95;
}

/* ============================================
   文章列表
   ============================================ */
.articles {
    padding: 90px 0;
    background: var(--bg);
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.art-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.art-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.art-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    flex-shrink: 0;
}

.art-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.art-card:hover .art-img img {
    transform: scale(1.06);
}

.art-img time {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--txt-white);
    background: var(--orange);
    border-radius: var(--r-full);
}

.art-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.art-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--txt);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-body h3:hover { color: var(--orange); }

.art-body p {
    font-size: 14px;
    color: var(--txt-light);
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
}

.art-link:hover { text-decoration: underline; }

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 90px 0;
    background: var(--bg-warm);
}

.cta-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 55px 40px;
    text-align: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
}

.cta-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 12px;
}

.cta-card > p {
    font-size: 16px;
    color: var(--txt-light);
    margin-bottom: 26px;
}

.cta-card .btn { padding: 16px 32px; }

.cta-tags {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 22px;
}

.cta-tags span {
    font-size: 14px;
    font-weight: 500;
    color: var(--orange);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    padding: 55px 0 22px;
    background: var(--brown-dark);
    color: rgba(255,255,255,0.85);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin: 14px 0 18px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--r);
    font-size: 16px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.footer-col h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--amber);
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    padding: 5px 0;
    opacity: 0.8;
    transition: all 0.2s;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--amber);
}

.footer-bottom {
    padding-top: 22px;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

/* ============================================
   列表页 - 头部
   ============================================ */
.page-header {
    padding: 120px 0 45px;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--txt-light);
    margin-bottom: 14px;
}

.breadcrumb a:hover { color: var(--orange); }

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 8px;
}

.page-header > .wrapper > p {
    font-size: 15px;
    color: var(--txt-light);
}

/* 列表区 */
.list-area {
    padding: 45px 0 80px;
    background: var(--bg);
}

.list-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: flex-start;
}

.list-main { min-width: 0; }

.list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 36px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--orange);
}

.card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-img .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--txt-white);
    background: var(--grad-sun);
    border-radius: var(--r-full);
}

.card-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info time {
    font-size: 13px;
    color: var(--txt-light);
}

.card-info h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--txt);
    margin: 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-info h2:hover { color: var(--orange); }

.card-info p {
    font-size: 14px;
    color: var(--txt-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pager a {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--txt-sub);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: all 0.25s;
}

.pager a:hover,
.pager a.active {
    color: var(--txt-white);
    background: var(--grad-sun);
    border-color: transparent;
}

/* ============================================
   侧边栏
   ============================================ */
.sidebar {
    position: sticky;
    top: 85px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: 22px;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--txt);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

/* 热门列表 */
.hot-list li { margin-bottom: 14px; }
.hot-list li:last-child { margin-bottom: 0; }

.hot-list a {
    display: flex;
    gap: 12px;
}

.hot-list .thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--r);
    overflow: hidden;
}

.hot-list .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-list .txt { flex: 1; min-width: 0; }

.hot-list .txt h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--txt);
    margin-bottom: 4px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-list a:hover .txt h4 { color: var(--orange); }

.hot-list .txt time {
    font-size: 12px;
    color: var(--txt-light);
}

/* 标签 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags a {
    padding: 6px 14px;
    font-size: 13px;
    color: var(--txt-sub);
    background: var(--bg-warm);
    border-radius: var(--r-full);
    transition: all 0.25s;
}

.tags a:hover {
    color: var(--txt-white);
    background: var(--grad-sun);
}

/* 联系widget */
.widget-cta {
    background: var(--grad-sun);
    border: none;
    text-align: center;
    color: var(--txt-white);
}

.widget-cta .widget-title {
    justify-content: center;
    color: var(--txt-white);
    border-bottom-color: rgba(255,255,255,0.25);
}

.widget-cta p {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 4px;
}

.widget-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    background: var(--bg-card);
    border-radius: var(--r-full);
    transition: all 0.25s;
}

.widget-cta .cta-btn:hover {
    transform: scale(1.05);
}

/* ============================================
   内容页
   ============================================ */
.article-area {
    padding: 35px 0 80px;
    background: var(--bg);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: flex-start;
}

.article-main { min-width: 0; }

.article-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: 40px;
}

.article-head {
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.article-head h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--txt);
    line-height: 1.4;
    margin-bottom: 14px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
    color: var(--txt-light);
}

.article-meta a { color: var(--orange); }

/* 摘要 */
.article-summary {
    display: flex;
    gap: 12px;
    padding: 18px;
    background: var(--bg-warm);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--r) var(--r) 0;
    margin-bottom: 24px;
}

.article-summary i { font-style: normal; font-size: 18px; }

.article-summary p {
    font-size: 15px;
    color: var(--txt-sub);
    line-height: 1.7;
}

/* 特色图片 */
.art-featured-img {
    margin: 24px auto;
    text-align: center;
}

.art-featured-img img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
}

/* 正文 */
.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--txt);
}

.article-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--orange);
    margin: 34px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--txt);
    margin: 28px 0 12px;
}

.article-content p {
    margin: 14px 0;
    color: var(--txt-sub);
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
    margin: 28px auto !important;
    display: block !important;
    border-radius: 12px;
}

.article-content p:has(img) {
    text-align: center;
}

.article-content a {
    color: var(--orange);
    text-decoration: underline;
}

.article-content ul, .article-content ol {
    padding-left: 24px;
    margin: 14px 0;
}

.article-content li {
    margin: 8px 0;
    color: var(--txt-sub);
}

.article-content blockquote {
    margin: 22px 0;
    padding: 18px 22px;
    background: var(--bg-warm);
    border-left: 4px solid var(--amber);
    border-radius: 0 var(--r) var(--r) 0;
    color: var(--txt-sub);
}

.article-content table {
    width: 100%;
    margin: 22px 0;
    border-collapse: collapse;
    border-radius: var(--r);
    overflow: hidden;
}

.article-content th {
    background: var(--grad-sun);
    color: var(--txt-white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--txt-sub);
}

.article-content tr:hover {
    background: var(--bg-warm);
}

/* 文章底部 */
.article-foot {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.article-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.article-btns button {
    padding: 10px 18px;
    font-size: 14px;
    color: var(--txt-sub);
    background: var(--bg-warm);
    border-radius: var(--r-full);
    transition: all 0.25s;
}

.article-btns button:hover {
    color: var(--txt-white);
    background: var(--grad-sun);
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags strong {
    font-size: 14px;
    color: var(--txt);
}

.article-tags a {
    padding: 5px 14px;
    font-size: 13px;
    color: var(--txt-sub);
    background: var(--bg-warm);
    border-radius: var(--r-full);
    transition: all 0.25s;
}

.article-tags a:hover {
    color: var(--txt-white);
    background: var(--grad-sun);
}

/* 相关推荐 */
.related {
    margin-top: 40px;
}

.related h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--txt);
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: var(--r);
    transition: all 0.25s;
}

.related-item:hover {
    background: var(--bg-card);
    border-color: var(--orange);
}

.related-item .thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--r);
    overflow: hidden;
}

.related-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item .txt h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--txt);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item:hover .txt h4 { color: var(--orange); }

.related-item .txt time {
    font-size: 12px;
    color: var(--txt-light);
}

/* 作者 */
.widget-author {
    text-align: center;
}

.widget-author .avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--orange);
    padding: 2px;
}

.widget-author .avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-warm);
    border-radius: 50%;
}

.widget-author h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--txt);
    margin-bottom: 4px;
}

.widget-author p {
    font-size: 13px;
    color: var(--txt-light);
    margin-bottom: 14px;
}

.widget-author .follow {
    display: inline-flex;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-white);
    background: var(--grad-sun);
    border-radius: var(--r-full);
    transition: all 0.25s;
}

.widget-author .follow:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ============================================
   搜索框（MacCMS新增）
   ============================================ */
.search-box {
    margin-bottom: 30px;
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--txt);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--r-full);
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.search-box input[type="text"]:focus {
    border-color: var(--orange);
    box-shadow: var(--shadow);
}

.search-box input[type="text"]::placeholder {
    color: var(--txt-light);
}

.search-box .btn {
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   响应式 - 平板
   ============================================ */
@media (max-width: 1024px) {
    .banner .wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .banner-text { max-width: 100%; }
    .banner-btns { justify-content: center; }
    .banner-cards { max-width: 450px; margin: 0 auto; }
    
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .art-grid { grid-template-columns: repeat(2, 1fr); }
    
    .list-layout, .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   响应式 - 移动端
   ============================================ */
@media (max-width: 768px) {
    :root { --nav: 60px; }
    .wrapper { padding: 0 16px; }
    
    /* 移动端导航 - 立即重置 */
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .nav-cta { display: none; }
    
    .banner { padding: 110px 0 60px; }
    .banner-title { font-size: 30px; }
    .banner-desc { font-size: 15px; }
    .banner-btns { flex-direction: column; }
    .banner-btns .btn { width: 100%; }
    .banner-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
    .b-card { padding: 20px 16px; }
    .b-card h4 { font-size: 24px; }
    
    .features { padding: 60px 0; }
    .sec-header h2 { font-size: 26px; }
    .feat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .feat-box { padding: 24px 16px; }
    
    .stats { padding: 50px 0; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-item .pic { width: 64px; height: 64px; }
    .stat-item strong { font-size: 26px; }
    
    .articles { padding: 60px 0; }
    .art-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .cta { padding: 60px 0; }
    .cta-card { padding: 40px 20px; }
    .cta-card h2 { font-size: 22px; }
    .cta-tags { flex-direction: column; gap: 10px; }
    
    .page-header { padding: 95px 0 35px; }
    .page-header h1 { font-size: 26px; }
    
    .list-area { padding: 35px 0 60px; }
    .list-grid { grid-template-columns: 1fr; gap: 16px; }
    .sidebar { display: none; }
    
    .pager a { min-width: 36px; height: 36px; font-size: 13px; padding: 0 10px; }
    
    .article-area { padding: 25px 0 60px; }
    .article-box { padding: 26px 18px; }
    .article-head h1 { font-size: 22px; }
    .article-meta { gap: 12px; }
    .article-content h2 { font-size: 20px; }
    .related-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    
    .search-box form { flex-direction: column; }
    .search-box .btn { width: 100%; }
}

/* 移动端菜单样式 - 暖阳风格 */
@media (max-width: 768px) {
    nav.nav-links.show,
    .nav-links.show,
    #navLinks.show {
        display: flex !important;
        position: fixed !important;
        top: var(--nav) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        background: #fffbf5 !important;
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
        z-index: 10000 !important;
        border-top: 2px solid var(--orange) !important;
        box-shadow: 0 10px 30px rgba(120,53,15,0.15) !important;
    }
    
    nav.nav-links.show a,
    .nav-links.show a,
    #navLinks.show a {
        color: #451a03 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        padding: 16px 24px !important;
        text-align: center !important;
        border-bottom: 1px solid #ffedd5 !important;
        border-radius: 0 !important;
        background: #fffbf5 !important;
        display: block !important;
    }
    
    nav.nav-links.show a:hover,
    .nav-links.show a:hover,
    #navLinks.show a:hover {
        background: #fef7ed !important;
        color: #f97316 !important;
    }
}

@media (max-width: 480px) {
    .banner-title { font-size: 26px; }
    .banner-cards { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .sec-header h2 { font-size: 22px; }
    .page-header h1 { font-size: 22px; }
    .article-head h1 { font-size: 20px; }
}