/* 主容器 */
.sd-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* 左侧主要内容区 */
.sd-main {
    background: #f6f6f6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #fff;
}

/* 应用信息头部 */
.sd-header {
    padding: 25px;
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

.sd-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 .2rem 0.7rem rgb(94 150 255 / 35%);
}

.sd-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-app-info {
    flex: 1;
    padding-right: 200px;
}

.sd-app-title {
    font-size: 19px;
    font-weight: 450;
    color: #333;
    margin-bottom: 4px;
}

.sd-app-meta {
    color: #666;
    font-size: 14px;
    padding: 4px 0 8px;
}

.sd-app-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}

.sd-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sd-support-badge {
    display: inline-flex;
    align-items: center;
}

.sd-support-badge.free {
    color: #37a737;
}

.sd-support-badge.troll {
    color: #ff9800;
}

.sd-support-badge i {
    margin-right: 3px;
}

/* 下载按钮区域 */
.sd-download-section {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 150px;
}

/* 安装教程图标旋转动画 */
@keyframes tutorial-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.tutorial-icon-spin {
    display: inline-block;
    animation: tutorial-spin 2s linear infinite;
}

/* 修改安装教程按钮样式 */
.sd-tutorial-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 37px;
    border-radius: 10px;
    border: 1.5px dashed rgb(124 194 251);
    background: #fff;
    color: rgb(41 155 247);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.sd-tutorial-btn i {
    font-size: 15px;
}

.sd-tutorial-btn:hover {
    background: rgba(124, 194, 251, 0.1);
}

.sd-download-btn {
    height: 40px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, #4099ff, #3872ff);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.sd-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 114, 255, 0.3);
}

.sd-download-btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 内容区域 */
.sd-content-section {
    padding: 30px;
}

.sd-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sd-section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #4099ff;
    border-radius: 2px;
}

.sd-app-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    box-shadow: inset 0px 0px 4px rgb(255 255 255/0%), inset 3px 3px 10px rgb(55 84 170/10%), inset -3px -3px 10px rgb(55 84 170/8%), 0px 0px 0px rgb(255 255 255/20%) !important;
    padding: 15px;
    border-radius: 5px;
}

/* 截图区域 */
.sd-screenshots {
    margin: 20px 0;
    position: relative;
    padding: 0 20px;
}

.sd-screenshots-grid {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sd-screenshots-grid::-webkit-scrollbar {
    display: none;
}

/* 默认样式(用于横屏图片) */
.sd-screenshot-item {
    flex: 0 0 400px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

/* 竖屏截图样式 */
.sd-screenshot-item.vertical {
    flex: 0 0 200px;
    height: 433px;
}

.sd-screenshot-item.vertical img {
    object-fit: contain;
}

/* 单张横屏图片样式 */
.sd-screenshot-item.single:not(.vertical) {
    flex: 0 0 auto;
    width: 90%;
    height: 500px;
    margin: 0 auto;
}

.sd-screenshot-item.single:not(.vertical) img {
    object-fit: contain;
}

/* 单张竖屏图片样式 */
.sd-screenshot-item.single.vertical {
    flex: 0 0 auto;
    width: 300px;
    height: 600px;
    margin: 0 auto;
}

.sd-screenshot-item.single.vertical img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* 单张截图样式 */
.sd-screenshot-item.single {
    width: 100%;  /* 占满容器宽度 */
    max-width: 600px;  /* 限制最大宽度 */
    margin: 0 auto;  /* 居中显示 */
    height: auto;  /* 自适应高度 */
}

.sd-screenshot-item.single img {
    width: 100%;
    height: auto;
    max-height: 500px;  /* 限制最大高度 */
    object-fit: contain;  /* 保持图片比例 */
}

/* 单图时隐藏导航按钮 */
.sd-screenshots:has(.sd-screenshot-item.single) .sd-screenshot-nav {
    display: none;
}

/* 单图时调整容器样式 */
.sd-screenshots:has(.sd-screenshot-item.single) .sd-screenshots-grid {
    overflow: visible;  /* 移除滚动 */
    display: block;     /* 改为块级布局 */
    padding: 0;        /* 移除内边距 */
}

/* 切换按钮样式 */
.sd-screenshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.sd-screenshot-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.sd-screenshot-prev {
    left: 0;
}

.sd-screenshot-next {
    right: 0;
}

.sd-screenshot-nav i {
    font-size: 18px;
    color: #fff;
}

/* 右侧边栏 */
.sd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sd-sidebar-card {
    background: #f6f6f6;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid #fff;
}

.sd-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* 云盘下载按钮样式 */
.sd-cloud-download {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sd-cloud-btn {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sd-cloud-btn:hover {
    background: #f0f2f5;
}

.sd-cloud-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.sd-cloud-info {
    flex: 1;
}

.sd-cloud-name {
    font-size: 14px;
    font-weight: 500;
}

.sd-extract-code {
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.sd-extract-code:hover {
    color: #4099ff;
}

/* 免责声明样式 */
.sd-disclaimer {
    position: relative;
    padding: 25px 20px 15px;
    background: rgba(0, 132, 255, 0.05);
    border: 1.5px dashed #008cff;
    border-radius: 12px;
}

.sd-disclaimer-title {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #FFCC99, #FF99CC);
    color: #fff;
    padding: 4px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
}

.sd-disclaimer-content {
    font-size: 12px;
    color: #006eff;
    line-height: 1.8;
}

/* 催更输入框样式 */
.sd-update-request {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sd-update-input {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    resize: none;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    box-shadow: inset 0px 0px 4px rgb(255 255 255/0%), inset 3px 3px 10px rgb(55 84 170/10%), inset -3px -3px 10px rgb(55 84 170/8%), 0px 0px 0px rgb(255 255 255/20%) !important;
}

.sd-update-input:focus {
    border-color: #4099ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(64, 153, 255, 0.1);
}

.sd-update-input::placeholder {
    color: #999;
}

.sd-update-btn {
    height: 40px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #4099ff, #3872ff);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.sd-update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 114, 255, 0.3);
}

.sd-update-btn i {
    font-size: 16px;
}

/* 下载选项弹窗样式 */
.sd-download-options {
    padding: 15px;
}

.sd-download-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    border: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.sd-download-item:last-child {
    margin-bottom: 0;
}

.sd-download-icon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    flex-shrink: 0;
}

.sd-download-name {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-extract-code {
    margin-left: 10px;
    padding: 4px 8px;
    background: rgba(64, 153, 255, 0.08);
    border-radius: 4px;
    color: #4099ff;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

/* 下载弹窗样式 */
.sd-download-dialog {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.sd-download-dialog .layui-layer-title {
    height: 45px !important;
    line-height: 45px !important;
    padding: 0 15px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fff !important;
}

.sd-download-dialog .layui-layer-content {
    background: #fff !important;
    padding: 0 !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* 修复滚动条样式 */
.sd-download-dialog .layui-layer-content::-webkit-scrollbar {
    width: 4px;
}

.sd-download-dialog .layui-layer-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

.sd-download-dialog .layui-layer-content::-webkit-scrollbar-track {
    background: transparent;
}

/* 复制提取码的提示样式 */
.layui-layer-msg.copy-success {
    background: rgba(0,0,0,0.75) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
}

/* 波浪加载动画 */
.wave-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 40px;
    margin: 20px 0;
}

.wave-loading span {
    display: inline-block;
    width: 3px;
    height: 20px;
    background: #4099ff;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.wave-loading span:nth-child(2) { animation-delay: 0.1s; }
.wave-loading span:nth-child(3) { animation-delay: 0.2s; }
.wave-loading span:nth-child(4) { animation-delay: 0.3s; }
.wave-loading span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

/* iOS风格成功动画 */
.ios-success {
    width: 35px;
    height: 35px;
    margin: 0 auto;
    background: #4CD964;  /* iOS 成功绿色 */
    border-radius: 50%;
    position: relative;
    transform: scale(0);
    animation: ios-success-circle 0.3s ease-in-out forwards;
}

.ios-checkmark {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ios-checkmark-path {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: ios-checkmark-draw 0.3s 0.3s ease-in-out forwards;
}

@keyframes ios-success-circle {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes ios-checkmark-draw {
    100% { stroke-dashoffset: 0; }
}

/* 按钮禁用状态 */
.button-disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

.button-disabled::after {
    display: none;
}

.sd-download-item .layui-icon {
    font-size: 22px;
    margin-right: 10px;
    flex-shrink: 0;
}

.sd-download-item.disabled .layui-icon {
    color: #999;
}

.sd-download-item .layui-icon-download-circle {
    color: #4099ff;
}

.sd-download-item .layui-icon-lock {
    color: #999;
}

/* 下载按钮标签样式 */
.sd-baozhan-tip {
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #fff;
}

.sd-vip-tip {
    background: rgba(153, 153, 153, 0.1);  /* 改为灰色背景 */
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #FF9800;  /* 改为灰色文字 */
}

/* 禁用状态的下载项样式 */
.sd-download-item.disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.sd-download-item.disabled .sd-download-name {
    color: #666;
}

/* 催更历史记录样式 */
.sd-update-history {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.sd-update-history-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.sd-update-item {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sd-update-content {
    margin-bottom: 8px;
}

.sd-update-time {
    font-size: 12px;
    color: #999;
}

.sd-update-text {
    margin-top: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    gap: 8px;
}

/* 添加用户留言图标样式 */
.sd-update-icon {
    color: #4099ff;
    font-size: 14px;
    margin-top: 2px;
}

/* 留言内容容器 */
.sd-update-message {
    flex: 1;
}

.sd-admin-reply {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin: 8px 0 8px 27px;  /* 增加左边距，与用户头像对齐 */
    display: flex;
    gap: 8px;
    width: 90%;  /* 设置宽度为父容器的90% */
    position: relative;
}

.sd-admin-reply::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 10px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent #f8f9fa transparent transparent;  /* 添加小三角 */
}

.sd-admin-reply i {
    color: #4099ff;
    font-size: 14px;
    margin-top: 2px;
}

.sd-reply-content {
    flex: 1;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.sd-update-status {
    display: flex;
    justify-content: flex-end;
}

.sd-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.sd-status-badge.pending {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.sd-status-badge.processing {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.sd-status-badge.completed {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.sd-status-badge.rejected {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* 用户头像和时间样式 */
.sd-update-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sd-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.sd-update-time {
    font-size: 12px;
    color: #999;
}

/* 更新现有的留言样式 */
.sd-update-content {
    margin-bottom: 8px;
}

.sd-update-text {
    margin-top: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
}

/* 状态提示样式 */
.sd-status-hint {
    text-align: right;
    margin-top: 8px;
}

.sd-status-text {
    font-size: 12px;
    color: #999;
    padding: 2px 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* 无留言提示样式 */
.sd-no-updates {
    text-align: center;
    padding: 30px 0;
    color: #999;
}

.sd-no-updates i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.sd-no-updates p {
    font-size: 13px;
    margin: 0;
}