/* DXL财务可视化系统 - 样式文件 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667EEA;
    --primary-light: #8B9CF7;
    --secondary: #764BA2;
    --success: #43E97B;
    --danger: #F5576C;
    --warning: #F093FB;
    --info: #4FACFE;
    --dark: #1a1a2e;
    --darker: #16162a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: var(--white);
    overflow-x: hidden;
}

/* 动态背景 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.blob1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #F093FB, #F5576C);
    top: 50%;
    right: -100px;
    animation-delay: -7s;
}

.blob3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #4FACFE, #43E97B);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 50px) scale(1.1); }
    50% { transform: translate(-30px, 100px) scale(0.9); }
    75% { transform: translate(50px, -50px) scale(1.05); }
}

/* 玻璃拟态 */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* 容器 */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin-bottom: 20px;
    animation: slideDown 0.6s ease-out;
    gap: 20px;
    flex-wrap: nowrap;
}

.header-left {
    flex-shrink: 1;
    min-width: 0;
}

.header-right {
    flex-shrink: 0;
}

/* ==================== 开屏动画 ==================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    animation: splashFadeIn 1s ease-out;
}

.splash-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: splashBounce 2s ease-in-out infinite;
}

.splash-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #667EEA, #764BA2, #F093FB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.splash-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.splash-loader {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.splash-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667EEA, #F093FB);
    border-radius: 2px;
    animation: splashLoad 2s ease-out forwards;
}

@keyframes splashFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes splashBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes splashLoad {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ==================== 登录/授权页面 ==================== */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 400px;
    max-width: 90vw;
    padding: 40px;
    border-radius: 20px;
    animation: authSlideUp 0.6s ease-out;
}

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-icon {
    font-size: 50px;
    text-align: center;
    margin-bottom: 16px;
}

.auth-card h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 8px;
    color: #fff;
}

.auth-desc {
    text-align: center;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-input-group {
    margin-bottom: 16px;
}

.auth-input-group .form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.auth-input-group .form-input:focus {
    border-color: #667EEA;
    background: rgba(255,255,255,0.12);
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 8px;
}

.auth-error {
    color: #F5576C;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    min-height: 18px;
}

.machine-code-box {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.machine-code-box label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

.machine-code {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #4FACFE;
    letter-spacing: 2px;
    font-weight: 600;
    user-select: all;
    cursor: pointer;
}

/* ==================== 可编辑标题 ==================== */
.editable-title, .editable-subtitle {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px 6px;
    margin: -2px -6px;
}

.editable-title:hover, .editable-subtitle:hover {
    background: rgba(255,255,255,0.1);
}

.editable-title::after {
    content: ' ✏️';
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.editable-subtitle::after {
    content: ' ✏️';
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.editable-title:hover::after, .editable-subtitle:hover::after {
    opacity: 0.7;
}

.title-input {
    background: rgba(255,255,255,0.15);
    border: 1px solid #667EEA;
    border-radius: 4px;
    color: #fff;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    padding: 2px 6px;
    outline: none;
    width: 100%;
}

/* ==================== 标签编辑弹窗 ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
}

.form-textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.tag-edit-info {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.tag-edit-balance {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.tag-edit-balance .positive {
    color: #43E97B;
    font-weight: 600;
}

.tag-edit-balance .negative {
    color: #F5576C;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 40px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a8b4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.datetime {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
}

/* 总览卡片 */
.overview-section {
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.overview-card {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.overview-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.overview-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overview-value {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: all 0.3s;
}

.overview-value.total {
    background: linear-gradient(135deg, #43E97B, #4FACFE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 36px;
}

.overview-value.deposit { color: #43E97B; }
.overview-value.withdraw { color: #F5576C; }
.overview-value.month { color: #F093FB; }

.overview-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
}

/* 模块导航 */
.module-nav {
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.module-tabs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px;
}

.module-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.module-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.module-tab:hover::before {
    left: 100%;
}

.module-tab:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.module-tab.active {
    background: linear-gradient(135deg, var(--tab-color, #667EEA), rgba(255,255,255,0.1));
    border-color: var(--tab-color, #667EEA);
    box-shadow: 0 5px 25px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
}

.module-tab .tab-icon {
    font-size: 24px;
}

.module-tab .tab-info {
    text-align: left;
}

.module-tab .tab-name {
    font-size: 15px;
    font-weight: 600;
}

.module-tab .tab-balance {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
}

/* 主内容区 */
.main-content {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    margin-bottom: 20px;
}

.module-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.module-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
}

.module-detail h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.module-detail p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.module-balance {
    text-align: right;
}

.balance-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #43E97B, #4FACFE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 操作栏 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.action-left, .action-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #43E97B, #38F9D7);
    color: #1a1a2e;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #F5576C, #F093FB);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
}

/* 视图切换 */
.view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
}

.toggle-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    font-family: inherit;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.year-select {
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.year-select option {
    background: #1a1a2e;
    color: white;
}

/* 标签卡片网格 */
.tags-section {
    margin-bottom: 20px;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.tag-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tag-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--tag-color, #667EEA);
    transition: width 0.3s;
}

.tag-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tag-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.tag-card.selected {
    border-color: var(--tag-color, #667EEA);
    box-shadow: 0 0 20px var(--tag-color, rgba(102, 126, 234, 0.3));
}

.tag-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.tag-card-name {
    font-size: 16px;
    font-weight: 600;
}

.tag-card-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tag-card:hover .tag-card-actions {
    opacity: 1;
}

.tag-card-balance {
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 5px;
}

.tag-card-balance.positive { color: #43E97B; }
.tag-card-balance.negative { color: #F5576C; }

.tag-card-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* 图表区域 */
.charts-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-card {
    padding: 25px;
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.chart-container {
    width: 100%;
    height: 300px;
}

/* 交易记录列表 */
.transaction-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-list::-webkit-scrollbar {
    width: 6px;
}

.transaction-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.transaction-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
}

.transaction-icon.deposit {
    background: rgba(67, 233, 123, 0.2);
}

.transaction-icon.withdraw {
    background: rgba(245, 87, 108, 0.2);
}

.transaction-info {
    flex: 1;
}

.transaction-name {
    font-size: 14px;
    font-weight: 500;
}

.transaction-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3px;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.transaction-amount.deposit { color: #43E97B; }
.transaction-amount.withdraw { color: #F5576C; }

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-lg {
    max-width: 600px;
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(245, 87, 108, 0.3);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: #667EEA;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

select.form-input option {
    background: #1a1a2e;
    color: white;
}

/* 标签管理 */
.tag-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag-form .form-input {
    flex: 1;
    min-width: 150px;
}

.tag-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
}

.tag-manage-info {
    flex: 1;
}

.tag-manage-name {
    font-size: 14px;
    font-weight: 500;
}

.tag-manage-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3px;
}

.tag-manage-actions {
    display: flex;
    gap: 5px;
}

/* Toast提示 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: toastIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    background: linear-gradient(135deg, #43E97B, #38F9D7);
    color: #1a1a2e;
}

.toast.error {
    background: linear-gradient(135deg, #F5576C, #F093FB);
}

.toast.info {
    background: linear-gradient(135deg, #4FACFE, #667EEA);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
    .app-container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .overview-card {
        flex-direction: column;
        gap: 20px;
    }
    
    .overview-divider {
        width: 80%;
        height: 1px;
    }
    
    .module-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .module-balance {
        text-align: center;
    }
    
    .action-bar {
        flex-direction: column;
    }
    
    .chart-row {
        grid-template-columns: 1fr;
    }
    
    .tags-grid {
        grid-template-columns: 1fr;
    }
}

/* 数字滚动动画 */
.number-animate {
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 模块管理弹窗 ==================== */
.module-form {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.form-row .form-input {
    flex: 1;
}

.form-input-sm {
    flex: 0 0 140px !important;
}

.form-color {
    flex: 0 0 60px !important;
    height: 42px;
    padding: 4px !important;
    cursor: pointer;
}

.module-list {
    max-height: 400px;
    overflow-y: auto;
}

.module-manage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.module-manage-item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(4px);
}

.module-manage-color-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--module-color);
    border-radius: 4px 0 0 4px;
}

.module-manage-info {
    flex: 1;
    padding-left: 8px;
}

.module-manage-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-manage-icon {
    font-size: 20px;
}

.module-manage-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.module-manage-actions {
    display: flex;
    gap: 8px;
}

/* ==================== 选中标签提示 ==================== */
.selected-hint {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ==================== 标签卡片选中状态增强 ==================== */
.tag-card.selected {
    border-color: var(--tag-color) !important;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3), inset 0 0 20px rgba(102, 126, 234, 0.05);
}

.tag-card.selected::after {
    content: '已选中';
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    background: var(--tag-color);
    border-radius: 10px;
    font-size: 10px;
    color: #fff;
    font-weight: 600;
}

/* ==================== 主题切换器 ==================== */
.theme-switcher {
    display: flex;
    gap: 4px;
    margin-right: 0;
    padding: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.theme-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.theme-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.theme-btn.active {
    opacity: 1;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 12px rgba(255,255,255,0.3);
}

/* ==================== 春季主题 🌸 ==================== */
[data-theme="spring"] {
    --bg-start: #2d1b3d;
    --bg-mid: #3d2347;
    --bg-end: #1f2d4a;
    --glass-bg: rgba(255, 220, 235, 0.1);
    --glass-border: rgba(255, 182, 193, 0.25);
    --text-primary: #fff5f8;
    --blob1-1: #FF9A9E;
    --blob1-2: #FECFEF;
    --blob2-1: #A18CD1;
    --blob2-2: #FBC2EB;
    --blob3-1: #84FAB0;
    --blob3-2: #8FD3F4;
}

[data-theme="spring"] body {
    background: linear-gradient(135deg, #2d1b3d 0%, #3d2347 50%, #1f2d4a 100%);
}

[data-theme="spring"] .blob1 {
    background: linear-gradient(135deg, #FF9A9E, #FECFEF);
}
[data-theme="spring"] .blob2 {
    background: linear-gradient(135deg, #A18CD1, #FBC2EB);
}
[data-theme="spring"] .blob3 {
    background: linear-gradient(135deg, #84FAB0, #8FD3F4);
}

/* ==================== 夏季主题 ☀️ ==================== */
[data-theme="summer"] {
    --bg-start: #0c2461;
    --bg-mid: #1e3799;
    --bg-end: #0a3d62;
    --glass-bg: rgba(135, 206, 250, 0.1);
    --glass-border: rgba(255, 215, 0, 0.2);
    --text-primary: #f0f8ff;
    --blob1-1: #FFD700;
    --blob1-2: #FFA500;
    --blob2-1: #00CED1;
    --blob2-2: #4169E1;
    --blob3-1: #FF6B6B;
    --blob3-2: #FFE66D;
}

[data-theme="summer"] body {
    background: linear-gradient(135deg, #0c2461 0%, #1e3799 50%, #0a3d62 100%);
}

[data-theme="summer"] .blob1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}
[data-theme="summer"] .blob2 {
    background: linear-gradient(135deg, #00CED1, #4169E1);
}
[data-theme="summer"] .blob3 {
    background: linear-gradient(135deg, #FF6B6B, #FFE66D);
}

/* ==================== 秋季主题 🍂 ==================== */
[data-theme="autumn"] {
    --bg-start: #2c1810;
    --bg-mid: #4a2c2a;
    --bg-end: #1a1a2e;
    --glass-bg: rgba(255, 183, 77, 0.08);
    --glass-border: rgba(255, 152, 0, 0.2);
    --text-primary: #fff5e6;
    --blob1-1: #FF8C42;
    --blob1-2: #D35400;
    --blob2-1: #C0392B;
    --blob2-2: #E74C3C;
    --blob3-1: #F39C12;
    --blob3-2: #E67E22;
}

[data-theme="autumn"] body {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c2a 50%, #1a1a2e 100%);
}

[data-theme="autumn"] .blob1 {
    background: linear-gradient(135deg, #FF8C42, #D35400);
}
[data-theme="autumn"] .blob2 {
    background: linear-gradient(135deg, #C0392B, #E74C3C);
}
[data-theme="autumn"] .blob3 {
    background: linear-gradient(135deg, #F39C12, #E67E22);
}

/* ==================== 冬季主题 ❄️ ==================== */
[data-theme="winter"] {
    --bg-start: #0f1729;
    --bg-mid: #1a2a4a;
    --bg-end: #0d1b2a;
    --glass-bg: rgba(200, 220, 255, 0.08);
    --glass-border: rgba(173, 216, 230, 0.2);
    --text-primary: #e8f4f8;
    --blob1-1: #E0EAFC;
    --blob1-2: #CFDEF3;
    --blob2-1: #A1C4FD;
    --blob2-2: #C2E9FB;
    --blob3-1: #667EEA;
    --blob3-2: #764BA2;
}

[data-theme="winter"] body {
    background: linear-gradient(135deg, #0f1729 0%, #1a2a4a 50%, #0d1b2a 100%);
}

[data-theme="winter"] .blob1 {
    background: linear-gradient(135deg, #E0EAFC, #CFDEF3);
}
[data-theme="winter"] .blob2 {
    background: linear-gradient(135deg, #A1C4FD, #C2E9FB);
}
[data-theme="winter"] .blob3 {
    background: linear-gradient(135deg, #667EEA, #764BA2);
}

/* 主题切换过渡动画 */
body, .glass, .bg-blob {
    transition: background 0.6s ease, background-color 0.6s ease, border-color 0.6s ease;
}

/* ==================== 季节动态元素 ==================== */
.season-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ---------- 春天：花瓣 ---------- */
.petal {
    position: absolute;
    top: -30px;
    font-size: 18px;
    opacity: 0.8;
    animation: petalFall linear infinite;
}

@keyframes petalFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    50% {
        transform: translateY(50vh) translateX(40px) rotate(180deg) scale(1.1);
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(105vh) translateX(-30px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* ==================== 图标编辑 ==================== */
.editable-icon {
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}
.editable-icon:hover {
    transform: scale(1.15) rotate(-5deg);
}
.editable-icon:hover::after {
    content: '🎨';
    position: absolute;
    bottom: -8px;
    right: -8px;
    font-size: 12px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 2px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.icon-option {
    font-size: 32px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.icon-option:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.1);
}
.icon-option.selected {
    border-color: #4FACFE;
    background: rgba(79,172,254,0.2);
    box-shadow: 0 0 12px rgba(79,172,254,0.4);
}

/* ==================== 登录页联系 ==================== */
.auth-contact {
    text-align: center;
    margin-top: 16px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}
.auth-contact:hover {
    color: #4FACFE;
}
.auth-contact span {
    margin-right: 4px;
}

.auth-contact-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}
.auth-contact-box.show {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
}
.contact-box-inner {
    background: rgba(79,172,254,0.1);
    border: 1px solid rgba(79,172,254,0.25);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.contact-box-icon {
    font-size: 28px;
    margin-bottom: 6px;
}
.contact-box-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 4px 0;
}
.contact-box-value {
    font-size: 18px;
    font-weight: 600;
    color: #4FACFE;
    letter-spacing: 1px;
    margin: 0;
}

/* ==================== 漂流瓶入口 ==================== */
.bottle-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 6px 14px 6px 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.bottle-entry:hover {
    background: rgba(79,172,254,0.2);
    border-color: rgba(79,172,254,0.4);
    transform: translateY(-1px);
}
.bottle-entry-icon {
    font-size: 22px;
    animation: bottleFloat 3s ease-in-out infinite;
}
@keyframes bottleFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
}
.bottle-entry-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.bottle-entry-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.bottle-entry-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}
.bottle-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #F5576C;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,87,108,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(245,87,108,0); }
}

/* ==================== 漂流瓶弹窗 ==================== */
.bottle-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0;
}
.bottle-tab {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.bottle-tab:hover {
    color: rgba(255,255,255,0.8);
}
.bottle-tab.active {
    color: #4FACFE;
    border-bottom-color: #4FACFE;
}

.bottle-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bottle-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid rgba(255,255,255,0.1);
}
.bottle-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}
.bottle-item.unopened {
    border-left-color: #F5576C;
    background: rgba(245,87,108,0.08);
}
.bottle-item.waiting {
    border-left-color: #FEE140;
    opacity: 0.7;
}
.bottle-item.opened {
    border-left-color: #43E97B;
}
.bottle-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.bottle-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.bottle-item-date {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}
.bottle-item-preview {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bottle-item-status {
    font-size: 11px;
    margin-top: 6px;
}
.bottle-item-status.ready { color: #F5576C; }
.bottle-item-status.locked { color: #FEE140; }
.bottle-item-status.done { color: #43E97B; }

.bottle-detail {
    max-height: 500px;
    overflow-y: auto;
}
.bottle-detail-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.bottle-detail-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
}
.bottle-detail-content {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    white-space: pre-wrap;
    margin-bottom: 16px;
}
.bottle-detail-reply {
    background: rgba(79,172,254,0.1);
    border: 1px solid rgba(79,172,254,0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.bottle-detail-reply-title {
    font-size: 13px;
    color: #4FACFE;
    font-weight: 600;
    margin-bottom: 8px;
}
.bottle-detail-reply-content {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    white-space: pre-wrap;
}
.bottle-reply-area {
    margin-top: 12px;
}
.bottle-reply-area textarea {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}
.bottle-reply-area textarea:focus {
    border-color: #4FACFE;
}
.bottle-back-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 0;
    margin-bottom: 12px;
}
.bottle-back-btn:hover {
    color: #fff;
}

/* ==================== 漂流瓶彩蛋 ==================== */
.bottle-egg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: eggFadeIn 0.5s ease;
}
.bottle-egg.show {
    display: flex;
}
@keyframes eggFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.bottle-egg-content {
    text-align: center;
    animation: eggPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes eggPop {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
.bottle-egg-icon {
    font-size: 80px;
    animation: eggBounce 1s ease infinite;
    filter: drop-shadow(0 0 20px rgba(245,87,108,0.6));
}
@keyframes eggBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}
.bottle-egg-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 16px 0 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.bottle-egg-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
}

/* 彩蛋粒子 */
.egg-particle {
    position: fixed;
    pointer-events: none;
    font-size: 24px;
    z-index: 99998;
    animation: particleFall 3s linear forwards;
}
@keyframes particleFall {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* 春天花朵摇摆装饰 */
.spring-flower {
    position: absolute;
    bottom: 20px;
    font-size: 28px;
    animation: flowerSway 3s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes flowerSway {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.05); }
}

/* ---------- 夏天：太阳+树叶 ---------- */
.summer-sun {
    position: absolute;
    top: 40px;
    right: 80px;
    font-size: 60px;
    animation: sunGlow 4s ease-in-out infinite, sunRotate 30s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

@keyframes sunGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.9));
        transform: scale(1.1);
    }
}

@keyframes sunRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.leaf {
    position: absolute;
    top: -20px;
    font-size: 20px;
    opacity: 0.7;
    animation: leafBlow linear infinite;
}

@keyframes leafBlow {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    15% { opacity: 0.8; }
    50% {
        transform: translateY(40vh) translateX(100px) rotate(200deg);
    }
    85% { opacity: 0.6; }
    100% {
        transform: translateY(105vh) translateX(200px) rotate(450deg);
        opacity: 0;
    }
}

/* 夏天树摇曳 */
.summer-tree {
    position: absolute;
    bottom: 10px;
    font-size: 50px;
    animation: treeSway 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes treeSway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* ---------- 秋天：落叶 ---------- */
.autumn-leaf {
    position: absolute;
    top: -20px;
    font-size: 22px;
    opacity: 0.85;
    animation: autumnFall linear infinite;
}

@keyframes autumnFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.9; }
    25% {
        transform: translateY(25vh) translateX(30px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(-20px) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(40px) rotate(270deg);
    }
    90% { opacity: 0.7; }
    100% {
        transform: translateY(105vh) translateX(-10px) rotate(360deg);
        opacity: 0;
    }
}

/* ---------- 冬天：雪花 ---------- */
.snowflake {
    position: absolute;
    top: -20px;
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    animation: snowFall linear infinite;
}

@keyframes snowFall {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    50% {
        transform: translateY(50vh) translateX(25px);
    }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(105vh) translateX(-15px);
        opacity: 0;
    }
}

/* 雪地 */
.snow-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(255,255,255,0.15), transparent);
    border-radius: 50% 50% 0 0 / 30px 30px 0 0;
}

/* ==================== 默认主题（无动态元素） ==================== */
[data-theme="default"] body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
[data-theme="default"] .blob1 {
    background: linear-gradient(135deg, #667EEA, #764BA2);
}
[data-theme="default"] .blob2 {
    background: linear-gradient(135deg, #F093FB, #F5576C);
}
[data-theme="default"] .blob3 {
    background: linear-gradient(135deg, #4FACFE, #43E97B);
}

/* ==================== 音乐播放器 ==================== */
.music-player {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 0;
    padding: 5px 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.music-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.music-btn.playing {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(102, 126, 234, 0); }
}

.music-info {
    max-width: 120px;
    overflow: hidden;
}

.music-title {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    display: inline-block;
    animation: musicScroll 10s linear infinite;
    animation-play-state: paused;
}

.music-title.scrolling {
    animation-play-state: running;
}

@keyframes musicScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 头部右侧布局 */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.theme-switcher {
    flex-shrink: 0;
}

.music-player {
    flex-shrink: 0;
    margin-right: 0 !important;
}

/* ==================== 目标金额相关样式 ==================== */

/* 总览卡片 - 本年目标项 */
.overview-item.overview-goal {
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}
.overview-item.overview-goal:hover {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}
.goal-edit-hint {
    font-size: 12px;
    opacity: 0.6;
    margin-left: 4px;
}
.overview-value.goal {
    color: #FEE140;
}

/* 年度目标进度条 */
.goal-progress-wrap {
    margin-top: 6px;
    width: 100%;
}
.goal-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FEE140, #FA709A);
    border-radius: 3px;
    transition: width 0.8s ease;
    width: 0%;
}
.goal-progress-text {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* 子资产卡片 - 目标区域 */
.tag-card-target {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.target-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}
.target-percent {
    font-weight: 600;
    color: #FEE140;
}
.tag-card-target .target-progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.tag-card-target .target-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* 未设置目标提示 */
.tag-card-no-target {
    margin-top: 10px;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px dashed rgba(255,255,255,0.15);
}
.tag-card-no-target:hover {
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.3);
}

/* 年度目标编辑弹窗 - 摘要 */
.yearly-goal-summary {
    margin-top: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}
.yearly-goal-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.yearly-goal-summary-item strong {
    color: #fff;
}

/* 标签编辑弹窗 - 目标完成度信息 */
.tag-edit-target-info {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(254, 225, 64, 0.1);
    border-radius: 8px;
    font-size: 13px;
    color: #FEE140;
}

/* 表单输入框 - 小尺寸 */
.form-input-sm {
    max-width: 140px;
}

/* ==================== 子资产排序相关样式 ==================== */

/* 管理列表项 - 支持拖拽 */
.tag-manage-item {
    position: relative;
    transition: all 0.2s ease;
}
.tag-manage-item.dragging {
    opacity: 0.4;
    transform: scale(0.98);
}
.tag-manage-item.drag-over {
    border-top: 2px solid var(--primary, #667EEA);
    background: rgba(102, 126, 234, 0.1);
}

/* 拖拽手柄 */
.tag-drag-handle {
    cursor: grab;
    color: rgba(255,255,255,0.3);
    font-size: 16px;
    padding: 0 8px;
    user-select: none;
    display: flex;
    align-items: center;
    letter-spacing: -2px;
}
.tag-drag-handle:hover {
    color: rgba(255,255,255,0.6);
}
.tag-drag-handle:active {
    cursor: grabbing;
}

/* 排序按钮组 */
.tag-sort-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 8px;
}
.tag-sort-actions .btn-icon {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tag-sort-actions .btn.disabled,
.tag-sort-actions .btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* 管理列表项布局调整（加入拖拽手柄和排序按钮） */
.tag-manage-item {
    display: flex;
    align-items: center;
}
.tag-manage-item .tag-manage-info {
    flex: 1;
}

/* ==================== 目标构成明细样式 ==================== */

.goal-detail-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
}
.goal-detail-module {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.goal-detail-module:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.goal-detail-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 6px;
}
.goal-detail-module-total {
    color: #FEE140;
    font-size: 13px;
}
.goal-detail-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    padding: 3px 0 3px 16px;
}
.goal-detail-total-bar {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.goal-detail-total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.goal-detail-total-row.highlight {
    color: #FEE140;
    font-weight: 600;
}
.goal-detail-total-row strong {
    color: #fff;
}

/* ==================== 无目标按钮 & 默认目标样式 ==================== */

/* 目标金额输入行（输入框+无目标按钮并排） */
.target-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.target-input-row .form-input {
    flex: 1;
}

/* 无目标按钮 */
.btn-no-target {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
    padding: 8px 14px;
    transition: all 0.2s ease;
}
.btn-no-target:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.btn-no-target.active {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* 目标输入提示文字 */
.target-input-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
}

/* 默认目标标签徽章 */
.target-default-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    margin-left: 4px;
    vertical-align: middle;
}
.goal-default-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    margin-left: 4px;
}

/* 子资产卡片 - 默认目标状态 */
.tag-card-target.is-default .target-label {
    color: rgba(255,255,255,0.45);
}
.tag-card-target.is-default .target-percent {
    color: rgba(255,255,255,0.4);
}
.tag-card-target.is-default .target-progress-fill {
    opacity: 0.5;
}

/* 目标构成列表 - 默认目标行 */
.goal-detail-tag.is-default {
    color: rgba(255,255,255,0.45);
}

/* ==================== 记事本功能样式 ==================== */

/* 记事本入口按钮 */
.note-entry {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(0, 242, 254, 0.1));
}
.note-entry:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.25), rgba(0, 242, 254, 0.2));
}

/* 记事工具栏 */
.note-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.note-count {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* 记事列表项 */
.note-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.note-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(79, 172, 254, 0.4);
    transform: translateX(4px);
}
.note-item-info {
    flex: 1;
    min-width: 0;
}
.note-item-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.note-item-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    display: flex;
    gap: 16px;
}
.note-item-created {
    opacity: 0.7;
}
.note-item-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
    flex-shrink: 0;
}

/* 记事本编辑器弹窗 */
.note-editor-modal {
    max-width: 800px !important;
    width: 90vw;
}
.note-editor-modal .modal-body {
    padding: 20px 24px;
}

/* 富文本工具栏 */
.rte-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}
.rte-btn {
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.rte-btn:hover {
    background: rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.4);
    color: #fff;
}
.rte-btn:active {
    transform: scale(0.95);
}
.rte-btn-clear {
    font-size: 11px;
    min-width: auto;
    padding: 0 10px;
}
.rte-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.15);
    margin: 0 4px;
}
.rte-select {
    height: 30px;
    padding: 0 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    cursor: pointer;
}
.rte-select option {
    background: #1a1a2e;
    color: #fff;
}
.rte-color {
    width: 32px;
    height: 30px;
    padding: 2px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    cursor: pointer;
}

/* 富文本编辑区 */
.rte-editor {
    min-height: 300px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 0 8px 8px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.8;
    outline: none;
    transition: border-color 0.2s ease;
}
.rte-editor:focus {
    border-color: rgba(79, 172, 254, 0.4);
}
.rte-editor:empty::before {
    content: attr(placeholder);
    color: rgba(255,255,255,0.3);
    pointer-events: none;
}
.rte-editor:not(.has-content):not(:focus)::before {
    content: attr(placeholder);
    color: rgba(255,255,255,0.3);
    pointer-events: none;
}
.rte-editor h1, .rte-editor h2, .rte-editor h3 {
    color: #fff;
    margin: 12px 0 8px;
}
.rte-editor p {
    margin: 6px 0;
}
.rte-editor ul, .rte-editor ol {
    padding-left: 24px;
    margin: 8px 0;
}
.rte-editor li {
    margin: 4px 0;
}
.rte-editor blockquote {
    border-left: 3px solid rgba(79, 172, 254, 0.5);
    padding-left: 12px;
    margin: 8px 0;
    color: rgba(255,255,255,0.6);
}

/* 编辑器底部 */
.note-editor-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.note-editor-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}
.note-editor-footer .modal-actions {
    display: flex;
    gap: 10px;
}

/* ==================== 音乐搜索与下载样式 ==================== */

/* 搜索栏 */
.music-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.music-search-bar .form-input {
    flex: 1;
}

/* 搜索状态 */
.music-search-status {
    margin-bottom: 12px;
    font-size: 13px;
}
.search-loading {
    color: #4facfe;
}
.search-error {
    color: #ff6b6b;
}
.search-source {
    color: rgba(255,255,255,0.6);
}

/* 搜索结果项 */
.music-result-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.music-result-item:hover {
    background: rgba(79, 172, 254, 0.1);
    border-color: rgba(79, 172, 254, 0.3);
}
.music-result-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-right: 12px;
    flex-shrink: 0;
}
.music-result-info {
    flex: 1;
    min-width: 0;
}
.music-result-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-result-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.music-result-source {
    padding: 1px 6px;
    background: rgba(79, 172, 254, 0.2);
    border-radius: 3px;
    font-size: 11px;
    color: #4facfe;
}
.music-result-action {
    margin-left: 10px;
    flex-shrink: 0;
}
.downloading {
    font-size: 12px;
    color: #4facfe;
}

/* 配置弹窗 */
.config-status {
    margin-bottom: 16px;
    font-size: 13px;
}
.config-ok {
    color: #51cf66;
}
.config-warn {
    color: #ffd43b;
}
.config-error {
    color: #ff6b6b;
}
.config-help {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
}
.config-help h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}
.config-help ol {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}
.config-help a {
    color: #4facfe;
}
.config-help p {
    margin: 8px 0 0 0;
}
#kugou-cookie-input {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    resize: vertical;
}


/* ========== 多源音乐搜索样式 ========== */
.source-switcher {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}
.source-btn {
    padding: 6px 14px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #aaa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.source-btn:hover {
    border-color: #666;
    color: #fff;
}
.source-btn.active {
    background: linear-gradient(135deg, #4a9eff, #2d7dd2);
    border-color: #4a9eff;
    color: #fff;
}
.source-selector {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}
.source-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
}
.source-option input[type="radio"] {
    cursor: pointer;
}
.config-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}
.config-tag.tag-ok {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}
.config-tag.tag-warn {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}


/* ========== 搜索源单选按钮样式 ========== */
.default-source-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}
.source-label {
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}
.source-radio {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    user-select: none;
}
.source-radio input[type="radio"] {
    cursor: pointer;
    accent-color: #4a9eff;
}
.source-radio:hover {
    color: #fff;
}
.search-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.search-input-row .form-input {
    flex: 1;
}

/* ===== 目标分类功能 ===== */
.goal-category-select {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}
.goal-category-select option {
    color: #333;
    background: #fff;
}
.goal-category-manage-link {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    margin-top: 4px;
    text-align: right;
}
.goal-category-manage-link:hover {
    color: #fff;
    text-decoration: underline;
}
.goal-category-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.goal-category-form .form-input {
    flex: 1;
}
.form-input-color {
    flex: 0 0 50px !important;
    height: 38px;
    padding: 2px;
    cursor: pointer;
}
.goal-category-list {
    max-height: 300px;
    overflow-y: auto;
}
.goal-category-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    gap: 12px;
}
.goal-category-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}
.goal-category-name {
    flex: 1;
    font-weight: 500;
}
.goal-category-actions {
    display: flex;
    gap: 8px;
}
.goal-category-hint {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}

/* 目标分类内联编辑状态 */
.goal-category-editing {
    background: #f0f7ff;
    border-color: #667EEA !important;
    gap: 8px !important;
}
.goal-category-editing .form-input {
    height: 32px;
    padding: 4px 8px;
    font-size: 13px;
}
.goal-category-editing .form-input-color {
    flex: 0 0 40px !important;
    width: 40px;
    height: 32px !important;
    padding: 2px;
    cursor: pointer;
}

/* 目标分类联动信息 */
.tag-category-info {
    margin-top: 10px;
    padding: 12px;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 3px solid #667EEA;
    font-size: 13px;
}
.tag-category-info:empty {
    display: none;
}
.tag-category-info .cat-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
}
.tag-category-info .cat-info-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.tag-category-info .cat-info-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    color: #666;
}
.tag-category-info .cat-info-stats span {
    color: #333;
    font-weight: 500;
}
.tag-category-info .cat-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag-category-info .cat-tag-item {
    padding: 2px 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 12px;
    color: #555;
}
.tag-category-info .cat-tag-item.current {
    background: #667EEA;
    color: #fff;
    border-color: #667EEA;
}

/* 目标分类标签按钮 */
.goal-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}
.goal-category-tab {
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
    white-space: nowrap;
}
.goal-category-tab:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.goal-category-tab.active {
    background: #fff;
    color: #333;
    border-color: #fff;
    font-weight: 600;
}
.goal-category-manage-link-inline {
    margin-left: 6px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
}
.goal-category-manage-link-inline:hover {
    opacity: 1;
}

/* 子资产卡片目标分类标签 */
.tag-cat-badge {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid;
    vertical-align: middle;
    line-height: 1.4;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 目标分类多选 checkbox */
.goal-category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #eee;
}
.goal-category-checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.goal-category-checkbox-item:hover {
    border-color: #667EEA;
    background: rgba(255,255,255,0.12);
}
.goal-category-checkbox-item.checked {
    background: #667EEA;
    color: #fff;
    border-color: #667EEA;
}
.goal-category-checkbox-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}
.goal-category-checkbox-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 目标区域分类标签 */
.target-cat-label {
    display: inline-block;
    padding: 1px 6px;
    margin: 0 2px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid;
    vertical-align: middle;
    line-height: 1.4;
}

/* 修复目标分类编辑状态样式 */
.goal-category-editing {
    background: rgba(255,255,255,0.08) !important;
    border-color: #667EEA !important;
}
.goal-category-editing .form-input {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}
.goal-category-editing .form-input:focus {
    border-color: #667EEA !important;
    outline: none;
}
.goal-category-editing .form-input-color {
    background: #fff !important;
    padding: 2px !important;
}
/* 编辑按钮更明显 */
.goal-category-actions .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.goal-category-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}
/* 取消按钮样式 */
.goal-category-editing .btn-secondary {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}
.goal-category-editing .btn-secondary:hover {
    background: rgba(255,255,255,0.25) !important;
}

/* 最终储蓄目标（备注标签） */
.tag-card-final-saving {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    font-size: 11px;
    color: #ffc107;
    flex-wrap: wrap;
}
.tag-card-final-saving .final-saving-icon {
    font-size: 12px;
}
.tag-card-final-saving .final-saving-amount {
    font-weight: 600;
}
.tag-card-final-saving .final-saving-date {
    opacity: 0.8;
}

/* 最终储蓄目标差值金额 */
.tag-card-final-saving .final-saving-diff {
    color: #ffc107;
    font-weight: 600;
    margin: 0 4px;
}
.final-saving-diff-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 目标区域两行排版 */
.tag-card-target .target-cat-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    font-size: 11px;
    flex-wrap: wrap;
}
.tag-card-target .target-amount-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.tag-card-target .target-amount-line .target-amount {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.tag-card-target .target-amount-line .target-percent {
    font-size: 12px;
    font-weight: 600;
    color: #ffd700;
}

/* 总差值激励条 */
.total-diff-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 193, 7, 0.15));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.total-diff-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
.total-diff-icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.total-diff-content {
    flex: 1;
}
.total-diff-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2px;
}
.total-diff-amount {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.total-diff-motivation {
    font-size: 13px;
    color: #ffc107;
    font-weight: 500;
    text-align: right;
    flex-shrink: 0;
}
