/* skin/css/common.css */
:root {
    --pop-yellow: #ffe600;
    --pop-pink: #ff0055;
    --pop-blue: #0099ff;
    --pop-white: #ffffff;
    --pop-black: #000000;
    
    --border-width: 3px;
    --shadow-offset: 4px;
    
    --radius-comic: 12px;
}

* { 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: "Chalkboard SE", "Comic Sans MS", "Microsoft YaHei", sans-serif;
    background-color: var(--pop-yellow);
    background-image: radial-gradient(var(--pop-black) 15%, transparent 16%);
    background-size: 20px 20px;
    color: var(--pop-black);
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* 核心容器 */
.comic-page {
    max-width: 600px;
    margin: 0 auto;
    background: transparent;
    min-height: 100vh;
    padding: 10px;
}

/* 顶部栏 */
.pop-header {
    background: var(--pop-white);
    border: var(--border-width) solid var(--pop-black);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--pop-black);
    border-radius: var(--radius-comic);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 10px;
    z-index: 100;
    margin-bottom: 20px;
}
.logo-badge {
    color: var(--pop-white);
    font-weight: 900;
    font-size: 18px;
    margin-right: 10px;
}
.logo-badge img{
    height: 52px;
}
.header-input-wrap {
    flex: 1;
    display: flex;
    background: #eee;
    border: 2px solid #000;
    border-radius: 20px;
    height: 36px;
    align-items: center;
    padding: 0 10px;
}
.header-input-wrap input {
    background: transparent; border: none; width: 100%; font-weight: bold; outline: none;
}

/* 模块标题 */
.comic-title-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin: 30px 5px 15px;
}
.comic-title {
    font-size: 18px; font-weight: 900;
    background: var(--pop-white);
    border: 2px solid var(--pop-black);
    padding: 5px 15px;
    box-shadow: 3px 3px 0 var(--pop-pink);
    border-radius: 20px;
}
.comic-more { font-weight: 900; border-bottom: 2px solid var(--pop-black); }

/* 底部导航 (修改版：去除Emoji) */
.dock-nav {
    position: fixed;
    bottom: 20px; left: 20px; right: 20px;
    max-width: 560px;
    margin: 0 auto;
    background: var(--pop-black);
    border-radius: 40px;
    height: 64px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 3px solid var(--pop-white);
}
.dock-item {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    display: flex; flex-direction: column; align-items: center;
    opacity: 0.6;
    transition: all 0.2s;
    width: 50px;
}
.dock-item.active {
    opacity: 1;
    transform: translateY(-8px) scale(1.1);
    color: var(--pop-yellow);
}

/* 导航 SVG 图标定义 */
.dock-icon {
    width: 24px;
    height: 24px;
    background-color: #fff; /* 默认白色图标 */
    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: 4px;
}
.dock-item.active .dock-icon {
    background-color: var(--pop-yellow); /* 激活变黄 */
}

/* SVG Paths (粗线条风格) */
.icon-home { -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.5' 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"); }
.icon-game { -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.5' 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"); }
.icon-soft { -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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Crect x='3' y='14' width='7' height='7'%3E%3C/rect%3E%3C/svg%3E"); }
.icon-rank { -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.5' 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"); }

/* 按钮通用 */
.btn-pop {
    background: var(--pop-blue);
    color: #fff;
    border: 2px solid var(--pop-black);
    border-radius: 8px;
    padding: 5px 15px;
    font-weight: 900;
    box-shadow: 3px 3px 0 var(--pop-black);
    transition: all 0.1s;
    cursor: pointer;
}
.btn-pop:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--pop-black);
}