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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --bg-color: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-brand i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* 主要内容区 */
.section {
    display: none;
    padding: 100px 2rem 2rem;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-edit {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-top: 1rem;
}

.btn-edit:hover {
    background: var(--primary-color);
    color: white;
}

/* 首页 */
.hero {
    text-align: center;
    padding: 4rem 2rem;
}

.weather-widget {
    background: var(--gradient-2);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    display: inline-flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    min-width: 340px;
}

.weather-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-main i {
    font-size: 3rem;
}

.weather-info {
    display: flex;
    flex-direction: column;
}

#temperature {
    font-size: 2.5rem;
    font-weight: bold;
}

.weather-location-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-location-selector i {
    font-size: 1rem;
    opacity: 0.8;
}

.weather-location-selector select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.weather-location-selector select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.weather-location-selector select:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

.weather-location-selector select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.weather-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
}

.clock-widget {
    margin-bottom: 2rem;
}

#clock-time {
    font-size: 4rem;
    font-weight: 300;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}

#clock-date {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.quick-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 个人名片 */
.profile-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
}

.profile-title {
    color: var(--text-secondary);
}

.profile-info {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--primary-color);
    width: 20px;
}

.profile-bio,
.profile-skills {
    margin-bottom: 1.5rem;
}

.profile-bio h4,
.profile-skills h4 {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--gradient-1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 标签页 */
.gallery-tabs,
.collection-tabs,
.game-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 图库 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item,
.avatar-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    background: var(--bg-card);
}

.avatar-item {
    aspect-ratio: 1;
}

.gallery-item img,
.avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img,
.avatar-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

.upload-area:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.upload-area i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 收藏 */
.collection-header {
    margin-bottom: 1.5rem;
}

.book-grid,
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.book-card,
.movie-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.book-card:hover,
.movie-card:hover {
    transform: translateY(-5px);
}

.book-cover,
.movie-poster {
    aspect-ratio: 2/3;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.book-info,
.movie-info {
    padding: 1rem;
}

.book-title,
.movie-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.book-author,
.movie-year {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rating {
    color: var(--warning);
    margin-top: 0.5rem;
}

.music-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.music-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.music-item:hover {
    background: var(--border-color);
}

.music-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.music-info {
    flex: 1;
}

.music-title {
    font-weight: bold;
}

.music-artist {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.music-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

/* 博客 */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 180px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 游戏资料站 */
.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-cover {
    width: 120px;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.game-info {
    padding: 1rem;
    flex: 1;
}

.game-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.game-platform {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.game-progress {
    background: var(--bg-color);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.game-progress-bar {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
}

.game-hours {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.news-list,
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item,
.guide-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.news-item:hover,
.guide-item:hover {
    background: var(--border-color);
}

.news-title,
.guide-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.news-meta,
.guide-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 学习笔记 */
.notes-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.notes-sidebar {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
}

.notes-categories {
    margin-top: 1.5rem;
}

.notes-categories h4 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.notes-categories ul {
    list-style: none;
}

.notes-categories li {
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.notes-categories li:hover,
.notes-categories li.active {
    background: var(--primary-color);
    color: white;
}

.notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.note-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s;
    cursor: pointer;
}

.note-card:hover {
    transform: translateY(-3px);
}

.note-title {
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.note-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 工具箱 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
}

.tool-card.wide {
    grid-column: 1 / -1;
}

.tool-card h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 待办事项 */
.todo-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.todo-input-group input {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.todo-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.todo-text {
    flex: 1;
}

.todo-delete {
    color: var(--error);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.todo-item:hover .todo-delete {
    opacity: 1;
}

/* 名言 */
.quote-container {
    text-align: center;
    padding: 1rem;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quote-author {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* 投票 */
.poll-list,
.survey-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.poll-item,
.survey-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.poll-question,
.survey-title {
    font-weight: bold;
    margin-bottom: 1rem;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.poll-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.poll-bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    transition: width 0.3s;
}

/* 留言板 */
.guestbook-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

.message-form {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
}

.message-form h3 {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.message-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.message-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.message-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 网盘 */
.cloud-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.cloud-sidebar {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
}

.storage-info {
    margin: 1.5rem 0;
}

.storage-bar {
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.storage-used {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    transition: width 0.3s;
}

.cloud-categories {
    list-style: none;
}

.cloud-categories li {
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.cloud-categories li:hover,
.cloud-categories li.active {
    background: var(--primary-color);
    color: white;
}

.cloud-content {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
}

.cloud-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    color: var(--text-secondary);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.file-item {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-item:hover {
    background: var(--border-color);
}

.file-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.file-name {
    font-size: 0.9rem;
    word-break: break-all;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

.modal-content.modal-small {
    max-width: 500px;
    padding: 2rem;
}

.modal-content img {
    width: 100%;
    display: block;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.modal-actions {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .notes-layout,
    .guestbook-layout,
    .cloud-layout {
        grid-template-columns: 1fr;
    }
    
    .notes-sidebar,
    .cloud-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    #clock-time {
        font-size: 2.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card.wide {
        grid-column: 1;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 选中效果 */
::selection {
    background: var(--primary-color);
    color: white;
}
