/* 云端电竞 - 样式文件 - 蓝紫色活力风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #f0eeff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2c3e50;
    background: linear-gradient(180deg, #e8e0ff 0%, #f5f0ff 30%, #f0eeff 100%);
    max-width: 100vw;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
}

/* ========== 首页样式 ========== */

/* 顶部横幅 */
.top {
    width: 100%;
}

.top img {
    display: block;
}

/* 中间内容区域 */
.middle {
    background: transparent;
    padding-bottom: 5px;
}

/* 每个区块 */
.block {
    width: 90vw;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 30px rgba(120, 80, 255, 0.12);
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.block-bar {
    height: 55px;
    background: linear-gradient(135deg, #7c5cfc 0%, #a78bfa 50%, #c4b5fd 100%);
    font-size: 1.4em;
    text-align: center;
    font-weight: 700;
    color: #fff;
    line-height: 2.5em;
    text-shadow: 1px 1px 3px rgba(80, 40, 200, 0.3);
    letter-spacing: 2px;
}

.block-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.92);
}

.item {
    width: 23vw;
    height: 28vw;
    margin-top: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item:hover {
    transform: translateY(-3px);
}

.item:active {
    transform: scale(0.93);
}

.item-logo {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(120, 80, 255, 0.15);
    transition: box-shadow 0.2s ease;
}

.item:hover .item-logo {
    box-shadow: 0 8px 30px rgba(120, 80, 255, 0.3);
}

.item-logo,
.item-logo img {
    height: 80px;
    width: 80px;
    margin: 0 auto;
}

.item-logo img {
    display: block;
    object-fit: cover;
}

.item-title {
    text-align: center;
    padding-top: 10px;
    font-size: 0.8em;
    font-weight: 700;
    color: #5b3cc4;
}

/* 底部声明 */
.announcement {
    width: 100%;
}

.announcement img {
    display: block;
}

/* 底部信息 */
.bottom {
    padding-top: 20px;
    background: linear-gradient(135deg, #7c5cfc 0%, #a78bfa 50%, #c4b5fd 100%);
    color: #fff;
}

.bottom-line {
    text-align: center;
    margin: 20px;
    font-size: 0.9em;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(80, 40, 200, 0.2);
}

.bottom-divider {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

.bottom-divider-thin {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 20px;
}

.bottom-block-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.bottom-block {
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    border-radius: 16px;
    padding: 1em;
    width: 40vw;
    background-color: rgba(255, 255, 255, 0.15);
    font-size: 0.9em;
    line-height: 2em;
    backdrop-filter: blur(5px);
}

.footer {
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0 0;
}

.copy-right {
    text-align: center;
    font-size: 0.9em;
    padding-bottom: 10px;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(124, 92, 252, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(120, 80, 255, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ========== 详情页样式 ========== */

.task-detail-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #e8e0ff 0%, #f5f0ff 30%, #f0eeff 100%);
    display: flex;
    flex-direction: column;
}

/* 返回按钮 */
.go-back {
    border-radius: 12px;
    width: 90px;
    text-align: center;
    padding: 0.5em 0;
    font-size: 0.9em;
    position: relative;
    top: 10px;
    left: 10px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(80, 40, 200, 0.2);
    box-shadow: 0 8px 25px rgba(120, 80, 255, 0.15);
    background: linear-gradient(135deg, #7c5cfc 0%, #a78bfa 100%);
    cursor: pointer;
    font-weight: 600;
}

.go-back:active {
    opacity: 0.85;
    transform: scale(0.95);
}

/* 标签容器 */
.wrapper {
    width: calc(100vw - 20px);
    margin: 25px auto 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(120, 80, 255, 0.1);
    overflow: hidden;
    background: linear-gradient(135deg, #c4b5fd, #e8e0ff);
}

/* 标签列表 */
.item-bag {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding-bottom: 1em;
    margin-top: 4px;
}

.item-bag .item {
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 0.8em 1em;
    border-radius: 22px;
    margin: 1em 0.6em 0;
    font-size: 0.8em;
    box-shadow: 0 4px 12px rgba(120, 80, 255, 0.1);
    width: auto;
    height: auto;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #5b3cc4;
}

.item-bag .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 80, 255, 0.2);
}

.item-bag .item:active {
    transform: scale(0.95);
}

.item-bag .item-active {
    border: 2px solid #7c5cfc;
    background: linear-gradient(135deg, #7c5cfc 40%, #a78bfa);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
}

/* 图片详情容器 */
.detail-holder {
    width: calc(100vw - 20px);
    margin: 4px auto 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 0 1em;
    box-shadow: 0 2px 15px rgba(120, 80, 255, 0.08);
}

.image-holder {
    width: calc(100% - 20px);
    margin: 0 auto;
}

.image-holder img {
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
}

/* 图片预览遮罩 */
.image-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(60, 30, 120, 0.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.image-preview.show {
    display: flex;
}

.image-preview img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 响应式适配 */
@media screen and (min-width: 768px) {
    .block {
        width: 600px;
    }
    
    .item {
        width: 150px;
        height: 180px;
    }

    .bottom-block {
        width: 280px;
    }

    .wrapper {
        width: 600px;
    }

    .detail-holder {
        width: 600px;
    }
}
