@charset "UTF-8";

body {
    background-color: #f5f7fa;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.el-header {
    padding: 0;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.el-menu {
    border: none;
    padding: 0 20px;
}

.voice-pack-container {
    max-width: 1200px;
    margin: 80px auto 20px;
    padding: 0 20px;
}

.voice-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.voice-pack-card {
    margin-bottom: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.voice-pack-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.voice-pack-card .el-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.voice-pack-image {
    height: 160px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.voice-pack-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.voice-pack-title {
    font-size: 16px;
    color: #303133;
    margin: 0 0 8px 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-pack-description {
    color: #909399;
    font-size: 13px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 36px;
}

.voice-pack-tags {
    margin: 0 0 12px 0;
    flex-grow: 0;
}

.voice-pack-tags .el-tag {
    margin: 0 4px 4px 0;
}

.voice-pack-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.voice-pack-actions .el-button {
    padding: 7px 12px;
}

.voice-pack-actions .el-button + .el-button {
    margin-left: 8px;
}

.el-row {
    margin-left: -20px !important;
    margin-right: -20px !important;
}

.el-col {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.search-section .el-input__inner {
    height: 45px;
    transition: all 0.3s ease;
    border: 2px solid #dcdfe6;
    border-radius: 23px;
    padding-left: 20px;
    padding-right: 20px;
}

.search-section .el-input__inner:focus {
    border-color: #409EFF;
    box-shadow: 0 0 10px rgba(64, 158, 255, 0.2);
}

.search-section .el-input__prefix {
    left: 15px;
}

.search-section .el-input--prefix .el-input__inner {
    padding-left: 40px;
}

.filter-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.el-button {
    border-radius: 20px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.el-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.el-tag {
    margin: 0 5px 5px 0;
    border-radius: 12px;
    padding: 0 12px;
}

.el-dialog {
    border-radius: 12px;
    overflow: hidden;
}

.el-dialog__header {
    padding: 20px;
    background: #f5f7fa;
    margin: 0;
}

.el-dialog__body {
    padding: 30px;
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.el-col {
    animation: fadeInUp 0.6s ease-out forwards;
}

.el-col:nth-child(1) {
    animation-delay: 0.1s;
}

.el-col:nth-child(2) {
    animation-delay: 0.2s;
}

.el-col:nth-child(3) {
    animation-delay: 0.3s;
}

/* 添加新的样式 */
.avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.avatar-uploader .el-upload:hover {
    border-color: #409EFF;
}

.avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
}

.avatar {
    width: 178px;
    height: 178px;
    display: block;
}

.create-pack-form .el-form-item {
    margin-bottom: 30px;
}

.create-pack-form .el-input__inner,
.create-pack-form .el-textarea__inner {
    transition: all 0.3s;
}

.create-pack-form .el-input__inner:focus,
.create-pack-form .el-textarea__inner:focus {
    border-color: #409EFF;
    box-shadow: 0 0 5px rgba(64, 158, 255, 0.2);
}

.favorite-content .voice-pack-card {
    margin-bottom: 30px;
}

.favorite-content .el-button--danger.is-plain {
    background: transparent;
    border-color: #f56c6c;
    color: #f56c6c;
}

.favorite-content .el-button--danger.is-plain:hover {
    background: #f56c6c;
    border-color: #f56c6c;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.favorite-header {
    animation: fadeIn 0.8s ease-out;
}

.voice-params {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.param-item {
    margin: 15px 0;
}

.param-label {
    display: block;
    margin-bottom: 5px;
    color: #606266;
    font-size: 14px;
}

.create-pack-form .el-slider {
    margin-top: 8px;
}

.avatar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.avatar-item {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    overflow: hidden;
}

.avatar-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.avatar-item.selected {
    border-color: #409EFF;
    box-shadow: 0 0 10px rgba(64, 158, 255, 0.3);
}

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

.ui-extension {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.ui-extension .el-checkbox {
    margin-right: 0;
    width: 100%;
}

.ui-extension .el-row {
    margin-bottom: 0;
}

.resource-uploader {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.resource-uploader .el-upload {
    display: inline-block;
}

.resource-uploader .el-button {
    margin-bottom: 10px;
}

.disclaimer-dialog {
    max-width: 500px !important;
    width: 80% !important;
}

/* .disclaimer-dialog .el-message-box__content {
        padding: 30px;
    } */

.disclaimer-dialog .el-message-box__message p {
    margin: 0;
    color: #606266;
}

.disclaimer-dialog .el-message-box__header {
    padding: 20px 30px;
    background: #f5f7fa;
}

.disclaimer-dialog .el-message-box__title {
    font-size: 20px;
    color: #303133;
}

.disclaimer-dialog .el-button--primary {
    padding: 12px 30px;
    font-size: 16px;
}

.disclaimer-dialog .el-message-box__btns {
    padding: 20px 30px;
}

.floating-ad {
    position: fixed;
    right: 30px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    overflow: visible;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    will-change: transform;
}

.floating-ad img {
    width: 100%;
    height: 100%;
    -webkit-object-fit: cover;
    object-fit: cover;
    margin-top: 35px;
    padding-left: 10px;
    position: relative;
    z-index: 2001;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.floating-ad .close-btn {
    position: absolute;
    top: 5px;
    right: -15px;
    width: 20px;
    height: 20px;
    background: #f56c6c;
    border-radius: 50%;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    cursor: pointer;
    z-index: 2002;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
    line-height: 1;
    padding-bottom: 2px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media screen and (max-width: 768px) {
    .voice-pack-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }

    .voice-pack-image {
        height: 140px;
    }

    .voice-pack-container {
        max-width: 100%;
        margin-top: 60px;
        padding: 0 15px;
    }

    .create-pack-form {
        padding: 20px !important;
        margin: 10px !important;
    }

    .filter-section {
        padding: 15px;
    }

    .el-form-item {
        margin-bottom: 18px;
    }

    .el-form-item__label {
        float: none !important;
        display: block !important;
        text-align: left !important;
        padding: 0 0 8px !important;
    }

    .el-form-item__content {
        margin-left: 0 !important;
    }

    .el-dialog {
        width: 90% !important;
        margin: 10vh auto !important;
    }

    .el-menu-item {
        padding: 0 10px;
    }

    .avatar-uploader .el-upload {
        width: 100%;
    }

    .avatar-uploader-icon {
        width: 100%;
        height: 120px;
        line-height: 120px;
    }

    .avatar {
        width: 100%;
        height: 120px;
    }

    .el-upload-dragger {
        min-height: 120px;
    }

    .el-upload__text {
        font-size: 14px;
    }

    .el-upload__tip {
        font-size: 12px;
    }

    /* 调整表单整体布局 */
    .create-pack-form .el-form {
        width: 100% !important;
    }

    /* 调整头像选择区域 */
    .avatar-list {
        gap: 10px;
    }

    .avatar-item {
        width: 50px;
        height: 50px;
    }

    /* 广告详情弹窗移动端适配 */
    .ad-detail-dialog {
        width: 95% !important;
        margin: 5vh auto !important;
        display: flex;
        flex-direction: column;
        max-height: 90vh !important;
    }

    .ad-detail-dialog .el-dialog__body {
        overflow-y: auto;
        max-height: calc(90vh - 110px);
        padding: 15px;
    }

    .ad-detail-content {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
        position: relative;
    }

    .ad-image {
        flex: none;
        width: 100%;
    }

    .ad-info {
        padding: 10px 0;
    }

    .ad-info h3 {
        font-size: 20px;
        margin: 0 0 15px;
    }

    .ad-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .ad-price {
        margin-bottom: 20px;
    }

    .ad-price .current-price {
        font-size: 18px;
    }

    .ad-actions {
        flex-direction: column;
        gap: 10px;
        position: relative;
        z-index: 10;
    }

    .ad-actions .el-button {
        width: 100%;
        display: block;
        margin-left: 0;
    }

    /* 悬浮广告移动端适配 */
    .floating-ad {
        right: 15px;
        width: 60px;
        height: 60px;
        z-index: 2000;
        position: fixed;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
    }

    .floating-ad img {
        margin-top: 25px;
        padding-left: 8px;
        z-index: 2001;
    }

    .floating-ad .close-btn {
        width: 18px;
        height: 18px;
        font-size: 16px;
        right: -10px;
        top: 0;
        z-index: 2002;
    }
}

@media screen and (max-width: 480px) {
    .voice-pack-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 12px;
    }

    .voice-pack-image {
        height: 160px;
    }

    .voice-pack-container {
        margin-top: 50px;
        padding: 0 10px;
    }

    .create-pack-header h2 {
        font-size: 24px !important;
    }

    .warning-tip {
        font-size: 14px !important;
    }

    .el-menu-item {
        padding: 0 8px;
        font-size: 14px;
    }

    .voice-pack-image {
        height: 140px;
    }

    .voice-pack-card h3 {
        font-size: 16px;
    }

    .voice-pack-card p {
        font-size: 13px;
    }

    .el-button {
        padding: 8px 15px;
        font-size: 13px;
    }

    .create-pack-form {
        padding: 15px !important;
    }

    .el-upload-dragger {
        min-height: 100px;
    }

    /* 广告详情弹窗小屏幕适配 */
    .ad-detail-dialog {
        width: 100% !important;
        margin: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .el-dialog__body {
        flex: 1;
        overflow-y: auto;
        max-height: calc(100vh - 110px);
        padding: 10px;
    }

    .ad-detail-content {
        height: 100%;
        padding: 0;
    }

    .ad-info h3 {
        font-size: 18px;
    }

    .ad-description {
        font-size: 13px;
    }

    .ad-price .current-price {
        font-size: 16px;
    }

    .ad-actions {
        position: sticky;
        bottom: 0;
        padding: 10px;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    /* 悬浮广告小屏幕适配 */
    .floating-ad {
        width: 50px;
        height: 50px;
        right: 10px;
        z-index: 2000;
        position: fixed;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
    }

    .floating-ad img {
        margin-top: 20px;
        padding-left: 6px;
        z-index: 2001;
    }

    .floating-ad .close-btn {
        z-index: 2002;
    }
}

/* 动画效果 */
@-webkit-keyframes bounce {
    0%, 100% {
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
    }
    50% {
        -webkit-transform: translateY(-60%);
        transform: translateY(-60%);
    }
}

@keyframes bounce {
    0%, 100% {
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
    }
    50% {
        -webkit-transform: translateY(-60%);
        transform: translateY(-60%);
    }
}

.floating-ad.animate {
    -webkit-animation: bounce 2s infinite ease-in-out;
    animation: bounce 2s infinite ease-in-out;
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .voice-pack-container {
        max-width: 960px;
    }

    .create-pack-form {
        padding: 30px 40px !important;
    }

    .el-form {
        width: 100% !important;
    }
}

/* 制作语音包弹窗样式 */
.el-message-box {
    padding-bottom: 20px;
    border-radius: 8px;
    max-width: 90%;
}

.el-message-box__header {
    padding: 15px 20px;
}

.el-message-box__content {
    padding: 30px 20px;
    text-align: center;
}

.el-message-box__btns {
    padding: 10px 20px 0;
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .el-message-box {
        width: 90% !important;
        margin: 0 auto;
    }

    .el-message-box__content {
        padding: 20px 15px;
    }

    .el-message-box__btns button {
        font-size: 14px;
        padding: 8px 15px;
    }

    /* 调整loading图标和文字的布局 */
    .el-message-box__content .el-icon-loading {
        font-size: 30px !important;
        margin-bottom: 30px !important;
    }

    .el-message-box__content span {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .el-message-box {
        width: 95% !important;
    }

    .el-message-box__content {
        padding: 15px 10px;
    }

    .el-message-box__header {
        padding: 12px 15px;
    }

    .el-message-box__title {
        font-size: 16px;
    }

    .el-message-box__content .el-icon-loading {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
}

/* 广告详情对话框基础样式 */
.ad-detail-dialog {
    max-width: 800px !important;
    width: 90% !important;
    margin: 15vh auto !important;
    display: flex;
    flex-direction: column;
    max-height: 70vh !important;
}

.ad-detail-dialog .el-dialog__header {
    padding: 20px;
    position: relative;
    z-index: 10;
    background: #f5f7fa;
    border-bottom: 1px solid #ebeef5;
}

.ad-detail-dialog .el-dialog__headerbtn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
}

.ad-detail-dialog .el-dialog__body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ad-detail-content {
    display: flex;
    gap: 30px;
    flex: 1;
}

.ad-image {
    flex: 0 0 50%;
    max-width: 50%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f7fa;
}

.ad-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.ad-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ad-info h3 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #303133;
    line-height: 1.4;
}

.ad-description {
    color: #606266;
    line-height: 1.8;
    margin-bottom: 30px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ad-price {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ad-price .original-price {
    color: #909399;
    text-decoration: line-through;
    margin-right: 20px;
    font-size: 14px;
}

.ad-price .current-price {
    color: #f56c6c;
    font-size: 24px;
    font-weight: bold;
}

.ad-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.ad-actions .el-button {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .ad-detail-dialog {
        width: 95% !important;
        margin: 10vh auto !important;
        max-height: 80vh !important;
    }

    .ad-detail-dialog .el-dialog__header {
        padding: 15px;
    }

    .ad-detail-dialog .el-dialog__body {
        padding: 15px;
    }

    .ad-detail-content {
        flex-direction: column;
        gap: 20px;
    }

    .ad-image {
        flex: none;
        max-width: 100%;
        max-height: 200px;
    }

    .ad-image img {
        height: 100%;
        object-fit: contain;
    }

    .ad-info h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .ad-description {
        font-size: 14px;
        margin-bottom: 20px;
        max-height: 200px;
    }

    .ad-price {
        margin-bottom: 15px;
        padding: 12px;
    }

    .ad-price .current-price {
        font-size: 20px;
    }

    .ad-actions {
        flex-direction: column;
        gap: 10px;
    }

    .ad-actions .el-button {
        margin: 0;
        padding: 10px 15px;
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .ad-detail-dialog {
        width: 100% !important;
        margin: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0;
    }

    .ad-detail-dialog .el-dialog__header {
        padding: 12px;
    }

    .ad-detail-dialog .el-dialog__body {
        padding: 12px;
    }

    .ad-image {
        max-height: 180px;
    }

    .ad-info h3 {
        font-size: 18px;
    }

    .ad-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .ad-price {
        padding: 10px;
    }

    .ad-price .original-price {
        font-size: 13px;
    }

    .ad-price .current-price {
        font-size: 18px;
    }

    .ad-actions .el-button {
        padding: 8px 12px;
        font-size: 14px;
    }
}