/* 占位内容样式 - 已移除，因为特效数据现在直接嵌入到页面中 */

/* 实际特效内容样式 - 移除了淡入动画，因为内容现在直接显示 */

/* 基础样式 - 来自101.html的现代设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f7f7;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 来自101.html */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    color: #1772f6;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-weight: normal;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #1890ff;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    border: 1px solid #1890ff;
    color: #1890ff;
    background-color: transparent;
}

.btn-login:hover {
    background-color: #1890ff;
    color: white;
}

.btn-register {
    color: white;
    background-color: #1890ff;
    border: 1px solid #1890ff;
}

.btn-info {
    color: white;
    background-color: #17a2b8;
    border: 1px solid #17a2b8;
}

.btn-primary {
    color: white;
    background-color: #1890ff;
    border: 1px solid #1890ff;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
}



/* 用户信息样式 - 修改为头像在右边 */
.user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 20px;
}

.avatar i {
    font-size: 18px;
}

.user-details {
    margin-right: 10px;
}

.user-stats {
    margin-top: 5px;
}

.stat-badge {
    display: inline-block;
    background: #f0f0f0;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    margin-right: 5px;
}

.action-bar {
    display: flex;
    gap: 5px;
    margin-right: 10px;
}

/* 头像容器和下拉菜单样式 */
.avatar-container {
    position: relative;
    margin-left: 15px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 150px;
    z-index: 1000;
    margin-top: 10px;
    display: none;
    padding: 8px 0;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #333;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}



/* 公告栏样式 - 来自101.html */
.announcement {
    padding: 10px 0;
    text-align: center;
    font-weight: 500;
}

/* 统一容器宽度 */
.container-width {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主要内容区域 */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* Section元素通用样式 */
section {
    margin-bottom: 15px;
}

.hero {
    background-color: white;
    border-radius: 0px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    min-height: auto;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-left {
    flex: 1;
    padding-left: 90px;
}

.hero-left h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #444;
    font-weight: 400;
}

.hero-left p {
    font-size: 14px;
    margin-bottom: 30px;
    color: #666;
}

.logo-preview-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-preview {
    width: 355.56px;
    height: 200px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.placeholder-text {
    color: #999;
    font-size: 16px;
    letter-spacing: 2px;
}

/* Logo生成区域小方块背景 */
.logo-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 15px 15px;
    background-position: 0 0, 0 7.5px, 7.5px -7.5px, -7.5px 0px;
    z-index: 0;
    opacity: 0.5;
}

/* 确保内容在小方块背景之上 */
.placeholder-text, .generated-logo, .logo-preview-buttons {
    position: relative;
    z-index: 1;
}

.generated-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-preview-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.logo-preview:hover .logo-preview-buttons {
    opacity: 1 !important;
}

.download-btn, .preview-btn {
    padding: 6px 12px;
    background-color: white;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-btn:hover, .preview-btn:hover {
    background-color: #f0f0f0;
}

/* 风格选择 */
.style-selector {
    background-color: white;
    border-radius: 0px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    min-height: 300px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
    width: 100%;
    margin: 0 auto;
}

.style-option, .effect-item {
    height: auto;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

.style-option img, .effect-item img, .effect-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.effect-image-container {
    position: relative;
    overflow: hidden;
}

.effect-overlay {
    /* 移除覆盖层，因为特效名称将固定显示在图片下方 */
    display: none;
}

/* 移除悬停效果，因为特效名称将固定显示 */

.effect-info {
    text-align: center;
    padding: 8px 5px;
    position: relative;
    background-color: transparent;
    color: #333;
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid #eee;
    margin: 0;
}

.style-name {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-text {
    /* 移除选择文本，因为特效名称将固定显示在图片下方 */
    display: none;
}

/* 移除悬停效果，因为特效名称将固定显示 */

.form-group {
    margin: 20px 0;
    text-align: center;
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

/* 游戏名称输入框 */
/* 游戏名称输入框 - 全新定义 */
.brand-input {
    padding: 10px 12px !important;
    font-size: 14px !important;
    border: 2px solid #000 !important;
    border-right: none !important;
    border-radius: 4px 0 0 4px !important;
    width: 250px !important;
    max-width: 100% !important;
    height: 40px !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    background-color: #fff !important;
    color: #000 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* 游戏名称输入框焦点状态 - 全新定义 */
.brand-input:focus {
    border-color: #000 !important;
    background-color: #fff !important;
    color: #000 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* 游戏名称输入框悬停状态 - 全新定义 */
.brand-input:hover {
    border-color: #000 !important;
    background-color: #fff !important;
    color: #000 !important;
}

/* 游戏名称输入框活动状态 - 全新定义 */
.brand-input:active {
    border-color: #000 !important;
    background-color: #fff !important;
    color: #000 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 游戏名称输入框访问状态 - 全新定义 */
.brand-input:visited {
    border-color: #000 !important;
    background-color: #fff !important;
    color: #000 !important;
}

/* 游戏名称输入框任何伪类状态 - 全新定义 */
.brand-input::before,
.brand-input::after,
.brand-input:before,
.brand-input:after {
    display: none !important;
}

/* 覆盖主题样式中的边框颜色规则 */
.brand-input.border-top,
.brand-input.border-right,
.brand-input.border-bottom,
.brand-input.border-left {
    background-color: #000 !important;
}

.brand-input-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    margin-top: 10px;
    width: 100%;
    position: relative;
}

.input-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
}

.input-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 极简主义历史记录样式 - 多列布局 */
.brand-history-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 1px;
    padding: 8px;
}

.brand-history-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.brand-history-item {
    padding: 4px 10px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.4;
    border-radius: 3px;
    background-color: #f8f8f8;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-history-item:hover {
    background-color: #e8e8e8;
}

.brand-history-clear {
    padding: 8px 0;
    font-size: 12px;
    color: #999;
    text-align: center;
    cursor: pointer;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
    transition: color 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.brand-history-clear:hover {
    color: #666;
}

.brand-history-empty {
    padding: 12px;
    font-size: 13px;
    color: #999;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.generate-logo-btn {
    padding: 10px 16px;
    background-color: #000;
    color: white;
    border: 2px solid #000;
    border-left: none;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    height: 40px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.generate-logo-btn:hover {
    background-color: #333;
    border-color: #000;
}

.generate-logo-btn:focus {
    outline: none;
    box-shadow: none;
}

/* 加载指示器样式 */
.loading-indicator {
    text-align: center;
    padding: 20px;
}

.progress {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    background-color: #1890ff;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.progress-bar.active {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* 警告框样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* 为什么选择我们板块样式 */
.why-choose-us {
    padding: 0px 0;
    background-color: transparent;
}

.why-choose-us .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
    position: relative;
}

.why-choose-us .section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1890ff;
}

.features-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    flex: 0 0 300px;
    background-color: transparent;
    border-radius: 0;
    padding: 20px;
    text-align: center;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 - 为什么选择我们板块 */
@media (max-width: 768px) {
    .why-choose-us {
        padding: 20px 15px;
    }
    
    .why-choose-us .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .features-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 10px;
    }
    
    .feature-item {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        padding: 15px;
        box-sizing: border-box;
    }
}

/* 图片预览模态框 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* 添加指针样式，提示用户可点击 */
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    cursor: default; /* 内容区域恢复默认指针样式 */
}

.image-container {
    overflow: hidden;
    max-width: 100%;
    max-height: 80vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* 修改为指针样式，提示用户可点击关闭 */
}

.image-modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    transform-origin: center center;
    cursor: default; /* 图片区域恢复默认指针样式 */
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover {
    color: #ccc;
}

/* 添加关闭提示文本 */
.close-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    pointer-events: none; /* 确保提示文本不会阻止点击事件 */
}

/* 缩放控制按钮 */
.zoom-controls {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
}

.zoom-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    color: #333;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.zoom-btn:hover {
    background-color: #f0f0f0;
}

.zoom-level {
    color: white;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .style-option {
        flex: 0 0 140px;
        width: 140px;
        height: 100px;
    }
    
    /* 特效小单元手机端自适应 */
    .style-selector {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .effects-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 0 10px;
    }
    
    .style-option {
        height: auto;
        width: 100%;
        min-width: 100px;
        max-width: 120px;
        margin: 0 auto;
    }
    
    .style-option img {
        height: 80px;
        width: 100%;
        object-fit: cover;
    }
    
    .style-name {
        font-size: 12px;
        padding: 6px 3px;
        height: auto;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .select-text {
        font-size: 12px;
    }
    
    .selected-text {
        font-size: 12px;
        top: 5px !important;
        right: 2px !important;
    }
    
    .pagination-container {
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 15px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
    }
    
    .page-info {
        font-size: 12px;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* 英雄区域手机端适配 */
.login-form-vertical .form-group,
.register-form-vertical .form-group {
    margin-bottom: 15px;
}

.login-form-vertical label,
.register-form-vertical label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.login-form-vertical .form-control,
.register-form-vertical .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form-vertical .form-text,
.register-form-vertical .form-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: block;
}

.login-form-vertical .btn,
.register-form-vertical .btn {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.register-form-vertical .btn {
    background-color: #4CAF50;
}

/* 英雄区域手机端适配 */
@media (max-width: 768px) {
    .hero {
        padding: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-left {
        padding-left: 0;
        text-align: center;
    }
    
    .hero-left p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .logo-preview-section {
        width: 100%;
    }
    
    .logo-preview {
        width: 100%;
        height: 180px;
    }
    
    .brand-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .generate-logo-btn {
        width: 100%;
    }
    
    /* 导航栏手机端适配 */
    .nav-container {
        padding: 8px 0;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .avatar {
        width: 30px;
        height: 30px;
    }
    
    .user-details {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .user-name {
        font-size: 12px;
    }
    
    .stat-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .action-bar {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .logo {
        font-size: 18px;
    }
}

/* 边框动画样式 */
.border-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

.border-top, .border-right, .border-bottom, .border-left {
    position: absolute;
}

.border-top {
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    animation: border-top-animation 0.5s forwards;
}

.border-right {
    top: 0;
    right: 0;
    width: 2px;
    height: 0;
    animation: border-right-animation 0.5s 0.5s forwards;
}

.border-bottom {
    bottom: 0;
    right: 0;
    height: 2px;
    width: 0;
    animation: border-bottom-animation 0.5s 1s forwards;
}

.border-left {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 0;
    animation: border-left-animation 0.5s 1.5s forwards;
}

@keyframes border-top-animation {
    to { width: 100%; }
}

@keyframes border-right-animation {
    to { height: 100%; }
}

@keyframes border-bottom-animation {
    to { width: 100%; }
}

@keyframes border-left-animation {
    to { height: 100%; }
}

/* 模态框样式 */
.modal-content {
    border-radius: 8px;
}
.modal-header {
    border-bottom: none;
    padding: 15px 15px 0 15px;
}
.modal-body {
    padding: 15px;
}
.modal-footer {
    border-top: none;
    padding: 0 15px 15px 15px;
}

/* 错误提示模态框居中样式 */
#errorModal .modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    margin: 0;
}

/* 余额不足提示模态框居中样式 */
#insufficientBalanceModal .modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    margin: 0;
}

/* 表单样式 */
.form-simple .form-group {
    margin-bottom: 15px;
}
.form-simple label {
    font-weight: normal;
    margin-bottom: 5px;
    display: block;
}
.form-simple .form-control {
    border-radius: 4px;
    height: 40px;
}

/* 交易记录表格样式 */
.transaction-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 14px;
  text-align: left;
}
.transaction-table th,
.transaction-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
}
.transaction-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
}
.transaction-table tr:hover {
  background-color: #f8f9fa;
}
.transaction-table td {
  color: #212529;
}
.transaction-table td:last-child {
  text-align: center !important;
}
.transaction-table .download-link {
  color: #007bff;
  text-decoration: none;
}
.transaction-table .download-link:hover {
  text-decoration: underline;
}

.transaction-table .download-btn-transaction {
  /* 与前台充值按钮(btn btn-sm btn-info)完全一致的样式 */
  padding: 5px 10px !important;
  background-color: #5bc0de !important;
  color: white !important;
  border: none !important;
  border-radius: 3px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 80px !important;
}

.transaction-table .download-btn-transaction:hover {
  background-color: #46b8da !important;
  color: white !important;
  text-decoration: none !important;
}

/* 下载按钮倒计时状态样式 */
.transaction-table .download-btn-transaction.countdown {
    background-color: #f0ad4e !important;
    border-color: #eea236 !important;
    cursor: not-allowed !important;
    animation: pulse 1s infinite !important;
}

.transaction-table .download-btn-transaction.downloading {
    background-color: #5cb85c !important;
    border-color: #4cae4c !important;
    cursor: wait !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(240, 173, 78, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(240, 173, 78, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(240, 173, 78, 0);
    }
}

.transaction-table .expired-link,
.transaction-table .no-link {
  color: #dc3545;
  text-decoration: none;
  cursor: not-allowed;
}

/* 右侧导航栏样式 */
.right-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-btn {
    width: 60px;
    height: 60px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    position: relative;
    padding: 5px;
    overflow: hidden;
}

.sidebar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #1890ff;
    transition: width 0.4s ease;
    z-index: 0;
}



.sidebar-btn:hover::before {
    width: 100%;
}

.sidebar-btn .icon {
    color: #888;
    font-size: 24px;
    margin-bottom: 2px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.sidebar-btn:hover .icon {
    color: white;
}

.sidebar-btn .text {
    color: #666;
    font-size: 10px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.sidebar-btn:hover .text {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .right-sidebar {
        right: 10px;
    }
    
    .sidebar-btn {
        width: 50px;
        height: 50px;
    }
    
    .sidebar-btn .icon {
        font-size: 20px;
    }
    
    .sidebar-btn .text {
        font-size: 8px;
    }
}

/* CSS分页样式 - 使用nth-child选择器实现分页效果 */
/* 默认隐藏所有特效项 */
.effects-grid .effect-item {
    display: none;
}

/* 第1页 - 显示第1-5项 */
.effects-grid.page-1 .effect-item:nth-child(-n+5) {
    display: block;
}

/* 第2页 - 显示第6-10项 */
.effects-grid.page-2 .effect-item:nth-child(n+6):nth-child(-n+10) {
    display: block;
}

/* 第3页 - 显示第11-15项 */
.effects-grid.page-3 .effect-item:nth-child(n+11):nth-child(-n+15) {
    display: block;
}

/* 第4页 - 显示第16-20项 */
.effects-grid.page-4 .effect-item:nth-child(n+16):nth-child(-n+20) {
    display: block;
}

/* 第5页 - 显示第21-25项 */
.effects-grid.page-5 .effect-item:nth-child(n+21):nth-child(-n+25) {
    display: block;
}

/* 特效选中状态样式 */
.effects-grid .effect-item.selected {
    border: 2px solid #007bff;
    box-sizing: border-box;
}

/* 默认显示第1页 */
.effects-grid {
    /* 添加默认的page-1类，确保初始状态显示第一页 */
}

/* 分页导航样式 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    background-color: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background-color: #f5f5f5;
    border-color: #1890ff;
    color: #1890ff;
}

.pagination-btn.active {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.pagination-btn:disabled {
    color: #bfbfbf;
    border-color: #d9d9d9;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    background-color: white;
    border-color: #d9d9d9;
    color: #bfbfbf;
}

.pagination-separator {
    color: #999;
    margin: 0 5px;
}

.page-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    font-family: Arial, sans-serif;
}

.style-option.selected {
    border-color: #1890ff;
}

.selected-text {
    position: absolute;
    top: 10px !important;
    right: 2px !important;
    left: auto !important;
    bottom: auto !important;
    background-color: rgba(24, 144, 255, 0.9) !important;
    color: white !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: normal !important;
    z-index: 10 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    box-shadow: none !important;
}

.style-option.selected .selected-text {
    display: flex !important;
}

.effect-item.selected .selected-text {
    display: flex !important;
}

/* Logo加载指示器样式 - 与136改目录一致 */
.logo-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #1890ff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: #333;
    font-size: 16px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 密码可见性切换样式 - 文字切换按钮 */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-container .form-control {
    padding-right: 60px;
    flex: 1;
}

.password-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #1890ff;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
    z-index: 10;
    user-select: none;
}

.password-toggle:hover {
    background-color: #f0f8ff;
    color: #096dd9;
}

/* 确保密码输入框在表单中正确对齐 */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 15px;
}

.form-label-container {
    width: 120px;
    flex-shrink: 0;
    text-align: left !important;
    margin-bottom: 5px;
}

.form-label-container label {
    display: block;
    text-align: left !important;
    margin-bottom: 0;
}

/* 修复密码提示文字显示问题 */
.login-form-vertical .form-text,
.register-form-vertical .form-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: block;
    width: 100%;
    text-align: left;
}
