/*
Theme Name: 7VIP 会员合租主题
Author: Xion
Description: 一个专业的会员账号合租WordPress主题，支持多人共享账号、在线支付、会员管理等功能
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 7vip
Tags: membership, rental, sharing, payment
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* 文章内容区域样式 */
.account-description h1,
.account-description h2,
.account-description h3,
.account-description h4,
.account-description h5,
.account-description h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
    margin-bottom: 1rem;
}

.account-description h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.account-description h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    margin-top: 2rem;
    letter-spacing: -0.01em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.account-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.account-description h4 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    margin-top: 1.25rem;
}

.account-description h5 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.account-description h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0.875rem;
}

/* 文章段落样式 */
.account-description p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #4b5563;
}

.account-description p:last-child {
    margin-bottom: 0;
}

.account-description p + p {
    margin-top: 1rem;
}

/* 文章强调文本 */
.account-description strong,
.account-description b {
    font-weight: 600;
    color: #1f2937;
}

.account-description em,
.account-description i {
    font-style: italic;
}

/* 文章链接样式 */
.account-description a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.account-description a:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* 文章列表样式 */
.account-description ul,
.account-description ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.account-description ul li,
.account-description ol li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
    color: #4b5563;
}

/* 文章引用样式 */
.account-description blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #4f46e5;
    background: #f9fafb;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

.account-description blockquote p {
    margin-bottom: 0.5rem;
}

.account-description blockquote p:last-child {
    margin-bottom: 0;
}

/* 文章代码样式 */
.account-description code {
    padding: 0.2rem 0.4rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
    color: #dc2626;
}

.account-description pre {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #1f2937;
    border-radius: 8px;
    overflow-x: auto;
    line-height: 1.6;
}

.account-description pre code {
    padding: 0;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 0.875rem;
}

/* 文章分隔线 */
.account-description hr {
    margin: 2rem 0;
    border: none;
    border-top: 2px solid #e5e7eb;
}

/* 文章图片样式 */
.account-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.account-description figure {
    margin: 1.5rem 0;
}

.account-description figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

/* 文章表格样式 */
.account-description table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.account-description table th,
.account-description table td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.account-description table th {
    background: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

.account-description table tr:hover {
    background: #f9fafb;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部导航 */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    overflow: visible;
}

.site-logo a {
    font-size: 22px;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
    position: relative;
}

.site-logo a:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.site-logo a:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.site-logo a img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2px;
}

.site-logo a span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    display: block;
    position: relative;
}

.main-nav a:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover::after {
    width: 60%;
}

.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    font-weight: 600;
}

.main-nav .current-menu-item a::after,
.main-nav .current_page_item a::after {
    width: 60%;
}

.user-menu {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 1001;
}

/* 搜索图标 */
.search-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid #e5e7eb;
}

.search-icon-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: all 0.3s;
}

.search-icon-link:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.icon-link {
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.icon-link .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: all 0.3s;
}

.icon-link:hover .dashicons {
    opacity: 1;
    transform: scale(1.15);
}

/* 后台管理图标 - 圆形样式 */
.admin-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #f59e0b;
}

.admin-icon-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.admin-icon-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    background: #d97706;
    border-color: #d97706;
}

/* 用户下拉菜单容器 */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* 用户头像链接 */
.user-avatar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 50%;
    cursor: pointer;
}

.user-avatar-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: block;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
}

.user-avatar-link:hover .user-avatar {
    border-color: #4f46e5;
}

/* 下拉菜单 */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    overflow: visible;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单项 */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.dropdown-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: #4f46e5;
}

.dropdown-item:hover .dashicons {
    color: #4f46e5;
}

/* 退出登录项 */
.dropdown-item-logout {
    color: #ef4444;
}

.dropdown-item-logout .dashicons {
    color: #ef4444;
}

.dropdown-item-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-item-logout:hover .dashicons {
    color: #dc2626;
}

/* 分隔线 */
.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    min-width: 50px;
}

.btn-primary {
    background: #4f46e5;
    color: #fff;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-outline {
    border: 1px solid #4f46e5;
    color: #4f46e5;
    background: transparent;
}

.btn-outline:hover {
    background: #4f46e5;
    color: #fff;
}

/* 主横幅 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 16px;
    opacity: 0.9;
}

.hero-section .btn {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
}

/* 账号列表 */
.accounts-section {
    padding: 30px 0;
}

.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #1f2937;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.account-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.account-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.12), 0 6px 12px rgba(79, 70, 229, 0.08);
    border-color: #e0e7ff;
}

.account-card-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 18px 16px 16px;
    text-align: center;
}

.account-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 28px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.account-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-card h3 {
    font-size: 16px;
    margin-bottom: 0;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.account-card > p,
.account-card-body > p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 0;
}

/* 分类标签样式 */
.account-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 4px;
    font-size: 12px;
}

/* 简介样式 */
.account-summary {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 特色标签容器 - 放在最下面 */
.card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* 特色标签样式 - 重新设计 */
.feature-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #667eea;
    transition: all 0.2s ease;
    text-align: center;
}

.account-card:hover .feature-tag {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    border-color: #5a67d8;
    transform: translateY(-1px);
}

.account-card .price {
    font-size: 24px;
    color: #4f46e5;
    font-weight: 700;
    margin: 6px 0;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.account-card .price span {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.account-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 13px;
    color: #6b7280;
    border: 1px solid #f0f0f0;
}

.account-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.account-meta a {
    color: #4f46e5;
    text-decoration: none;
}

.account-meta .price {
    color: #4f46e5;
}

.account-meta .validity-permanent {
    color: #059669;
}

.account-meta .validity-long {
    color: #059669;
}

.account-meta .validity-short {
    color: #dc2626;
}

.account-meta .unlimited {
    color: #059669;
    font-weight: 600;
}

/* 文章详情页面的account-meta样式 */
.single-vip_account .account-meta {
    padding: 20px 25px;
}

.account-meta > div:not(:last-child)::after,
.account-meta > span:not(:last-child)::after {
    content: "|";
    color: #d1d5db;
    margin: 0 4px;
    font-weight: 300;
}

/* 标签样式 */
.account-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* 文章列表卡片标签限制 - 只显示两个标签 */
.account-card .account-tags {
    flex-wrap: nowrap;
    justify-content: space-between;
}

.account-card .tag-badge {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.account-card .tag-badge:nth-child(n+3) {
    display: none;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.tag-badge svg {
    width: 14px;
    height: 14px;
    margin-right: 5px;
}


/* 卡片底部区域已移除，整个卡片可点击 */

/* 可用状态标识 */
.status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.98);
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
}

.status-badge.full {
    background: rgba(255, 255, 255, 0.98);
    color: #dc2626;
}

/* 特性区域 */
.features-section {
    background: #fff;
    padding: 25px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #e0e7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-item p {
    color: #6b7280;
    font-size: 13px;
}

/* 编辑链接样式 */
.edit-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.edit-link:hover {
    color: #4f46e5;
    text-decoration: none;
}

/* 用户中心 */
.dashboard {
    padding: 30px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
}

.dashboard-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    height: fit-content;
}

.dashboard-sidebar ul {
    list-style: none;
}

.dashboard-sidebar li {
    margin-bottom: 10px;
}

.dashboard-sidebar a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    font-size: 14px;
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a.active {
    background: #e0e7ff;
    color: #4f46e5;
}

.dashboard-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #4f46e5;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: auto;
}

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

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.data-table tr:hover {
    background: #f9fafb;
}

/* 操作列固定宽度，其他列自动分配 */
.data-table th:last-child,
.data-table td:last-child {
    width: auto;
    min-width: 180px;
}

/* 状态列宽度 - 我的订单表格的第5列 */
#my-orders .data-table th:nth-child(5),
#my-orders .data-table td:nth-child(5) {
    min-width: 90px;
    width: 90px;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

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

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

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

/* 页脚 */
.site-footer {
    background: #1f2937;
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* 简化页脚样式 */
.footer-links {
    margin: 15px 0;
    text-align: center;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4f46e5;
}

.footer-contact {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.footer-contact span {
    display: inline-block;
    margin-right: 20px;
    color: #9ca3af;
}

.footer-contact a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #4f46e5;
}

.footer-section p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section li {
    font-size: 14px;
    color: #9ca3af;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 14px;
}

/* 移动端页脚优化 */
@media (max-width: 768px) {
    .site-footer {
        padding: 25px 0 20px;
        margin-top: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 20px;
        justify-content: center;
        align-items: center;
    }
    
    .footer-section {
        min-width: auto;
        width: 100%;
    }
    
    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 12px;
        color: #fff;
    }
    
    .footer-section p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 0;
    }
    
    .footer-section ul {
        gap: 6px;
    }
    
    .footer-section li {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .footer-section a {
        font-size: 13px;
        padding: 2px 0;
        display: inline-block;
    }
    
    .footer-bottom {
        padding-top: 15px;
        font-size: 12px;
        line-height: 1.4;
    }
    
    .footer-bottom p {
        margin: 0;
        word-break: break-all;
    }
    
    /* 移动端简化页脚样式 */
    .footer-links {
        margin: 12px 0;
        text-align: center;
    }
    
    .footer-links a {
        margin-right: 15px;
        font-size: 13px;
    }
    
    .footer-contact {
        margin-top: 12px;
        font-size: 13px;
        text-align: center;
    }
    
    .footer-contact span {
        margin-right: 15px;
        display: inline-block;
        margin-bottom: 0;
    }
    
    .footer-contact a {
        color: #9ca3af;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .footer-contact a:hover {
        color: #4f46e5;
    }
}

/* 主导航菜单Dashicons图标 */
.main-nav .menu-item a {
    display: flex;
    align-items: center;
}

.main-nav .menu-item a::before {
    font-family: dashicons;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

/* 首页图标 */
.main-nav .menu-item.menu-home a::before {
    content: "\f102"; /* dashicons-admin-home */
}

/* 账号列表图标 */
.main-nav .menu-item.menu-accounts a::before {
    content: "\f307"; /* dashicons-groups */
}

/* 常见问题图标 */
.main-nav .menu-item.menu-faq a::before {
    content: "\f223"; /* dashicons-editor-help */
}

/* 关于我们图标 */
.main-nav .menu-item.menu-about a::before {
    content: "\f348"; /* dashicons-info */
}

/* 联系我们图标 */
.main-nav .menu-item.menu-contact a::before {
    content: "\f466"; /* dashicons-email-alt */
}

/* 个人中心图标 */
.main-nav .menu-item.menu-dashboard a::before {
    content: "\f110"; /* dashicons-admin-users */
}

/* 使用指南图标 */
.main-nav .menu-item.menu-guide a::before {
    content: "\f230"; /* dashicons-welcome-learn-more */
}

/* 移动端菜单图标调整 */
@media (max-width: 768px) {
    .main-nav .menu-item a::before {
        display: none !important;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 顶部导航移动端重新设计 */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow: visible;
    }
    
    .site-header .container {
        padding: 12px 15px;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0;
        align-items: center;
        overflow: visible;
    }
    
    /* Logo移动端适配 */
    .site-logo {
        grid-column: 1;
        grid-row: 1;
    }
    
    .site-logo a {
        font-size: 18px;
        gap: 8px;
    }
    
    .site-logo a img {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }
    
    /* 用户菜单移动端 - 放在右上角 */
    .user-menu {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        gap: 8px;
        margin-left: 10px;
        position: relative;
        z-index: 1001;
        overflow: visible;
        align-items: center;
    }
    
    .user-menu .search-icon-link {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .user-menu .search-icon-link .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
    
    .user-menu .btn {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .user-menu .icon-link {
        width: 32px;
        height: 32px;
    }
    
    .user-menu .icon-link .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
    
    .user-menu .user-avatar {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .user-menu .user-avatar-link {
        flex-shrink: 0;
    }
    
    .user-menu .admin-icon-link {
        width: 32px;
        height: 32px;
    }
    
    .user-menu .admin-icon-link .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
    
    /* 下拉菜单移动端优化 */
    .user-dropdown {
        position: static;
    }
    
    .user-dropdown-menu {
        min-width: 160px;
        right: 0;
        position: fixed;
        top: 60px;
        z-index: 9999;
    }
    
    .dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .dropdown-item .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
    
    /* 主导航移动端 - 放在第二行 */
    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        display: block !important;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
    }
    
    .main-nav ul {
        display: flex;
        justify-content: flex-start;
        gap: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        margin: 0;
    }
    
    .main-nav ul::-webkit-scrollbar {
        height: 2px;
    }
    
    .main-nav ul::-webkit-scrollbar-thumb {
        background: #4f46e5;
        border-radius: 2px;
    }
    
    .main-nav li {
        flex-shrink: 0;
        margin: 0;
    }
    
    .main-nav a {
        display: block;
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
        color: #6b7280;
        font-weight: 500;
        transition: all 0.3s;
        border-radius: 6px;
    }
    
    .main-nav a:hover,
    .main-nav li.current-menu-item a {
        color: #4f46e5;
        background: #f3f4f6;
    }
    
    /* 隐藏菜单切换按钮（不再需要） */
    .menu-toggle {
        display: none !important;
    }
    
    /* 为固定顶部导航添加页面顶部间距 */
    body {
        padding-top: 110px;
    }
    
    .site-main {
        padding-top: 0;
    }
    
    /* 文章标题移动端适配 */
    .account-description h1 {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    .account-description h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        margin-top: 1.5rem;
    }
    
    .account-description h3 {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
        margin-top: 1.25rem;
    }
    
    .account-description h4 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
        margin-top: 1rem;
    }
    
    /* 文章段落移动端适配 */
    .account-description p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
    
    /* 文章列表移动端适配 */
    .account-description ul,
    .account-description ol {
        padding-left: 1.25rem;
    }
    
    .account-description ul li,
    .account-description ol li {
        font-size: 0.9375rem;
    }
    
    /* 文章引用移动端适配 */
    .account-description blockquote {
        margin: 1rem 0;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* 筛选栏移动端优化 */
    .filter-bar {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    
    .filter-bar > div {
        flex: none !important;
        width: 100% !important;
    }
    
    .filter-bar select {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        background-color: #fff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .filter-bar select:focus {
        outline: none;
        border-color: #4f46e5;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }
    
    .account-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* 移动端section标题统一 */
    .section-title {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
    
    /* 特性区域移动端 - 单行紧凑显示 */
    .features-section {
        padding: 15px 0;
    }
    
    .features-grid {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        padding: 0 3px;
    }
    
    .feature-item {
        flex: 1;
        text-align: center;
        padding: 8px 2px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.06);
        margin: 0 1px;
    }
    
    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
        margin: 0 auto 5px;
        background: #f3f4f6;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .feature-item h3 {
        font-size: 11px;
        margin-bottom: 2px;
        font-weight: 600;
    }
    
    .feature-item p {
        font-size: 9px;
        color: #6b7280;
        margin: 0;
        white-space: nowrap;
    }
    
    /* 编辑链接移动端优化 */
    .edit-link {
        font-size: 13px;
    }
    
    /* 页面头部移动端优化 */
    .page-header {
        padding: 40px 0 !important;
    }
    
    .page-header h1 {
        font-size: 28px !important;
        margin-bottom: 10px !important;
    }
    
    .page-header p {
        font-size: 15px !important;
    }
    
    .accounts-archive {
        padding: 30px 0 0 0 !important;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 15px;
    }
    
    .hero-section .btn {
        padding: 10px 24px;
        font-size: 15px;
    }
    
    /* 移动端卡片优化 */
    .account-card-header {
        padding: 12px;
    }
    
    .account-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-radius: 12px;
    }
    
    .account-card-body {
        padding: 10px;
        gap: 6px;
    }
    
    .account-card h3 {
        font-size: 14px;
        line-height: 1.3;
        -webkit-line-clamp: 1;
    }
    
    .account-card .price {
        font-size: 20px;
        margin: 3px 0;
    }
    
    .account-meta {
        font-size: 10px;
        padding: 6px 8px;
        gap: 4px;
    }
    
    .account-card-footer {
        padding: 0 10px 10px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 3px 8px;
        top: 10px;
        right: 10px;
    }
    
    /* 移动端分类标签优化 */
    .account-categories {
        margin-bottom: 6px;
        gap: 4px;
    }
    
    .category-tag {
        padding: 2px 6px;
        font-size: 10px;
        border-radius: 3px;
    }
    
    /* 移动端简介优化 */
    .account-summary {
        font-size: 11px;
        margin-bottom: 8px;
        line-height: 1.4;
        -webkit-line-clamp: 1;
    }
    
    /* 移动端特色标签优化 */
    .card-tags {
        gap: 4px;
        margin-top: 6px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .feature-tag {
        padding: 3px 7px;
        font-size: 9px;
        border-radius: 8px;
        flex: 1;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    
    .feature-tag:nth-child(n+3) {
        display: none;
    }
    
    /* 移动端账号标签优化 - 仅针对文章列表卡片 */
    .account-card .account-tags {
        gap: 6px;
        margin-bottom: 15px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .account-card .tag-badge {
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 15px;
        flex: 1;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    
    .account-card .tag-badge svg {
        width: 12px;
        height: 12px;
        margin-right: 4px;
        flex-shrink: 0;
    }
    
    .account-card .tag-badge:nth-child(n+3) {
        display: none;
    }
    
    /* 个人中心移动端优化 */
    .dashboard {
        padding: 20px 0;
    }
    
    /* 整体网格在移动端确保不超出 */
    .dashboard-grid {
        overflow-x: hidden;
    }
    
    .container {
        overflow-x: hidden;
    }
    
    /* 侧边栏移动端优化 - 横向滚动菜单 */
    .dashboard-sidebar {
        padding: 15px;
        margin-bottom: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .dashboard-sidebar ul {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .dashboard-sidebar li {
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .dashboard-sidebar a {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* 内容区域 */
    .dashboard-content {
        padding: 20px 15px;
        overflow-x: hidden;
    }
    
    .dashboard-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    /* 顶部标题和按钮区域 - 保持水平排列，右对齐 */
    .dashboard-section > div[style*="display: flex"][style*="justify-content: space-between"] {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }
    
    .dashboard-section > div[style*="display: flex"] h2 {
        margin: 0 !important;
        font-size: 16px !important;
        flex: 1 1 auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-width: 0 !important;
    }
    
    /* 激活授权码按钮移动端 - 显示在右边，控制宽度 */
    #activate-authcode-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        max-width: 120px !important;
        overflow: hidden !important;
        gap: 4px !important;
    }
    
    #activate-authcode-btn span {
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }
    
    /* 提交工单按钮移动端 */
    #create-ticket-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        max-width: 110px !important;
        overflow: hidden !important;
    }
    
    /* 表格容器 - 添加滚动容器 */
    .dashboard-section {
        overflow-x: hidden;
    }
    
    /* 表格响应式 - 包装滚动容器 */
    .data-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 14px;
        margin: 15px 0;
    }
    
    .data-table thead {
        display: table-header-group;
    }
    
    .data-table tbody {
        display: table-row-group;
    }
    
    .data-table tr {
        display: table-row;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 13px;
        display: table-cell;
    }
    
    /* 按钮组响应式 - 水平排列 */
    .data-table td > div,
    .data-table td > div[style*="flex"],
    .data-table td > div[style*="display: flex"] {
        display: flex !important;
        flex-direction: row !important;
        gap: 5px !important;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .data-table .btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
        white-space: nowrap;
        width: auto !important;
        min-width: auto !important;
        flex: 0 0 auto;
    }
    
    /* 充值区域双栏改单栏 */
    .dashboard-section > div[style*="grid-template-columns: 1fr 1fr"],
    .dashboard-section > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* 余额卡片 */
    .dashboard-sidebar > div[style*="linear-gradient"] {
        padding: 20px !important;
    }
    
    .dashboard-sidebar > div[style*="linear-gradient"] > div:last-child {
        font-size: 32px !important;
    }
    
    /* 模态框移动端优化 */
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px) !important;
        max-height: calc(100vh - 40px) !important;
        padding: 0 !important;
        overflow-y: auto;
    }
    
    /* 搜索模态框移动端优化 */
    #search-modal .modal-content {
        margin: 15px;
        max-width: calc(100% - 30px) !important;
    }
    
    #search-modal .modal-header {
        padding: 15px 20px !important;
    }
    
    #search-modal .modal-header h2 {
        font-size: 18px !important;
        margin: 0 !important;
    }
    
    #search-modal form {
        padding: 20px !important;
    }
    
    #search-modal #search-input {
        font-size: 15px !important;
        padding: 10px 12px !important;
    }
    
    #search-modal button[type="submit"] {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    /* 授权码弹窗移动端优化 */
    #authcode-modal .modal-content {
        width: calc(100% - 30px) !important;
        max-width: 420px !important;
        margin: 15px;
    }
    
    #authcode-modal .modal-content > div:first-child {
        padding: 20px 20px !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    #authcode-modal .modal-content > div:first-child h2 {
        font-size: 18px !important;
    }
    
    #authcode-modal .modal-content > div:first-child span {
        font-size: 24px !important;
    }
    
    #authcode-modal .modal-content > div:last-child {
        padding: 20px !important;
    }
    
    #authcode-modal #auth-code {
        font-size: 16px !important;
        padding: 10px 12px !important;
    }
    
    #authcode-modal .form-group {
        margin-bottom: 20px !important;
    }
    
    #authcode-modal button {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    /* 授权码按钮容器 */
    #authcode-modal .modal-content > div:last-child > form > div:last-child {
        display: flex !important;
        gap: 10px !important;
    }
    
    #authcode-modal button.close-modal {
        flex: 0.8 !important;
        min-width: 80px !important;
    }
    
    #authcode-modal button[type="submit"] {
        flex: 1.2 !important;
        min-width: 100px !important;
    }
    
    /* 工单弹窗移动端优化 */
    #create-ticket-modal .modal-content,
    #ticket-detail-modal .modal-content {
        width: calc(100% - 30px) !important;
        max-width: 500px !important;
        margin: 15px;
    }
    
    #create-ticket-modal .modal-content > div:first-child,
    #ticket-detail-modal .modal-content > div:first-child {
        padding: 20px 20px !important;
    }
    
    #create-ticket-modal .modal-content > div:first-child h2,
    #ticket-detail-modal .modal-content > div:first-child h2 {
        font-size: 18px !important;
    }
    
    #create-ticket-modal .modal-content > div:last-child,
    #ticket-detail-modal .modal-content > div:last-child {
        padding: 20px !important;
    }
    
    /* 账号详情弹窗移动端优化 */
    #account-modal .modal-content {
        width: calc(100% - 30px) !important;
        max-width: 500px !important;
        margin: 15px;
        max-height: calc(100vh - 30px) !important;
        overflow-y: auto !important;
    }
    
    #account-modal .modal-header {
        padding: 15px 20px !important;
        position: sticky !important;
        top: 0 !important;
        background: #fff !important;
        z-index: 10 !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    #account-modal .modal-header h2 {
        font-size: 18px !important;
        margin: 0 !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }
    
    #account-modal .modal-content > div:not(.modal-header) {
        padding: 15px !important;
    }
    
    /* 账号弹窗内的卡片区域 */
    #account-modal div[style*="linear-gradient"] {
        padding: 20px 15px !important;
        margin-bottom: 15px !important;
        border-radius: 10px !important;
    }
    
    #account-modal div[style*="linear-gradient"] h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    #account-modal div[style*="linear-gradient"] p {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }
    
    /* 一键登录按钮 */
    #account-modal div[style*="linear-gradient"] button {
        padding: 12px 25px !important;
        font-size: 15px !important;
        width: auto !important;
        max-width: 100% !important;
    }
    
    /* 账号信息区域 */
    #account-modal div[style*="background: #f9fafb"],
    #account-modal div[style*="background: #fee2e2"],
    #account-modal div[style*="background: #fef3c7"] {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border-radius: 10px !important;
    }
    
    #account-modal div[style*="background: #f9fafb"] h3,
    #account-modal div[style*="background: #fee2e2"] h3,
    #account-modal div[style*="background: #fef3c7"] h3 {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
    
    /* 租用信息网格 */
    #account-modal div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* 登录凭证区域 */
    #account-modal div[style*="display: flex"][style*="gap: 10px"] {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    #account-modal div[style*="display: flex"][style*="gap: 10px"] > div:first-child {
        flex: 1 !important;
        min-width: 0 !important;
        word-break: break-all !important;
    }
    
    #account-modal div[style*="display: flex"][style*="gap: 10px"] button {
        padding: 8px 12px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* 底部按钮区域 */
    #account-modal div[style*="text-align: center"][style*="margin-top: 20px"] {
        margin-top: 15px !important;
    }
    
    #account-modal div[style*="text-align: center"] .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
        width: 100% !important;
        max-width: 200px !important;
    }
    
    /* 模态框内按钮优化 */
    .modal-content button.btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    /* 支付方式卡片 */
    .payment-method {
        padding: 15px !important;
    }
    
    .payment-method > div > div:first-child {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
        margin-right: 10px !important;
    }
    
    /* Alert 提示框 */
    .alert {
        padding: 12px !important;
        font-size: 14px;
    }
    
    /* 表格操作列保证足够宽度 */
    .data-table td:last-child {
        min-width: 120px;
    }
    
    /* Badge 徽章在移动端 */
    .badge {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }
    
    /* 状态列在移动端的宽度 */
    #my-orders .data-table th:nth-child(5),
    #my-orders .data-table td:nth-child(5) {
        min-width: 70px !important;
    }
    
    /* 充值表单区域防止超出 */
    .dashboard-section form .form-control {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* 确保所有内联样式的div不超出 */
    .dashboard-section > div[style] {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* 按钮组不换行 */
    .dashboard-section .data-table td > div {
        white-space: nowrap;
    }
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

.modal-header .modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-header .modal-close:hover {
    color: #1f2937;
    background: #f3f4f6;
}

button.modal-close {
    cursor: pointer;
    transition: all 0.2s;
}

button.modal-close:hover {
    transform: translateY(-1px);
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* 提示消息 */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ==================== 分页样式 ==================== */
.pagination {
    margin: 30px 0 15px;
    text-align: center;
    position: relative;
}

.pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.pagination ul li {
    margin: 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.pagination .page-numbers:hover {
    color: #4f46e5;
    background: #f8fafc;
    transform: translateY(-1px);
}

.pagination .page-numbers.current {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.pagination .page-numbers.current:hover {
    transform: none;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: 600;
    color: #4f46e5;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

.pagination .page-numbers.dots {
    background: transparent;
    cursor: default;
    min-width: auto;
    padding: 0 6px;
    color: #9ca3af;
    font-weight: 400;
}

.pagination .page-numbers.dots:hover {
    transform: none;
    background: transparent;
    color: #9ca3af;
}

/* 响应式分页 */
@media (max-width: 768px) {
    .pagination {
        margin: 40px 0 30px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .pagination ul {
        gap: 6px;
        min-width: min-content;
    }
    
    .pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 14px;
        border-radius: 6px;
        display: inline-flex !important;
    }
    
    /* 分页容器移动端优化 */
    .pagination-wrapper {
        padding: 20px 15px !important;
        margin-top: 40px !important;
    }
}

@media (max-width: 480px) {
    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        min-width: 32px;
        padding: 0 8px;
        font-size: 0;
    }
    
    .pagination .page-numbers.prev::before {
        content: '‹';
        font-size: 20px;
    }
    
    .pagination .page-numbers.next::before {
        content: '›';
        font-size: 20px;
    }
}

/* 分页信息提示 */
.pagination-info {
    text-align: center;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.pagination-info strong {
    color: #4f46e5;
    font-weight: 600;
    background: #f0f4ff;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 屏幕阅读器文本 */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 分页容器增强 */
.pagination-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

