/* 通用卡片 */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    position: relative;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.1s;
}
.card:active { transform: scale(0.98); }

/* === 顶部 Header === */
.w-header {
    grid-column: span 4; grid-row: span 2;
    padding: 24px; display: flex; justify-content: space-between; align-items: center;
}
.header-left { display: flex; flex-direction: column; justify-content: center; }
.time-big { font-family: 'Georgia', serif; font-size: 72px; font-style: italic; font-weight: 400; line-height: 0.9; color: inherit; letter-spacing: -3px;}
.date-text { font-family: 'Georgia', serif; font-size: 15px; color: inherit; opacity: 0.8; margin-top: 8px; font-style: italic;}
.weather-pill { 
    margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; 
    font-size: 12px; font-weight: 600; color: #888; background: #fff; padding: 6px 14px; border-radius: 20px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* 用户信息 */
.header-right { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.user-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    background-color: #eee; background-size: cover; background-position: center;
    border: 4px solid #fff; box-shadow: var(--shadow-soft); cursor: pointer;
}
.user-info-box { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.user-name {
    font-size: 14px; font-weight: 600; color: var(--text-main); letter-spacing: 0.5px;
    padding: 4px 12px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); cursor: pointer;
}
.user-bio {
    font-size: 11px; color: #999; font-style: italic; font-family: 'Georgia', serif;
    max-width: 100px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}

/* === 音乐组件 === */
.w-music {
    grid-column: span 4; grid-row: span 1;
    background-color: #FFF; background-size: cover; background-position: center; color: #fff;
    display: flex; align-items: center; padding: 0 24px; justify-content: space-between;
    position: relative; z-index: 1; cursor: pointer;
}
.w-music::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%); z-index: -1;
}
.disk { 
    width: 40px; height: 40px; background: rgba(255,255,255,0.3); backdrop-filter: blur(8px); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.4);
}

/* === 照片组件 === */
.w-photo { grid-column: span 2; grid-row: span 2; padding: 10px; background: #fff; display: flex; align-items: center; justify-content: center;}
.photo-inner { width: 100%; height: 100%; border-radius: 18px; background-color: #f0f0f0; background-size: cover; background-position: center; }

/* === App 入口 (长条) === */
.app-card { 
    grid-column: span 2; grid-row: span 1; 
    display: flex; align-items: center; padding: 0 20px; gap: 14px; 
    border: 1px solid #f0f0f0; cursor: pointer;
    background: #fff;
}
.icon-sq { 
    width: 42px; height: 42px; border-radius: 14px; 
    display: flex; align-items: center; justify-content: center; font-size: 20px; 
    background: #f5f5f5; color: #555;
}
.app-text-bold { font-weight: 600; font-size: 13px; color: #333; letter-spacing: 0.5px; }

/* 颜色 (移除鲜艳颜色) */
.ac-chat .icon-sq, .ac-couple .icon-sq { background: #f0f0f0; color: #333; }

/* === 直播组件 === */
.w-live { grid-column: span 4; grid-row: span 2; background: #e0e0e0; cursor: pointer; }
.live-img { width: 100%; height: 100%; opacity: 0.9; background-size: cover; background-position: center;}
.live-tag { 
    position: absolute; top:18px; left:18px; 
    background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
    color: #333; padding: 4px 12px; border-radius: 12px; 
    font-size: 10px; font-weight: 700; z-index: 2;
}

/* === 备忘录 === */
.w-memo {
    grid-column: span 2; grid-row: span 2;
    padding: 20px; display: flex; flex-direction: column; 
    background: #fff; 
    border: 1px solid #f0f0f0;
}
.memo-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.memo-title { font-family: 'Georgia', serif; font-style: normal; font-size: 14px; font-weight: 600; color: #333; }
.memo-list { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.memo-item { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.memo-check { 
    width: 16px; height: 16px; border: 1.5px solid #ccc; border-radius: 4px; flex-shrink: 0; 
    display: flex; align-items: center; justify-content: center;
}
.memo-check i { font-size: 12px; color: #333; display: none; }
.memo-text { font-size: 13px; color: #555; letter-spacing: 0px; }
.memo-item.done .memo-check { background: #333; border-color: #333; }
.memo-item.done .memo-check i { display: block; color: #fff; }
.memo-item.done .memo-text { text-decoration: line-through; color: #aaa; }


/* === App 矩阵 Icon === */
.app-grid-item {
    grid-column: span 1; grid-row: span 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
}
.ag-icon { 
    width: 54px; height: 54px; border-radius: 16px; 
    display: flex; align-items: center; justify-content: center; font-size: 24px; 
    box-shadow: none; margin-bottom: 8px; transition: 0.1s;
    background: #f5f5f5;
    border: 1px solid #eee;
}
.ag-icon:active { transform: scale(0.9); }
.ag-text { font-size: 11px; color: #555; font-weight: 500; margin-top: 2px; }

/* 矩阵颜色 (统一为简约风格) */
.icon-green, .icon-purple, .icon-yellow, .icon-grey, .icon-orange, .icon-blue, .icon-red, .icon-teal {
    background: #f5f5f5;
    color: #333;
}

/* === App 容器 (Modal) === */
.app-layer {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: var(--bg-body); z-index: 200;
    transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
}
.app-layer.open { transform: translateY(0); }
.nav-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: transparent;
    position: relative; /* For centering title */
    justify-content: center; /* Center title */
}
.nav-header i {
    position: absolute;
    left: 20px;
    font-size: 28px;
    color: #555;
    cursor: pointer;
}
.nav-title {
    font-weight: 600;
    color: #555;
}
.app-body-container {
    flex: 1;
    background: #fff;
    border-radius: 36px 36px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.03);
    overflow: hidden; /* Important for child scrolling */
    display: flex; /* Make it a flex container */
    flex-direction: column;
}
.app-body { 
    flex: 1;
    padding: 25px; 
    overflow-y: auto; 
}

/* === 表单元素 === */
.form-label {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    margin-top: 20px;
}
.form-label:first-child {
    margin-top: 0;
}

.form-input, .form-select {
    width: 100%;
    padding: 14px;
    background: #F5F5F5;
    border: 1px solid #eee;
    border-radius: 14px;
    outline: none;
    font-size: 14px;
    margin-bottom: 20px;
    box-sizing: border-box; /* 确保 padding 不会影响宽度 */
}

.form-select {
    appearance: none; /* 移除默认下拉箭头 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 15l-4-4h8z' fill='rgba(102,102,102,1)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
}

.form-button-sm {
    padding: 0 18px;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: #E0E0E0;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.form-button-sm.danger {
    background: #FEE7E4;
    color: #D67D7D;
}

.range-slider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}
.form-range:hover {
    opacity: 1;
}
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.range-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    min-width: 30px;
    text-align: right;
}

/* === 主题设置特殊表单 === */
.form-textarea {
    width: 100%;
    padding: 14px;
    background: #F5F5F5;
    border: 1px solid #eee;
    border-radius: 14px;
    outline: none;
    font-size: 13px;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
    box-sizing: border-box;
    resize: vertical;
}

.form-switch-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #F5F5F5;
    border-radius: 14px;
    margin-bottom: 20px;
}
.form-switch-group span {
    font-size: 14px;
    color: #333;
}
.form-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.form-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.form-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.form-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
.form-switch input:checked + .slider {
    background-color: #66BB6A;
}
.form-switch input:checked + .slider:before {
    transform: translateX(22px);
}
.form-switch .slider.round {
    border-radius: 28px;
}
.form-switch .slider.round:before {
    border-radius: 50%;
}

.form-inline-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.form-inline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-inline-item label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.form-input-sm {
    width: 100%;
    padding: 10px;
    background: #F5F5F5;
    border: 1px solid #eee;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}
.form-color-picker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.form-color-picker::-webkit-color-swatch {
    border-radius: 10px;
    border: 1px solid #eee;
}
.form-color-picker::-moz-color-swatch {
    border-radius: 10px;
    border: 1px solid #eee;
}

/* === 主题设置分组 === */
.form-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 25px;
}
.form-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.form-group-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}
.form-group-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.form-item-row > span:first-child {
    font-size: 14px;
    color: #555;
    flex-shrink: 0;
}
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 14px;
}
.color-picker-wrapper .form-color-picker {
    width: 60px;
    height: 38px;
}
.font-preview {
    width: 38px;
    height: 38px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Georgia', serif;
    font-weight: bold;
}

/* === 主题设置图标相册 === */
.icon-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 14px;
}
.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 10px;
}
.gallery-item:hover {
    background: #e9e9e9;
}
.gallery-item .ag-icon {
    width: 50px; /* Smaller icons in gallery */
    height: 50px;
    margin-bottom: 5px;
}
.gallery-item .ag-text {
    font-size: 10px;
}

/* === Dock 栏图标 === */
.dock-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    border-radius: 12px; /* Match icon shape */
}

/* === QQ 聊天列表样式 - 韩系简约风格 === */
.qq-chat-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.qq-chat-item:active {
    transform: scale(0.98);
    background: #fafafa;
}

.qq-chat-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-right: 14px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.qq-chat-content {
    flex: 1;
    min-width: 0;
}

.qq-chat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    align-items: center;
}

.qq-chat-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    letter-spacing: -0.2px;
}

.qq-chat-time {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
    margin-left: 10px;
}

.qq-chat-preview {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.1px;
}

/* === QQ 浮动球形按钮 === */
.qq-fab-container {
    position: fixed;
    right: 20px;
    top: 80px;
    z-index: 100;
}

.qq-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 102;
}

.qq-fab:active {
    transform: scale(0.9);
}

.qq-fab.active {
    background: linear-gradient(135deg, #333 0%, #555 100%);
}

/* === QQ FAB 菜单 === */
.qq-fab-menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 160px;
    animation: fabMenuSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fabMenuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fab-menu-enter-active, .fab-menu-leave-active {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.fab-menu-enter-from, .fab-menu-leave-to {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
}

.qq-fab-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
}

.qq-fab-item:hover {
    background: #f5f5f5;
}

.qq-fab-item:active {
    transform: scale(0.96);
    background: #ebebeb;
}

.qq-fab-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.qq-fab-item:nth-child(2) .qq-fab-item-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.qq-fab-item:nth-child(3) .qq-fab-item-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.qq-fab-item-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* === 打字动画指示器 === */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    animation: typingDot 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

/* === 模态框样式 === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* === 聊天气泡菜单 === */
.bubble-menu {
    position: fixed;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 6px;
    z-index: 1001;
    animation: bubbleMenuFadeIn 0.2s ease;
    min-width: 140px;
}

@keyframes bubbleMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bubble-menu-item {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.bubble-menu-item:hover {
    background: #f5f5f5;
}

.bubble-menu-item:active {
    background: #ebebeb;
}

.bubble-menu-item.danger {
    color: #e74c3c;
}

.bubble-menu-item i {
    font-size: 16px;
}

/* === 聊天输入区样式 === */
.chat-input {
    transition: all 0.2s;
}

.chat-input:focus {
    border-color: #000;
}

.input-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.input-action-btn:hover {
    background: #f5f5f5;
    color: #000;
}

.input-action-btn:active {
    transform: scale(0.9);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn:hover {
    background: #333;
}

.send-btn:active {
    transform: scale(0.9);
}

.send-btn i {
    font-size: 18px;
}

/* === 输入扩展菜单 === */
.input-ext-menu {
    position: absolute;
    bottom: 50px;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 10px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.input-menu-enter-active, .input-menu-leave-active {
    transition: all 0.2s ease;
}

.input-menu-enter-from, .input-menu-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

.input-ext-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.input-ext-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    transition: transform 0.2s;
}

.input-ext-item:active .input-ext-icon {
    transform: scale(0.9);
}

.input-ext-item span {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

/* === 表情选择器 === */
.emoji-picker {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.emoji-picker-enter-active, .emoji-picker-leave-active {
    transition: all 0.2s ease;
}

.emoji-picker-enter-from, .emoji-picker-leave-to {
    opacity: 0;
    max-height: 0;
    padding: 0;
}

.emoji-item {
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: transform 0.1s, background 0.2s;
}

.emoji-item:hover {
    background: #f5f5f5;
}

.emoji-item:active {
    transform: scale(1.2);
}

/* === 聊天气泡样式优化 === */
.chat-bubble {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* === 聊天设置面板样式 === */
.chat-settings-tabs {
    display: flex;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.chat-settings-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.chat-settings-tab.active {
    border-bottom-color: #000;
    color: #000;
    font-weight: 600;
}

.chat-settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* === 数字输入框样式 === */
.form-input-number {
    width: 80px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s;
}

.form-input-number:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.form-input-number:hover {
    border-color: #999;
}

/* === 淡入动画 === */
.form-item-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 增强表单组样式 === */
.form-group {
    background: #fafafa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: none;
    transition: all 0.2s;
}

.form-group:hover {
    background: #f5f5f5;
}

.form-group-title {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === 优化开关组样式 === */
.form-switch-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.form-switch-group:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-switch-group span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* === 优化滑块样式 === */
.range-slider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #000 0%, #000 var(--progress, 50%), #eee var(--progress, 50%), #eee 100%);
    border-radius: 2px;
    outline: none;
    transition: all 0.2s;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #000;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #000;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.range-value {
    font-size: 13px;
    color: #000;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 8px;
}

/* === 优化输入框样式 === */
.form-input, .form-select, .form-textarea {
    transition: all 0.2s;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
    background: #fff;
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
    border-color: #ccc;
}

/* === 优化按钮样式 === */
.form-button-sm {
    transition: all 0.2s;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.form-button-sm:hover {
    background: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.form-button-sm:active {
    transform: translateY(0);
}

.form-button-sm.danger:hover {
    background: #fdd;
    color: #c55;
}

/* === 颜色选择器优化 === */
.color-picker-wrapper {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

.color-picker-wrapper:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* === 角色状态栏样式 - 韩系简约风格 === */
.character-status-bar {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin: 12px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    animation: statusBarSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes statusBarSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 基础信息栏 */
.status-basic-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.status-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.2px;
}

.status-info-item i {
    font-size: 14px;
    color: #999;
}

.status-divider {
    width: 1px;
    height: 12px;
    background: #e0e0e0;
}

/* 状态描述区 */
.status-description {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 12px;
}

.status-desc-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.status-desc-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    flex-shrink: 0;
}

.status-desc-text {
    flex: 1;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    letter-spacing: -0.1px;
}

/* 内心想法区 */
.status-thoughts {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 12px;
}

.status-thought-item {
    margin-bottom: 10px;
}

.status-thought-item:last-child {
    margin-bottom: 0;
}

.status-thought-label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-thought-content {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 10px;
    border-left: 3px solid #e0e0e0;
    letter-spacing: -0.1px;
}

/* 关系进展面板 */
.status-relationship {
    padding: 10px 0;
}

.status-rel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-rel-label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-rel-value {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.status-rel-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.status-rel-fill {
    height: 100%;
    background: linear-gradient(90deg, #000 0%, #333 100%);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.status-rel-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
    letter-spacing: -0.1px;
}

/* 状态栏切换按钮 */
.status-bar-toggle {
    position: fixed;
    right: 15px;
    top: 70px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.status-bar-toggle:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.05);
}

.status-bar-toggle:active {
    transform: scale(0.95);
}

.status-bar-toggle i {
    font-size: 20px;
    color: #666;
    transition: transform 0.3s;
}

.status-bar-toggle.active i {
    transform: rotate(180deg);
    color: #000;
}

/* 状态栏折叠动画 */
.status-collapse-enter-active, .status-collapse-leave-active {
    transition: all 0.3s ease;
}

.status-collapse-enter-from, .status-collapse-leave-to {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
}
