/* ====================
   全局重置与基础样式
   ==================== */
* {
    margin: 0;
    padding: 0;
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

form, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, p {
    list-style: none outside none;
}

a {
    text-decoration: none;
    color: #ccc;
    outline: none;
}

a:hover {
    text-decoration: underline;
    color: #1298F4;
}

a img {
    border: none;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

/* ====================
   页面布局与背景
   ==================== */
html {
    height: 100%;
}

body {
    font: 12px/1.8 Microsoft YaHei, simsong;
    height: 100%;
    overflow: hidden;
    background: url(../images/background.jpg) no-repeat center center fixed;
    background-size: cover;
}

::-webkit-full-screen {
    cursor: default;
}

::-webkit-full-screen-ancestor {
    pointer-events: none;
}

:-webkit-full-screen::-webkit-media-controls-enclosure {
    display: none !important;
}

:fullscreen {
    background: transparent;
}

::backdrop {
    background: transparent;
}

.bgloader {
    background: url(../images/loading.gif) no-repeat #fff center;
    z-index: 10000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ie-noscript-warning {
    position: absolute;
    left: 50%;
    top: 50%;
}

.ie-noscript-warning div {
    position: relative;
    left: -210px;
    top: -110px;
    width: 384px;
    height: 171px;
    background: url(ienoscript.gif) red no-repeat;
    opacity: 0.7;
    filter: alpha(opacity=70);
    padding: 10px 15px;
}

/* ====================
   任务栏样式
   ==================== */
#task-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #DDE6ED;
    background: linear-gradient(to bottom, #E8EEF2 0%, #DDE6ED 100%);
}

.task-window {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-window li {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 2px;
    overflow: hidden;
    color: #4A5568;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.task-window li:hover {
    background: rgba(255, 255, 255, 0.85);
}

.task-window b {
    display: block;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-window b:hover {
    background: rgba(0, 0, 0, 0.05);
}

.task-window b.focus {
    background: rgba(0, 0, 0, 0.1);
}

.task-window img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.task-window span {
    display: none;
}

.desktop-view {
    background-position: 0 0;
}

.desktop-view:hover {
    background-position: -23px 0;
}

.desktop-view:active {
    background-position: -46px 0;
}

/* ====================
   桌面区域样式
   ==================== */
#desk {
    position: absolute;
    top: 0;
    bottom: 48px;
    width: 100%;
    overflow: hidden;
    *z-index: 2;
}

*html #desk {
    height: expression((function(el){el.style.height=document.body.clientHeight-30+"px";})(this));
}

#desk ul,
#desk ul li,
#desk ul li span,
.title-bar {
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

#desk ul {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
}

#desk ul li {
    width: 80px;
    height: 57px;
    padding: 10px 0;
    text-align: center;
    position: absolute;
    cursor: pointer;
}

#desk ul li img {
    border-radius: 3px 3px 3px 3px;
    display: block;
    height: 32px;
    width: 32px;
    margin: auto;
}

#desk ul li span {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0.3);
    border-radius: 10px 10px 10px 10px;
    filter: none;
    color: #fff;
    display: inline-block;
    height: 20px;
    line-height: 20px;
    margin-top: 5px;
    overflow: hidden;
    padding: 0 8px;
    position: relative;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 1;
    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/ui/shortcut_text.png', sizingMethod='scale');
}

#desk ul li em {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 80px;
    height: 77px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background: #000;
    opacity: 0.12;
    filter: alpha(opacity=12);
}

#desk ul li:hover em,
#desk ul li.hover em {
    display: block;
}

#desk ul li.focus em {
    display: block;
    opacity: 0.25;
    filter: alpha(opacity=25);
}

/* ====================
   侧边栏样式
   ==================== */
#menubar {
    position: absolute;
    z-index: 3;
    top: 50px;
    width: 73px;
    right: 0;
}

#menubar span {
    display: block;
    width: 73px;
}

#menubar span.mtop {
    height: 13px;
    background: url(../images/menu.png) no-repeat 3px 0;
}

#menubar span.mbot {
    height: 30px;
    background: url(../images/menu.png) no-repeat bottom right;
    padding-top: 3px;
}

#menubar span.mbot a {
    display: block;
    width: 53px;
    height: 24px;
    padding-left: 20px;
    line-height: 24px;
    background: url(../images/back.png) no-repeat 50px center;
}

#menubar span.mbot a:hover {
    text-decoration: none;
    color: #ddd;
}

#menubar ul {
    background: url(../images/menu.png) repeat-y -70px 0;
    padding: 5px 0;
}

#menubar ul li {
    width: 58px;
    height: 58px;
    margin: 5px 0 5px 12px;
}

#menubar ul li a {
    display: block;
    width: 58px;
    height: 58px;
    background: url(../images/news.png) no-repeat center center;
}

#menubar ul li.i a {
    background: url(../images/i.png) no-repeat center center;
}

#menubar ul li.b a {
    background: url(../images/b.png) no-repeat center center;
}

#menubar ul li.z a {
    background: url(../images/z.png) no-repeat center center;
}

#menubar ul li.m a {
    background: url(../images/m.png) no-repeat center center;
}

#menubar ul li.c a {
    background: url(../images/c.png) no-repeat center center;
}

#menubar ul li:hover,
#menubar ul li.selected {
    background: url(../images/menuicobg.png) no-repeat;
}

/* ====================
   窗口样式
   ==================== */
.window-container {
    position: absolute;
    padding: 2px;
    overflow: hidden;
    border-radius: 3px;
    background: #656672;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.window-current {
    background: #363740;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.title-bar {
    border: 1px solid #ccc;
    background: url(../images/titlebar_bg_cur.png) repeat-x;
    position: relative;
    z-index: 10;
    height: 26px;
    padding: 0 20px;
    line-height: 26px;
    overflow: hidden;
    color: #393836;
    font-weight: bold;
    border-bottom: 1px solid #CCC;
    cursor: move;
    border-radius: 3px 3px 0 0;
}

.title-handle {
    overflow: hidden;
    position: absolute;
    right: 5px;
    top: 4px;
}

.title-handle a {
    float: left;
    width: 19px;
    height: 21px;
    margin-left: 5px;
    line-height: 10;
    overflow: hidden;
    background-image: url(../images/sprite_main_png.png);
    background-repeat: no-repeat;
}

.ha-min {
    background-position: -5px -58px;
}

.ha-min:hover {
    background-position: -5px -30px;
}

.ha-max {
    background-position: -34px -59px;
}

.ha-max:hover {
    background-position: -34px -30px;
}

.ha-revert {
    background-position: -94px -59px;
}

.ha-revert:hover {
    background-position: -94px -30px;
}

.ha-close {
    background-position: -64px -59px;
}

.ha-close:hover {
    background-position: -64px -30px;
}

.window-frame {
    position: absolute;
    top: 30px;
    right: 2px;
    bottom: 32px;
    *bottom: 29px;
    left: 2px;
    background: #FFF;
}

*html .window-frame {
    height: expression((function(el){el.style.height=el.parentNode.clientHeight-59+"px";})(this));
}

.window-frame iframe {
    position: absolute;
    border: 0;
    height: 100%;
    width: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.set-bar {
    _width: 100%;
    position: absolute;
    background: #E8E8E8;
    border-top: 1px solid #b9b9b9;
    bottom: 0;
    height: 30px;
    left: 2px;
    right: 2px;
    bottom: 2px;
}

.set-bar .btn {
    margin-top: 3px;
    margin-right: 5px;
    border: 1px solid #E8E8E8;
    border-radius: 3px;
    color: #7D7D7D;
    cursor: pointer;
    display: inline-block;
    height: 20px;
    padding: 1px;
    position: relative;
}

.set-bar .btn:hover {
    border: 1px solid #7D7D7D;
    background: #fff;
    color: #333;
    text-decoration: none;
}

.set-bar .btn .icon {
    left: 8px;
    position: absolute;
    top: 3px;
}

.set-bar .btn .btn-con {
    height: 20px;
    line-height: 21px;
    overflow: hidden;
    padding: 0 8px;
}

/* ====================
   右键菜单样式
   ==================== */
.popup-menu {
    background: url(popup_menu.gif) repeat-y scroll 0 0 #FFFFFF;
    border: 1px solid #AEAEAE;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    position: absolute;
    width: 125px;
}

.popup-menu ul {
    padding: 1px;
    position: relative;
}

.popup-menu li {
    height: 24px;
    position: relative;
    vertical-align: middle;
}

.popup-menu a {
    background-position: 100px 100px;
    border-radius: 2px;
    color: #333333;
    display: block;
    height: 24px;
    line-height: 24px;
    overflow: hidden;
    padding-left: 35px;
}

.popup-menu a:hover,
.popup-menu a.focus {
    background-color: #3B7CE6;
    background-position: 0 -780px;
    color: #FFFFFF;
    text-decoration: none;
}

.smart_menu_box {
    display: none;
    width: 140px;
    position: absolute;
    z-index: 201105;
}

.smart_menu_body {
    padding: 1px;
    border: 1px solid #000;
    background-color: #fff;
    border-radius: 2px;
}

.smart_menu_ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.smart_menu_li {
    position: relative;
}

.smart_menu_a {
    display: block;
    height: 25px;
    line-height: 24px;
    padding: 0 5px 0 25px;
    color: #000;
    font-size: 12px;
    text-decoration: none;
    overflow: hidden;
}

.smart_menu_a:hover,
.smart_menu_a_hover {
    background-color: #348CCC;
    color: #fff;
    text-decoration: none;
}

.smart_menu_li_separate {
    line-height: 0;
    margin: 3px;
    border-bottom: 1px solid #B8CBCB;
    font-size: 0;
}

.smart_menu_triangle {
    width: 0;
    height: 0;
    border: 5px dashed transparent;
    border-left: 5px solid #666;
    overflow: hidden;
    position: absolute;
    top: 7px;
    right: 5px;
}

.smart_menu_a:hover .smart_menu_triangle,
.smart_menu_a_hover .smart_menu_triangle {
    border-left-color: #fff;
}

.smart_menu_li_hover .smart_menu_box {
    top: -1px;
    left: 130px;
}

/* ====================
   开始菜单样式
   ==================== */
#start-menu {
    position: absolute;
    bottom: 48px;
    left: 4px;
    z-index: 9999;
    border: solid 1px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: none;
    background: #2D2D2D;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.start-menu {
    float: left;
    padding: 8px 0;
    min-width: 180px;
}

.start-menu li {
    line-height: 28px;
    border: solid 1px transparent;
    margin: 2px 8px;
    border-radius: 4px;
}

.start-menu li:hover,
.start-menu li.menuSelected {
    border: solid 1px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.start-menu li a {
    color: #E0E0E0;
    display: block;
    padding: 0 0 0 36px;
    text-shadow: none;
    font-size: 13px;
}

/* 开始菜单按钮 */
.startMenuBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    cursor: pointer;
    position: absolute;
    z-index: 9999;
    bottom: 3px;
    left: 3px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s;
}

.startMenuBtn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.startMenuBtn:active {
    background: rgba(255, 255, 255, 0.15);
}

.startMenuBtn .windows-icon {
    width: 26px;
    height: 26px;
}

/* 开始菜单图标 */
.start-menu li.sm1 a {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='2' width='12' height='12' fill='none' stroke='%23FFFFFF' stroke-width='1.5' rx='1'/%3E%3Cpath d='M4 6h8M4 10h8' stroke='%23FFFFFF' stroke-width='1'/%3E%3C/svg%3E") no-repeat 6px center;
    background-size: 16px 16px;
}

.start-menu li.sm2 a {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='1' width='6' height='14' fill='%231E90FF' rx='1'/%3E%3Crect x='9' y='3' width='6' height='10' fill='none' stroke='%23FFFFFF' stroke-width='1.5' rx='1'/%3E%3C/svg%3E") no-repeat 6px center;
    background-size: 16px 16px;
}

.start-menu li.sm3 a {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h12M8 2v12' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat 6px center;
    background-size: 16px 16px;
}

.start-menu li.sm4 a {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 4h12v8H2z' fill='none' stroke='%23FFD700' stroke-width='1.5' rx='1'/%3E%3Cpath d='M6 4v8M10 4v8' stroke='%23FFD700' stroke-width='1'/%3E%3C/svg%3E") no-repeat 6px center;
    background-size: 16px 16px;
}

.start-menu li.sm5 a {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13h10' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3Cpath d='M5 3l5 4-5 4V3z' fill='%2300CED1'/%3E%3C/svg%3E") no-repeat 6px center;
    background-size: 16px 16px;
}

.start-menu li.sm6 a {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3Ccircle cx='8' cy='8' r='3' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat 6px center;
    background-size: 16px 16px;
}

.start-menu li.sm7 a {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 6h12M2 10h12' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3Ccircle cx='8' cy='3' r='1.5' fill='%23FF6347'/%3E%3C/svg%3E") no-repeat 6px center;
    background-size: 16px 16px;
}

.start-menu li.sm8 a {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='4' width='12' height='8' fill='none' stroke='%23FFFFFF' stroke-width='1.5' rx='1'/%3E%3Cpath d='M4 8h8' stroke='%23FFFFFF' stroke-width='1'/%3E%3C/svg%3E") no-repeat 6px center;
    background-size: 16px 16px;
}

/* ====================
   提示消息样式
   ==================== */
.zeng_msgbox_layer,
.zeng_msgbox_layer .gtl_ico_succ,
.zeng_msgbox_layer .gtl_ico_fail,
.zeng_msgbox_layer .gtl_ico_hits,
.zeng_msgbox_layer .gtl_ico_clear,
.zeng_msgbox_layer .gtl_end {
    display: inline-block;
    height: 54px;
    line-height: 54px;
    font-weight: bold;
    font-size: 14px;
    color: #606060;
    background-image: url(../images/gb_tip_layer.png);
    _background-image: url(../images/gb_tip_layer_ie6.png);
    background-repeat: no-repeat;
}

.zeng_msgbox_layer_wrap {
    width: 100%;
    position: fixed;
    _position: absolute;
    top: 46%;
    left: 0;
    text-align: center;
    z-index: 65533;
}

.zeng_msgbox_layer {
    background-position: 0 -161px;
    background-repeat: repeat-x;
    padding: 0 18px 0 9px;
    margin: 0 auto;
    position: relative;
}

.zeng_msgbox_layer .gtl_ico_succ {
    background-position: -6px 0;
    left: -45px;
    top: 0;
    width: 45px;
    position: absolute;
}

.zeng_msgbox_layer .gtl_end {
    background-position: 0 0;
    position: absolute;
    right: -6px;
    top: 0;
    width: 6px;
}

.zeng_msgbox_layer .gtl_ico_fail {
    background-position: -6px -108px;
    position: absolute;
    left: -45px;
    top: 0;
    width: 45px;
}

.zeng_msgbox_layer .gtl_ico_hits {
    background-position: -6px -54px;
    position: absolute;
    left: -45px;
    top: 0;
    width: 45px;
}

.zeng_msgbox_layer .gtl_ico_clear {
    background-position: -6px 0;
    left: -5px;
    width: 5px;
    position: absolute;
    top: 0;
}

.zeng_msgbox_layer .gtl_ico_loading {
    width: 16px;
    height: 16px;
    border: 0;
    background-image: url(../images/gb_tip_loading.gif);
    float: left;
    margin: 19px 10px 0 5px;
}

/* ====================
   浏览器警告样式
   ==================== */
.noscript-warning {
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 18px;
    color: #333;
    width: 100%;
    height: 100%;
    padding: 2px 15px 2px 23px;
    text-align: left;
    z-index: 10000;
    line-height: 100px;
    text-align: center;
    color: #c00;
}

#ie6-warning {
    background: rgb(255, 255, 225) no-repeat scroll 8px center;
    text-align: center;
    position: absolute;
    margin: 0 auto;
    color: #000;
    width: 100%;
    line-height: 30px;
    z-index: 99;
    border-bottom: solid 1px #000;
}

#ie6-warning a {
    color: #f60;
}

/* ====================
   系统托盘样式
   ==================== */
#system-tray {
    position: absolute;
    right: 12px;
    bottom: 4px;
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#system-time,
#system-date {
    color: #374151;
    font-size: 12px;
    font-family: Segoe UI, Arial, sans-serif;
    font-weight: 500;
}

#calendar-icon {
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

#calendar-icon:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* ====================
   搜索框样式
   ==================== */
#search-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: 500px;
    max-width: 90%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: opacity 0.2s, transform 0.2s;
}

.search-box-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.95);
}

.search-box-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.search-container {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.search-icon {
    font-size: 18px;
    margin-right: 12px;
    color: #666;
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: Segoe UI, Arial, sans-serif;
    color: #333;
    background: transparent;
}

#search-input::placeholder {
    color: #999;
}

.search-close {
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.search-close:hover {
    background: #f0f0f0;
    color: #333;
}

#search-results {
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background: #E8EEF2;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.search-result-text {
    font-size: 13px;
    color: #333;
}

.search-result-hint {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* ====================
   小部件样式
   ==================== */
.widget-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.95);
}

.widget-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* ====================
   桌面宠物样式
   ==================== */
.pet {
    position: fixed;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.2s;
    right: 20px;
    bottom: 70px;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .pet {
        left: auto;
        right: 10px;
        bottom: 80px;
        z-index: 1000;
    }
}

.pet:hover {
    transform: scale(1.1);
}

.pet-body {
    font-size: 48px;
    line-height: 1;
    animation: petIdle 2s ease-in-out infinite;
}

@keyframes petIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pet:hover .pet-body {
    animation: petActive 0.5s ease-in-out infinite;
}

@keyframes petActive {
    0%, 100% { transform: rotate(-5deg) scale(1.1); }
    50% { transform: rotate(5deg) scale(1.1); }
}



.pet-bubble {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pet-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.pet-bubble.show {
    display: block;
    animation: bubbleIn 0.3s ease;
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#weather-widget, #calendar-widget {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: 320px;
    max-width: 90%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: opacity 0.2s, transform 0.2s;
}

.widget-container {
    padding: 0;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
}

.widget-close {
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.widget-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 日历小部件内容 */
.calendar-content {
    padding: 16px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-nav button:hover {
    background: #e0e0e0;
}

#calendar-month {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays div {
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 8px 0;
}

#calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: #e8eef2;
}

.calendar-day.today {
    background: #667eea;
    color: #fff;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.selected {
    background: #764ba2;
    color: #fff;
}
