* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: #333; }
header { background: rgba(30, 30, 30, 0.95); box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0.4rem 2rem; }
.logo { font-size: 1.5rem; font-weight: bold; color: #2c3e50; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { text-decoration: none; color: #eee; transition: color 0.3s; }
.nav-links a:hover { color: #3498db; }
.hero { position: relative; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; background: url("../images/snow.jpg") no-repeat center center / cover; color: #fff; text-align: center; padding: 0 2rem; }
.hero::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 0; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; opacity: 0.9; }
section { padding: 5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
section h2 { text-align: center; font-size: 2rem; margin-bottom: 3rem; color: #2c3e50; }
.about { background: #f8f9fa; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.project-card { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.3s; }
.project-card:hover { transform: translateY(-5px); }
.project-card h3 { color: #3498db; margin-bottom: 1rem; }
.contact { background: #f8f9fa; text-align: center; }
footer { background: #2c3e50; color: #fff; text-align: center; padding: 2rem; }
@media (max-width: 768px) { .nav-links { display: none; } .hero h1 { font-size: 2rem; } section { padding: 3rem 1rem; } }

/* Logo 艺术字与图片动态效果 */
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; animation: logo-bounce 2s ease-in-out infinite; }
@keyframes logo-bounce { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-5px) rotate(-3deg); } 75% { transform: translateY(-3px) rotate(3deg); } }
.logo-text { font-size: 1.5rem; font-weight: bold; background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: "STKaiti", "KaiTi", "楷体", cursive; letter-spacing: 2px; text-shadow: none; }

/* 导航图标样式 */
.nav-icon { width: 16px; height: 16px; fill: currentColor; vertical-align: middle; margin-right: 4px; display: inline-block; }
.nav-links a:hover .nav-icon { fill: #3498db; }

/* 导航描述文字 */
.nav-desc { display: block; font-size: 0.7rem; opacity: 0.7; margin-top: 2px; }
.nav-links a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0.2rem 0.8rem; }
.nav-links { gap: 0.5rem; }

/* 板块描述与占位内容 */
.section-desc { text-align: center; font-size: 1.1rem; color: #666; margin-bottom: 2rem; }
.placeholder-content { text-align: center; padding: 4rem 2rem; background: rgba(0,0,0,0.03); border-radius: 12px; color: #999; font-size: 1rem; border: 2px dashed #ddd; }

/* 各板块背景色区分 */
.section-books { background: #fff8f0; }
.section-travel { background: #f0fff4; }
.section-photos { background: #f8f0ff; }
.section-diary { background: #fff5f5; }
.section-guestbook { background: #f0fffc; }
.section-tools { background: #f0f7ff; }
.section-games { background: #fffbf0; }

/* Page Layout with Sidebar */
.page-layout { display: flex; gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 2rem; }
.main-content { flex: 1; min-width: 0; max-width: 800px; }
.sidebar { width: 300px; flex-shrink: 0; margin-left: auto; }

/* Widget Styles */
.widget { background: #fff; border-radius: 8px; padding: 1.2rem; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.widget h3 { font-size: 1rem; margin: 0 0 0.8rem; padding-bottom: 0.5rem; border-bottom: 2px solid #3498db; color: #333; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 0.5rem 0; border-bottom: 1px dashed #eee; font-size: 0.85rem; line-height: 1.5; }
.widget li:last-child { border-bottom: none; }
.widget .date { float: right; color: #999; font-size: 0.75rem; }
.widget a { color: #555; text-decoration: none; transition: color 0.3s; }
.widget a:hover { color: #3498db; }

@media (max-width: 768px) {
    .page-layout { flex-direction: column; padding: 1rem; }
    .sidebar { width: 100%; }
}

/* Carousel Styles */
.carousel-wrapper { position: relative; overflow: hidden; margin-bottom: 2rem; }
.carousel-track { display: flex; transition: transform 0.4s ease-in-out; }
.carousel-track > section { min-width: 100%; flex-shrink: 0; padding: 3rem 2rem; box-sizing: border-box; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10; transition: background 0.3s; }
.carousel-btn:hover { background: rgba(0,0,0,0.8); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; padding: 1rem 0; }
.carousel-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: #ccc; cursor: pointer; transition: background 0.3s; border: none; }
.carousel-dots .dot.active { background: #3498db; }
@media (max-width: 768px) {
    .carousel-track > section { padding: 2rem 1rem; }
    .carousel-btn { width: 32px; height: 32px; font-size: 1rem; }
}
