/* 字体导入 */
@import url('https://fonts.font.im/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主题色 - 使用更轻松愉悦的配色 */
    --primary-bg: var(--background-gradient);
    --header-bg: rgba(255, 255, 255, 0.92);
    --primary-color: #E4967E;
    --secondary-color: #9D8AA8;
    --accent-color: #E48E8E;
    --hover-color: rgba(228, 150, 126, 0.12);
    --border-color: rgba(255, 255, 255, 0.8);
    
    /* 背景渐变 - 更柔和的过渡 */
    --background-gradient: linear-gradient(135deg, #E4B5A3 0%, #9D8AA8 100%);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(228, 150, 126, 0.12);
    --shadow-md: 0 4px 12px rgba(228, 150, 126, 0.16);
    --shadow-lg: 0 8px 24px rgba(228, 150, 126, 0.2);
    
    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --rank-bg: rgba(0, 0, 0, 0.05);
    --hover-bg: rgba(0, 0, 0, 0.03);
}

@media (prefers-color-scheme: dark) {
    :root {
        --rank-bg: rgba(255, 255, 255, 0.1);
        --hover-bg: rgba(255, 255, 255, 0.05);
        --border-color: rgba(255, 255, 255, 0.1);
    }
}

body {
    font-family: 'Noto Serif SC', serif;
    background: var(--background-gradient);
    color: var(--primary-color);
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* 头部样式 */
.app-header {
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-lg);
    z-index: 100;
}

/* Tabs样式 */
.tabs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--header-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.tabs:hover {
    transform: translateX(-4px);
}

.tab {
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.2rem;
    border-radius: var(--radius-md);
    background: transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tab:hover {
    color: var(--accent-color);
    background-color: var(--hover-color);
    transform: translateX(-2px);
}

.tab.active {
    color: var(--accent-color);
    background-color: var(--hover-color);
    font-weight: 500;
    transform: translateX(-2px);
}

.tab-icon {
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.tab:hover .tab-icon,
.tab.active .tab-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    height: 100vh;
    overflow: hidden;
}

.tab-content {
    display: none;
    height: 100%;
}

.tab-content.active {
    display: block;
    height: 100%;
}

/* iframe 样式 */
.tab-content iframe {
    width: 100%;
    height: 100vh;
    border: none;
}

/* 占位内容样式 */
.placeholder {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--secondary-color);
    background: var(--background-gradient);
}

.placeholder h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.placeholder p {
    color: var(--secondary-color);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-header {
        top: auto;
        bottom: var(--spacing-lg);
        right: 50%;
        transform: translateX(50%);
    }
    
    .tabs {
        flex-direction: row;
        padding: var(--spacing-sm);
        transform: translateY(0);
    }
    
    .tabs:hover {
        transform: translateY(-4px);
    }
    
    .tab {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
        gap: var(--spacing-sm);
    }
    
    .tab:hover,
    .tab.active {
        transform: scale(1.05);
    }
    
    .tab-icon {
        font-size: 1.2rem;
    }
}

.hot-search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-normal);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.hot-search-item:hover {
    background: var(--hover-bg);
    transform: translateX(4px);
}

.hot-search-item .rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--rank-bg);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.hot-search-item .rank.top {
    background: var(--primary-color);
    color: white;
}

.hot-search-item .title {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.hot-search-item .hot {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.update-time {
    padding: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
} 