/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', '微软雅黑', Tahoma, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFFACD 50%, #F0F8FF 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 2011年经典的滚动条样式 */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background-color: #EDEDED;
}

::-webkit-scrollbar-thumb {
    background-color: #EEEEEE;
    border: 1px solid #DEE3E7;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #D1D7DC;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top, .header-bottom {
    text-align: center;
    overflow: hidden;
}

.header-banner {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-top {
    background: linear-gradient(45deg, #FFE4B5, #FFEFD5, #E6E6FA);
    padding: 10px;
}

.header-bottom {
    background: linear-gradient(45deg, #E6E6FA, #F0F8FF, #FFE4E1);
    padding: 10px;
}

/* Navigation */
.main-nav {
    background: linear-gradient(90deg, #698CC3, #7BA7E1, #698CC3);
    border-bottom: 3px solid #FFD700;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 12px 20px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border-right: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover, .main-nav a.nav-active {
    background: rgba(255,255,255,0.2);
    color: #FFFA20;
    transform: translateY(-1px);
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.main-nav a:hover::before, .main-nav a.nav-active::before {
    width: 100%;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 20px;
    min-height: calc(100vh - 300px);
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Widget Styles */
.widget {
    background: #ffffff;
    border: 2px solid #CCCCCC;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.widget-header {
    background: linear-gradient(90deg, #698CC3, #7BA7E1);
    color: #FFFFFF;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 13px;
    border-bottom: 2px solid #FFD700;
}

.widget-header h3 {
    margin: 0;
    font-size: 13px;
}

.widget-content {
    padding: 15px;
}

/* Profile Widget */
.profile-info {
    text-align: center;
}

.profile-avatar img {
    max-width: 80px;
    height: auto;
    border-radius: 50%;
    border: 3px solid #FFD700;
    margin-bottom: 10px;
}

.profile-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* Calendar Widget */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-prev, .calendar-next {
    background: #698CC3;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
}

.calendar-title {
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    font-size: 11px;
}

.calendar-day-header {
    padding: 5px;
    text-align: center;
    background: #f5f5f5;
    font-weight: bold;
    color: #666;
}

/* Music Player Widget */
.music-player {
    text-align: center;
}

.music-info {
    margin-bottom: 10px;
}

.music-title {
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

.music-artist {
    color: #666;
    font-size: 11px;
}

.music-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.music-btn {
    background: linear-gradient(45deg, #698CC3, #7BA7E1);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.play-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.music-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #698CC3, #7BA7E1);
    width: 0%;
    transition: width 0.1s ease;
}

/* Stats Widget */
.stats-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.stats-item:last-child {
    border-bottom: none;
}

.stats-label {
    color: #666;
}

.stats-value {
    color: #698CC3;
    font-weight: bold;
}

/* Main Content */
.main-content {
    background: #ffffff;
    border: 2px solid #CCCCCC;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #FFE4B5 0%, #FFEFD5 50%, #F0F8FF 100%);
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid #FFD700;
}

.welcome-section h1 {
    color: #698CC3;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.welcome-text {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    padding: 20px 30px 10px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    color: #698CC3;
    font-size: 18px;
    margin-bottom: 10px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 2px;
}

/* Posts Section */
.posts-section {
    padding-bottom: 20px;
}

.post-item {
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.post-item:hover {
    background-color: #fafafa;
}

.post-item:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 10px;
}

.post-header h3 a {
    color: #698CC3;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.post-header h3 a:hover {
    color: #FF6B6B;
}

.post-meta {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.post-meta span {
    margin-right: 15px;
}

.post-meta span::before {
    content: '• ';
    margin-right: 3px;
}

.post-meta span:first-child::before {
    content: '';
}

.post-content {
    margin: 15px 0;
    color: #666;
    line-height: 1.6;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.read-more {
    color: #698CC3;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.read-more:hover {
    color: #FF6B6B;
}

.post-stats {
    font-size: 12px;
    color: #999;
}

.post-stats span {
    margin-left: 10px;
}

/* Gallery Preview */
.gallery-preview {
    padding-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px 30px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 10px 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 12px;
    font-weight: bold;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 5px;
}

.search-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
}

.search-btn {
    background: #698CC3;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* Lists in Widgets */
.categories-list, .links-list {
    list-style: none;
}

.categories-list li, .links-list li {
    margin-bottom: 8px;
}

.categories-list a, .links-list a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
    display: block;
    padding: 3px 0;
    border-bottom: 1px dotted #ddd;
}

.categories-list a:hover, .links-list a:hover {
    color: #698CC3;
}

.categories-list span {
    color: #999;
    font-size: 11px;
}

/* Comments Widget */
.comment-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #ddd;
    font-size: 12px;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-author {
    font-weight: bold;
    color: #698CC3;
    margin-bottom: 3px;
}

.comment-excerpt {
    color: #666;
    line-height: 1.4;
    margin-bottom: 3px;
}

.comment-date {
    color: #999;
    font-size: 11px;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #698CC3, #7BA7E1, #698CC3);
    color: #FFFFFF;
    margin-top: 40px;
    padding: 30px 0;
    border-top: 3px solid #FFD700;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left, .footer-right {
    flex: 1;
}

.footer-right {
    text-align: right;
}

.footer-content p {
    margin: 5px 0;
    font-size: 12px;
}

.footer img {
    vertical-align: middle;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 200px 1fr 200px;
        gap: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 20px 15px;
    }
    
    .welcome-section h1 {
        font-size: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .post-item {
        padding: 15px 20px;
    }
    
    .section-header {
        padding: 15px 20px 10px;
    }
}

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

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.widget {
    animation: fadeIn 0.6s ease forwards;
}

.widget:nth-child(1) { animation-delay: 0.1s; }
.widget:nth-child(2) { animation-delay: 0.2s; }
.widget:nth-child(3) { animation-delay: 0.3s; }
.widget:nth-child(4) { animation-delay: 0.4s; }

.post-item {
    animation: slideIn 0.6s ease forwards;
}

.post-item:nth-child(1) { animation-delay: 0.1s; }
.post-item:nth-child(2) { animation-delay: 0.2s; }

/* Special Effects for 2011 Feel */
.widget-header::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid #FFD700;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.widget-header {
    position: relative;
}

/* 保持2011年的经典表单样式 */
input, textarea, select {
    border: 1px solid #C0C0C0;
    padding: 4px 6px;
    font-family: 'Noto Sans SC', Tahoma, Verdana, sans-serif;
    font-size: 12px;
    color: #000;
    background-color: #FFFFFF;
    border-radius: 3px;
}

input:focus, textarea:focus, select:focus {
    border-color: #698CC3;
    outline: none;
    box-shadow: 0 0 5px rgba(105, 140, 195, 0.3);
}

/* 链接的2011年经典样式 */
a:link, a:visited {
    color: #003063;
    text-decoration: none;
}

a:hover {
    color: #FF0000;
    text-decoration: underline;
}

/* 经典的表格样式 */
table {
    font-family: 'Noto Sans SC', Tahoma, Verdana, sans-serif;
    color: #000;
    font-size: 12px;
    word-break: break-all;
    border-collapse: collapse;
}

.header-style {
    background-color: #698CC3;
    color: #FFFFFF;
    font-weight: bold;
    padding: 8px;
}

.lt0 {
    border: solid 1px #FFFFFF;
    background: #FFFFFF;
    padding: 2px 6px;
}

.lt1 {
    border: solid 1px #CCCCCC;
    background: #EFEFEF;
    padding: 2px 6px;
}