/* 白色拟态主题 - 软件购买模板样式 */

/* ========== CSS变量定义（与header.css保持一致） ========== */
:root {
    --background-color: #ebecf0;
    --greyLight-1: #e4ebf5;
    --greyLight-2: #c8d0e7;
    --greyLight-3: #bec8e4;
    --greyDark: #6d85c1;
    --white: #fff;
    --text-a-color: #7a7e90;
    --text-a-hover: #8897d8;
    --text-li-color: #565e82;
    --primary: #6d5dfc;
    --primary-dark: #5b0eeb;
}

/* ========== 软件购买容器 ========== */
.software-purchase-container {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    background: var(--background-color);
    padding: 40px 40px;
    box-sizing: border-box;
}

/* ========== 头部标题区域 ========== */
.software-purchase-header {
    text-align: center;
    margin-bottom: 35px;
}

.software-purchase-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-li-color);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.software-purchase-description {
    font-size: 16px;
    color: var(--text-a-color);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ========== 搜索框区域 ========== */
.software-purchase-search-box {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.software-purchase-search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    background: var(--background-color);
    border: none;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
    box-sizing: border-box;
    color: var(--text-li-color);
}

.software-purchase-search-input::placeholder {
    color: var(--text-a-color);
}

.software-purchase-search-input:focus {
    outline: none;
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
}

.software-purchase-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--background-color);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.software-purchase-search-btn:hover {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary-dark);
}

/* ========== 主导航区域 ========== */
.software-purchase-main-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 0;
}

.software-purchase-main-nav-btn {
    padding: 12px 28px;
    background: var(--background-color);
    border: none;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-li-color);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.software-purchase-main-nav-btn:hover {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.software-purchase-main-nav-btn.active {
    background: var(--background-color);
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

/* ========== 子导航区域 ========== */
.software-purchase-sub-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 15px;
    flex-wrap: wrap;
    background: var(--background-color);
    border-radius: 15px;
    min-height: 60px;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.software-purchase-sub-nav-btn {
    padding: 10px 20px;
    background: var(--background-color);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-li-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.software-purchase-sub-nav-btn:hover {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.software-purchase-sub-nav-btn.active {
    background: var(--background-color);
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

/* ========== 软件内容区域 ========== */
.software-purchase-content-area {
    animation: fadeIn 1.4s ease;
    max-width: 2000px;
    margin: 0 auto;
}

/* ========== 软件展示区域 ========== */
.software-purchase-display {
    display: none;
    animation: fadeIn 0.5s ease;
}

.software-purchase-display.active {
    display: block;
}

/* ========== 软件卡片网格 ========== */
.software-purchase-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* ========== 软件卡片样式 ========== */
.software-purchase-card {
    background: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
    border: none;
}

.software-purchase-card:hover {
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    transform: translateY(-3px);
}

/* ========== 卡片左侧图标区域 ========== */
.software-purchase-card-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 12px;
    flex-shrink: 0;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
    border: none;
}

.software-purchase-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.software-purchase-card-icon-placeholder {
    font-size: 32px;
    color: var(--text-a-color);
}

/* ========== 卡片内容区域 ========== */
.software-purchase-card-body {
    padding: 12px 12px 12px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.software-purchase-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-li-color);
    margin-bottom: 6px;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.software-purchase-card-description {
    font-size: 12px;
    color: var(--text-a-color);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.software-purchase-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.software-purchase-card-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.software-purchase-card-btn {
    padding: 6px 12px;
    background: var(--background-color);
    color: var(--text-li-color);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.software-purchase-card-btn:hover {
    color: var(--primary);
}

/* ========== 软件卡片下载按钮 ========== */
.software-purchase-card-download-btn {
    padding: 8px 16px !important;
    background: var(--background-color) !important;
    color: var(--text-li-color) !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white) !important;
    flex-shrink: 0 !important;
}

.software-purchase-card-download-btn:hover {
    color: var(--primary) !important;
    background: var(--background-color) !important;
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white) !important;
    transform: none !important;
}

.software-purchase-card-download-btn:active {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white) !important;
}

.software-purchase-card-download-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: var(--background-color) !important;
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white) !important;
}

/* ========== 加载和空状态 ========== */
.software-purchase-loading-state,
.software-purchase-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-a-color);
    background: var(--background-color);
    border-radius: 15px;
    border: none;
    grid-column: 1 / -1;
}

.software-purchase-loading-state {
    font-size: 16px;
}

.software-purchase-empty-state {
    font-size: 14px;
}

/* ========== 分页样式 ========== */
.software-purchase-container .pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
    flex-wrap: wrap;
}

.software-purchase-container .pagination-btn {
    padding: 10px 16px;
    background: var(--background-color);
    border: none;
    border-radius: 12px;
    color: var(--text-li-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.software-purchase-container .pagination-btn:hover:not(.disabled) {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.software-purchase-container .pagination-btn.active {
    background: var(--background-color);
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.software-purchase-container .pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--background-color);
}

.software-purchase-container .pagination-info {
    padding: 8px 16px;
    color: var(--text-a-color);
    font-size: 14px;
    white-space: nowrap;
}

/* ========== 搜索结果提示 ========== */
.software-purchase-search-result {
    max-width: 1400px;
    margin: 0 auto 20px;
    padding: 16px 20px;
    background: var(--background-color);
    border-radius: 12px;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
    border: none;
}

.software-purchase-search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-li-color);
    margin-bottom: 8px;
}

.software-purchase-search-result-text {
    font-size: 13px;
    color: var(--text-a-color);
    line-height: 1.6;
}

/* ========== 空状态和错误状态 ========== */
.software-purchase-empty,
.software-purchase-error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-a-color);
    background: var(--background-color);
    border-radius: 15px;
    border: none;
}

.software-purchase-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.software-purchase-empty-text {
    font-size: 16px;
    color: var(--text-a-color);
}

.software-purchase-error-state {
    font-size: 16px;
    color: #ef4444;
}

/* ========== 提示通知样式 ========== */
.toast-notification {
    position: fixed !important;
    top: 60px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-20px) !important;
    padding: 12px 20px !important;
    border-radius: 15px !important;
    font-size: 14px !important;
    z-index: 10001 !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    min-width: 300px !important;
    max-width: 500px !important;
    text-align: center !important;
    background: var(--background-color) !important;
    color: var(--text-li-color) !important;
    border: none !important;
    box-shadow: none !important;
    word-wrap: break-word;
    line-height: 1.5;
}

.toast-notification.show {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    display: block !important;
    animation: slideDown 0.3s ease;
}

.toast-notification.info {
    background: var(--background-color) !important;
    color: var(--primary) !important;
}

.toast-notification.success {
    background: var(--background-color) !important;
    color: #10b981 !important;
}

.toast-notification.error {
    background: var(--background-color) !important;
    color: #ef4444 !important;
}

.toast-notification.warning {
    background: var(--background-color) !important;
    color: #f59e0b !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========== 软件详情弹窗 ========== */
.software-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.software-detail-modal.active {
    display: flex;
}

.software-detail-modal-wrapper {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
}

.software-detail-content {
    background: var(--background-color);
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    border: none;
}

.software-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--background-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-a-color);
    transition: all 0.2s ease;
    z-index: 10;
}

.software-detail-close:hover {
    color: var(--primary);
}

.software-detail-header {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    border-bottom: 1px solid var(--greyLight-2);
    gap: 20px;
}

.software-detail-icon {
    width: 100px;
    height: 100px;
    background: var(--background-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
    border: none;
}

.software-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.software-detail-icon-placeholder {
    font-size: 48px;
    color: var(--text-a-color);
}

.software-detail-header-info {
    flex: 1;
}

.software-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-li-color);
    margin-bottom: 12px;
}

.software-detail-description {
    font-size: 14px;
    color: var(--text-a-color);
    line-height: 1.6;
}

.software-detail-body {
    padding: 30px;
}

.software-download-notice {
    background: var(--background-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-a-color);
    line-height: 1.8;
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white);
    border: none;
}

.software-download-notice strong {
    color: var(--text-li-color);
    font-weight: 600;
}

.software-download-notice p {
    margin: 6px 0;
}

.software-download-notice p:first-child {
    margin-top: 0;
}

.software-download-notice p:last-child {
    margin-bottom: 0;
}

.software-platform-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--greyLight-2);
}

.software-platform-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-a-color);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.software-platform-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.software-platform-tab:hover {
    color: var(--primary);
}

.software-version-list {
    display: none;
}

.software-version-list.active {
    display: block;
}

.software-version-item {
    background: var(--background-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
    border: none;
}

.software-version-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-li-color);
    margin-bottom: 12px;
}

.software-version-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.software-version-tag {
    font-size: 12px;
    color: var(--text-a-color);
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white);
    border: none;
}

.software-version-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.software-download-btn {
    padding: 8px 16px;
    background: var(--background-color);
    color: var(--text-li-color);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.software-download-btn:hover {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.software-download-btn.vip {
    color: var(--primary);
}

.software-download-btn.vip:hover {
    color: var(--primary-dark);
}

.software-download-btn.install-guide {
    color: var(--text-a-color);
}

.software-vip-download-notice {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-a-color);
}

.software-vip-countdown {
    margin-left: 6px;
    color: var(--primary);
    font-weight: 600;
}

/* ========== 免费下载弹窗 ========== */
.free-download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.free-download-modal.active {
    display: flex;
}

.free-download-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    background: var(--background-color);
    border-radius: 15px;
    padding: 30px;
    border: none;
}

.free-download-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--background-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-a-color);
    transition: all 0.2s ease;
    z-index: 10;
}

.free-download-close:hover {
    color: var(--primary);
}

.free-download-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-li-color);
    margin-bottom: 16px;
}

.free-download-text {
    font-size: 14px;
    color: var(--text-a-color);
    line-height: 1.8;
}

/* ========== 安装说明弹窗 ========== */
.install-guide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.install-guide-modal.active {
    display: flex;
}

.install-guide-modal-wrapper {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
}

.install-guide-content {
    background: var(--background-color);
    border-radius: 15px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border: none;
}

.install-guide-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--background-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-a-color);
    transition: all 0.2s ease;
    z-index: 10;
}

.install-guide-close:hover {
    color: var(--primary);
}

.install-guide-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-li-color);
    margin-bottom: 16px;
}

.install-guide-text {
    font-size: 14px;
    color: var(--text-a-color);
    line-height: 1.8;
}

/* ========== 支付弹窗样式 ========== */
.payment-method-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.payment-method-modal.show {
    display: flex;
}

.payment-method-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    background: var(--background-color);
    border-radius: 15px;
    padding: 30px;
    border: none;
}

.payment-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.payment-method-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-li-color);
}

.payment-method-close {
    width: 36px;
    height: 36px;
    background: var(--background-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-a-color);
    transition: all 0.2s ease;
}

.payment-method-close:hover {
    color: var(--primary);
}

.payment-method-price {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--background-color);
    border-radius: 12px;
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white);
    border: none;
}

.payment-method-price-label {
    font-size: 14px;
    color: var(--text-a-color);
    margin-bottom: 8px;
}

.payment-method-price-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.payment-method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method-item {
    padding: 16px;
    background: var(--background-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
    border: none;
}

.payment-method-item:hover {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
}

.payment-method-item.selected {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.payment-method-submit {
    width: 100%;
    padding: 14px;
    background: var(--background-color);
    color: var(--text-li-color);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.payment-method-submit:hover:not(:disabled) {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

.payment-method-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.payment-qrcode-modal.show {
    display: flex;
}

.payment-qrcode-content {
    position: relative;
    max-width: 400px;
    width: 100%;
    background: var(--background-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: none;
}

.payment-qrcode-header {
    margin-bottom: 24px;
}

.payment-qrcode-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-li-color);
    margin-bottom: 8px;
}

.payment-qrcode-subtitle {
    font-size: 14px;
    color: var(--text-a-color);
}

.payment-qrcode-loading {
    padding: 40px;
    color: var(--text-a-color);
}

.payment-qrcode-img {
    margin: 20px auto;
    max-width: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
    border: none;
}

.payment-qrcode-img img {
    width: 100%;
    height: auto;
    display: block;
}

.payment-qrcode-tips {
    font-size: 13px;
    color: var(--text-a-color);
    margin-top: 16px;
    line-height: 1.6;
}

.payment-qrcode-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.payment-qrcode-status.success {
    background: var(--background-color);
    color: #10b981;
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white);
    border: none;
}

.payment-qrcode-status.error {
    background: var(--background-color);
    color: #ef4444;
    box-shadow: inset 0.1rem 0.1rem 0.2rem var(--greyLight-2), inset -0.05rem -0.05rem 0.15rem var(--white);
    border: none;
}

.payment-qrcode-close {
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--background-color);
    color: var(--text-li-color);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0.2rem 0.2rem 0.4rem var(--greyLight-2), -0.1rem -0.1rem 0.3rem var(--white);
}

.payment-qrcode-close:hover {
    box-shadow: inset 0.2rem 0.2rem 0.4rem var(--greyLight-2), inset -0.1rem -0.1rem 0.3rem var(--white);
    color: var(--primary);
}

/* ========== 动画效果 ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 1400px) {
    .software-purchase-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .software-purchase-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .software-purchase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .software-purchase-container {
        padding: 25px 18px;
    }
    
    .software-purchase-title {
        font-size: 26px;
    }
    
    .software-purchase-description {
        font-size: 14px;
    }
    
    .software-purchase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .software-purchase-main-nav-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .software-purchase-sub-nav-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* 移动端弹窗样式 */
    .software-detail-modal-wrapper {
        max-width: 95%;
    }
    
    .software-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .software-detail-icon {
        width: 80px;
        height: 80px;
    }
    
    .software-detail-title {
        font-size: 20px;
    }
    
    .software-detail-body {
        padding: 20px;
    }
    
    .software-platform-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .software-platform-tab {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .software-version-item {
        padding: 16px;
    }
    
    .software-version-actions {
        flex-direction: column;
    }
    
    .software-download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .free-download-content,
    .install-guide-content,
    .payment-method-content,
    .payment-qrcode-content {
        padding: 20px;
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    .software-purchase-grid {
        grid-template-columns: 1fr;
    }
}

