/* 反馈表单样式 */
.feedback-form {
    margin-top: 30px;
}

.feedback-textarea {
    min-height: 150px;
}

/* 图片预览样式 */
#image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#image-preview .image-preview-item {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 90px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

#image-preview .image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#image-preview .remove-image {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 4px;
    transition: background 0.2s;
}

#image-preview .remove-image:hover {
    background: rgba(0, 0, 0, 0.8);
}

@media screen and (max-width: 768px) {
    #image-preview {
        gap: 8px;
    }
    #image-preview .image-preview-item {
        width: calc(25% - 6px);
        height: calc(25vw - 6px);
        max-height: 90px;
    }
    #image-preview .remove-image {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
}

/* 原有样式 */
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hot-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #eee;
    background: transparent;
}

.hot-item .meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.hot-item .rank-title {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.hot-item .rank {
    width: 32px;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ec564d;
}

.hot-item.pinned .rank {
    color: #666;
    font-weight: 400;
    font-style: normal;
}

.hot-item .title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.hot-item .hot-value {
    padding-left: 0px;
    color: #777;
    font-size: 12px;
}

.hot-item .thumb {
    width: 22%;
    max-width: 180px;
    min-width: 120px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
}

.hot-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hot-item.list-style {
    align-items: center;
    padding: 10px 16px;
}

.hot-item.list-style .title {
    font-weight: 500;
    font-size: 15px;
}

.hot-item.list-style .hot-value {
    padding-left: 0;
    margin-left: 6px;
}

.hot-item.list-style .thumb {
    width: auto;
    min-width: 48px;
    max-width: 64px;
    height: auto;
}

.hot-item.list-style .thumb img {
    height: 48px;
    width: auto;
}

.hot-item a {
    color: inherit;
    text-decoration: none;
}

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

.hot-type-one-line {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
}

.hot-type-one-line .rank {
    flex: 0 0 auto;
    width: 32px;
    text-align: center;
}

.hot-type-one-line .title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-type-one-line .hot-value {
    flex: 0 0 auto;
    margin-left: 6px;
    white-space: nowrap;
}

.hot-type-one-line .pic-thumb {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: 4px;
}

.hot-type-one-line .pic-thumb img {
    width: auto;
    max-width: 120px;
    max-height: 90px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.hot-type-other-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.hot-type-other-line .rank {
    flex: 0 0 auto;
    width: 32px;
    text-align: center;
    font-weight: 600;
    color: #ec564d;
}

.hot-type-other-line .other-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.hot-type-other-line .other-main .title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    white-space: pre-line;
    word-break: break-word;
}

.hot-type-other-line .other-main .desc {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
    word-break: break-word;
}

.hot-type-other-line .other-main .meta {
    display: flex;
    align-items: left;
    gap: 8px;
    flex-wrap: nowrap;
    color: #777;
    font-size: 12px;
}

.hot-type-other-line .other-main .meta .hot-value {
    margin-left: 0;
    white-space: nowrap;
}

.hot-type-other-line .other-main .meta .source {
    white-space: nowrap;
}

.hot-type-other-line .pic-thumb.pic-thumb-large {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 0;
}

.hot-type-other-line .pic-thumb.pic-thumb-large img {
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 120px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.hot-empty {
    padding: 24px;
    text-align: center;
    color: #999;
    border: 1px dashed #e6e6e6;
    border-radius: 8px;
}

/* download page */
.download-hero {
    padding: 48px 32px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.download-hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.download-subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 16px;
}

.download-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.download-qrcodes {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.download-card {
    width: 160px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.download-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}

.download-highlights {
    margin: 0;
    padding-left: 18px;
    color: #444;
    line-height: 1.8;
}

.download-highlights li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .download-hero {
        padding: 32px 24px;
    }
}

/* About & Policy Pages */
.ws-disclaimer-text {
    color: #999;
    font-size: 14px;
}

/* Download CTA */
.ws-download-cta {
    text-align: center;
    margin-top: 40px;
    color: #5fb878;
    font-size: 16px;
    font-weight: bold;
}

/* Sidebar Group Icon */
.ws-group-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 4px;
}

/* User Reviews */
.ws-user-review {
    margin-bottom: 16px;
}

.ws-user-review:last-child {
    margin-bottom: 0;
}

/* 404 Page Styles */
.error-404-container {
    text-align: center;
    padding: 60px 20px;
}

.error-404-number {
    font-size: 120px;
    color: #5fb878;
    line-height: 1;
    margin-bottom: 20px;
}

.error-404-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.error-404-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.error-404-actions {
    margin: 40px 0;
}

.error-404-btn {
    margin-right: 10px;
}

.error-404-download-section {
    padding: 40px 20px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-download-title {
    text-align: center;
    margin-bottom: 10px;
}

.error-404-download-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.error-404-download-section .download-actions {
    display: block;
    text-align: center;
}

.error-404-download-btn {
    display: block;
    margin: 0 auto 20px;
}

.error-404-qrcodes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 20px 0;
}

.error-404-qrcode-card {
    text-align: center;
    flex: 0 0 auto;
}

.error-404-qrcode-img {
    width: 180px;
    height: 180px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.error-404-qrcode-text {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
}

.error-404-highlights {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: center;
}

.error-404-highlights li {
    padding: 8px 0;
    color: #666;
}

@media (max-width: 768px) {
    .error-404-number {
        font-size: 80px;
    }

    .error-404-title {
        font-size: 24px;
    }

    .error-404-container {
        padding: 40px 15px;
    }

    .error-404-download-section {
        padding: 30px 15px;
        max-width: 100%;
    }

    .error-404-qrcodes {
        gap: 30px;
        padding: 10px 0;
    }

    .error-404-qrcode-img {
        width: 140px;
        height: 140px;
    }
}

/* 精简版 APP 下载卡片样式 */
.ws-app-download-card {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ws-app-download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.ws-app-download-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.ws-app-download-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px 0;
}

.ws-app-download-qr {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ws-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ws-qr-item img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.ws-qr-item img:hover {
    transform: scale(1.05);
}

.ws-qr-label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    text-align: center;
}

.ws-app-download-btn {
    width: 100%;
    border-radius: 6px;
    font-size: 14px;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    /* .ws-app-download-card {
    } */

    .ws-app-download-title {
        color: #fff;
    }

    .ws-app-download-desc {
        color: #bbb;
    }

    .ws-qr-label {
        color: #ccc;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ws-app-download-card {
        padding: 16px;
    }

    .ws-app-download-title {
        font-size: 16px;
    }

    .ws-app-download-desc {
        font-size: 12px;
    }

    .ws-app-download-qr {
        gap: 10px;
    }

    .ws-qr-item img {
        width: 70px;
        height: 70px;
    }

    .ws-qr-label {
        font-size: 11px;
    }
}
