/* skin/css/common.css */
:root {
    --zen-green: #73A96E;
    --zen-light-green: #E8F5E9;
    --zen-bg: #F9F8F4;
    --zen-card: #FFFFFF;
    --zen-text: #3E4E3A;
    --zen-sub: #8B9E87;
    
    /* 叶片圆角 DNA */
    --radius-leaf: 16px 4px 16px 4px;
    --radius-pill: 50px;
    
    --shadow-paper: 0 4px 12px rgba(62, 78, 58, 0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; min-width: 0;}
body, h1, h2, h3,h4,h5, p, ul, li, input, button { margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--zen-bg);
    color: var(--zen-text);
    line-height: 1.6;
    padding-bottom: 90px;
}

.zen-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 100vh;
}

/* --- 顶部 Header (胶囊搜索) --- */
.zen-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(249, 248, 244, 0.95);
    backdrop-filter: blur(5px);
}
.zen-logo {
    font-size: 20px;
    font-family: "Songti SC", serif; /* 宋体 */
    font-weight: 900;
    color: var(--zen-green);
    margin-right: 15px;
    letter-spacing: 1px;
}
.zen-logo img{
    height: 45px;
}
.zen-search-form {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    height: 38px;
    border-radius: var(--radius-pill);
    padding: 0 5px 0 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.zen-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--zen-text);
}
.zen-search-btn {
    width: 30px; height: 30px;
    background: var(--zen-green);
    border: none; border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

/* --- 通用组件 --- */
/* 叶子卡片 */
.leaf-card {
    background: var(--zen-card);
    border-radius: var(--radius-leaf);
    box-shadow: var(--shadow-paper);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

/* 标题 */
.zen-title {
    display: flex; justify-content: space-between; align-items: center;
    margin: 25px 5px 15px;
}
.zt-txt {
    font-size: 18px; font-weight: bold; color: var(--zen-text);
    font-family: "Songti SC", serif;
    position: relative;
    padding-left: 15px;
}
.zt-txt::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px; background: var(--zen-green); border-radius: 50%; opacity: 0.5;
}
.zt-more { font-size: 12px; color: var(--zen-sub); letter-spacing: 1px; }

/* 按钮 */
.btn-zen {
    background: var(--zen-green);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-leaf);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-zen:hover { opacity: 0.9; transform: translateY(-1px); }

/* SVG Icons */
.icon-z {
    width: 20px; height: 20px;
    background-color: currentColor;
    mask-size: contain; -webkit-mask-size: contain;
    mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
    mask-position: center; -webkit-mask-position: center;
}
.i-home { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E"); }
.i-game { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'%3E%3C/rect%3E%3Cpath d='M6 12h4'%3E%3C/path%3E%3Cpath d='M8 10v4'%3E%3C/path%3E%3Cline x1='15' y1='13' x2='15.01' y2='13'%3E%3C/line%3E%3Cline x1='18' y1='11' x2='18.01' y2='11'%3E%3C/line%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'%3E%3C/rect%3E%3Cpath d='M6 12h4'%3E%3C/path%3E%3Cpath d='M8 10v4'%3E%3C/path%3E%3Cline x1='15' y1='13' x2='15.01' y2='13'%3E%3C/line%3E%3Cline x1='18' y1='11' x2='18.01' y2='11'%3E%3C/line%3E%3C/svg%3E"); }
.i-soft { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E"); }
.i-rank { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9v12'%3E%3C/path%3E%3Cpath d='M18 13v8'%3E%3C/path%3E%3Cpath d='M12 3v18'%3E%3C/path%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9v12'%3E%3C/path%3E%3Cpath d='M18 13v8'%3E%3C/path%3E%3Cpath d='M12 3v18'%3E%3C/path%3E%3C/svg%3E"); }
.i-search { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E"); }
.i-back { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'%3E%3C/line%3E%3Cpolyline points='12 19 5 12 12 5'%3E%3C/polyline%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'%3E%3C/line%3E%3Cpolyline points='12 19 5 12 12 5'%3E%3C/polyline%3E%3C/svg%3E"); }

/* --- 底部导航 (竹节风) --- */
.bamboo-nav {
    position: fixed;
    bottom: 20px; left: 20px; right: 20px;
    height: 64px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(115, 169, 110, 0.15);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}
.nav-leaf {
    flex: 1; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #ccc;
    position: relative;
    transition: color 0.3s;
}
.nav-leaf.active { color: var(--zen-green); }
.nav-leaf.active::after {
    content: ''; position: absolute; bottom: 8px; width: 4px; height: 4px;
    background: var(--zen-green); border-radius: 50%;
}
.nav-ico { width: 22px; height: 22px; margin-bottom: 3px; }
.nav-txt { font-size: 10px; font-weight: bold; }

/* 通用横向滚动 (用于首页和详情页推荐) */
.zen-scroll-x {
    display: flex; gap: 15px; overflow-x: auto;
    padding: 0 5px 15px; /* 底部padding防截断 */
}

.zen-icon-col {
    flex: 0 0 60px; text-align: center;
}
.zen-icon-col img {
    width: 50px; height: 50px; border-radius: 50%;
    margin: 0 auto 5px; border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.zen-icon-col span {     font-size: 12px;
    color: var(--zen-text);
    height: 38px;
    display: block;
    overflow: hidden; }