* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    min-height: 100vh;
    /* 将白色 rgba(255,255,255,0.2) 改为黑色 rgba(0,0,0,0.2) */
    background: 
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('https://t.alcy.cc/ycy') no-repeat center center / cover;
    padding: 20px;
    transition: all 0.3s ease;
    padding-bottom: 80px;
}

.mac-taskbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 68px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 25px;
    z-index: 9999;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mac-taskbar:hover .taskbar-btn {
    transform: scale(0.95);
    opacity: 0.85;
}

.mac-taskbar .taskbar-btn:hover {
    transform: scale(1.08) translateY(-2px);
    opacity: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.mac-taskbar .taskbar-btn.active {
    transform: scale(1.05);
}

.taskbar-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 超强立体感阴影 */
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.4),    /* 大而深的扩散阴影 */
        0 6px 15px rgba(0, 0, 0, 0.3),     /* 中等扩散阴影 */
        0 2px 4px rgba(0, 0, 0, 0.2),      /* 边缘加强阴影 */
        inset 0 1px 1px rgba(255, 255, 255, 0.4), /* 顶部高光 */
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);      /* 底部内阴影 */
    
    opacity: 0.95;
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
}

/* 高级感渐变流动动画 */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.taskbar-btn.active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.1);
    /* 激活态增强渐变对比度 */
    opacity: 1;
}

.mac-window {
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    resize: both;
    min-width: 300px;
    min-height: 200px;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shake-in-place {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-5px, 0); }
    75% { transform: translate(5px, 0); }
}

.window-shake-center {
    animation: shake 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.window-shake-in-place {
    animation: shake-in-place 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(calc(-50% - 5px), -50%); }
    75% { transform: translate(calc(-50% + 5px), -50%); }
}

.window-titlebar {
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: move;
    -webkit-app-region: drag;
}

.window-controls {
    display: flex;
    gap: 8px;
    -webkit-app-region: no-drag;
}

.window-control-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn {
    background-color: #ff5f57;
}
.close-btn:hover {
    background-color: #ff3b30;
    transform: scale(1.1);
}

.min-btn {
    background-color: #ffcc00;
}
.min-btn:hover {
    background-color: #ffd633;
    transform: scale(1.1);
}

.max-btn {
    background-color: #30d158;
    cursor: not-allowed;
}
.max-btn:hover {
    background-color: #4cd964;
}

.main-container {
    padding: 40px;
    text-align: center;
    max-height: calc(80vh - 40px);
    overflow-y: auto;
}

.main-title {
    color: #9370DB;
    font-size: clamp(22px, 5vw, 28px);
    margin-bottom: 30px;
    font-weight: 600;
    animation: fadeIn 0.5s ease-in-out;
}

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

.search-box {
    display: flex;
    justify-content: center;
}

.search-input {
    width: 100%;
    max-width: 450px;
    height: 40px;
    padding: 0 15px;
    border: 2px dashed #9370DB;
    border-radius: 12px;
    font-size: clamp(14px, 3vw, 16px);
    outline: none;
    background-color: transparent;
    color: #333;
    line-height: 40px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    border-style: solid;
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(147, 112, 219, 0.2);
}

.search-input::placeholder {
    color: #666;
    text-align: center;
}

.hint-text {
    margin-top: 15px;
    color: white;
    font-size: clamp(14px, 3vw, 16px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-in-out 0.2s both;
}

.window-minimized {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.window-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 粉色滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #FFB6C1; /* 粉色 */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF69B4; /* 深粉色 hover效果 */
}