/* ==================== 基础样式重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--color-text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    height: 100vh;
    font-size: 15px;
    position: relative;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(156, 39, 176, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] body::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 187, 106, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(66, 165, 245, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(171, 71, 188, 0.12) 0%, transparent 50%);
}

/* ==================== 主应用容器 ==================== */
#app {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ==================== 顶部导航栏 ==================== */
.app-header {
    height: var(--layout-header-height);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #4CAF50, #2196F3, #9C27B0) 1;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 40px rgba(76, 175, 80, 0.1);
    position: relative;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-image {
    height: 28px;
    width: auto;
}

.header-logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== Tab 导航 ==================== */
.tab-navigation {
    height: var(--layout-tab-nav-height);
    display: flex;
    gap: 8px;
    padding: 0 24px;
    border-bottom: 2px solid var(--color-border-default);
    flex-shrink: 0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.tab-nav-button {
    padding: 0 24px;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px 8px 0 0;
    z-index: 1;
}

.tab-nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

.tab-nav-button:hover {
    color: var(--color-text-primary);
}

.tab-nav-button:hover::before {
    opacity: 1;
}

.tab-nav-button.is-active {
    color: #4CAF50;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(33, 150, 243, 0.1));
}

.tab-nav-button.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
    pointer-events: none;
}

/* ==================== 主内容区 ==================== */
.app-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tab-panel {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.tab-panel.is-active {
    display: block;
}

/* ==================== 页面头部 ==================== */
.page-header {
    height: var(--layout-page-header-height);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, rgba(76, 175, 80, 0.3), rgba(33, 150, 243, 0.3)) 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.page-header-title {
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
}

.page-header-title > span:first-child {
    background: linear-gradient(135deg, #2c3e50, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .page-header-title {
    color: var(--color-text-primary);
}

.page-header-actions {
    display: flex;
    gap: 6px;
}

/* ==================== 底部 ==================== */
.app-footer {
    height: var(--layout-footer-height);
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-accent-primary);
    flex-shrink: 0;
}

.footer-logo {
    height: 16px;
    width: auto;
}

.footer-link {
    color: var(--color-accent-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.footer-link:hover {
    background: var(--color-accent-primary);
    color: white;
}

/* ==================== 工具类 ==================== */
@keyframes rotate-spin {
    to { transform: rotate(360deg); }
}

.is-spinning {
    animation: rotate-spin 1s linear infinite;
}

[v-cloak] {
    display: none;
}

/* ==================== 水印 ==================== */
#watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    background-repeat: repeat;
}
