/* skin/css/common.css */
:root {
    --clay-primary: #FF9EAA;
    --clay-blue: #89CFF0;
    --clay-bg: #F0F4F8;
    --clay-text: #4A5568;
    --clay-sub: #A0AEC0;
    
    /* 陶土质感阴影 DNA */
    --shadow-clay: 
        8px 8px 16px rgba(166, 180, 200, 0.4), 
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    --shadow-inner: 
        inset 4px 4px 8px rgba(166, 180, 200, 0.2), 
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    
    --radius-bubble: 24px;
}

* { 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: "Varela Round", "PingFang SC", "Microsoft YaHei", sans-serif; /* 圆润字体优先 */
    background-color: var(--clay-bg);
    color: var(--clay-text);
    line-height: 1.5;
    padding-bottom: 100px;
}

.clay-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
}

/* --- 1. 顶部 Header (凹陷搜索) --- */
.clay-header {
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(240, 244, 248, 0.9);
    backdrop-filter: blur(10px);
    margin: 0 -20px; padding: 0 20px;
}
.header-brand {
    font-size: 22px;
    font-weight: 900;
    color: var(--clay-primary);
    margin-right: 15px;
    text-shadow: 2px 2px 0px #fff;
    letter-spacing: 1px;
}
.header-brand img{
    height: 49px;
}
/* 搜索框：做成凹陷效果 */
.search-dent {
    flex: 1;
    height: 44px;
    background: var(--clay-bg);
    border-radius: 22px;
    display: flex;
    align-items: center;
    padding: 0 6px 0 15px;
    /* 凹陷阴影 */
    box-shadow: inset 4px 4px 8px rgba(166, 180, 200, 0.3), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.8);
}
.search-dent input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--clay-text);
    font-weight: bold;
}
.search-submit {
    width: 34px; height: 34px;
    background: var(--clay-primary);
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* --- 2. 通用组件 --- */
/* 陶土卡片 */
.clay-card {
    background: #fff;
    border-radius: var(--radius-bubble);
    box-shadow: var(--shadow-clay);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.4);
}

/* 标题 */
.bubble-title {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; padding: 0 10px;
}
.bt-text {
    font-size: 18px; font-weight: 800; color: var(--clay-text);
}
.bt-more {
    font-size: 12px; color: var(--clay-blue); font-weight: bold;
    background: #e1f0fa; padding: 4px 12px; border-radius: 15px;
}

/* 按钮 */
.btn-clay {
    background: var(--clay-primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px; font-weight: bold;
    box-shadow: 4px 4px 10px rgba(255, 158, 170, 0.4);
    cursor: pointer;
    transition: transform 0.1s;
}
.btn-clay:active {
    transform: scale(0.95);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1);
}

/* 横向滚动 (Bubble Row) */
.bubble-scroll {
    display: flex; gap: 20px; overflow-x: auto;
    padding: 10px 10px 25px 10px; margin: 0 -10px;
}

.bubble-item {
    flex: 0 0 70px; text-align: center;
}
.bubble-item a { display: block; width: 100%; display: block; overflow: hidden;}
.bubble-item img { 
    width: 60px; height: 60px; border-radius: 22px; /* 超大圆角 */
    margin: 0 auto 8px; 
    box-shadow: 5px 5px 10px rgba(166, 180, 200, 0.3);
}
.bubble-item span { font-size: 12px; font-weight: bold; color: var(--clay-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: block;}

/* --- 3. 底部导航 (悬浮胶囊) --- */
.pill-nav {
    position: fixed;
    bottom: 25px; left: 30px; right: 30px;
    max-width: 540px; margin: 0 auto;
    height: 66px;
    background: #fff;
    border-radius: 33px;
    /* 强烈的悬浮阴影 */
    box-shadow: 0 10px 25px rgba(166, 180, 200, 0.5);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}
.nav-pill {
    flex: 1; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--clay-sub); transition: all 0.2s;
}
.nav-pill.active { color: var(--clay-primary); transform: translateY(-4px); }
.nav-icon {
    width: 24px; height: 24px;
    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;
    margin-bottom: 2px;
}
.nav-txt { font-size: 10px; font-weight: 800; }

/* Icons */
.ic-home { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%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='currentColor'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E"); }
.ic-game { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2z'/%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='currentColor'%3E%3Cpath d='M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2z'/%3E%3C/svg%3E"); }
.ic-soft { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z'/%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='currentColor'%3E%3Cpath d='M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z'/%3E%3C/svg%3E"); }
.ic-rank { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%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='currentColor'%3E%3Cpath d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%3E%3C/svg%3E"); }
.ic-search { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%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='currentColor'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E"); }
.ic-back { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%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='currentColor'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E"); }