/*!
 * weiduan 框架主样式文件
 * 基于新模板参考文件夹重构的样式系统
 * 简洁、现代、响应式设计
 */

/* Bootstrap兼容工具类 */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

/* 全局样式重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #f0f2f5 0%, #f5f7fa 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* 页面加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* 主容器 - 现代化设计 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    flex: 1;
}

/* ==================== 首页CSS变量系统 ==================== */
:root {
    --primary-color: #1890ff;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --danger-color: #f5222d;
    --info-color: #13c2c2;
    --text-primary: #262626;
    --text-secondary: #8c8c8c;
    --text-tertiary: #bfbfbf;
    --border-color: #f0f0f0;
    --border-color-split: #e8e8e8;
    --bg-gray: #fafafa;
    --bg-white: #ffffff;
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --box-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.12);
    --border-radius: 4px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* 后台admin-body容器 */
.admin-body {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 给第一个admin-body添加顶部间距 */
.admin-body:first-of-type {
    margin-top: 24px;
}

/* admin-body在container内时突破宽度限制 */
.container .admin-body {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: none;
    width: 100vw;
    padding-left: calc(50vw - 600px);
    padding-right: calc(50vw - 600px);
}

@media (max-width: 1240px) {
    .container .admin-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 引入后台表格样式 */
.detail-table-wrapper {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
}

.detail-table-header {
    background: var(--bg-gray);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-content {
    background: white;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 头部导航 - Ant Design Pro 现代化设计 */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 252, 0.98) 100%);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px 0 rgba(0, 21, 41, 0.06),
                0 1px 2px 0 rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        #1890ff 0%, 
        #52c41a 25%, 
        #faad14 50%, 
        #f5222d 75%, 
        #722ed1 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar:hover::before {
    opacity: 0.15;
}

.navbar:hover {
    box-shadow: 0 4px 16px 0 rgba(0, 21, 41, 0.08),
                0 2px 4px 0 rgba(0, 0, 0, 0.04);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    letter-spacing: 1px;
    color: #1890ff;
}

.navbar-brand:hover {
    color: #096dd9;
    background: rgba(24, 144, 255, 0.06);
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 24px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 50%, #0050b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(24, 144, 255, 0.2));
    position: relative;
    z-index: 1;
}

@keyframes brandIcon {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.03); }
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(0, 0, 0, 0.72);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 85%;
    height: 3px;
    background: linear-gradient(90deg, #1890ff 0%, #096dd9 100%);
    border-radius: 3px 3px 0 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24, 144, 255, 0.06) 0%, rgba(9, 109, 217, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: #1890ff;
    transform: translateY(-2px);
    text-shadow: 0 1px 2px rgba(24, 144, 255, 0.15);
}

.nav-link.active {
    color: #1890ff;
    font-weight: 600;
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link i {
    margin-right: 8px;
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    opacity: 0.85;
}

.nav-link:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.nav-link.active i {
    opacity: 1;
}

/* 导航栏下拉菜单样式 */
.navbar .nav-item.dropdown {
    position: relative;
}

.navbar .dropdown-toggle {
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(0, 0, 0, 0.72);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    overflow: visible;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.3px;
}

.navbar .dropdown-toggle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 85%;
    height: 3px;
    background: linear-gradient(90deg, #1890ff 0%, #096dd9 100%);
    border-radius: 3px 3px 0 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .dropdown-toggle::after {
    display: none;
}

.navbar .dropdown-toggle:hover {
    color: #1890ff;
    transform: translateY(-2px);
    background: transparent;
}

.navbar .dropdown-toggle:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.navbar .dropdown-toggle:active,
.navbar .dropdown-toggle.active {
    color: #1890ff;
    transform: translateY(-2px);
    background: transparent;
}

.navbar .dropdown-toggle.active::before {
    transform: translateX(-50%) scaleX(1);
}

.navbar .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    z-index: 1001;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.navbar .dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.navbar .dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    color: rgba(0, 0, 0, 0.85);
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    transition: all 0.2s ease;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.navbar .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 70%;
    background: linear-gradient(180deg, #1890ff 0%, #096dd9 100%);
    transition: width 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.navbar .dropdown-item:hover::before {
    width: 3px;
}

.navbar .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(24, 144, 255, 0.06) 0%, transparent 100%);
    color: #1890ff;
}

.navbar .dropdown-item i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    font-size: 15px;
}

.navbar .dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background: rgba(0, 0, 0, 0.06);
    border: none;
}

/* 用户名显示特殊样式 */
.navbar .dropdown-toggle .fa-user-circle {
    font-size: 17px;
    margin-right: 8px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.navbar .dropdown-toggle:hover .fa-user-circle {
    transform: scale(1.15);
}

/* 卡片样式 - Ant Design Pro 现代化设计 */
.card {
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03),
                0 1px 6px -1px rgba(0, 0, 0, 0.02),
                0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.card:hover {
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05),
                0 2px 8px 0 rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
    border-color: rgba(24, 144, 255, 0.2);
}

.card-header {
    background: linear-gradient(135deg, #f0f5ff 0%, #e6f7ff 100%);
    color: rgba(0, 0, 0, 0.85);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #1890ff 0%, #096dd9 100%);
}

.card-header i {
    margin-right: 8px;
    font-size: 18px;
    color: #1890ff;
    margin-left: 12px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    background-color: #fafafa;
    padding: 12px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* 按钮样式 - Ant Design Pro 现代化设计 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5715;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    user-select: none;
    white-space: nowrap;
    height: 40px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.016);
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    border-color: #1890ff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #69c0ff 0%, #40a9ff 100%);
    border-color: #40a9ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.btn-success {
    color: white;
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
    border-color: #52c41a;
}

.btn-success:hover {
    background: linear-gradient(135deg, #95de64 0%, #73d13d 100%);
    border-color: #73d13d;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.btn-danger {
    color: white;
    background: linear-gradient(135deg, #ff4d4f 0%, #f5222d 100%);
    border-color: #f5222d;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff7875 0%, #ff4d4f 100%);
    border-color: #ff4d4f;
    box-shadow: 0 4px 12px rgba(245, 34, 45, 0.3);
}

.btn-warning {
    color: white;
    background: linear-gradient(135deg, #ffc53d 0%, #faad14 100%);
    border-color: #faad14;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffd666 0%, #ffc53d 100%);
    border-color: #ffc53d;
    box-shadow: 0 4px 12px rgba(250, 173, 20, 0.3);
}

.btn-info {
    color: white;
    background: linear-gradient(135deg, #36cfc9 0%, #13c2c2 100%);
    border-color: #13c2c2;
}

.btn-info:hover {
    background: linear-gradient(135deg, #5cdbd3 0%, #36cfc9 100%);
    border-color: #36cfc9;
    box-shadow: 0 4px 12px rgba(19, 194, 194, 0.3);
}

.btn-secondary {
    color: rgba(0, 0, 0, 0.65);
    background: #fff;
    border-color: #d9d9d9;
}

.btn-secondary:hover {
    color: #40a9ff;
    border-color: #40a9ff;
    background: #f0f5ff;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 14px;
    height: 32px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    height: 48px;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-outline-secondary {
    color: rgba(0, 0, 0, 0.65);
    background: transparent;
    border-color: #d9d9d9;
}

.btn-outline-secondary:hover {
    color: #40a9ff;
    border-color: #40a9ff;
    background: #f0f5ff;
}

/* 表单样式 - Ant Design Pro 现代化设计 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.85);
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5715;
    color: rgba(0, 0, 0, 0.85);
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    height: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-control:hover {
    border-color: #40a9ff;
}

.form-control:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1),
                0 2px 4px rgba(0, 0, 0, 0.08);
}

.form-control::placeholder {
    color: #bfbfbf;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #8c8c8c;
    line-height: 1.5;
}

.text-muted {
    color: #8c8c8c !important;
}

.form-control-plaintext {
    display: block;
    width: 100%;
    padding: 8px 0;
    margin-bottom: 0;
    line-height: 1.5715;
    color: rgba(0, 0, 0, 0.85);
    background-color: transparent;
    border: solid transparent;
    border-width: 1px 0;
}

textarea.form-control {
    height: auto;
    min-height: 80px;
    padding: 8px 12px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23595959' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* 表格样式 */
.table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #555;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

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

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

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

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* 徽章样式 - Ant Design Pro 现代化设计 */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

.badge-primary { 
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    color: #1890ff;
    border: 1px solid #91d5ff;
    box-shadow: 0 1px 2px rgba(24, 144, 255, 0.1);
}

.badge-success { 
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    color: #52c41a;
    border: 1px solid #b7eb8f;
    box-shadow: 0 1px 2px rgba(82, 196, 26, 0.1);
}

.badge-danger { 
    background: linear-gradient(135deg, #fff1f0 0%, #ffccc7 100%);
    color: #f5222d;
    border: 1px solid #ffa39e;
    box-shadow: 0 1px 2px rgba(245, 34, 45, 0.1);
}

.badge-warning { 
    background: linear-gradient(135deg, #fffbe6 0%, #fff1b8 100%);
    color: #faad14;
    border: 1px solid #ffe58f;
    box-shadow: 0 1px 2px rgba(250, 173, 20, 0.1);
}

.badge-info { 
    background: linear-gradient(135deg, #e6fffb 0%, #b5f5ec 100%);
    color: #13c2c2;
    border: 1px solid #87e8de;
    box-shadow: 0 1px 2px rgba(19, 194, 194, 0.1);
}

.badge-secondary { 
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.badge-danger { background-color: #dc3545; color: white; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-info { background-color: #17a2b8; color: white; }

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    
    .navbar-nav {
        margin-top: 10px;
    }
    
    .nav-item {
        margin: 5px;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: #6c757d !important; }
.text-primary { color: #667eea !important; }
.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #17a2b8 !important; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.py-4 { padding-top: 20px; padding-bottom: 20px; }
.py-5 { padding-top: 30px; padding-bottom: 30px; }
.font-weight-bold { font-weight: bold; }
.table-responsive { overflow-x: auto; }

/* 主页英雄区样式 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 图标样式 */
.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-toggle:hover {
    background: #218838;
    transform: translateY(-1px);
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 4px;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    transition: all 0.2s ease;
    font-size: 14px;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
}

.dropdown-item.disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: transparent;
}

.dropdown-item i {
    width: 16px;
    margin-right: 8px;
    text-align: center;
}

/* 复制按钮样式优化 */
.btn-outline-primary {
    border: 1px solid #667eea;
    color: #667eea;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* 确认对话框样式 */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

/* 购买成功提示美化 */
.purchase-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.purchase-success-dialog {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.4);
    overflow: hidden;
    max-height: 80vh;
    overflow-y: auto;
}

.purchase-success-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.purchase-success-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="confetti" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="5" cy="5" r="1" fill="white" opacity="0.3"/><circle cx="15" cy="15" r="1" fill="white" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23confetti)"/></svg>') repeat;
    opacity: 0.1;
}

.purchase-success-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-20px); }
    70% { transform: translateY(-10px); }
    90% { transform: translateY(-4px); }
}

.purchase-success-body {
    padding: 30px 25px;
}

.purchase-success-codes {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
}

.purchase-success-code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.purchase-success-code-item:hover {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.purchase-success-code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 1px;
}

.purchase-success-copy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.purchase-success-copy-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.purchase-success-footer {
    background: #f8f9fa;
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.purchase-success-close-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 底部样式 - 简洁版权栏 */
.site-footer {
    margin-top: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* 波浪装饰 */
.footer-wave {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 80px;
}

.footer-wave path {
    fill: #f0f2f5;
}

.footer-wave .wave-path-1 {
    opacity: 0.25;
}

.footer-wave .wave-path-2 {
    opacity: 0.5;
}

.footer-wave .wave-path-3 {
    opacity: 1;
}

/* 底部容器 */
.footer-container {
    padding: 20px 20px;
    text-align: center;
}

/* 版权信息 */
.footer-copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.footer-copyright i {
    margin-right: 6px;
    font-size: 14px;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-top: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* QQ客服挂件 */
.qq-float-widget {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.qq-float-widget a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #12b7f5 0%, #0099ff 100%);
    box-shadow: 0 4px 15px rgba(18, 183, 245, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.qq-float-widget a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(18, 183, 245, 0.5);
}

.qq-float-widget i {
    font-size: 32px;
    color: #fff;
}

/**
 * 前台页面公共样式
 * 用于所有前台页面（登录、注册、忘记密码等）
 */

/* ========== Toast 通知样式（统一后台风格） ========== */
.admin-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    z-index: 100001;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    max-width: calc(100vw - 40px);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-toast.show {
    transform: translateX(-50%) translateY(0);
}

.admin-toast.hide {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
}

.admin-toast.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.admin-toast.error {
    background: linear-gradient(135deg, #f5222d 0%, #ff4d4f 100%);
    box-shadow: 0 6px 20px rgba(245, 34, 45, 0.3);
}

.admin-toast.warning {
    background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
    box-shadow: 0 6px 20px rgba(250, 173, 20, 0.3);
}

.admin-toast.info {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.3);
}

.admin-toast i {
    font-size: 16px;
}

/* ==================== 视频教程弹窗样式 ==================== */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

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

.custom-modal .modal-content {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    max-height: 90vh;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.4);
}

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

.custom-modal .modal-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
}

.custom-modal .modal-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-modal .modal-header .close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.custom-modal .modal-header .close:hover {
    opacity: 1;
}

.custom-modal .modal-body {
    padding: 0;
}

.custom-modal video {
    display: block;
    max-height: 70vh;
}

