/* Windows 7 Style CSS */

/* 基础重置 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #000;
    background: #000;
}

/* Windows 7 桌面背景 */
.win7-desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://wallpapercave.com/wp/6cYNfHu.jpg') no-repeat center center;
    background-size: cover;
    z-index: 1;
    overflow: hidden;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 桌面图标区域 */
.desktop-icons {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.desktop-icon {
    width: 70px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.desktop-icon img {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
}

.desktop-icon span {
    display: block;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
    font-size: 12px;
}

/* Windows 7 任务栏 */
.win7-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, #2a8dd4 0%, #0c5fa7 100%);
    border-top: 1px solid #7cb3e3;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
}

/* 开始按钮 */
.start-button {
    width: 50px;
    height: 40px;
    background: radial-gradient(circle at center, #5cb85c 0%, #449d44 100%);
    border-right: 1px solid #7cb3e3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
    transition: background 0.2s;
}

.start-button:hover {
    background: radial-gradient(circle at center, #6bd16b 0%, #51b951 100%);
}

.start-button:active {
    background: radial-gradient(circle at center, #3d8b3d 0%, #398439 100%);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.start-button img {
    width: 24px;
    height: 24px;
}

/* 任务栏图标 */
.taskbar-icons {
    display: flex;
    height: 100%;
    align-items: center;
    margin-left: 10px;
}

.taskbar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    cursor: pointer;
}

.taskbar-icon img {
    width: 24px;
    height: 24px;
}

.taskbar-icon.active {
    background-color: rgba(255,255,255,0.3);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

/* 系统托盘 */
.system-tray {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 100%;
    padding-right: 10px;
}

.system-tray-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

.system-time {
    color: white;
    font-size: 12px;
    margin-left: 10px;
    padding: 0 10px;
}

/* Windows 7 窗口样式 */
.win7-window {
    position: absolute;
    background: white;
    border: 1px solid #aaa;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.window-titlebar {
    height: 30px;
    background: linear-gradient(to bottom, #e3f1fa 0%, #c4e5f6 100%);
    display: flex;
    align-items: center;
    padding: 0 10px;
    cursor: move;
}

.window-title {
    flex-grow: 1;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-controls {
    display: flex;
}

.window-control {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    border-radius: 3px;
    cursor: pointer;
}

.window-control:hover {
    background-color: rgba(0,0,0,0.1);
}

.window-control.close:hover {
    background-color: #e81123;
    color: white;
}

.window-content {
    flex-grow: 1;
    overflow: auto;
    padding: 10px;
    background: white;
}

/* 文章窗口特定样式 */
.article-window {
    width: 800px;
    height: 600px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.article-window .window-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.article-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.article-meta span {
    margin-right: 15px;
}

.article-content {
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

/* 分词区域样式 */
.keywords-section {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.top-keywords {
    border-left: 4px solid #4a8af4;
    margin-bottom: 20px;
}

.bottom-keywords {
    border-left: 4px solid #5cb85c;
    margin-top: 30px;
}

.keywords-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    display: inline-block;
    background-color: #e9f0ff;
    color: #4a8af4;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #d0e0ff;
}

.keyword-tag:hover {
    background-color: #4a8af4;
    color: white;
    text-decoration: none;
}

.seo-meta {
    margin-top: 15px;
    font-size: 12px;
    color: #888;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

/* 开始菜单 */
.start-menu {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 350px;
    height: 480px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #aaa;
    border-bottom: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: none;
    z-index: 1001;
    overflow: hidden;
    border-top-right-radius: 5px;
}

.start-menu-header {
    height: 60px;
    background: linear-gradient(to bottom, #2a8dd4 0%, #0c5fa7 100%);
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.user-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    margin-right: 10px;
}

.user-name {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.start-menu-content {
    display: flex;
    height: calc(100% - 60px);
}

.start-menu-left {
    width: 60%;
    padding: 10px;
    overflow-y: auto;
}

.start-menu-right {
    width: 40%;
    background: #f0f0f0;
    padding: 10px;
    border-left: 1px solid #ddd;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 3px;
}

.menu-item:hover {
    background-color: rgba(0,0,0,0.05);
}

.menu-item img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.menu-item span {
    font-size: 13px;
}

.menu-category {
    font-size: 12px;
    color: #666;
    margin: 10px 0 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .article-window {
        width: 90%;
        height: 80%;
    }
}

/* 动画效果 */
@keyframes windowOpen {
    from { opacity: 0; transform: translateX(-50%) scale(0.9); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
}

.win7-window {
    animation: windowOpen 0.2s ease-out;
}