/* Booloo Web Application Styles */

body {
    background-color: var(--weui-BG-2);
    margin: 0;
    padding: 0 0 80px 0;
    font-family: -apple-system-font, "Helvetica Neue", sans-serif;
}

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

.brand-title {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #07C160 0%, #06AE56 100%);
    color: #fff;
    margin-bottom: 0;
}

.brand-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    display: block;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    backdrop-filter: blur(10px);
}

.brand-title h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 400;
    margin-bottom: 8px;
}

.brand-title p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

/* 订阅卡片 hover 效果 */
.subscription-card:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.subscription-card:active {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 按钮区域间距调整 */
.weui-btn-area {
    margin-top: 16px;
}

/* 页面容器 */
#bound-page {
    background-color: var(--weui-BG-2);
}

/* 用户信息卡片 - 符合 WeUI 规范 */
.user-info {
    background-color: var(--weui-BG-0);
    margin-bottom: 10px;
}

.user-info .weui-media-box {
    padding: 16px;
}

.user-info .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
}

/* 统一区块间距 - WeUI 标准 */
.weui-cells {
    margin-top: 0;
    margin-bottom: 10px;
}

.weui-cells__title {
    margin-top: 0;
    padding-top: 0.77em;
    padding-bottom: 0.3em;
}

.weui-cells:before {
    border-top: none;
}

/* 空状态样式 - WeUI 风格 */
.empty-state {
    background-color: var(--weui-BG-0);
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.25;
}

.empty-state-text {
    font-size: 17px;
    color: var(--weui-FG-0);
    margin-bottom: 8px;
    font-weight: 400;
}

.empty-state-hint {
    font-size: 14px;
    color: var(--weui-FG-1);
}

/* 浮动操作按钮 - WeUI 风格 */
.fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #07c160;
    color: white;
    border: none;
    box-shadow: 0 2px 10px 0 rgba(0,0,0,0.1), 0 2px 5px 0 rgba(0,0,0,0.05);
    font-size: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:active {
    transform: scale(0.9);
    box-shadow: 0 1px 5px 0 rgba(0,0,0,0.1);
}

/* 订阅卡片优化 */
.weui-form-preview {
    margin-bottom: 10px;
    background-color: var(--weui-BG-0);
}

.weui-form-preview__hd {
    padding: 16px 16px 12px;
}

.weui-form-preview__bd {
    padding: 0 16px 12px;
}

/* Footer */
.weui-footer {
    color: var(--weui-FG-2);
    font-size: 14px;
}

/* Compact layout */
#bound-page .weui-btn-area {
    margin-top: 20px;
    margin-bottom: 10px;
}

#bound-page .weui-footer {
    margin-top: 10px;
}

.bind-form {
    background-color: var(--weui-BG-2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--weui-FG-3);
}

.weui-panel {
    margin-bottom: 20px;
}

/* Task Dialog Styles */
.weui-half-screen-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    background: var(--weui-BG-2);
    border-radius: 12px 12px 0 0;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.weui-half-screen-dialog[style*="display: block"] {
    transform: translateY(0);
}

.weui-half-screen-dialog__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--weui-FG-3);
}

.weui-half-screen-dialog__hd__side {
    width: 40px;
    display: flex;
    justify-content: center;
}

.weui-half-screen-dialog__hd__main {
    flex: 1;
    text-align: center;
}

.weui-half-screen-dialog__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--weui-FG-0);
}

.weui-half-screen-dialog__bd {
    padding: 0;
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

.weui-icon-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--weui-FG-1);
}

.weui-icon-btn:hover {
    background: var(--weui-FG-3);
}

.weui-navbar {
    display: flex;
    background: var(--weui-BG-1);
    border-bottom: 1px solid var(--weui-FG-3);
}

.weui-navbar__item {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    color: var(--weui-FG-1);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.weui-navbar__item.weui-bar__item_on {
    color: var(--weui-BRAND);
    border-bottom-color: var(--weui-BRAND);
}

.weui-tab__bd {
    padding: 0;
}

.weui-tab__bd-item {
    display: none;
    padding: 16px;
}

.weui-tab__bd-item.weui-tab__bd-item_active {
    display: block;
}

.weui-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 4999;
}

/* Form improvements */
.weui-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: var(--weui-FG-0);
}

.weui-cells__tips {
    padding: 20px;
    text-align: center;
    color: var(--weui-FG-1);
}

/* Button spacing */
.weui-btn_mini {
    min-width: 60px;
    padding: 4px 8px;
}

/* Remove extra spacing in dialog */
.weui-half-screen-dialog__bd .weui-cells {
    margin-top: 0;
}

/* Notification detail link styling */
.notification-detail-link {
    display: inline-block;
    padding: 6px 12px;
    background: var(--weui-BRAND);
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.notification-detail-link:active {
    background: #06AE56;
    transform: scale(0.95);
}
