/* 全局样式 - 专业大气设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置基础字体和颜色 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 动画过渡时间设置 */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 禁用文本选择的元素 */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 统一的页面背景样式 */
body:not(.home-page) {
    background: #f5f7fa;
    color: #333;
}

/* 容器通用样式 */
.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 登录页面特定样式 */
.login-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 80px; /* 为导航栏留出空间 */
    color: #333;
}

.login-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* iOS液态玻璃效果 */
.login-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    animation: cardFloat 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

@keyframes cardFloat {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 登录卡片内部发光效果 */
.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 0.5rem;
    position: relative;
    background: linear-gradient(45deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-subtitle {
    color: #4a5568;
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* 输入框样式增强 */
.input-container {
    position: relative;
    margin-bottom: 2rem;
    z-index: 1;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.1rem;
    z-index: 1;
}

.animated-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    color: #2d3748;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.animated-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-1px);
}

.animated-input:focus + .input-icon {
    color: #667eea;
    animation: iconPulse 0.5s ease;
}

@keyframes iconPulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

/* 按钮样式增强 */
.login-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    z-index: 1;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.register-section {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.register-section p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.register-button {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #4a5568;
    transition: all 0.3s ease;
    padding: 0.875rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.register-button:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* 测试账号信息样式 */
.test-account-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    font-size: 0.9rem;
    opacity: 0.95;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.test-account-info:hover {
    opacity: 1;
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 装饰元素 */
.login-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.2;
    filter: blur(40px);
}

.login-decoration-1 {
    width: 300px;
    height: 300px;
    background: rgba(102, 126, 234, 0.6);
    top: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite;
}

.login-decoration-2 {
    width: 200px;
    height: 200px;
    background: rgba(118, 75, 162, 0.6);
    bottom: -50px;
    right: 10%;
    animation: float 12s ease-in-out infinite 2s;
}

.login-decoration-3 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.6);
    top: 40%;
    right: -50px;
    animation: float 18s ease-in-out infinite 5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, 30px) rotate(10deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-10deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}


/* 导航栏 - 优化后的明亮颜色 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 滚动时导航栏效果 - 增强对比度 */
.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}


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

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar .logo svg {
    width: 24px;
    height: 24px;
    fill: #667eea;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.navbar .logo:hover {
    transform: scale(1.05);
}

.navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: all 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background-color: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    color: #667eea;
}

.nav-link.active {
    background-color: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

/* 用户信息显示样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-text {
    opacity: 0.9;
    font-weight: 500;
    transition: opacity 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-text:hover {
    opacity: 1;
}
.logout-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 移动端汉堡菜单样式 */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* 移动端菜单样式更新 */
@media (max-width: 768px) {
    .hamburger-menu {
        color: white;
    }

    .navbar .nav-links {
        background: rgba(102, 126, 234, 0.98);
    }
}

/* 导航栏登录按钮样式优化 */
.navbar .nav-links .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    border: #00f2fe;
}

.navbar .nav-links .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.navbar .nav-links .btn-primary:hover::before {
    left: 100%;
}

.navbar .nav-links .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.navbar .nav-links .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 确保在滚动状态下按钮样式保持一致 */
.navbar.navbar-scrolled .nav-links .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

/* 卡片样式 - 专业大气设计 */
.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 卡片悬停效果 */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 卡片顶部装饰线 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.card-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: #667eea;
}

.card-subtitle {
    color: #718096;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 卡片内容区域 */
.card-body {
    position: relative;
    z-index: 1;
}

.footer-icp {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 12px;
    text-decoration: none;
}

.footer-icp:hover {
    color: #333;
    text-decoration: underline;
}

.footer-year {
    color: #999;
    font-size: 12px;
}

/* 卡片底部区域 */
.card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 卡片链接样式 */
.card-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #5a67d8;
    transform: translateX(3px);
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.card-link:hover svg {
    transform: translateX(3px);
}

/* 按钮样式 - 专业大气设计 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 按钮内部光泽效果 */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* 主按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 成功按钮样式 */
.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.btn-success:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
}

/* 危险按钮样式 */
.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.4);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.3);
}

/* 警告按钮样式 */
.btn-warning {
    background: linear-gradient(135deg, #ecc94b 0%, #d69e2e 100%);
    color: #744210;
    box-shadow: 0 4px 15px rgba(236, 201, 75, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 201, 75, 0.4);
}

.btn-warning:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(236, 201, 75, 0.3);
}

/* 次要按钮样式 */
.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

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

/* 轮廓按钮样式 */
.btn-outline {
    background: transparent;
    border: 2px solid;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* 按钮尺寸 */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.8px;
}

/* 按钮禁用状态 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover::before {
    left: -100%;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.table th {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    font-weight: 600;
    color: #2d3748;
}

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

/* 操作按钮组样式 */
.action-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.action-btn-group .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* 操作按钮行分组布局 */
.action-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.action-btn-row:last-child {
    margin-bottom: 0;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 警告框 */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #f0fff4;
    border-color: #48bb78;
    color: #22543d;
}

.alert-danger {
    background-color: #fed7d7;
    border-color: #f56565;
    color: #742a2a;
}

.alert-warning {
    background-color: #fefcbf;
    border-color: #d69e2e;
    color: #744210;
}

.alert-info {
    background-color: #bee3f8;
    border-color: #4299e1;
    color: #2a4365;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    /*max-width: 500px;*/
    width: 90%;
    /*max-height: 90vh;*/
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* 滚动动画样式 */
[data-aos] {
    opacity: 0;
    transform: translate(0, 20px);
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-up"] {
    transform: translate(0, 40px);
}

[data-aos="fade-left"] {
    transform: translate(-40px, 0);
}

[data-aos="fade-right"] {
    transform: translate(40px, 0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-out"] {
    transform: scale(1.2);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar .nav-links {
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .table {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 复制按钮特效 */
.copy-btn {
    position: relative;
    overflow: hidden;
}

/* 复制按钮样式优化 */
.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.copy-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.copy-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.copy-button.copied {
    background: #48bb78;
    box-shadow: 0 2px 10px rgba(72, 187, 120, 0.2);
}

.copy-button.copied span {
    animation: copySuccessPulse 0.5s ease-in-out;
}

@keyframes copySuccessPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.copy-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.copy-button:hover .copy-icon {
    transform: rotate(15deg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .copy-button {
        padding: 0.3125rem 0.5rem;
        font-size: 0.75rem;
    }

    .copy-button .copy-icon {
        font-size: 0.875rem;
    }
}

.copy-btn.copied::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #48bb78;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* 推广链接样式 */
.promotion-link {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin: 1rem 0;
}

/* 状态标签 */
.status-badge {
    width: 50px;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: #c6f6d5;
    color: #22543d;
}

.status-inactive {
    background: #fed7d7;
    color: #742a2a;
}

.status-pending {
    background: #fefcbf;
    color: #744210;
}

/* 英雄区域样式 - 专业大气设计 */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2d3748;
    min-height: 100vh; /* 设置最小高度为视口高度 */
    padding: 0; /* 移除上下padding，由内容容器控制内边距 */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center; /* 垂直居中内容 */
    justify-content: center; /* 水平居中内容 */
}
/* 调整英雄区域容器样式 */
.hero-container {
    position: relative;
    z-index: 1;
    padding: 8rem 1.5rem; /* 为小屏幕添加左右padding */
    width: 100%;
    max-width: 1800px;
}

/* 确保渐变背景和浮动元素也铺满整个屏幕 */
.hero-gradient-background,
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
    }

    .hero-container {
        padding: 6rem 1rem;
    }
}
/* 大气的渐变背景 */
.hero-gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            135deg,
            rgba(102, 126, 234, 0.3) 0%,
            rgba(118, 75, 162, 0.2) 50%,
            rgba(102, 126, 234, 0.1) 100%
    );
    z-index: 0;
}

/* 大气的浮动元素装饰 */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    backdrop-filter: blur(10px);
    animation: float 20s ease-in-out infinite;
}

.floating-element-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    left: -150px;
    opacity: 0.3;
    animation-duration: 25s;
}

.floating-element-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -100px;
    opacity: 0.25;
    animation-duration: 20s;
    animation-delay: 3s;
}

.floating-element-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 10%;
    opacity: 0.2;
    animation-duration: 18s;
    animation-delay: 5s;
}

.floating-element-4 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    opacity: 0.15;
    animation-duration: 22s;
    animation-delay: 7s;
}

.floating-element-5 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    opacity: 0.1;
    animation-duration: 15s;
    animation-delay: 10s;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease-out;
}

/* 增强的标题样式 */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    animation: titleReveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 3rem;
    opacity: 0.95;
    color: #4a5568;
    animation: subtitleReveal 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: buttonsReveal 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
}

/* 专业大气的按钮样式 */
.hero-button-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(0);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.hero-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.hero-button-primary:hover::before {
    left: 100%;
}

.hero-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.hero-button-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.hero-button-secondary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #2d3748;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-button-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.hero-button-secondary:hover::before {
    left: 100%;
}

.hero-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    border-color: white;
}

.hero-button-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes subtitleReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
    75% {
        transform: translate(-20px, 20px) rotate(3deg);
    }
}

/* 功能特性样式 - 专业大气设计 */
.features-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

/* 功能特性区域装饰元素 */
.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.05) 0%, transparent 70%),
    radial-gradient(circle at bottom left, rgba(118, 75, 162, 0.05) 0%, transparent 70%);
    z-index: 0;
}

/* 章节标题样式 */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #2d3748;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    width: 100%;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: titleUnderline 2s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% {
        width: 100px;
    }
    50% {
        width: 150px;
    }
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

/* 功能特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

/* 功能特性卡片 */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* 卡片顶部装饰线 */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* 卡片悬停效果 */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

/* 卡片内部轻微背景渐变 */
.feature-card::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    z-index: -1;
}

/* 功能图标样式 */
.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #667eea;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    margin-bottom: 2rem;
    position: relative;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(102, 126, 234, 0.15);
    animation: iconPulse 1s ease-in-out;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #667eea;
}

.feature-description {
    color: #718096;
    line-height: 1.6;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-description {
    color: #4a5568;
}

/* 功能卡片内容动画 */
.feature-card .feature-icon,
.feature-card .feature-title,
.feature-card .feature-description {
    transition-delay: 0.1s;
}

.feature-card:hover .feature-icon {
    transition-delay: 0.1s;
}

.feature-card:hover .feature-title {
    transition-delay: 0.2s;
}

.feature-card:hover .feature-description {
    transition-delay: 0.3s;
}

/* 使用流程样式 */
.process-section {
    padding: 8rem 0;
    background: white;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #718096;
    line-height: 1.6;
}

.process-divider {
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 0 auto;
}

/* 页脚样式 - 专业大气设计 */
.app-footer {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #2d3748;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* 页脚背景装饰 */
.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    z-index: 0;
}

/* 页脚网格线装饰 */
.app-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 页脚Logo样式 */
.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2d3748;
}

.footer-logo svg {
    width: 28px;
    height: 28px;
    fill: #667eea;
    animation: logoPulse 2s ease-in-out infinite;
}

.footer-logo:hover {
    transform: scale(1.05);
    color: #667eea;
}

/* 页脚信息区域 */
.footer-info {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0 20px;
}

.footer-info p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    opacity: 0.9;
    color: #4a5568;
}

/* 页脚链接区域 */
.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #667eea;
}

.footer-link:hover::after {
    width: 100%;
}

/* 页脚社交媒体图标 */
.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

/* 页脚版权信息 */
.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    width: 100%;
    text-align: center;
    color: #4a5568;
}

.footer-powered {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    color: #4a5568;
}

/* 页脚动画效果 */
@keyframes footerFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 滚动动画 */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

/* 媒体查询 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-button-primary,
    .hero-button-secondary {
        width: 200px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .process-divider {
        width: 60%;
    }

    .navbar .nav-links {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    perspective: 1000px;
}

/* 统计卡片基础样式 */
.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    opacity: 0;
    transform: translateY(20px) rotateX(5deg);
    animation: statCardEnter 0.8s ease forwards;
}

/* 卡片进入动画 */
@keyframes statCardEnter {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* 卡片依次进入延迟 */
.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* 悬停效果 */
.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 卡片顶部装饰条 */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 0 0 2px 2px;
}

/* 卡片图标 */
.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

/* 数字动画 */
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
}

/* 标签样式 */
.stat-label {
    color: #718096;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* 不同卡片的颜色主题 */
.stat-card-primary::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card-primary .stat-number {
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-card-success::before {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.stat-card-success .stat-number {
    background: linear-gradient(90deg, #48bb78, #38a169);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-card-info::before {
    background: linear-gradient(90deg, #4299e1, #3182ce);
}

.stat-card-info .stat-number {
    background: linear-gradient(90deg, #4299e1, #3182ce);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 添加发光效果 */
.stat-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.5s ease;
    z-index: 0;
}

.stat-card:hover::after {
    transform: scale(1.2);
    background: rgba(102, 126, 234, 0.1);
}

/* 数字脉冲动画 */
.stat-card.pulse .stat-number {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* 优惠券弹窗样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* 半透明背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
    background-color: #fff;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.3s ease-out;
    position: relative;
    margin: auto;
    /* 确保弹窗居中的关键样式 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
}

/* 弹窗关闭按钮样式 */
.close-modal {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #718096;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-modal:hover {
    background-color: #edf2f7;
    color: #4a5568;
}

/* 模态框头部的X关闭按钮 */
.modal-header .close-modal {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

.modal-body {
    padding: 2rem;
}

/* 弹窗表单元素样式 */
.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.95rem;
}

.modal-body input[type="text"],
.modal-body input[type="number"],
.modal-body input[type="datetime-local"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: white;
    box-sizing: border-box;
}

.modal-body input[type="text"]:focus,
.modal-body input[type="number"]:focus,
.modal-body input[type="datetime-local"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-body input[type="text"]::placeholder,
.modal-body input[type="number"]::placeholder {
    color: #a0aec0;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background-color: #f8fafc;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* 弹窗按钮样式优化 */
.modal-footer .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.modal-footer .btn-cancel {
    background-color: #edf2f7;
    color: #4a5568;
}

.modal-footer .btn-cancel:hover {
    background-color: #e2e8f0;
}

.modal-footer .btn-primary {
    background-color: #667eea;
    color: white;
}

.modal-footer .btn-primary:hover {
    background-color: #5a67d8;
}

.modal-footer .btn-primary:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}

/* 优惠券卡片样式 */
.coupon-card {
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
    min-height: 230px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 生效中优惠券标记 */
.coupon-active {
    border-color: #48bb78 !important;
    position: relative;
}

.coupon-active::before {
    content: '生效中';
    position: absolute;
    top: 12px;
    right: -35px;
    background-color: #48bb78;
    color: white;
    padding: 3px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 排序指示器 */
.sort-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #718096;
    font-size: 0.9rem;
}

.sort-indicator svg {
    margin-right: 5px;
}

/* 优惠券卡片内布局 */
.coupon-card .card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coupon-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.coupon-card .card-header h4 {
    color: #2d3748;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.coupon-card .card-body {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.coupon-card .discount-rate {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.coupon-card .info-row {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    padding: 0.2rem 0;
}

.coupon-card .info-label {
    color: #718096;
    min-width: 65px;
    font-weight: 500;
}

.coupon-card .info-value {
    color: #4a5568;
    flex: 1;
}

/* 优惠券状态提示样式 */
.coupon-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.coupon-status-active {
    background-color: #e6fffa;
    color: #2b6cb0;
}

.coupon-status-inactive {
    background-color: #f7fafc;
    color: #718096;
}

/* 优惠券网格布局 */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

/* 渠道优惠券页面响应式布局 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }

    .coupon-grid {
        grid-template-columns: 1fr !important;
    }

    /* 修复主内容区域与导航栏的间距 */
    .container {
        margin-top: 1.5rem;
        padding: 0 20px;
    }
}

/* 优惠券详情弹窗优化样式 */
.coupon-detail-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 优惠券顶部信息卡片 */
.coupon-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.coupon-name-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.coupon-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.coupon-code {
    font-size: 0.9rem;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
}

/* 状态徽章 */
.coupon-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* 折扣信息区域 */
.coupon-discount-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.discount-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.discount-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.discount-value {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.count-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.count-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.count-label {
    font-size: 0.9rem;
    color: #718096;
}

.count-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

/* 详情信息表格 */
.coupon-info-table {
    display: grid;
    gap: 1rem;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
}

.info-value {
    font-size: 0.95rem;
    color: #2d3748;
    word-break: break-all;
}

/* 优惠券链接样式增强 */
.info-value a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px dashed #667eea;
    transition: all 0.2s ease;
}

.info-value a:hover {
    color: #5a67d8;
    border-bottom-style: solid;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .coupon-detail-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .coupon-discount-section {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .info-label {
        font-weight: 600;
        color: #2d3748;
    }
}

/* 添加动画效果 */
.coupon-detail-container > * {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease forwards;
}

.coupon-detail-header {
    animation-delay: 0.1s;
}

.coupon-discount-section {
    animation-delay: 0.2s;
}

.coupon-info-table {
    animation-delay: 0.3s;
}

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

/* 优惠券链接容器样式 */
.url-container {
    position: relative;
    max-width: 250px; /* 可根据实际情况调整 */
}

/* 截断链接样式 */
.truncated-url {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    position: relative;
}

/* 链接悬停时显示完整链接的提示 */
.truncated-url:hover {
    text-decoration: none;
}

/* 可选：添加自定义的链接悬停提示框 */
.url-container:hover::after {
    content: attr(data-full-url);
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .url-container {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .url-container {
        max-width: 100px;
    }
}

/* 合并后的优惠券信息样式 */
.coupon-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coupon-main-info {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.coupon-code {
    font-size: 0.85rem;
    color: #718096;
    font-family: 'Courier New', monospace;
}

/* 序号列样式 */
.table td:first-child {
    text-align: center;
    font-weight: 600;
    color: #4a5568;
    background-color: #f7fafc;
}

/* 无链接时的样式 */
.no-url {
    color: #a0aec0;
    font-style: italic;
}

/* 调整表格列宽和响应式显示 */
@media (max-width: 1024px) {
    .table {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    /* 在小屏幕上可以考虑进一步调整列宽或隐藏非关键列 */
    .table td:first-child {
        width: 50px;
    }

    .coupon-main-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* 营销ID样式 */
.marketing-id {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.marketing-id .label {
    color: #999;
}

/* 确保表格单元格有足够的内边距 */
table td {
    vertical-align: top;
    padding: 12px 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .marketing-id {
        font-size: 0.8rem;
    }
}
