/* iOS 26 风格 - 蓝白渐变主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #007AFF;
    --primary-light: #5AC8FA;
    --primary-gradient: linear-gradient(135deg, #007AFF 0%, #5AC8FA 50%, #64D2FF 100%);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 8px 32px rgba(0, 122, 255, 0.12);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --text-primary: #1C1C1E;
    --text-secondary: #8E8E93;
    --bg-primary: linear-gradient(180deg, #F2F6FF 0%, #E8F4FF 50%, #FFFFFF 100%);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-primary);
}

/* 左侧导航栏 - iOS 26 玻璃态风格 */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 252, 255, 0.9) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-right: 1px solid rgba(0, 122, 255, 0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
}

.sidebar-header {
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(0, 122, 255, 0.06);
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.3));
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.nav-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-bg {
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item-glow {
    position: absolute;
    inset: -2px;
    background: var(--primary-gradient);
    border-radius: 18px;
    opacity: 0;
    filter: blur(12px);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.nav-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    border-radius: 4px 0 0 4px;
    transition: height 0.3s ease;
}

.nav-item:hover {
    color: var(--primary-blue);
    background: rgba(0, 122, 255, 0.06);
}

.nav-item.active {
    color: white;
}

.nav-item.active .nav-item-bg {
    opacity: 1;
}

.nav-item.active .nav-item-glow {
    opacity: 0.25;
}

.nav-item.active .nav-indicator {
    height: 50%;
}

/* 导航图标样式 - iOS 26 风格 */
.nav-icon-wrapper {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-size: 26px 26px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: var(--radius-sm);
    position: relative;
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-icon-wrapper {
    transform: scale(1.05);
}

.icon-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: inherit;
    opacity: 0;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.nav-item.active .icon-pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

.nav-text {
    font-weight: 500;
    position: relative;
    z-index: 1;
    letter-spacing: -0.2px;
}

/* 图标颜色 - iOS 26 蓝色系 */
.icon-text { background-color: rgba(255, 59, 48, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23FF3B30'/%3E%3Cstop offset='100%25' style='stop-color:%23FF6B6B'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 4h12l6 6v18a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z' fill='url(%23g1)'/%3E%3Cpath d='M20 4v6h6' fill='%23ffaaaa'/%3E%3Crect x='10' y='14' width='12' height='2' rx='1' fill='white'/%3E%3Crect x='10' y='18' width='8' height='2' rx='1' fill='white'/%3E%3Crect x='10' y='22' width='10' height='2' rx='1' fill='white'/%3E%3C/svg%3E"); }
.icon-image { background-color: rgba(52, 199, 89, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g2' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%2334C759'/%3E%3Cstop offset='100%25' style='stop-color:%2330D158'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='4' y='6' width='24' height='20' rx='4' fill='url(%23g2)'/%3E%3Ccircle cx='11' cy='13' r='3' fill='%23FFD60A'/%3E%3Cpath d='M4 22l7-7 5 5 6-8 6 10v2a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4v-2z' fill='%2330D158' opacity='0.8'/%3E%3C/svg%3E"); }
.icon-video { background-color: rgba(175, 82, 222, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g3' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23AF52DE'/%3E%3Cstop offset='100%25' style='stop-color:%23BF5AF2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='3' y='6' width='26' height='20' rx='4' fill='url(%23g3)'/%3E%3Cpolygon points='13,12 13,20 21,16' fill='white'/%3E%3C/svg%3E"); }
.icon-voice { background-color: rgba(0, 122, 255, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g4' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23007AFF'/%3E%3Cstop offset='100%25' style='stop-color:%235AC8FA'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='12' y='4' width='8' height='16' rx='4' fill='url(%23g4)'/%3E%3Cpath d='M8 16v2a8 8 0 0 0 16 0v-2' stroke='url(%23g4)' stroke-width='2.5' fill='none'/%3E%3Cpath d='M16 24v4M12 28h8' stroke='url(%23g4)' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-music { background-color: rgba(255, 45, 85, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g5' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23FF2D55'/%3E%3Cstop offset='100%25' style='stop-color:%23FF6B8A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 8v14M10 8l16-3v14' stroke='url(%23g5)' stroke-width='2.5' fill='none'/%3E%3Ccircle cx='6' cy='22' r='4' fill='url(%23g5)'/%3E%3Ccircle cx='22' cy='19' r='4' fill='url(%23g5)'/%3E%3C/svg%3E"); }
.icon-avatar { background-color: rgba(255, 149, 0, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g6' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23FF9500'/%3E%3Cstop offset='100%25' style='stop-color:%23FFCC00'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='13' fill='url(%23g6)'/%3E%3Ccircle cx='16' cy='12' r='5' fill='white'/%3E%3Cpath d='M8 26c0-4 4-7 8-7s8 3 8 7' fill='white'/%3E%3C/svg%3E"); }
.icon-thinking { background-color: rgba(90, 200, 250, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g7' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%235AC8FA'/%3E%3Cstop offset='100%25' style='stop-color:%2364D2FF'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='12' fill='url(%23g7)'/%3E%3Cpath d='M10 16h12M16 10v12' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-coding { background-color: rgba(88, 86, 214, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g8' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%235856D6'/%3E%3Cstop offset='100%25' style='stop-color:%23AF52DE'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='4' y='6' width='24' height='20' rx='4' fill='url(%23g8)'/%3E%3Ctext x='16' y='19' text-anchor='middle' font-size='10' fill='white' font-family='monospace' font-weight='bold'%3E&lt;/&gt;%3C/text%3E%3C/svg%3E"); }
.icon-agent { background-color: rgba(255, 204, 0, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g9' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23FFCC00'/%3E%3Cstop offset='100%25' style='stop-color:%23FF9500'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='12' fill='url(%23g9)'/%3E%3Ccircle cx='12' cy='14' r='2' fill='%231C1C1E'/%3E%3Ccircle cx='20' cy='14' r='2' fill='%231C1C1E'/%3E%3Cpath d='M11 20c2 3 8 3 10 0' stroke='%231C1C1E' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-3d { background-color: rgba(255, 45, 85, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g10' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23FF2D55'/%3E%3Cstop offset='100%25' style='stop-color:%23FF6B8A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='6' y='8' width='20' height='16' rx='3' fill='url(%23g10)'/%3E%3Cpath d='M10 14h12M10 18h8' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-modeling { background-color: rgba(100, 210, 255, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g11' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%2364D2FF'/%3E%3Cstop offset='100%25' style='stop-color:%235AC8FA'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 4L4 10v12l12 6 12-6V10L16 4z' fill='url(%23g11)'/%3E%3Cpath d='M16 4L4 10l12 6 12-6L16 4z' fill='%2380E8FF'/%3E%3Cpath d='M16 16v12l12-6V10L16 16z' fill='%235AC8FA'/%3E%3C/svg%3E"); }
.icon-copyright { background-color: rgba(142, 142, 147, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g12' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%238E8E93'/%3E%3Cstop offset='100%25' style='stop-color:%23636366'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='12' fill='url(%23g12)'/%3E%3Cpath d='M18.5 12.5c-1.5-1-3.5-1-5 0s-2 3-1.5 4.5 2 2.5 3.5 2.5 2.5-.5 3-1.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* 中间工具列表 - iOS 26 卡片风格 */
.tool-list {
    flex: 1;
    min-width: 340px;
    max-width: 440px;
    background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
    border-right: 1px solid rgba(0, 122, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.list-header {
    padding: 24px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 122, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
}

.list-header h2 {
    font-size: 22px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.tools-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 工具卡片 - iOS 26 精致玻璃态卡片 */
.tool-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
    border: 1px solid rgba(0, 122, 255, 0.08);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: visible;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.15);
}

.tool-card.active {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(90, 200, 250, 0.03) 100%);
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.15);
}

/* 工具图标 */
.tool-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
    background: #f5f5f5;
}

.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.tool-card:hover .tool-icon {
    transform: scale(1.05);
}

.tool-icon span { 
    display: none;
}

/* 图标加载失败时的回退样式 */
.icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: var(--radius-md);
}

.tool-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tool-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.tool-card.active .tool-info h3 {
    color: var(--primary-blue);
}

.tool-rating { 
    display: flex;
    align-items: center;
}

.stars { 
    color: #FFD60A; 
    font-size: 14px; 
    letter-spacing: 1px;
    line-height: 1;
}

.tool-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}

.tag-recommend { 
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.12) 0%, rgba(90, 200, 250, 0.12) 100%);
    color: var(--primary-blue);
}

.tag-free { 
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.12) 0%, rgba(48, 209, 88, 0.12) 100%);
    color: #34C759;
}

.tag-open { 
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.12) 0%, rgba(255, 204, 0, 0.12) 100%);
    color: #FF9500;
}

.tag-other { 
    background: rgba(142, 142, 147, 0.1);
    color: var(--text-secondary);
}

/* 卡片左侧指示条 */
.tool-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.tool-card.active .tool-indicator {
    height: 40%;
}

/* 卡片右侧箭头 */
.tool-arrow {
    font-size: 20px;
    font-weight: 300;
    color: rgba(0, 122, 255, 0.25);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tool-card:hover .tool-arrow {
    color: var(--primary-blue);
    transform: translateX(3px);
}

.tool-card.active .tool-arrow {
    color: var(--primary-blue);
}

/* 列表底部 */
.list-footer {
    padding: 18px 20px;
    border-top: 1px solid rgba(0, 122, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 251, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.list-footer span {
    font-weight: 500;
    color: var(--text-secondary);
}

.pagination { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.page-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 251, 255, 0.9) 100%);
    border: 1px solid rgba(0, 122, 255, 0.1);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-btn:hover { 
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(90, 200, 250, 0.08) 100%);
    border-color: rgba(0, 122, 255, 0.2);
    color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.12);
}

.page-num { 
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
}

.page-num.active { 
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}

/* 右侧详情面板 - iOS 26 风格 */
.detail-panel {
    flex: 2;
    background: linear-gradient(180deg, #FAFCFF 0%, #FFFFFF 100%);
    overflow-y: auto;
    padding: 32px 40px;
    position: relative;
}

.detail-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 122, 255, 0.08);
    position: relative;
    z-index: 1;
}

.detail-header h1 { 
    font-size: 34px; 
    font-weight: 700; 
    color: var(--text-primary);
    letter-spacing: -0.8px;
}

.detail-link { 
    color: white;
    text-decoration: none; 
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    background: var(--primary-gradient);
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.detail-link:hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.detail-content { 
    display: flex; 
    flex-direction: column; 
    gap: 0;
    position: relative;
    z-index: 1;
}

/* 详情行 - iOS 26 卡片风格 */
.detail-row { 
    display: flex; 
    gap: 24px;
    padding: 20px 24px;
    margin: 0 -24px;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.detail-row:hover {
    background: rgba(0, 122, 255, 0.03);
}

.detail-label { 
    width: 140px; 
    flex-shrink: 0; 
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-top: 2px;
    letter-spacing: -0.2px;
}

.label-icon {
    font-size: 18px;
}

.detail-value { 
    flex: 1; 
    font-size: 15px; 
    color: var(--text-primary);
    line-height: 1.7;
}

.detail-value.stars { 
    color: #FFD60A; 
    font-size: 22px;
    letter-spacing: 3px;
}

.stars-display {
    font-size: 26px;
    letter-spacing: 4px;
}

.star-filled {
    color: #FFD60A;
    text-shadow: 0 2px 8px rgba(255, 214, 10, 0.4);
}

.star-empty {
    color: #E5E5EA;
}

.detail-value.link { 
    color: var(--primary-blue);
    text-decoration: none; 
    word-break: break-all;
    transition: color 0.2s;
}

.detail-value.link:hover { 
    color: #0051D5;
}

.detail-value.tags { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap;
}

.user-tag { 
    display: inline-flex;
    align-items: center;
    padding: 8px 18px; 
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(90, 200, 250, 0.1) 100%);
    color: var(--primary-blue);
    border-radius: 24px; 
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid rgba(0, 122, 255, 0.15);
}

.user-tag:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
    border-color: transparent;
}

/* 高亮框 */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.04) 0%, rgba(90, 200, 250, 0.04) 100%);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-blue);
    line-height: 1.9;
    color: var(--text-primary);
}

/* 链接容器 */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-container .link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(90, 200, 250, 0.08) 100%);
    border-radius: var(--radius-sm);
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    font-weight: 500;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.links-container .link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.25);
    border-color: transparent;
}

.link-icon {
    font-size: 18px;
}

/* 难度框 */
.difficulty-box {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.08) 0%, rgba(255, 204, 0, 0.08) 100%);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border-left: 4px solid #FF9500;
    color: #8B5A00;
    line-height: 1.8;
}

/* 价格列表 */
.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 122, 255, 0.06);
}

.pricing-item:hover {
    background: rgba(0, 122, 255, 0.04);
    transform: translateX(4px);
    border-color: rgba(0, 122, 255, 0.15);
}

.pricing-item.primary {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(90, 200, 250, 0.08) 100%);
    font-weight: 500;
    border-color: rgba(0, 122, 255, 0.15);
}

.pricing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.pricing-item.primary .pricing-dot {
    background: var(--primary-gradient);
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.5);
}

/* 截图占位符 */
.screenshot-placeholder {
    width: 280px;
    height: 160px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(90, 200, 250, 0.05) 100%);
    border: 2px dashed rgba(0, 122, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot-placeholder:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(90, 200, 250, 0.08) 100%);
    transform: scale(1.02);
}

.screenshot-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.screenshot-placeholder img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* 资源链接 */
.resources {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid rgba(0, 122, 255, 0.08);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.resource-link:hover {
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.12);
    transform: translateY(-3px);
}

.resource-icon {
    font-size: 26px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(90, 200, 250, 0.1) 100%);
    border-radius: var(--radius-md);
}

.resource-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.resource-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.resource-url {
    font-size: 13px;
    color: var(--primary-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-arrow {
    font-size: 20px;
    color: var(--primary-blue);
    transition: transform 0.2s ease;
}

.resource-link:hover .resource-arrow {
    transform: translateX(6px);
}

/* 空状态 */
.empty-state, .empty-detail { 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    height: 200px; 
    color: var(--text-secondary);
    font-size: 15px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.03) 0%, rgba(90, 200, 250, 0.03) 100%);
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(0, 122, 255, 0.15);
    gap: 12px;
}

.empty-state::before, .empty-detail::before {
    content: '📋';
    font-size: 40px;
    opacity: 0.5;
}

/* ==================== 工具图标样式已移除，改用图片方式 ==================== */
/* 图标图片放置在 icons/ 文件夹下，命名规则：{toolId}.png */
/* 例如：icons/gemini.png, icons/doubao.png, icons/chatgpt.png 等 */

/* 其余图标样式已移除 */

/* 滚动条 - iOS 26 风格 */
::-webkit-scrollbar { 
    width: 8px; 
    height: 8px; 
}

::-webkit-scrollbar-track { 
    background: transparent;
}

::-webkit-scrollbar-thumb { 
    background: rgba(0, 122, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover { 
    background: rgba(0, 122, 255, 0.35);
}

/* 响应式设计 - 多端适配 */

/* 大屏幕 (1400px以上) */
@media (min-width: 1401px) {
    .detail-panel { padding: 32px 48px; }
    .detail-header h1 { font-size: 36px; }
}

/* 中大屏幕 (1200px - 1400px) */
@media (max-width: 1400px) {
    .detail-panel { padding: 24px 32px; }
    .detail-header h1 { font-size: 30px; }
}

/* 中等屏幕 (1000px - 1200px) */
@media (max-width: 1200px) {
    .detail-panel { padding: 20px 24px; }
    .detail-row { 
        flex-direction: column; 
        gap: 10px;
        padding: 16px 20px;
    }
    .detail-label { width: auto; }
    .detail-header h1 { font-size: 26px; }
}

/* 小屏幕 (900px - 1000px) */
@media (max-width: 1000px) {
    .tool-list {
        min-width: 280px;
        max-width: 340px;
    }
}

/* 平板横屏 (768px - 900px) */
@media (max-width: 900px) {
    .sidebar { 
        width: 80px;
        padding: 0;
    }
    .logo-text, .nav-text, .nav-arrow { display: none; }
    .sidebar-header { 
        justify-content: center;
        padding: 20px 12px;
    }
    .nav-item { 
        justify-content: center; 
        padding: 14px 12px;
    }
    .nav-menu {
        padding: 12px 8px;
    }
    .nav-icon-wrapper {
        width: 44px;
        height: 44px;
    }
    .tool-list {
        min-width: 260px;
        max-width: 320px;
    }
}

/* ==================== 移动端优化 (768px以下) ==================== */
@media (max-width: 768px) {
    :root {
        --mobile-bg: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        --mobile-card-bg: rgba(255, 255, 255, 0.95);
        --mobile-nav-bg: rgba(255, 255, 255, 0.15);
    }
    
    body {
        background: var(--mobile-bg);
        min-height: 100vh;
    }
    
    .app-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        background: transparent;
    }
    
    /* 顶部导航区域 */
    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: transparent;
        border-right: none;
        border-bottom: none;
        padding: 16px 16px 0;
    }
    
    .sidebar::before {
        display: none;
    }
    
    .sidebar-header {
        display: flex;
        justify-content: center;
        padding: 8px 0 16px;
        border-bottom: none;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-icon {
        font-size: 28px;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    }
    
    .logo-text {
        display: block !important;
        font-size: 16px;
        font-weight: 700;
        background: none;
        -webkit-text-fill-color: #fff;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0,0,0,0.15);
        white-space: nowrap;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 6px;
        gap: 6px;
        width: 100%;
        background: var(--mobile-nav-bg);
        border-radius: 16px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        flex-shrink: 0;
        padding: 10px 16px;
        flex-direction: row;
        gap: 0;
        border-radius: 12px;
        background: transparent;
        border-bottom: none;
        align-items: center;
        transition: all 0.25s ease;
    }
    
    .nav-item-bg,
    .nav-item-glow,
    .nav-indicator {
        display: none;
    }
    
    .nav-item.active {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .nav-item.active .nav-text {
        color: #667eea;
        font-weight: 600;
    }
    
    .nav-text {
        display: block;
        font-size: 13px;
        white-space: nowrap;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }
    
    .nav-icon-wrapper {
        display: none;
    }
    
    /* 工具列表 */
    .tool-list {
        width: 100%;
        max-width: none;
        min-width: auto;
        border-right: none;
        background: transparent;
        padding-top: 8px;
    }
    
    .tool-list::before {
        display: none;
    }
    
    .list-header {
        display: none;
    }
    
    .tools-container {
        padding: 0 16px 16px;
        gap: 12px;
        max-height: none;
    }
    
    .tool-card {
        background: var(--mobile-card-bg);
        border-radius: 20px;
        padding: 16px;
        gap: 14px;
        border: none;
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .tool-card:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    }
    
    .tool-card:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.9);
    }
    
    .tool-card.active {
        background: var(--mobile-card-bg);
        border: 2px solid #667eea;
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
    }
    
    .tool-indicator {
        display: none;
    }
    
    .tool-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .tool-info h3 {
        font-size: 16px;
        font-weight: 600;
        color: #1a1a2e;
    }
    
    .stars {
        font-size: 13px;
    }
    
    .tool-tag {
        font-size: 11px;
        padding: 4px 10px;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .tag-recommend {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
    }
    
    .tag-free {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
        color: #fff;
    }
    
    .tag-open {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: #fff;
    }
    
    .tool-arrow {
        font-size: 20px;
        color: #667eea;
        opacity: 0.6;
    }
    
    .list-footer {
        padding: 16px 20px;
        background: transparent;
        border-top: none;
        margin: 0 16px 16px;
        background: var(--mobile-card-bg);
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    }
    
    .list-footer span {
        font-size: 14px;
        color: #666;
        font-weight: 500;
    }
    
    .page-btn {
        padding: 10px 18px;
        font-size: 14px;
        border-radius: 12px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        color: #fff;
        font-weight: 600;
    }
    
    .page-btn:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .page-num {
        padding: 10px 16px;
        font-size: 14px;
        color: #666;
    }
    
    .page-num.active {
        border-radius: 12px;
        box-shadow: none;
        background: transparent;
        color: #667eea;
        font-weight: 700;
    }
    
    /* 详情面板 */
    .detail-panel {
        padding: 0 16px 24px;
        background: transparent;
    }
    
    .detail-panel::before {
        display: none;
    }
    
    .detail-header {
        background: var(--mobile-card-bg);
        border-radius: 20px;
        padding: 20px;
        margin-bottom: 12px;
        border: none;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    }
    
    .detail-header h1 {
        font-size: 20px;
        font-weight: 700;
        color: #1a1a2e;
    }
    
    .detail-link {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 24px;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .detail-content {
        gap: 12px;
    }
    
    .detail-row {
        background: var(--mobile-card-bg);
        border-radius: 16px;
        padding: 16px 18px;
        margin: 0;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    }
    
    .detail-row:hover {
        background: var(--mobile-card-bg);
    }
    
    .detail-label {
        font-size: 12px;
        color: #888;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .label-icon {
        font-size: 14px;
    }
    
    .detail-value {
        font-size: 15px;
        color: #1a1a2e;
        line-height: 1.6;
    }
    
    .stars-display {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .highlight-box {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
        padding: 14px 16px;
        border-radius: 12px;
        border-left: 4px solid #667eea;
        font-size: 14px;
        line-height: 1.7;
    }
    
    .difficulty-box {
        background: linear-gradient(135deg, rgba(255, 149, 0, 0.1) 0%, rgba(255, 204, 0, 0.1) 100%);
        padding: 14px 16px;
        border-radius: 12px;
        border-left: 4px solid #ff9500;
        font-size: 14px;
        color: #8b5a00;
    }
    
    .links-container .link {
        display: inline-flex;
        padding: 12px 24px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        border-radius: 24px;
        font-size: 14px;
        font-weight: 600;
        border: none;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        width: auto;
    }
    
    .links-container .link:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .user-tag {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
        color: #667eea;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        border: none;
    }
    
    .user-tag:hover {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
        color: #667eea;
        transform: none;
        box-shadow: none;
    }
    
    .pricing-item {
        background: rgba(102, 126, 234, 0.06);
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 14px;
        border: none;
    }
    
    .pricing-item:hover {
        transform: none;
        background: rgba(102, 126, 234, 0.06);
    }
    
    .pricing-item.primary {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    }
    
    .pricing-dot {
        width: 6px;
        height: 6px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

/* 手机竖屏 (小于480px) */
@media (max-width: 480px) {
    .sidebar {
        padding: 12px 12px 0;
    }
    
    .sidebar-header {
        padding: 6px 0 12px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .nav-menu {
        padding: 4px;
        border-radius: 14px;
    }
    
    .nav-item {
        padding: 8px 12px;
        border-radius: 10px;
    }
    
    .nav-text {
        font-size: 12px;
    }
    
    .tools-container {
        padding: 0 12px 12px;
        gap: 10px;
    }
    
    .tool-card {
        padding: 14px;
        gap: 12px;
        border-radius: 18px;
    }
    
    .tool-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-radius: 14px;
    }
    
    .tool-info h3 {
        font-size: 15px;
    }
    
    .stars {
        font-size: 12px;
    }
    
    .tool-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .list-footer {
        margin: 0 12px 12px;
        padding: 14px 16px;
        border-radius: 14px;
    }
    
    .page-btn {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .detail-panel {
        padding: 0 12px 20px;
    }
    
    .detail-header {
        padding: 16px;
        border-radius: 18px;
        margin-bottom: 10px;
    }
    
    .detail-header h1 {
        font-size: 18px;
    }
    
    .detail-link {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .detail-content {
        gap: 10px;
    }
    
    .detail-row {
        padding: 14px 16px;
        border-radius: 14px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    .highlight-box,
    .difficulty-box {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .links-container .link {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .user-tag {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .pricing-item {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
    }
}

/* 超小屏幕 (小于360px) */
@media (max-width: 360px) {
    .sidebar {
        padding: 10px 10px 0;
    }
    
    .logo-icon {
        font-size: 22px;
    }
    
    .logo-text {
        font-size: 15px;
    }
    
    .nav-item {
        padding: 7px 10px;
    }
    
    .nav-text {
        font-size: 11px;
    }
    
    .tools-container {
        padding: 0 10px 10px;
        gap: 8px;
    }
    
    .tool-card {
        padding: 12px;
        border-radius: 16px;
    }
    
    .tool-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 12px;
    }
    
    .tool-info h3 {
        font-size: 14px;
    }
    
    .detail-header h1 {
        font-size: 16px;
    }
    
    .detail-link {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* 安全区域适配 (刘海屏等) */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .sidebar {
            padding-top: max(12px, env(safe-area-inset-top));
            padding-left: max(12px, env(safe-area-inset-left));
            padding-right: max(12px, env(safe-area-inset-right));
        }
        
        .tools-container {
            padding-left: max(12px, env(safe-area-inset-left));
            padding-right: max(12px, env(safe-area-inset-right));
        }
        
        .detail-panel {
            padding-left: max(12px, env(safe-area-inset-left));
            padding-right: max(12px, env(safe-area-inset-right));
            padding-bottom: max(24px, env(safe-area-inset-bottom));
        }
        
        .list-footer {
            margin-left: max(12px, env(safe-area-inset-left));
            margin-right: max(12px, env(safe-area-inset-right));
        }
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-card {
    animation: fadeIn 0.3s ease forwards;
}

@media (max-width: 768px) {
    .tool-card {
        animation: slideUp 0.4s ease forwards;
    }
}

.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }
.tool-card:nth-child(7) { animation-delay: 0.35s; }
.tool-card:nth-child(8) { animation-delay: 0.4s; }

/* 玻璃态效果增强 */
@supports (backdrop-filter: blur(40px)) {
    .sidebar, .tool-list, .tool-card {
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        position: relative;
    }
    
    .sidebar-header {
        padding: 6px 0 10px;
    }
    
    .nav-menu {
        padding: 4px;
    }
    
    .nav-item {
        padding: 6px 12px;
    }
    
    .tools-container {
        padding: 0 12px 12px;
    }
    
    .tool-card {
        padding: 12px;
    }
    
    .tool-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}

/* ==================== 移动端卡片展开详情样式 ==================== */
@media (max-width: 768px) {
    /* 隐藏右侧详情面板 */
    .detail-panel {
        display: none;
    }
    
    /* 版权页面时显示详情面板 */
    .detail-panel.copyright-active {
        display: block !important;
        background: transparent !important;
        padding: 16px !important;
    }
    
    /* 卡片展开时的样式 */
    .tool-card {
        flex-wrap: wrap;
        position: relative;
    }
    
    .tool-card.active {
        border-color: #667eea;
    }
    
    .tool-card.active .tool-arrow {
        transform: rotate(90deg);
    }
    
    /* 展开的详情区域 */
    .mobile-detail {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        margin-top: 0;
    }
    
    .mobile-detail.open {
        margin-top: 14px;
    }
    
    .mobile-detail-inner {
        padding-top: 14px;
        border-top: 1px solid rgba(102, 126, 234, 0.15);
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    
    .mobile-detail-section {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .mobile-detail-label {
        font-size: 12px;
        font-weight: 600;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .mobile-detail-stars {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .mobile-detail-stars .star-filled {
        color: #FFD60A;
        text-shadow: 0 2px 6px rgba(255, 214, 10, 0.4);
    }
    
    .mobile-detail-stars .star-empty {
        color: #ddd;
    }
    
    .mobile-detail-highlight {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
        padding: 12px 14px;
        border-radius: 12px;
        border-left: 3px solid #667eea;
        font-size: 13px;
        line-height: 1.7;
        color: #333;
    }
    
    .mobile-detail-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .mobile-link-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 18px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        text-decoration: none;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .mobile-link-btn:active {
        transform: scale(0.96);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    
    .mobile-detail-difficulty {
        background: linear-gradient(135deg, rgba(255, 149, 0, 0.1) 0%, rgba(255, 204, 0, 0.1) 100%);
        padding: 12px 14px;
        border-radius: 12px;
        border-left: 3px solid #ff9500;
        font-size: 13px;
        line-height: 1.7;
        color: #8b5a00;
    }
    
    .mobile-detail-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .mobile-user-tag {
        display: inline-flex;
        padding: 6px 14px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
        color: #667eea;
        border-radius: 16px;
        font-size: 12px;
        font-weight: 500;
    }
    
    .mobile-detail-pricing {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-pricing-item {
        display: flex;
        align-items: center;
        padding: 10px 14px;
        background: rgba(102, 126, 234, 0.06);
        border-radius: 10px;
        font-size: 13px;
        color: #333;
    }
    
    .mobile-pricing-item::before {
        content: '';
        width: 6px;
        height: 6px;
        background: #667eea;
        border-radius: 50%;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .mobile-pricing-item.primary {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        font-weight: 500;
    }
    
    .mobile-pricing-item.primary::before {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
    }
}

/* 超小屏幕的展开详情样式调整 */
@media (max-width: 480px) {
    .mobile-detail-inner {
        gap: 12px;
        padding-top: 12px;
    }
    
    .mobile-detail-label {
        font-size: 11px;
    }
    
    .mobile-detail-stars {
        font-size: 18px;
    }
    
    .mobile-detail-highlight,
    .mobile-detail-difficulty {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .mobile-link-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .mobile-user-tag {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .mobile-pricing-item {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ==================== 版权声明页面样式 ==================== */
.copyright-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.copyright-icon {
    font-size: 72px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.copyright-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copyright-org {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
    letter-spacing: 1px;
}

.copyright-main {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.95) 100%);
    border: 1px solid rgba(0, 122, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: left;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.copyright-main p {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 2;
    margin: 0 0 16px 0;
    text-indent: 2em;
}

.copyright-main p:last-child {
    margin-bottom: 0;
}

.copyright-main strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.copyright-footer {
    margin-top: 40px;
    padding-top: 20px;
    width: 100%;
    max-width: 600px;
}

.copyright-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* 移动端版权页面样式 */
@media (max-width: 768px) {
    .copyright-page {
        padding: 30px 16px;
    }
    
    .copyright-icon {
        font-size: 56px;
    }
    
    .copyright-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .copyright-org {
        font-size: 12px;
        margin-bottom: 24px;
    }
    
    .copyright-main {
        padding: 24px;
        border-radius: 20px;
        background: var(--mobile-card-bg);
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    }
    
    .copyright-main p {
        font-size: 14px;
        line-height: 1.9;
        margin-bottom: 14px;
    }
}

/* ==================== 全局底部栏 ==================== */
.global-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 122, 255, 0.1);
    padding: 12px 20px;
    text-align: center;
    z-index: 1000;
}

.global-footer p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 移动端底部栏样式 */
@media (max-width: 768px) {
    .global-footer {
        background: rgba(255, 255, 255, 0.9);
        padding: 10px 16px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    
    .global-footer p {
        font-size: 11px;
    }
    
    /* 给内容区域留出底部空间 */
    .app-container {
        padding-bottom: 50px;
    }
}
