/*
Theme Name: portal1
Author: WP
Version: 1.0
Description: 全新随机色彩 WordPress 门户模板
*/
:root {
    --main: <?php
    $colors = ["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6"];
    echo $colors[array_rand($colors)];
    ?>;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
}
* { margin:0; padding:0; box-sizing:border-box }
body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #1e293b;
    background: #f1f5f9;
}
a { text-decoration:none; color:var(--dark) }
a:hover { color:var(--main) }
img { max-width:100%; height:auto; display:block }
ul { list-style:none }

/* 容器 */
.fresh-wrap { max-width:1200px; margin:0 auto; padding:0 16px }

/* 头部 */
.fresh-header { background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.05); padding:16px 0 }
.fresh-head { display:flex; justify-content:space-between; align-items:center }
.fresh-logo { font-size:22px; font-weight:700; color:var(--main) }

/* 导航 + 面包屑 融合美化 */
.fresh-nav-bar {
    background:var(--main);
    padding:14px 0;
    margin-top:10px;
}
.fresh-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.fresh-nav-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.fresh-nav-cats a {
    color: #fff;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.fresh-nav-cats a:hover {
    background: rgba(255,255,255,0.15);
}
.fresh-crumb {
    font-size:14px;
    color:rgba(255,255,255,0.85);
    padding: 6px 0;
}
.fresh-crumb a {
    color:rgba(255,255,255,0.95);
}

/* 布局 */
.fresh-row { display:flex; gap:25px; margin:30px 0 }
.fresh-main { flex:1 }
.fresh-side { width:300px }
@media(max-width:900px) {
    .fresh-row { flex-direction:column }
    .fresh-side { width:100% }
}

/* 文章卡片 */
.fresh-card {
    background:#fff; border-radius:10px; padding:22px; margin-bottom:18px;
    display:flex; gap:20px; box-shadow:0 1px 2px rgba(0,0,0,.03)
}
.fresh-card-img { width:190px; height:130px; flex-shrink:0; border-radius:6px; overflow:hidden }
.fresh-card-img img { width:100%; height:100%; object-fit:cover }
.fresh-card-title { font-size:18px; font-weight:500; margin-bottom:6px }
.fresh-card-info { font-size:13px; color:var(--gray); margin-bottom:8px }
.fresh-card-desc { font-size:14px;
.fresh-crumb {
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    color: #666;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.fresh-crumb a {
    color: #333;
}
.fresh-crumb a:hover {
    color: var(--main);
}