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

/* 默认浅色主题 */
:root {
    --bg-primary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --card-bg: rgba(255, 255, 255, 0.8);
    --header-bg: rgba(255, 255, 255, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* 深色主题 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-color: rgba(255, 255, 255, 0.1);
        --card-bg: rgba(30, 41, 59, 0.8);
        --header-bg: rgba(15, 23, 42, 0.9);
        --shadow-color: rgba(0, 0, 0, 0.3);
    }
}

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 高斯模糊效果增强 */
header,
.dock-link,
footer,
.bg-white\/10,
.bg-white\/20 {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 非线性流畅滑动效果 */
html {
    scroll-behavior: smooth;
}

/* 导航链接样式 */
.nav-link {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #3b82f6;
}

/* 移动端Dock栏链接样式 */
.dock-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.dock-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.dock-link.active {
    color: #3b82f6;
}

@media (prefers-color-scheme: dark) {
    .dock-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* 卡片样式增强 */
.bg-white\/10,
.bg-white\/20 {
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s ease;
}

.bg-white\/10:hover,
.bg-white\/20:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

/* 图片悬停效果增强 */
img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

img:hover {
    transform: scale(1.03);
}

/* 一言样式 */
#hitokoto {
    transition: all 0.5s ease;
}

/* 跟随鼠标的小白点特效 (桌面端) */
.mouse-dot {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
}