/* 青苗计划 前台样式 - 游戏立体风(主题变量版,cookie切换由theme.js实现) */
/* ========== 全局:禁止下拉橡皮筋效果(Android WebView bounce) ========== */
html,body{overscroll-behavior-y:contain;-webkit-overscroll-behavior-y:contain;}
/* ========== 全局:锁定字体,不被手机系统大字模式/浏览器字号设置放大(100%等效none,保证报告截图排版固定) ========== */
html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%;}

/* ========== 全站主题变量:蓝(默认)/红/绿/黄/深色 html[data-theme]控制 ========== */
/* 色板映射:色1=主色&顶栏底色(--cc-main/--cc-bar-bg) 色2=hover深一档 色3=描边/立体底边 色4=阴影深色 */
:root,
html[data-theme="blue"] {
    --cc-main: #48a9f6;
    --cc-main-deep: #3f94d9;
    --cc-bar-bg: #48a9f6;
    --cc-bar-border: #3f7eb6;
    --cc-bar-text: #fff;
    --cc-card: #fff;
    --cc-text-main: #333;
    --cc-text-2: #666;
    --cc-text-3: #999;
    --cc-warm-light: #fff5e0;
    --cc-page-tint: transparent;
    --cc-input-bg: #f0f6fa;
    --cc-shadow: rgba(63, 126, 182, .4);
    --cc-shadow2: rgba(63, 126, 182, .5);
    --cc-text: #33586e;
    --cc-tag-text: #2b7cc4;
    --cc-main-18: rgba(72, 169, 246, .18);
    --cc-main-25: rgba(72, 169, 246, .25);
    --cc-main-40: rgba(72, 169, 246, .4);
    --cc-main-light: #e8f4fe;
    --cc-border: #cfe5f8;
    --cc-border-light: #e2f0fc;
    --cc-grad-light: linear-gradient(135deg, #e2f0fc, #cde5f8);
    --cc-grad-fill: linear-gradient(90deg, #74bdf8, #48a9f6);
    --cc-grad-bar: linear-gradient(135deg, #7cc2f8, #48a9f6);
    /* 背景渐变(叠在透明底图body.png下层,上深下浅) */
    --cc-bg-gradient: linear-gradient(180deg, rgba(72, 169, 246, .32) 0%, rgba(72, 169, 246, .12) 42%, rgba(72, 169, 246, 0) 75%);
    /* 打卡任务状态色(完成/未完成) */
    --cc-ok-bg: #e3f8e8;
    --cc-ok: #52c41a;
    --cc-err-bg: #fde9e4;
    --cc-err: #ff5722;
    /* 生日提醒马卡龙色(避开蓝色主色) */
    --cc-bd-1: rgba(255, 214, 224, .94);
    --cc-bd-2: rgba(206, 247, 227, .94);
    --cc-bd-3: rgba(226, 214, 255, .94);
}

html[data-theme="red"] {
    --cc-main: #ff4a6f;
    --cc-main-deep: #e24261;
    --cc-bar-bg: #ff4a6f;
    --cc-bar-border: #dd3e5a;
    --cc-bar-text: #fff;
    --cc-card: #fff;
    --cc-text-main: #333;
    --cc-text-2: #666;
    --cc-text-3: #999;
    --cc-warm-light: #fff5e0;
    --cc-page-tint: transparent;
    --cc-input-bg: #f0f6fa;
    --cc-shadow: rgba(221, 62, 90, .4);
    --cc-shadow2: rgba(221, 62, 90, .5);
    --cc-text: #6e3742;
    --cc-tag-text: #d63a5c;
    --cc-main-18: rgba(255, 74, 111, .18);
    --cc-main-25: rgba(255, 74, 111, .25);
    --cc-main-40: rgba(255, 74, 111, .4);
    --cc-main-light: #feecf1;
    --cc-border: #f8d3dc;
    --cc-border-light: #fce3e9;
    --cc-grad-light: linear-gradient(135deg, #fce3e9, #f8ccd7);
    --cc-grad-fill: linear-gradient(90deg, #ff7492, #ff4a6f);
    --cc-grad-bar: linear-gradient(135deg, #ff8099, #ff4a6f);
    --cc-bg-gradient: linear-gradient(180deg, rgba(255, 74, 111, .26) 0%, rgba(255, 74, 111, .10) 42%, rgba(255, 74, 111, 0) 75%);
    --cc-ok-bg: #e3f8e8;
    --cc-ok: #52c41a;
    --cc-err-bg: #fde9e4;
    --cc-err: #ff5722;
    /* 生日提醒马卡龙色(避开粉红主色) */
    --cc-bd-1: rgba(206, 247, 227, .94);
    --cc-bd-2: rgba(255, 236, 214, .94);
    --cc-bd-3: rgba(214, 234, 255, .94);
}

html[data-theme="green"] {
    --cc-main: #08ca9d;
    --cc-main-deep: #06b18c;
    --cc-bar-bg: #08ca9d;
    --cc-bar-border: #01b38b;
    --cc-bar-text: #fff;
    --cc-card: #fff;
    --cc-text-main: #333;
    --cc-text-2: #666;
    --cc-text-3: #999;
    --cc-warm-light: #fff5e0;
    --cc-page-tint: transparent;
    --cc-input-bg: #f0f6fa;
    --cc-shadow: rgba(1, 179, 139, .4);
    --cc-shadow2: rgba(1, 179, 139, .5);
    --cc-text: #2f5c50;
    --cc-tag-text: #059b77;
    --cc-main-18: rgba(8, 202, 157, .18);
    --cc-main-25: rgba(8, 202, 157, .25);
    --cc-main-40: rgba(8, 202, 157, .4);
    --cc-main-light: #e5faf4;
    --cc-border: #c6efe2;
    --cc-border-light: #daf6ee;
    --cc-grad-light: linear-gradient(135deg, #daf6ee, #c2efe0);
    --cc-grad-fill: linear-gradient(90deg, #45d8b6, #08ca9d);
    --cc-grad-bar: linear-gradient(135deg, #5adfc2, #08ca9d);
    --cc-bg-gradient: linear-gradient(180deg, rgba(8, 202, 157, .26) 0%, rgba(8, 202, 157, .10) 42%, rgba(8, 202, 157, 0) 75%);
    --cc-ok-bg: #e3f8e8;
    --cc-ok: #52c41a;
    --cc-err-bg: #fde9e4;
    --cc-err: #ff5722;
    /* 生日提醒马卡龙色(避开绿色主色) */
    --cc-bd-1: rgba(255, 214, 224, .94);
    --cc-bd-2: rgba(255, 236, 214, .94);
    --cc-bd-3: rgba(214, 234, 255, .94);
}

html[data-theme="yellow"] {
    --cc-main: #fac71b;
    --cc-main-deep: #dcb119;
    --cc-bar-bg: #fac71b;
    --cc-bar-border: #d9ad0c;
    --cc-bar-text: #fff;
    --cc-card: #fff;
    --cc-text-main: #333;
    --cc-text-2: #666;
    --cc-text-3: #999;
    --cc-warm-light: #fff5e0;
    --cc-page-tint: transparent;
    --cc-input-bg: #f0f6fa;
    --cc-shadow: rgba(217, 173, 12, .4);
    --cc-shadow2: rgba(217, 173, 12, .5);
    --cc-text: #6e5c14;
    --cc-tag-text: #b1890a;
    --cc-main-18: rgba(250, 199, 27, .2);
    --cc-main-25: rgba(250, 199, 27, .28);
    --cc-main-40: rgba(250, 199, 27, .45);
    --cc-main-light: #fdf6dc;
    --cc-border: #f4e7a8;
    --cc-border-light: #faf0c6;
    --cc-grad-light: linear-gradient(135deg, #faf0c6, #f3e396);
    --cc-grad-fill: linear-gradient(90deg, #fdd345, #fac71b);
    --cc-grad-bar: linear-gradient(135deg, #fdd657, #fac71b);
    --cc-bg-gradient: linear-gradient(180deg, rgba(250, 199, 27, .30) 0%, rgba(250, 199, 27, .12) 42%, rgba(250, 199, 27, 0) 75%);
    --cc-ok-bg: #e3f8e8;
    --cc-ok: #52c41a;
    --cc-err-bg: #fde9e4;
    --cc-err: #ff5722;
    /* 生日提醒马卡龙色(避开黄色主色) */
    --cc-bd-1: rgba(255, 214, 224, .94);
    --cc-bd-2: rgba(206, 247, 227, .94);
    --cc-bd-3: rgba(214, 234, 255, .94);
}

html[data-theme="dark"] {
    --cc-main: #4f5273;
    --cc-main-deep: #444a63;
    --cc-bar-bg: #4f5273;
    --cc-bar-border: #414561;
    --cc-bar-text: #fff;
    --cc-card: #3a3d58;
    --cc-text-main: #e8e9f5;
    --cc-text-2: #b9bdd8;
    --cc-text-3: #8f93b5;
    --cc-warm-light: rgba(250, 199, 27, .14);
    --cc-page-tint: #7b7f9e;
    --cc-input-bg: #2f324a;
    --cc-shadow: rgba(24, 26, 43, .5);
    --cc-shadow2: rgba(24, 26, 43, .6);
    --cc-text: #e8e9f5;
    --cc-tag-text: #a5a9d6;
    --cc-main-18: rgba(139, 143, 196, .25);
    --cc-main-25: rgba(139, 143, 196, .35);
    --cc-main-40: rgba(139, 143, 196, .5);
    --cc-main-light: #343750;
    --cc-border: #4a4d6b;
    --cc-border-light: #404362;
    --cc-grad-light: linear-gradient(135deg, #353852, #2b2e45);
    --cc-grad-fill: linear-gradient(90deg, #6c6f95, #4f5273);
    --cc-grad-bar: linear-gradient(135deg, #73769d, #4f5273);
    /* 深色背景渐变:上深下浅(深藏蓝) */
    --cc-bg-gradient: linear-gradient(180deg, rgba(32, 34, 52, .94) 0%, rgba(43, 46, 69, .78) 45%, rgba(58, 61, 88, .58) 80%);
    /* 深色下打卡任务状态色(提亮) */
    --cc-ok-bg: rgba(82, 196, 26, .16);
    --cc-ok: #5fd68a;
    --cc-err-bg: rgba(255, 87, 34, .18);
    --cc-err: #ff8a65;
    /* 生日提醒马卡龙色(避开紫灰主色) */
    --cc-bd-1: rgba(255, 214, 224, .94);
    --cc-bd-2: rgba(206, 247, 227, .94);
    --cc-bd-3: rgba(214, 234, 255, .94);
}
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    /* 背景:透明底图body.png在上,主题渐变(上深下浅)在下;透明区域透出渐变,随主题切换 */
    background-image: url("img/body.png"), var(--cc-bg-gradient);
    background-size: 100% 100%, 100% 100%;
    /* 宽高自动拉满整个视口 */
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    /* 滚动时背景固定，可选项 */
    /* 深色主题下用背景色+混合模式把浅色背景图压暗,浅色主题transparent无影响 */
    background-color: var(--cc-page-tint);
    background-blend-mode: multiply;
    font-family: -apple-system, "Microsoft YaHei", sans-serif;
    color: var(--cc-text);

}

.cc-wrap {
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    

}

/*小清新主题色:三套主题变量见文件顶部:root定义*/
/*游戏立体按钮*/
.game-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: all .08s ease;
    user-select: none;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .16);
}

.game-btn:active {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -2px 0 rgba(0, 0, 0, .2);
    transform: translateY(2px);
}

.btn-green {
    background-color: var(--cc-main);
    color: #fff;
}

.btn-blue {
    background-color: #1e9fff;
    color: #fff;
}

.btn-red {
    background-color: #ff5722;
    color: #fff;
}

/*顶部栏:全宽,内部内容限宽1024px居中*/
.cc-topbar {
    background: var(--cc-bar-bg);
    color: var(--cc-bar-text);
    padding: 14px 0;
    box-sizing: border-box;
    /* 边框不撑大宽度 */
    border-left: 2px solid var(--cc-bar-border);
    /* 左侧实色描边 */
    border-right: 2px solid var(--cc-bar-border);
    /* 右侧实色描边 */
    box-shadow:
        -8px 0 5px 0 var(--cc-shadow),
        8px 0 5px 0 var(--cc-shadow);
    /* 右侧 */
    max-width: 750px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: calc(100% - 14px);
    margin: 0 auto;

}

.cc-topbar-inner {
    padding: 0 14px;
    margin: 0 auto;
}

.cc-stu-tabs {
    position: sticky;
    top: 48px;
    z-index: 99;
}

.cc-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-topbar-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--cc-bar-text);
}

.cc-topbar-id {
    font-size: 12px;
    opacity: .85;
    margin-top: 3px;
    color: var(--cc-bar-text);
}

.cc-topbar-logout {
    font-size: 13px;
    color: var(--cc-bar-text);
    padding: 5px 14px 7px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(0, 0, 0, .2);
}

.cc-topbar-logout:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -1px 0 rgba(0, 0, 0, .15);
    transform: translateY(1px);
}

.cc-topbar-logout-out {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(0, 0, 0, .2);

    background-image: linear-gradient(to right, #f85032 0%, #e73827 51%, #f85032 100%);
    padding: 1px 8px;
    border-radius: 8px;
    padding-top: 1px;
}
.cc-topbar-logout-out:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -1px 0 rgba(0, 0, 0, .15);
    transform: translateY(1px);cursor: pointer;
}
.cc-topbar-logout-out i {
    font-size: 20px;
}

/*子页面顶栏:返回主页按钮(与退出按钮同尺寸,绿色渐变) */
/*右上角消息通知铃铛按钮(与退出按钮同尺寸) */
.cc-topbar-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -3px 0 rgba(0,0,0,.2);background-image:linear-gradient(to right,#4a8bf5 0%,#3576e0 100%);padding:0px 7px 2px 9px;border-radius:8px;margin-right:-5px;}
.cc-topbar-bell:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.15),inset 0 -1px 0 rgba(0,0,0,.15);transform:translateY(1px);}
.cc-topbar-bell i{font-size:20px;}
.cc-topbar-bell .cc-bell-badge{position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;line-height:16px;padding:0 3px;background:#ff4d4f;color:#fff;font-size:10px;font-weight:700;border-radius:8px;text-align:center;display:none;box-shadow:0 1px 4px rgba(0,0,0,.3);}
.cc-topbar-bell .cc-bell-badge.show{display:block;}

.cc-topbar-home-out {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(0, 0, 0, .2);
    background-image: linear-gradient(to right, #43b37e 0%, #43b37e 100%);
    padding: 0px 7px 2px 9px;
    border-radius: 8px;
    margin-right: -5px;

}
.cc-topbar-home-out:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -1px 0 rgba(0, 0, 0, .15);
    transform: translateY(1px);
}
.cc-topbar-home-out i {
    font-size: 20px;
    color: #fff;
}

/*子页面顶栏:返回箭头(返回键在最左,白色)*/
.cc-topbar .cc-back {
    font-size: 30px;
    color: var(--cc-bar-text);
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
}

/*非首页第二层白条:空状态保留高度,与顶部蓝条阴影呼应*/
.cc-stu-tabs:empty {
    min-height: 18px;
}

/*学生Tab*/
.cc-stu-tabs {
    width: calc(100% - 14px);
    background: var(--cc-card);
    border-bottom: 1px solid var(--cc-border-light);
    box-sizing: border-box;
    /* 边框不撑大宽度 */
    border-left: 2px solid var(--cc-bar-border);
    /* 左侧实色描边 */
    border-right: 2px solid var(--cc-bar-border);
    border-bottom: 2px solid var(--cc-bar-border);
    /* 底部描边 */

    /* 底部扩散投影 */
    /* 右侧实色描边 */
    border-radius: 0 0 12px 12px;
    box-shadow:
        0 2px 6px var(--cc-shadow2),
        /* 底部 */
        -8px 0 8px 0px var(--cc-shadow2),
        /* 左侧 */
        8px 0 8px 0px var(--cc-shadow2);
    /* 右侧 */
    max-width: 750px;
    margin: 0 auto;
}

.cc-stu-tabs-inner {
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 20px;
    gap: 8px;

}

.cc-stu-tabs-inner::-webkit-scrollbar {
    display: none;
}

.cc-stu-tab {
    flex-shrink: 0;
    padding: 7px 18px;
    border-radius: 3px;
    font-size: 14px;
    color: var(--cc-text-2);
    background: var(--cc-input-bg);
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .1);
}

.cc-stu-tab:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .08);
}

.cc-stu-tab.active {
    background: var(--cc-main);
    color: #fff;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -4px 0 rgba(0, 0, 0, .2);
}

/*打卡管理-分组选项卡(超管模式)*/
.cc-group-tabs {
    background: var(--cc-card);
    border-bottom: 1px solid var(--cc-border-light);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    padding: 8px 12px;
    gap: 8px;
    margin-bottom: 8px;
    box-sizing: border-box;    margin: 4px 10px 10px;
        border-radius: 10px;
}

.cc-group-tabs::-webkit-scrollbar {
    display: none;
}

.cc-group-tab {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 3px;
    font-size: 14px;
    color: var(--cc-text-2);
    background: var(--cc-input-bg);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .1);
}

.cc-group-tab.active {
    background: var(--cc-main);
    color: #fff;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -4px 0 rgba(0, 0, 0, .2);
}
/*管理员孩子所在组:金色边框+小圆点标记*/
.cc-group-tab.cc-group-tab-my {
    border: 2px solid #FF9800;
    position: relative;
}
.cc-group-tab.cc-group-tab-my::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #FF9800;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255,255,255,.5);
}
.cc-group-tab.cc-group-tab-my.active {
    border-color: rgba(255,200,80,.9);
}
.cc-group-tab.cc-group-tab-my.active::after {
    background: #FFD54F;
}

/*日历*/
.cc-cal {
    background: var(--cc-card);
    margin: 4px 10px 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), inset 0 -3px 0 rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .04);
}

.cc-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
}

.cc-cal-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--cc-text-main);
}

.cc-cal-nav {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(0, 0, 0, .2);
    background: linear-gradient(135deg, var(--cc-main), var(--cc-main-deep));
    padding: 3px 10px;
    border-radius: 8px;
    color: var(--cc-bar-text);
    text-shadow: 0 0 3px rgba(0, 0, 0, .3);
}

.cc-cal-nav:active {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .08);
    transform: translateY(1px);
}

.cc-cal-toggle {
    font-size: 12px;
    color: var(--cc-tag-text);
    padding: 4px 12px;
    border-radius: 12px;
    background: var(--cc-main-light);
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .06);
}

.cc-cal-toggle:active {
    transform: translateY(1px);
}

/*周模式:星期标题行+正方形日期格子(和月视图一致)*/
.cc-cal-week {
    padding: 0 6px 12px;
}

.cc-cal-wk-headrow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 4px;
}

.cc-cal-wk-headrow>div {
    text-align: center;
    font-size: 12px;
    color: #9aa7ad;
    padding: 2px 0;
}

.cc-cal-wk-cells {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.cc-cal-wk-cell {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--cc-text);
    position: relative;
    border-radius: 8px;
    background: #fdeef1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.cc-cal-wk-cell.no-task {
    background: var(--cc-border);
    color: #b6c0c6;
    cursor: default;
    box-shadow: none;
}

.cc-cal-wk-cell.today {
    background: var(--cc-main-18);
    color: var(--cc-tag-text);
    font-weight: bold;
    box-shadow: inset 0 0 0 1px var(--cc-main-40);
}

.cc-cal-wk-cell.selected {
    box-shadow: inset 0 0 0 2px var(--cc-main);
}

.cc-cal-wk-cell:not(.no-task):active {
    background: var(--cc-border-light);
}

.cc-cal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
}

.cc-cal-dot.green {
    background: #52c41a;
}

.cc-cal-dot.yellow {
    background: #ffb800;
}

.cc-cal-dot.red {
    background: #ff5722;
}

/*日历单元格:请假待补卡提示标签*/
.cc-cal-leave-tip {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    line-height: 1.2;
    padding: 0 4px;
    border-radius: 6px;
    background: #ff9800;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
}

/*月模式:整月网格(格子与周视图一致)*/
.cc-cal-month {
    padding: 0 6px 12px;
}

.cc-cal-wkrow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 4px;
}

.cc-cal-wkrow>div {
    text-align: center;
    font-size: 12px;
    color: #9aa7ad;
    padding: 2px 0;
}

.cc-cal-mgrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.cc-cal-mcell {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--cc-text);
    position: relative;
    border-radius: 8px;
    background: #fdeef1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.cc-cal-mcell.empty {
    background: transparent;
    color: #ccc;
    box-shadow: none;
    cursor: default;
}

.cc-cal-mcell.no-task {
    background: var(--cc-border);
    color: #b6c0c6;
    cursor: default;
    box-shadow: none;
}

.cc-cal-mcell.today {
    background: var(--cc-main-18);
    color: var(--cc-tag-text);
    font-weight: bold;
    box-shadow: inset 0 0 0 1px var(--cc-main-40);
}

.cc-cal-mcell.selected {
    box-shadow: inset 0 0 0 2px var(--cc-main);
}

.cc-cal-mcell:not(.no-task):not(.empty):active {
    background: var(--cc-border-light);
}

.cc-cal-mdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
}

.cc-cal-mdot.green {
    background: #52c41a;
}

.cc-cal-mdot.yellow {
    background: #ffb800;
}

.cc-cal-mdot.red {
    background: #ff5722;
}

/*详情区*/
.cc-detail {
    margin: 0 10px 10px;
    background: var(--cc-card);
    border-radius: 10px;
    padding: 14px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), inset 0 -3px 0 rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .04);
    display: none;
}

.cc-detail-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--cc-text-main);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-detail-status {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
}

.cc-detail-status.green {
    background: var(--cc-ok-bg);
    color: var(--cc-ok);
}

.cc-detail-status.yellow {
    background: var(--cc-warm-light);
    color: #ffb800;
}

.cc-detail-status.red {
    background: var(--cc-err-bg);
    color: var(--cc-err);
}

.cc-detail-list {
    display: block;
}

.cc-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 6px;
    border: none;
    background: var(--cc-input-bg);
}

.cc-detail-item:last-child {
    margin-bottom: 0;
}

.cc-detail-item-name {
    color: var(--cc-text-main);
    font-weight: 500;
}

.cc-detail-item-status {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: bold;
}

.cc-detail-item.done {
    background: var(--cc-ok-bg);
}

.cc-detail-item.done .cc-detail-item-status {
    background: var(--cc-ok-bg);
    color: var(--cc-ok);
}

.cc-detail-gain {
    font-weight: normal;
    font-size: 11px;
    opacity: .62;
    margin-left: 4px;
}

.cc-detail-item.undone {
    background: var(--cc-err-bg);
}

.cc-detail-item.undone .cc-detail-item-status {
    background: var(--cc-err-bg);
    color: var(--cc-err);
}

/*请假按钮和状态标签*/
.cc-leave-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.cc-leave-btn {
    border: none;
    border-radius: 14px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .2);
}

.cc-leave-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .15);
}

.cc-leave-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* 取消请假按钮:浅红描边风格,与橙色请假按钮区分 */
.cc-leave-btn.cc-leave-cancel {
    background: #fff;
    color: #ff5722;
    padding: 5px 14px;
    border: 1.5px solid #ffb8a3;
    box-shadow: none;
}

.cc-leave-btn.cc-leave-cancel:active {
    background: #fde9e4;
    transform: translateY(1px);
    box-shadow: none;
}

.cc-leave-tag {
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 10px;
    font-weight: bold;
}

.cc-leave-tag.waiting {
    background: var(--cc-warm-light);
    color: #ff9800;
}

.cc-leave-tag.done {
    background: #e3f8e8;
    color: #52c41a;
}

.cc-leave-tag.giveup {
    background: #fde9e4;
    color: #ff5722;
}

.cc-today-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cc-today-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--cc-text-main);
}

.cc-today-date {
    font-size: 12px;
    color: var(--cc-text-3);
}

/*属性卡:树形象+进度条*/
.cc-stat {
    margin: 16px 10px 6px;
    background: var(--cc-card);
    border-radius: 10px;
    padding: 14px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), inset 0 -3px 0 rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .04);
}

.cc-stat-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--cc-text-main);
    margin-bottom: 10px;
}

.cc-gender {
    display: inline-block;
    font-size: 15px;
    margin-left: 6px;
    vertical-align: middle;
}

.cc-gender.male {
    color: #1e9fff;
}

.cc-gender.female {
    color: #ff5722;
}

/*树形象区*/
.cc-tree-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0 6px;
}

.cc-tree-img {
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
}

.cc-tree-fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--cc-grad-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--cc-main);
}

.cc-tree-title {
    font-size: 13px;
    color: var(--cc-main);
    font-weight: bold;
    margin-top: 6px;
}
/* 宠物自定义名后缀:（默认种类名）最小号浅色,不明显但要有 */
.cc-pet-sname-sub{font-size:10px;color:var(--cc-text-3);font-weight:normal;margin-left:2px;white-space:nowrap;}
/* 战斗层深色背景上的后缀小字 */
.cc-battle-sp .cc-pet-sname-sub{color:rgba(255,255,255,.55);}
/* 首页宠物改名小按钮 */
.cc-pet-rename-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-left:4px;border:none;border-radius:50%;background:var(--cc-main-light);color:var(--cc-tag-text);font-size:11px;cursor:pointer;vertical-align:middle;padding:0;line-height:1;}
.cc-pet-rename-btn:active{transform:scale(.9);}
/* 改名弹窗提示 */
.cc-rename-tip{background:var(--cc-main-light);color:var(--cc-tag-text);border-radius:8px;padding:8px 12px;font-size:12px;margin-bottom:12px;line-height:1.6;}
/* 换宠弹窗:重选卡消耗提示 */
.cc-pet-select-tip{text-align:center;font-size:12px;color:var(--cc-text-2);background:var(--cc-main-light);border-radius:8px;padding:7px 10px;margin:0 0 10px;line-height:1.5;}
.cc-pet-select-tip b{color:var(--cc-tag-text);}

/*经验进度条(仿游戏)*/
.cc-exp-wrap {
    margin-top: 12px;
    position: relative;
}

.cc-exp-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--cc-text-3);
    margin-bottom: 4px;
    align-items: center;
}

.cc-exp-cur {
    color: var(--cc-main);
    font-weight: bold;
}

.cc-exp-gain {
    color: #ff9800;
    font-weight: bold;
    font-size: 13px;
    margin-left: 4px;
}

.cc-exp-bar {
    height: 14px;
    background: var(--cc-main-light);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
}

.cc-exp-fill {
    height: 100%;
    background: var(--cc-grad-fill);
    border-radius: 8px;
    transition: width .5s ease;
    position: relative;
}

.cc-exp-fill::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 4px;
    background: rgba(255, 255, 255, .4);
    border-radius: 6px;
}

.cc-exp-maxed .cc-exp-fill {
    background: linear-gradient(90deg, #ffb800, #ff9800);
}

/*属性格子(简化:金币+等级)*/
.cc-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.cc-stat-box {
    background: var(--cc-border-light);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(0, 0, 0, .06);
}

.cc-stat-box .v {
    font-size: 18px;
    font-weight: bold;
    color: var(--cc-main);
}

.cc-stat-box .l {
    font-size: 11px;
    color: var(--cc-text-3);
    margin-top: 2px;
}

.cc-stat-box.coin .v {
    color: #ffb800;
}

.cc-stat-box.lv .v {
    color: #1e9fff;
}

/*未登录*/
.cc-login-home {
    text-align: center;
    padding: 120px 20px 40px;
}

.cc-login-home h1 {
    font-size: 32px;
    color: var(--cc-main);
    letter-spacing: 3px;
    margin: 0 0 10px;
}

.cc-login-home p {
    color: var(--cc-text-3);
    margin: 0 0 36px;
    font-size: 14px;
}

.cc-login-home .game-btn {
    width: 80%;
    max-width: 280px;
    height: 60px;
    line-height: 35px;
    font-size: 20px;
    border-radius:8px;  background-image: linear-gradient(to right, #fd746c 0%, #ff9068 51%, #fd746c 100%);
}

.cc-links {
    margin-top: 18px;
    font-size: 13px;
}

.cc-links a {
    color: #1e9fff;
    margin: 0 8px;
}

.cc-footer {
    text-align: center;
    color: #bbb;
    font-size: 11px;
    padding: 20px 0 30px;
}

.cc-footer a {
    color: #bbb;
}

.cc-empty-stu {
    text-align: center;
    color: var(--cc-text-3);
    padding: 40px 20px;
    font-size: 14px;
}

/*今日打卡提示(虚拟形象下方)*/
.cc-today-check-tip {
    margin: 8px 0 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.cc-today-check-tip.checked {
    background: rgba(71, 176, 83, .15);
    color: #47b053;
}

.cc-today-check-tip:not(.checked) {
    background: rgba(255, 87, 34, .12);
    color: #ff5722;
}

/*项目打卡次数列表*/
.cc-item-counts {
    margin: 8px 0;
    background: var(--cc-card);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.cc-item-count-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
}

.cc-item-count-row:last-child {
    border-bottom: none;
}

.cc-item-count-name {
    color: var(--cc-text);
    font-weight: bold;
}

.cc-item-count-val {
    color: var(--cc-main);
    font-size: 12px;
}

/*排行入口按钮组*/
.cc-rank-btns {
    display: flex;
    gap: 8px;
    margin: 10px 0 4px;
}

.cc-rank-btn {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: bold;
    color: var(--cc-main);
    background: var(--cc-card);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    transition: all .15s;
}

.cc-rank-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 2px rgba(0, 0, 0, .1);
}
.cc-rank-btn i{
    font-size: 30px;
display: block;font-weight: normal;
}

/*打卡管理页特有样式(日历复用style.css的.cc-cal系列)*/
/*日历未来日期禁用*/
.cc-cal-wk-cell.future,
.cc-cal-mcell.future {
    background: var(--cc-border-light);
    color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: .5;
}

/*组员列表(底部留白由下方截图按钮区承担)*/
.cc-members {
    margin: 0 10px 0;
}

.cc-members-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--cc-text-main);
    margin: 14px 0 10px;
    padding: 0 4px;
}

.cc-mem-card {
    background: var(--cc-card);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), inset 0 -3px 0 rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .04);
}

.cc-mem-name {
    font-size: 15px;
    font-weight: bold;
    color: var(--cc-text-main);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-mem-status {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
}

.cc-mem-status.green {
    background: var(--cc-ok-bg);
    color: var(--cc-ok);
}

.cc-mem-status.gray {
    background: var(--cc-border-light);
    color: var(--cc-text-3);
}

.cc-mem-leave {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

.cc-mem-leave.wait {
    background: var(--cc-warm-light);
    color: #ff9800;
}

.cc-mem-leave.done {
    background: var(--cc-ok-bg);
    color: var(--cc-ok);
}

.cc-mem-leave.giveup {
    background: var(--cc-err-bg);
    color: var(--cc-err);
}

.cc-mem-card.cc-mem-leaving {
    box-shadow: inset 3px 0 0 #ff9800, inset 0 2px 0 rgba(255, 255, 255, .8), 0 1px 3px rgba(0, 0, 0, .04);
}

/*LAYUI tag标签框容器*/
.cc-mem-tags {
    margin-top: 4px;
}

.cc-mem-tags .layui-form-checkbox[lay-skin=tag] {
    margin: 0 8px 8px 0;
}

.cc-mem-tags .layui-form-checkbox[lay-skin=tag]>span {
    border-radius: 8px;
}

/*防重复提交:保存中锁定该生标签区,禁止连点*/
.cc-mem-card.cc-saving .cc-mem-tags {
    pointer-events: none;
    opacity: .55;
}

.cc-mem-leave-btn {
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 12px;
    border: none;
    background: var(--cc-main);
    color: #fff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .15);
}

.cc-mem-leave-btn:active {
    transform: translateY(1px);
}

.cc-empty {
    text-align: center;
    color: var(--cc-text-3);
    padding: 40px 20px;
    font-size: 14px;
}

/* ============ 底部漂浮工具栏(首页登录后) ============ */
.cc-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 998;
    padding: 0 14px;
}

.cc-dock-inner {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.cc-dock-btn {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: var(--cc-card);
    color: var(--cc-text);
    border: 2px solid var(--cc-bar-border);
    box-shadow: 0 3px 0 var(--cc-bar-border), 0 6px 12px var(--cc-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    user-select: none;
    transition: all .1s ease;
}

.cc-dock-btn i {
    font-size: 20px;
}

.cc-dock-btn span {
    font-size: 12px;
    font-weight: bold;
}

.cc-dock-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--cc-bar-border), 0 3px 6px var(--cc-shadow);
}

/* ============ 深色主题:卡片顶部白色inset高光改为暗色(消除白边) ============ */
html[data-theme="dark"] .cc-cal,
html[data-theme="dark"] .cc-detail,
html[data-theme="dark"] .cc-stat,
html[data-theme="dark"] .cc-mem-card,
html[data-theme="dark"] .cc-rule-card {
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 1px 3px rgba(0, 0, 0, .3);
}

html[data-theme="dark"] .cc-stat-box {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -3px 0 rgba(0, 0, 0, .3);
}

html[data-theme="dark"] .cc-mem-card.cc-mem-leaving {
    box-shadow: inset 3px 0 0 #ff9800, inset 0 2px 0 rgba(255, 255, 255, .06), 0 1px 3px rgba(0, 0, 0, .3);
}

/*中间刷新按钮放大*/
.cc-dock-btn.cc-dock-mid {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    background: var(--cc-main);
    color: var(--cc-bar-text);
}

.cc-dock-btn.cc-dock-mid i {
    font-size: 27px;
}

.cc-dock-btn.cc-dock-mid span {
    font-size: 13px;
}

/*底部工具栏(全前台登录后)内容避让*/
.cc-wrap {
    padding-bottom: 110px;
}

/* ============ 设置面板(layer弹窗内容) ============ */
.cc-set-panel {
    padding: 16px 16px 14px;
}

.cc-set-row {
    margin-bottom: 14px;
}

.cc-set-row:last-child {
    margin-bottom: 0;
}

/*第一行:主题色块(方形圆角8px,左对齐)*/
.cc-theme-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 4px 0 2px;
}

.cc-theme-dot {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid var(--cc-card);
    box-shadow: 0 0 0 2px var(--cc-border);
    transition: all .15s ease;
}

.cc-theme-dot[data-t="blue"] {
    background: #48a9f6;
}

.cc-theme-dot[data-t="red"] {
    background: #ff4a6f;
}

.cc-theme-dot[data-t="green"] {
    background: #08ca9d;
}

.cc-theme-dot[data-t="yellow"] {
    background: #fac71b;
}

.cc-theme-dot[data-t="dark"] {
    background: #4f5273;
}

/* ============ layui弹窗统一主题化(设置/确认/提示) ============ */
.layui-layer-title {
    background: var(--cc-grad-bar) !important;
    color: var(--cc-bar-text) !important;
    border: none !important;
}

.layui-layer-close {
    color: var(--cc-bar-text) !important;
}

/*深色主题:弹窗深底浅字(含确认框/提示条)*/
html[data-theme="dark"] .layui-layer {
    background: var(--cc-card) !important;
    color: var(--cc-text-main) !important;
}

html[data-theme="dark"] .layui-layer-content {
    color: var(--cc-text-main) !important;
}

html[data-theme="dark"] .layui-layer-btn a {
    background: var(--cc-main) !important;
    color: var(--cc-bar-text) !important;
    border-color: var(--cc-main-deep) !important;
}

.cc-theme-dot:hover {
    transform: scale(1.08);
}

.cc-theme-dot.active {
    box-shadow: 0 0 0 2px var(--cc-bar-border);
    transform: scale(1.1);
}

/*第二行/第三行:标签+内容*/
.cc-set-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cc-set-label {
    font-size: 13px;
    color: var(--cc-text);
    white-space: nowrap;
}

.cc-set-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-set-link {
    font-size: 13px;
    color: var(--cc-tag-text);
    text-decoration: underline;
    cursor: pointer;
}

/*第四行:商品缩略图栅格(用户最新自定义商品图片,一行6个)*/
.cc-shop-grid {
    margin-top: 2px;
}

.cc-shop-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--cc-main-18);
    border: 1px solid var(--cc-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cc-shop-thumb i {
    font-size: 22px;
    color: var(--cc-main);
}

.cc-shop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-shop-thumb.has-img {
    cursor: pointer;
    border-color: var(--cc-main);
    transition: transform .15s, box-shadow .15s;
}

.cc-shop-thumb.has-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}
/* ===== 打卡规则卡片(首页底部) ===== */
.cc-rule-card{background:var(--cc-card);border-radius:14px;padding:16px;margin:4px 10px 10px;box-shadow:inset 0 2px 0 rgba(255,255,255,.8),inset 0 -3px 0 rgba(0,0,0,.04),0 1px 3px rgba(0,0,0,.04);}
.cc-rule-title{font-size:16px;font-weight:bold;color:var(--cc-text-main);margin-bottom:10px;display:flex;align-items:center;gap:6px;}
.cc-rule-title i{color:var(--cc-main);font-size:18px;}
.cc-rule-explain{font-size:13px;color:var(--cc-text-2);line-height:1.8;background:var(--cc-main-light);border-radius:8px;padding:10px 12px;margin-bottom:12px;word-break:break-all;}
.cc-rule-grid{display:flex;align-items:center;padding:9px 6px;border-bottom:1px dashed var(--cc-border-light);font-size:14px;}
.cc-rule-grid:last-child{border-bottom:0;}
.cc-rule-grid span:nth-child(1){flex:0 0 60%;}
.cc-rule-grid span:nth-child(2){flex:0 0 20%;text-align:center;}
.cc-rule-grid span:nth-child(3){flex:0 0 20%;text-align:center;}
.cc-rule-pet-col{display:none;}
.cc-rule-card.pet-active .cc-rule-grid span:nth-child(1){flex:0 0 45%;}
.cc-rule-card.pet-active .cc-rule-grid span:nth-child(2){flex:0 0 18%;text-align:center;}
.cc-rule-card.pet-active .cc-rule-grid span:nth-child(3){flex:0 0 18%;text-align:center;}
.cc-rule-card.pet-active .cc-rule-pet-col{display:flex;flex:0 0 19%;text-align:center;justify-content:center;align-items:center;font-size:13px;}
.cc-rule-grid-head{font-weight:bold;color:var(--cc-text-2);font-size:13px;border-bottom:1px solid var(--cc-border-light);}
.cc-rule-name{color:var(--cc-text-main);font-weight:bold;}
.cc-rule-exp{color:var(--cc-main);font-weight:bold;}
.cc-rule-coin{color:var(--cc-main-deep);font-weight:bold;}
.cc-rule-empty{text-align:center;color:var(--cc-text-3);font-size:13px;padding:16px 0;}

/* ===== 设置面板:高级密码锁门 ===== */
.cc-lock-gate{display:block;border:1px dashed var(--cc-border);border-radius:10px;padding:12px;background:var(--cc-warm-light);}
.cc-lock-title{font-size:14px;font-weight:bold;color:var(--cc-text-main);text-align:center;margin-bottom:10px;}
.cc-lock-title i{color:var(--cc-main);}
.cc-lock-tip{font-size:12px;color:var(--cc-text-3);line-height:1.7;margin-top:8px;text-align:center;}
.cc-lock-locked .layui-input{height:40px;}

/* ===== 生日悬浮提醒(马卡龙色) ===== */
#cc-bd-box{padding:0 12px;margin:10px auto 0;max-width:750px;}
.cc-bd-line{display:flex;align-items:center;gap:10px;border-radius:12px;padding:10px 14px;margin-bottom:8px;box-shadow:0 2px 8px rgba(0,0,0,.05);backdrop-filter:blur(2px);}
/* 三行底色引用主题马卡龙变量(每套主题自动避开自身主色,切主题即时跟随) */
.cc-bd-l0{background:var(--cc-bd-1);}
.cc-bd-l1{background:var(--cc-bd-2);}
.cc-bd-l2{background:var(--cc-bd-3);}
.cc-bd-text{flex:1;font-size:13.5px;color:#5a4a52;line-height:1.6;}
.cc-bd-label{display:inline-block;background:rgba(255,255,255,.65);color:#c2577a;font-size:12px;font-weight:bold;border-radius:6px;padding:1px 8px;margin-right:6px;}
.cc-bd-close{flex-shrink:0;width:22px;height:22px;line-height:20px;text-align:center;border-radius:50%;background:rgba(255,255,255,.6);color:#a67a8c;font-size:16px;cursor:pointer;}
.cc-bd-close:active{transform:scale(.9);}

/* ===== 消息提醒页 ===== */
.cc-notice-list{margin-top:14px;}
.cc-notice-item{background:var(--cc-card);border-radius:14px;padding:14px 16px;margin:0 10px 10px;box-shadow:0 2px 10px rgba(76,175,80,.08);border:1px solid var(--cc-border);}
.cc-notice-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;}
.cc-notice-tag{flex-shrink:0;font-size:11px;color:#fff;background:var(--cc-main);border-radius:5px;padding:2px 8px;}
.cc-notice-notice .cc-notice-tag{background:#FFB800;}
.cc-notice-checkin .cc-notice-tag{background:#5FB878;}
.cc-notice-makeup .cc-notice-tag{background:#1e9fff;}
.cc-notice-title{flex:1;font-weight:bold;color:var(--cc-text-main);font-size:14.5px;}
.cc-notice-time{flex-shrink:0;color:var(--cc-text-3);font-size:12px;}
.cc-notice-content{color:var(--cc-text-2);font-size:13.5px;line-height:1.8;word-break:break-all;}
.cc-notice-empty{text-align:center;color:var(--cc-text-3);padding:60px 0;font-size:14px;}
.cc-notice-empty-ico{opacity:.35;margin-bottom:10px;}
.cc-notice-empty-txt{font-size:15px;color:var(--cc-text-2);margin-bottom:6px;}
.cc-notice-empty-sub{font-size:12px;color:var(--cc-text-3);}

/* ===== 提醒设置弹窗(notice页,独立类名避免与商城设置面板.cc-set-row冲突) ===== */
#cc-set-panel .layui-form{padding:16px 20px;}
.cc-nset-group-title{font-size:13px;font-weight:700;color:var(--cc-text-2);padding:12px 0 8px;border-bottom:2px solid var(--cc-main);margin-bottom:12px;}
.cc-nset-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:8px 12px;background:var(--cc-main-light);border-radius:8px;}
.cc-nset-row .cc-set-label{flex:1;font-size:14px;color:var(--cc-text-main);}
.cc-nset-tip{font-size:12px;color:var(--cc-text-3);background:var(--cc-warm-light);border-radius:8px;padding:10px 14px;margin-top:16px;line-height:1.7;}

/* ===== 萌宠系统 ===== */
.cc-pet-btns{display:flex;gap:8px;justify-content:center;margin-top:8px;flex-wrap:wrap;}
.cc-pet-btn{padding:7px 16px;border-radius:20px;border:none;font-size:13px;cursor:pointer;font-weight:500;transition:transform .15s;}
.cc-pet-btn:active{transform:scale(.95);}
.cc-pet-join{background:linear-gradient(135deg,#ff9a9e,#fad0c4);color:#fff;box-shadow:0 2px 8px rgba(255,154,158,.4);}
.cc-pet-btn:not(.cc-pet-join){background:var(--cc-main);color:#fff;box-shadow:0 2px 8px rgba(95,184,120,.3);}
.cc-pet-stats{display:flex;gap:6px;justify-content:center;margin-top:6px;flex-wrap:wrap;}
.cc-pet-stat{background:#fff;border:1px solid #eee;border-radius:12px;padding:2px 8px;font-size:12px;color:var(--cc-text-2);}
.cc-pet-stat.cute{color:#ff6b8a;border-color:#ffd6e0;}
.cc-pet-stat.fluffy{color:#b57edc;border-color:#e9d8f4;}
.cc-pet-stat.energy{color:#ff9f43;border-color:#ffe8cc;}
.cc-pet-img{width:130px!important;height:130px!important;object-fit:contain;}

/* 宠物选择弹窗 */
.cc-pet-select{padding:6px;}
.cc-pet-tabs{display:flex;gap:8px;justify-content:center;margin-bottom:14px;}
.cc-pet-tab{padding:6px 18px;border-radius:16px;background:#f5f5f5;font-size:14px;cursor:pointer;color:#999;transition:all .2s;}
.cc-pet-tab.active{background:var(--cc-main);color:#fff;}
.cc-pet-select-body{display:flex;align-items:center;gap:10px;justify-content:center;}
.cc-pet-select-pic{width:140px;height:140px;background:#f9f9f9;border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.cc-pet-select-pic img{max-width:100%;max-height:100%;object-fit:contain;}
.cc-pet-arrow{width:34px;height:34px;border-radius:50%;background:#f0f0f0;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;color:#666;}
.cc-pet-arrow.disabled{opacity:.3;cursor:not-allowed;}
.cc-pet-info{margin-top:14px;text-align:center;}
.cc-pet-info-name{font-size:18px;font-weight:bold;color:var(--cc-text-main);}
.cc-pet-info-label{font-size:12px;color:var(--cc-text-3);margin:10px 0 6px;}
.cc-pet-growth-row{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;}
.cc-pet-growth-thumb{width:42px;height:42px;border-radius:8px;border:1px solid #eee;object-fit:cover;background:#f9f9f9;}
.cc-pet-info-stats{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;font-size:13px;color:var(--cc-text-2);}
.cc-pet-select-confirm{margin-top:16px;text-align:center;}
.cc-pet-confirm-btn{padding:10px 36px;background:var(--cc-main);color:#fff;border:none;border-radius:22px;font-size:15px;cursor:pointer;box-shadow:0 3px 10px rgba(95,184,120,.35);}
.cc-pet-confirm-btn:active{transform:scale(.96);}

/* 宠物商店 */
.cc-petshop-info{margin:12px 10px 14px;}
.cc-pet-card{display:flex;align-items:center;gap:14px;background:var(--cc-card);border-radius:14px;padding:14px;box-shadow:0 2px 10px var(--cc-main-18);border:1px solid var(--cc-border-light);}
.cc-pet-card-img{width:70px;height:70px;border-radius:12px;object-fit:contain;background:var(--cc-main-light);}
.cc-pet-card-meta{flex:1;}
.cc-pet-card-name{font-size:16px;font-weight:bold;color:var(--cc-text-main);}
.cc-pet-card-lv{font-size:12px;color:var(--cc-main);margin-left:6px;font-weight:normal;}
.cc-pet-card-coin{font-size:14px;color:#f0a020;margin-top:4px;}
.cc-pet-card-stats{display:flex;gap:10px;margin-top:6px;font-size:12px;flex-wrap:wrap;color:var(--cc-text-2);}
.cc-pet-card-none{color:var(--cc-text-3);text-align:center;padding:10px;width:100%;}
.cc-petshop-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 10px 16px;}
.cc-shopitem{min-width:0;background:var(--cc-card);border-radius:12px;padding:8px 6px;text-align:center;box-shadow:0 2px 8px var(--cc-main-18);border:1px solid var(--cc-border-light);}
.cc-shopitem-pic{width:100%;height:64px;background:var(--cc-main-light);border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:6px;overflow:hidden;}
.cc-shopitem-pic img{max-width:100%;max-height:100%;object-fit:contain;}
.cc-shopitem-noimg{color:var(--cc-text-3);font-size:12px;}
.cc-shopitem-name{font-size:12px;color:var(--cc-text-main);margin-bottom:4px;line-height:1.3;height:32px;overflow:hidden;}
.cc-shopitem-effect{font-size:11px;color:#4a8bf5;background:rgba(74,139,245,.08);border-radius:4px;padding:1px 4px;margin-bottom:4px;display:inline-block;max-width:100%;box-sizing:border-box;}
.cc-shopitem-coin{color:#f0a020;font-size:13px;margin-bottom:6px;}
.cc-shopitem-buy{width:100%;padding:5px 0;background:var(--cc-grad-fill);color:#fff;border:none;border-radius:14px;font-size:12px;cursor:pointer;}
@media (max-width:600px){
  .cc-petshop-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .cc-shopitem{padding:10px;}
  .cc-shopitem-pic{height:90px;margin-bottom:8px;}
  .cc-shopitem-noimg{font-size:13px;}
  .cc-shopitem-name{font-size:13px;height:34px;}
  .cc-shopitem-effect{font-size:12px;padding:2px 6px;}
  .cc-shopitem-coin{font-size:14px;margin-bottom:8px;}
  .cc-shopitem-buy{font-size:13px;padding:6px 0;}
}

/* 萌宠对战 */
.cc-pk-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:12px;}
@media (max-width:600px){
  .cc-pk-grid{grid-template-columns:repeat(2,1fr);}
}
.cc-pk-card{position:relative;background:#fff;border-radius:14px;padding:10px;text-align:center;box-shadow:0 2px 10px rgba(0,0,0,.05);cursor:pointer;overflow:hidden;}
.cc-pk-card-img{width:100%;height:100px;object-fit:contain;border-radius:8px;background:#fafafa;}
.cc-pk-card-name{font-size:12px;color:var(--cc-text-main);margin-top:6px;line-height:1.3;}
.cc-pk-card-lv{font-size:11px;color:var(--cc-main);margin-top:2px;}
.cc-pk-mask{position:absolute;inset:0;background:rgba(255,255,255,.97);padding:12px;display:flex;flex-direction:column;justify-content:center;opacity:0;visibility:hidden;transition:all .2s;text-align:center;}
.cc-pk-mask.show{opacity:1;visibility:visible;}
.cc-pk-mask-title{font-size:15px;font-weight:bold;color:var(--cc-text-main);margin-bottom:8px;}
.cc-pk-mask-stats{font-size:12px;color:var(--cc-text-2);line-height:2;}
.cc-pk-challenge{margin-top:10px;padding:8px 0;background:linear-gradient(135deg,#ff9a9e,#fad0c4);color:#fff;border:none;border-radius:16px;font-size:13px;cursor:pointer;}
/* 今日挑战次数角标 + 打满3次整卡置灰 */
.cc-pk-today{position:absolute;top:6px;left:6px;z-index:2;font-size:10px;font-weight:700;color:#e85a5a;background:#fff0f3;border:1px solid #f5c6d0;border-radius:8px;padding:1px 6px;line-height:1.4;}
.cc-pk-today.full{color:#999;background:#f2f2f2;border-color:#e3e3e3;}
.cc-pk-card.cc-pk-off{cursor:not-allowed;filter:grayscale(1);opacity:.55;}
.cc-pk-card.cc-pk-off:active{transform:none;}

/* 战斗层 */
.cc-battle-layer{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;}
.cc-battle-bg{position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,200,200,.85),rgba(200,230,255,.85));backdrop-filter:blur(8px);}
.cc-battle-inner{position:relative;width:100%;max-width:420px;padding:30px 20px;}
.cc-battle-arena{display:flex;align-items:center;justify-content:space-between;gap:8px;position:relative;}
.cc-battle-side{display:flex;flex-direction:column;align-items:center;flex:1;}
.cc-battle-left .cc-battle-pet{float:none;}
.cc-battle-pet{width:100px;height:100px;object-fit:contain;}
.cc-battle-name{font-size:14px;font-weight:bold;color:var(--cc-text-main);margin-bottom:4px;}
.cc-battle-hp{width:100px;height:12px;background:rgba(255,255,255,.6);border-radius:6px;overflow:hidden;margin-bottom:6px;border:1px solid rgba(255,255,255,.8);}
.cc-battle-hpbar{height:100%;background:linear-gradient(90deg,#5FB878,#95e1a3);transition:width .3s;border-radius:6px;}
.cc-hp-right{background:linear-gradient(90deg,#ff6b8a,#ffa3b3);}
.cc-battle-vs{font-size:26px;font-weight:bold;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.2);flex-shrink:0;}
.cc-battle-log{background:rgba(255,255,255,.7);border-radius:10px;padding:10px;margin-top:16px;height:140px;overflow-y:auto;font-size:12px;color:#555;line-height:1.8;}
.cc-battle-log-row{border-bottom:1px solid rgba(0,0,0,.04);padding:2px 0;}
.cc-battle-result{text-align:center;font-size:24px;font-weight:bold;padding:12px;}
.cc-battle-result.win{color:#5FB878;}
.cc-battle-result.lose{color:#ff6b8a;}
.cc-battle-result-sub{text-align:center;font-size:13px;color:#888;margin-bottom:8px;}

/* 战斗动画 */
.cc-battle-pet{position:relative;transition:transform .2s;}
.cc-atk-lunge{animation:atkLungeL .3s ease-out;}
.cc-atk-lunge-r{animation:atkLungeR .3s ease-out;}
@keyframes atkLungeL{0%{transform:translateX(0);}50%{transform:translateX(60px);}100%{transform:translateX(0);}}
@keyframes atkLungeR{0%{transform:translateX(0);}50%{transform:translateX(-60px);}100%{transform:translateX(0);}}
.cc-hit-shake{animation:hitShake .4s;}
@keyframes hitShake{0%,100%{transform:translateX(0);}25%{transform:translateX(-8px);}75%{transform:translateX(8px);}}
.cc-battle-heart{position:absolute;font-size:24px;z-index:10;}
.cc-battle-float{position:absolute;top:-10px;left:50%;transform:translateX(-50%);font-weight:bold;font-size:16px;z-index:20;animation:floatUp 1s ease-out forwards;}
.cc-float-dmg{color:#ff3b30;text-shadow:0 1px 3px rgba(0,0,0,.15);}
.cc-float-crit{color:#ff0066;font-size:22px;text-shadow:0 2px 6px rgba(0,0,0,.2);}
.cc-float-miss{color:#888;font-size:14px;}
@keyframes floatUp{0%{opacity:0;transform:translateX(-50%) translateY(0);}20%{opacity:1;}100%{opacity:0;transform:translateX(-50%) translateY(-50px);}}

/* 萌宠战绩 */
.cc-petrecord-grid{display:flex;flex-direction:column;gap:10px;}
.cc-petrecord-row{display:flex;align-items:center;gap:12px;background:#fff;border-radius:12px;padding:12px;box-shadow:0 2px 10px rgba(0,0,0,.04);}
.cc-petrecord-rank{width:48px;text-align:center;font-size:20px;font-weight:bold;}
.cc-petrecord-avatar{width:50px;height:50px;border-radius:12px;overflow:hidden;background:#f9f9f9;flex-shrink:0;}
.cc-petrecord-avatar img{width:100%;height:100%;object-fit:contain;}
.cc-petrecord-info{flex:1;min-width:0;}
.cc-petrecord-name{font-size:15px;font-weight:bold;color:var(--cc-text-main);margin-bottom:4px;}
.cc-petrecord-stats{display:flex;gap:10px;font-size:12px;color:var(--cc-text-2);margin-bottom:4px;}
.cc-petrecord-record{display:flex;gap:10px;font-size:12px;}
.cc-rec-win{color:#5FB878;font-weight:bold;}
.cc-rec-lose{color:#ff6b8a;}
.cc-rec-rate{color:#f0a020;}
.cc-rec-me{background:linear-gradient(135deg,var(--cc-main-18),var(--cc-main-light));border-color:var(--cc-main-25);}

/* ========== layer浅色消息框皮肤(宠物属性说明:屏幕居中,左侧大图标+右侧标题/说明) ========== */
.layui-layer.cc-msg-light{background:#fff;border:1px solid var(--cc-border-light);border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.15);}
.layui-layer.cc-msg-light .layui-layer-content{display:flex;align-items:center;gap:12px;padding:14px 18px;color:var(--cc-text-main);font-size:14px;line-height:1.5;max-width:250px;text-align:left;}
.layui-layer.cc-msg-light .cc-msg-ico{font-size:32px;line-height:1;flex-shrink:0;}
.layui-layer.cc-msg-light .cc-msg-txt{min-width:0;}
.layui-layer.cc-msg-light .cc-msg-txt b{display:block;font-size:14px;font-weight:700;color:var(--cc-text-main);}
.layui-layer.cc-msg-light .cc-msg-desc{display:block;font-size:12px;color:var(--cc-text-3);margin-top:3px;line-height:1.5;}

/* ========== 对战记录聊天气泡(首页萌宠对战按钮上方) ========== */
.cc-pk-bubble{position:absolute;top:-22px;left:50%;transform:translateX(-50%);background:#e85a5a;color:#fff;font-size:11px;font-weight:700;padding:2px 10px;border-radius:12px;white-space:nowrap;z-index:10;box-shadow:0 2px 8px rgba(232,90,90,.4);animation:ccBubbleShake 1.8s ease-in-out infinite;}
.cc-pk-bubble::after{content:'';position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top-color:#e85a5a;border-bottom:0;}
@keyframes ccBubbleShake{0%,100%{transform:translateX(-50%) rotate(0);}25%{transform:translateX(-50%) rotate(-8deg);}75%{transform:translateX(-50%) rotate(8deg);}}
