/* Web3.0风格 - 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background: #F2F5F9;
    color: #333333;
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 选中文本样式 */
::selection {
    background: #528BFA;
    color: white;
}

::-moz-selection {
    background: #528BFA;
    color: white;
}

a {
    text-decoration: none;
    color: #528BFA;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: #2a6de5;
    transform: translateY(-2px);
}

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

/* 头部样式 - Web3.0风格 */
.header {
    background: #ffffff;
    color: #333333;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo a {
    font-size: 28px;
    font-weight: 800;
    color: #333333;
    text-decoration: none;
}

.logo a span {
    color: #528BFA;
}

.slogan {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.5px;
    color: #666666;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* 按钮样式 - Web3.0风格 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    white-space: nowrap;
    min-height: 42px;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.btn-primary {
    background: #528BFA;
    color: white !important;
    border: 1px solid #528BFA;
}

.btn-primary:hover {
    background: #2a6de5;
    border-color: #2a6de5;
    box-shadow: 0 4px 10px rgba(82, 139, 250, 0.3);
    transform: translateY(-2px);
    color: white !important;
}

.btn-primary * {
    color: white !important;
}

.btn-outline {
    background: #ffffff;
    color: #528BFA;
    border: 1px solid #eaeaea;
}

.btn-outline:hover {
    background: #f0f5ff;
    border-color: #528BFA;
    box-shadow: 0 4px 10px rgba(82, 139, 250, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #FF9900;
    color: white !important;
    border: 1px solid #FF9900;
}

.btn-secondary:hover {
    background: #e68a00;
    border-color: #e68a00;
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
    transform: translateY(-2px);
    color: white !important;
}

.btn-secondary * {
    color: white !important;
}

.btn-disabled {
    background: #f0f0f0;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-disabled:hover {
    background: #f0f0f0;
    color: #999999;
    transform: none;
    box-shadow: none;
}

/* 搜索区域 - Web3.0风格 */
.search-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 32px 0;
    border: 1px solid #eaeaea;
}

.search-form {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333333;
}

.search-input:focus {
    border-color: #528BFA;
    box-shadow: 0 0 0 3px rgba(82, 139, 250, 0.2);
}

.search-btn {
    padding: 14px 24px;
    background: #528BFA;
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-btn:hover {
    background: #2a6de5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(82, 139, 250, 0.3);
}

/* 资源区域 - Web3.0风格 */
.resources-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 32px 0;
    border: 1px solid #eaeaea;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: #528BFA;
    font-size: 24px;
    font-weight: 700;
}

.section-title i {
    font-size: 28px;
}

.resource-count {
    font-size: 16px;
    color: #666666;
    font-weight: 400;
}

/* 网格资源布局 - Web3.0风格 */
.grid-resources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.grid-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #528BFA;
}

.grid-thumb {
    width: 100%;
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.grid-thumb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(82, 139, 250, 0.05), rgba(82, 139, 250, 0.05));
}

.grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-card:hover .grid-thumb img {
    transform: scale(1.05);
}

.grid-body {
    padding: 20px;
}

.grid-title {
    font-size: 16px;
    color: #333333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666666;
    font-size: 14px;
    margin-bottom: 16px;
}

.grid-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.download-btn, .login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.download-btn {
    background: #10B981;
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.download-btn:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.login-btn {
    background: #528BFA;
    color: white;
    box-shadow: 0 2px 4px rgba(82, 139, 250, 0.2);
}

.login-btn:hover {
    background: #2a6de5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(82, 139, 250, 0.3);
}

/* 分页导航 - Web3.0风格 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 8px;
    padding: 0;
    flex-wrap: wrap;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    min-width: 42px;
    height: 42px;
    text-decoration: none;
    color: #666666;
}

.pagination a:hover {
    background: #f0f5ff;
    border-color: #528BFA;
    transform: translateY(-2px);
    color: #528BFA;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination .active span {
    background: #528BFA;
    color: white;
    border-color: #528BFA;
    box-shadow: 0 2px 6px rgba(82, 139, 250, 0.3);
}

.pagination .active a {
    background: #528BFA;
    color: white;
    border-color: #528BFA;
    box-shadow: 0 2px 6px rgba(82, 139, 250, 0.3);
}

.pagination .disabled {
    background: #f8f9fa;
    color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 底部样式 - Web3.0风格 */
.site-footer {
    background: #ffffff;
    color: #666666;
    padding: 40px 0 20px 0;
    margin-top: 40px;
    border-top: 1px solid #eaeaea;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.footer-nav a {
    color: #666666;
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #528BFA;
    background: #f0f5ff;
    transform: translateY(-2px);
}

.copyright {
    color: #999999;
    font-size: 14px;
    margin-bottom: 4px;
    text-align: center;
}

/* 客服区域 - Web3.0风格 */
.customer-service {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
    border: 1px solid #eaeaea;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.customer-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #528BFA;
}

.customer-service img {
    width: 120px;
    height: 120px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 2px solid #eaeaea;
}

.customer-service p {
    font-size: 14px;
    color: #528BFA;
    font-weight: 600;
    margin: 0;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    color: #333333;
    font-size: 14px;
    gap: 16px;
    flex-wrap: wrap;
}

.username {
    font-weight: 600;
    color: #333333;
}

.logout-link {
    color: #f44336;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 10px;
    background: #f8f9fa;
    font-weight: 500;
}

.logout-link:hover {
    background: #ffebee;
    transform: translateY(-1px);
}

.vip-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    background: #FF9900;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(255, 153, 0, 0.3);
}

/* 资源详情弹窗样式 - 美化版 */
.resource-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.resource-modal.active {
    opacity: 1;
    visibility: visible;
}

.resource-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid #eaeaea;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.resource-modal.active .resource-modal-content {
    transform: translateY(0);
}

.resource-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eaeaea;
    background: #f8f9fa;
}

.resource-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #999999;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-modal-close:hover {
    color: #f44336;
    background: #ffebee;
}

.resource-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.resource-description-content {
    color: #333333;
    line-height: 1.7;
    font-size: 16px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #eaeaea;
}

.resource-description-content br {
    line-height: 1.8;
}

.resource-description-content ul,
.resource-description-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.resource-description-content li {
    margin: 8px 0;
    line-height: 1.6;
}

/* 滚动条样式 */
.resource-modal-body::-webkit-scrollbar {
    width: 8px;
}

.resource-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.resource-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.resource-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .logo {
        justify-content: center;
    }
    
    .auth-buttons {
        margin-top: 0;
        justify-content: center;
    }
    
    .search-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-input {
        border-radius: 14px;
    }
    
    .search-btn {
        border-radius: 14px;
    }
    
    .grid-resources {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .customer-service {
        right: 16px;
        bottom: 16px;
        padding: 16px;
    }
    
    .customer-service img {
        width: 100px;
        height: 100px;
    }
    
    .site-footer {
        padding: 30px 16px 16px 16px;
        font-size: 14px;
    }
    
    .footer-nav {
        gap: 16px;
        flex-direction: column;
    }
    
    .footer-nav a {
        padding: 12px 24px;
        width: 100%;
        text-align: center;
        max-width: 250px;
    }
    
    .section-title {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .resource-modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 16px;
        font-size: 14px;
        min-height: 38px;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .resources-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .grid-resources {
        grid-template-columns: 1fr;
    }
    
    .pagination a {
        padding: 8px 12px;
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .resource-modal-header {
        padding: 16px 20px;
    }
    
    .resource-modal-header h3 {
        font-size: 18px;
    }
    
    .resource-modal-body {
        padding: 20px;
    }
    
    .resource-description-content {
        padding: 16px;
        font-size: 15px;
    }
}

/* ========== 管理后台样式 - Web3.0风格 ========== */

/* 管理后台容器 */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* 管理后台头部 */
.admin-header {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header h1 i {
    font-style: normal;
    font-size: 32px;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 警告提示框 */
.alert {
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid;
}

.alert i {
    font-style: normal;
    font-size: 20px;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fca5a5;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

/* 管理后台区域 */
.admin-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eaeaea;
    flex-wrap: wrap;
}

.tab {
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666666;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin-bottom: -2px;
}

.tab:hover {
    color: #528BFA;
    background: #f0f5ff;
}

.tab.active {
    color: #528BFA;
    border-bottom-color: #528BFA;
    background: #f0f5ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* 操作面板 */
.action-panel {
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
}

.action-panel h2 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-success {
    background: #10B981;
    color: white;
    border: 1px solid #10B981;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

/* 表格容器 */
.table-container {
    margin-top: 20px;
}

.table-container h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 16px 0;
}

.table-container p {
    margin: 8px 0 16px 0;
}

/* 管理后台表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaea;
}

.admin-table thead {
    background: #f8f9fa;
}

.admin-table thead th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eaeaea;
}

.admin-table tbody tr {
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table tbody td {
    padding: 16px;
    color: #333333;
    font-size: 14px;
    vertical-align: middle;
}

.admin-table .checkbox-col {
    width: 50px;
    text-align: center;
}

.admin-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #528BFA;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.unused {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.used {
    background: #fee2e2;
    color: #991b1b;
}

/* 单行字体 */
.mono {
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-size: 13px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    color: #333333;
}

/* 链接URL样式 */
.url {
    color: #528BFA;
    text-decoration: none;
    word-break: break-all;
    font-size: 13px;
}

.url:hover {
    color: #2a6de5;
    text-decoration: underline;
}

/* 次要文本 */
.muted {
    color: #6b7280;
    font-size: 14px;
}

/* CSV格式说明 */
.csv-format {
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #333333;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.csv-format strong {
    color: #1f2937;
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

/* 上传区域 */
.upload-area {
    background: #f8f9fa;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #528BFA;
    background: #f0f5ff;
}

.upload-area p {
    margin: 0 0 12px 0;
    color: #1f2937;
    font-size: 16px;
}

.upload-area input[type="file"] {
    margin: 16px 0;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    max-width: 400px;
}

.upload-area input[type="file"]:hover {
    border-color: #528BFA;
}

/* 管理后台响应式设计 */
@media (max-width: 1024px) {
    .admin-container {
        padding: 16px;
    }
    
    .admin-header {
        padding: 24px;
    }
    
    .admin-section {
        padding: 24px;
    }
    
    .admin-table {
        font-size: 13px;
    }
    
    .admin-table thead th,
    .admin-table tbody td {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-header h1 {
        font-size: 24px;
    }
    
    .admin-actions {
        width: 100%;
        justify-content: center;
    }
    
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab {
        width: 100%;
        text-align: center;
        border-bottom: 2px solid #eaeaea;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    .tab.active {
        border-bottom-color: #528BFA;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
    
    .admin-table thead {
        display: none;
    }
    
    .admin-table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #eaeaea;
        border-radius: 12px;
        padding: 12px;
    }
    
    .admin-table tbody td {
        display: block;
        text-align: left;
        padding: 8px 0;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .admin-table tbody td:last-child {
        border-bottom: none;
    }
    
    .admin-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #1f2937;
        display: block;
        margin-bottom: 4px;
        text-transform: uppercase;
        font-size: 12px;
    }
    
    .upload-area {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .admin-header h1 {
        font-size: 20px;
    }
    
    .admin-section {
        padding: 20px;
    }
    
    .action-panel {
        padding: 20px;
    }
    
    .csv-format {
        padding: 16px;
        font-size: 13px;
    }
}

/* ========== 表单页面通用样式 ========== */

/* 表单中心容器 */
.form-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

/* 表单卡片 */
.form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    margin: 20px 0;
}

/* 表单头部 */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    color: #528BFA;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-subtitle {
    color: #666666;
    margin: 0;
    font-size: 15px;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 15px;
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    font-size: 16px;
    background: #ffffff;
    color: #333333;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #528BFA;
    box-shadow: 0 0 0 3px rgba(82, 139, 250, 0.2);
}

.form-input::placeholder {
    color: #999999;
}

.form-hint {
    margin-top: 6px;
    font-size: 13px;
    color: #666666;
}

/* 表单按钮 */
.form-submit {
    width: 100%;
    padding: 14px;
    background: #528BFA;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-submit:hover {
    background: #2a6de5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(82, 139, 250, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

/* 表单底部链接 */
.form-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    margin-top: 20px;
}

.form-footer p {
    color: #666666;
    margin: 0;
    font-size: 15px;
}

.form-footer a {
    color: #528BFA;
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 错误提示 */
.error-message {
    background: #ffebee;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #ffcdd2;
    color: #f44336;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

.error-message i {
    font-style: normal;
    font-size: 20px;
}

/* 成功提示 */
.success-message {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #c8e6c9;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 500;
}

.success-message i {
    font-style: normal;
    font-size: 24px;
}

/* 信息提示 */
.info-message {
    background: #fff8e1;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid #ffecb3;
    color: #ff9800;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.info-message i {
    font-style: normal;
    font-size: 20px;
}

/* 内容卡片 */
.content-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    margin-bottom: 24px;
}

.content-card h3 {
    color: #528BFA;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.content-card p {
    color: #666666;
    font-size: 16px;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 30px;
}

.button-group .btn,
.button-group button,
.button-group a {
    flex: 1;
    min-width: 150px;
}

/* 响应式设计 - 表单 */
@media (max-width: 768px) {
    .form-card {
        padding: 30px 24px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .content-card {
        padding: 30px 24px;
    }
    
    .content-card h3 {
        font-size: 24px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn,
    .button-group button,
    .button-group a {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 24px 20px;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .form-submit {
        padding: 12px;
        font-size: 15px;
    }
    
    .content-card {
        padding: 24px 20px;
    }
    
    .content-card h3 {
        font-size: 22px;
    }
}

/* ========== 关于页面样式 ========== */

.about-content {
    margin: 40px 0;
}

.about-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.about-card h2 {
    color: #528BFA;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-card h2 i {
    font-style: normal;
    font-size: 28px;
}

.about-card p {
    color: #333333;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 16px 0;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-card strong {
    color: #528BFA;
    font-weight: 600;
}

.about-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.about-card li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
}

.about-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: 700;
    font-size: 18px;
}

.contact-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-actions .btn {
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

/* VIP售卖页面样式 */
.vip-status-card {
    margin: 40px 0 30px 0;
}

.vip-status-card > div {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.vip-status-card.active > div {
    background: #fff8e1;
    border-color: #ffecb3;
}

.vip-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.vip-plan-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #528BFA;
}

.vip-plan-card.popular {
    border-color: #FF9900;
    border-width: 2px;
}

.popular-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: #FF9900;
    color: white;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 0 0 10px 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #528BFA;
    text-align: center;
}

.plan-duration {
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
    text-align: center;
}

.plan-price {
    text-align: center;
    margin: 24px 0;
}

.plan-price-amount {
    font-size: 48px;
    font-weight: 800;
    color: #FF9900;
    line-height: 1;
}

.plan-price-currency {
    font-size: 24px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.plan-features li {
    padding: 12px 0;
    color: #333333;
    font-size: 15px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    font-style: normal;
    font-size: 16px;
}

.qrcode-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eaeaea;
}

.qrcode-section img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 2px solid #eaeaea;
    margin: 16px 0;
}

.qrcode-hint {
    color: #666666;
    font-size: 14px;
    margin-top: 12px;
}

/* 联系客服页面 */
.contact-container {
    margin: 40px 0;
}

.contact-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    text-align: center;
}

.contact-qrcode {
    margin: 30px 0;
}

.contact-qrcode img {
    width: 240px;
    height: 240px;
    border-radius: 16px;
    border: 2px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 二维码容器样式 */
.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed #d1d5db;
}

.qr-code-wrapper {
    text-align: center;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    border: 3px solid #528BFA;
    box-shadow: 0 8px 20px rgba(82, 139, 250, 0.2);
    transition: all 0.3s ease;
}

.qr-code-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(82, 139, 250, 0.3);
}

.qr-code-label {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #528BFA;
}

/* 信息网格布局 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.info-box:hover {
    background: #f0f5ff;
    border-color: #528BFA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 139, 250, 0.15);
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.info-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    display: block;
}

.info-text span {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

/* 响应式设计 - About & VIP */
@media (max-width: 768px) {
    .about-card {
        padding: 30px 24px;
    }
    
    .about-card h2 {
        font-size: 22px;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-actions .btn {
        width: 100%;
    }
    
    .vip-plans {
        grid-template-columns: 1fr;
    }
    
    .plan-price-amount {
        font-size: 40px;
    }
    
    .qr-code-container {
        padding: 20px;
    }
    
    .qr-code-image {
        width: 160px;
        height: 160px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-box {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .about-card {
        padding: 24px 20px;
    }
    
    .about-card h2 {
        font-size: 20px;
        flex-direction: column;
    }
    
    .vip-plan-card {
        padding: 24px 20px;
    }
    
    .plan-name {
        font-size: 20px;
    }
    
    .plan-price-amount {
        font-size: 36px;
    }
    
    .qr-code-container {
        padding: 16px;
    }
    
    .qr-code-image {
        width: 140px;
        height: 140px;
    }
    
    .qr-code-label {
        font-size: 14px;
    }
    
    .info-box {
        padding: 14px;
        gap: 12px;
    }
    
    .info-icon {
        font-size: 24px;
    }
    
    .info-text strong {
        font-size: 14px;
    }
    
    .info-text span {
        font-size: 13px;
    }
}

/* ========== 通用工具类 ========== */

/* 文本对齐 */
.text-center {
    text-align: center;
}

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

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

/* 间距工具类 */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* 显示工具类 */
.d-flex {
    display: flex;
}

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

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

.justify-content-center {
    justify-content: center;
}

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

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* 圆角工具类 */
.rounded {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 12px;
}

.rounded-xl {
    border-radius: 16px;
}

.rounded-2xl {
    border-radius: 20px;
}

/* 阴影工具类 */
.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 边框工具类 */
.border {
    border: 1px solid #eaeaea;
}

.border-0 {
    border: none;
}

/* 宽度工具类 */
.w-full {
    width: 100%;
}

.max-w-sm {
    max-width: 400px;
}

.max-w-md {
    max-width: 500px;
}

.max-w-lg {
    max-width: 700px;
}

.max-w-xl {
    max-width: 900px;
}

/* 字体工具类 */
.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: 14px;
}

.text-base {
    font-size: 16px;
}

.text-lg {
    font-size: 18px;
}

.text-xl {
    font-size: 20px;
}

.text-2xl {
    font-size: 24px;
}

/* 颜色工具类 */
.text-primary {
    color: #528BFA;
}

.text-secondary {
    color: #FF9900;
}

.text-success {
    color: #10B981;
}

.text-danger {
    color: #f44336;
}

.text-muted {
    color: #666666;
}

.bg-primary {
    background-color: #528BFA;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray {
    background-color: #f8f9fa;
}

/* 响应式隐藏 */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}

/* 加载动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

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

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

/* 卡片hover效果 */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
