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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* 导航栏 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 搜索框 */
.search-section {
    margin-top: 80px;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-box .btn-primary {
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
}

/* 幻灯片广告 */
.slider {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    height: 350px;
}

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

/* 分类展示 */
.categories-section {
    padding: 40px 0;
    background-color: #fff;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 15px auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

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

.category-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-card:hover .category-icon,
.category-card:hover .category-name {
    color: #fff;
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

/* 商品展示 */
.products-section {
    padding: 40px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 24px;
    color: #e74c3c;
    font-weight: 700;
}

.product-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

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

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56,239,125,0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(235,51,73,0.4);
}

/* 底部导航栏 */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 8px 0;
    border-top: 1px solid #e9ecef;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #666;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.bottom-nav-item.active {
    color: #667eea;
}

.bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    display: block;
}

.bottom-nav-text {
    font-size: 12px;
    font-weight: 500;
}

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

    .logo {
        font-size: 22px;
    }

    .nav-menu {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    .slider {
        height: 250px;
    }

    .search-section {
        margin-top: 70px;
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .search-box {
        margin: 0 10px;
    }

    .search-input {
        padding: 12px 20px;
        font-size: 14px;
    }

    .search-box .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .section-title {
        font-size: 26px;
    }

    .categories-section,
    .products-section {
        padding: 25px 0;
        border-radius: 15px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .category-name {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 20px;
    }

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

    .product-actions .btn {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    /* 移动端内容底部留白 */
    body {
        padding-bottom: 70px;
    }

    /* 会员中心移动端样式 */
    .member-center {
        margin-top: 70px;
    }

    .member-header {
        padding: 20px;
        margin-bottom: 15px;
    }

    .member-info {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }

    .member-avatar {
        width: 70px;
        height: 70px;
        margin-right: 0;
        margin-bottom: 15px;
        font-size: 35px;
    }

    .member-details h3 {
        font-size: 20px;
    }

    .member-level {
        font-size: 12px;
        padding: 3px 10px;
    }

    .member-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 12px;
    }

    .menu-item {
        padding: 15px;
    }

    .menu-icon {
        font-size: 18px;
    }

    .admin-section {
        padding: 15px;
    }

    .admin-section h4 {
        font-size: 18px;
    }

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

    .data-card {
        padding: 15px;
    }

    .data-card-value {
        font-size: 20px;
    }

    .table-responsive {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 8px 10px;
    }

    .tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .tab {
        padding: 12px 20px;
        font-size: 14px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .logo {
        font-size: 18px;
    }

    .slider {
        height: 200px;
        margin-bottom: 20px;
    }

    .search-section {
        padding: 15px 0;
    }

    .search-box {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
    }

    .search-input {
        background: #fff;
        border-radius: 10px;
        margin-bottom: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .search-box .btn-primary {
        width: 100%;
        border-radius: 10px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .category-card {
        padding: 15px 10px;
        border-radius: 12px;
    }

    .category-icon {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-image {
        height: 140px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 13px;
        margin-bottom: 8px;
        -webkit-line-clamp: 1;
    }

    .product-price {
        font-size: 18px;
    }

    .product-original-price {
        font-size: 12px;
    }

    .product-actions .btn {
        padding: 8px;
        font-size: 12px;
    }

    /* 会员中心小屏幕样式 */
    .member-header {
        padding: 15px;
    }

    .member-avatar {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .member-details h3 {
        font-size: 18px;
    }

    .stat-value {
        font-size: 16px;
    }

    .stat-label {
        font-size: 11px;
    }

    .menu-item {
        padding: 12px 15px;
    }

    .menu-icon {
        font-size: 16px;
        margin-right: 10px;
    }

    .admin-section {
        padding: 12px;
    }

    .data-card {
        padding: 12px;
    }

    .data-card-value {
        font-size: 18px;
    }

    .info-card {
        padding: 15px;
    }

    .info-card-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* 平板设备 */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu li {
        margin-left: 20px;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 6px 12px;
    }

    .slider {
        height: 300px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Alert样式 */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a {
    background-color: #fff;
    color: #667eea;
    border: 1px solid #e9ecef;
}

.pagination a:hover {
    background-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

.pagination span.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

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

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-state-subtext {
    font-size: 14px;
    color: #999;
}

/* 会员中心样式 */
.member-center {
    margin-top: 80px;
    padding-bottom: 20px;
}

/* 会员头部信息 */
.member-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    color: #fff;
}

.member-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-right: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.member-details h3 {
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.member-level {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 会员统计信息 */
.member-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* 会员菜单 */
.member-menu {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(5px);
    border-left: 4px solid #667eea;
}

.menu-icon {
    font-size: 20px;
    margin-right: 12px;
}

.menu-arrow {
    color: #ccc;
    font-size: 18px;
    font-weight: 300;
}

/* 会员管理面板 */
.admin-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.admin-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

/* 数据卡片 */
.data-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

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

.data-card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.data-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.data-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.data-card.highlight .data-card-title,
.data-card.highlight .data-card-value {
    color: #fff;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.table td {
    font-size: 14px;
}

.table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

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

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-primary {
    background: #cce5ff;
    color: #004085;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.info-card-content {
    color: #666;
    font-size: 14px;
}

/* 步骤指示器 */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    color: #666;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.step.completed .step-number {
    background: #28a745;
    color: #fff;
}

.step-label {
    font-size: 12px;
    color: #666;
}

.step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

/* 进度条 */
.progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* 标签页 */
.tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab:hover {
    color: #667eea;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 统计图表容器 */
.chart-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.timeline-description {
    color: #666;
    font-size: 14px;
}

/* ===== WAP移动端适配样式 ===== */

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
}

/* 移动端标题栏 */
.mobile-title-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-back-btn {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    padding: 8px 12px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-page-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.mobile-title-placeholder {
    min-width: 48px;
}

/* 底部导航间距 */
.bottom-nav-spacer {
    display: none;
    height: 60px;
}

/* iOS安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    
    .bottom-nav-spacer {
        height: calc(60px + env(safe-area-inset-bottom));
    }
}

/* WAP全局移动端样式 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .mobile-title-bar {
        display: flex;
    }

    /* PC端导航在移动端隐藏 */
    .nav-menu {
        display: none;
    }

    .bottom-nav {
        display: flex;
        padding: 8px 0 env(safe-area-inset-bottom, 8px);
    }

    .bottom-nav-spacer {
        display: block;
    }

    /* 底部导航项触控热区优化 */
    .bottom-nav-item {
        min-height: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* 移动端头部固定 */
    .header {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
    }

    /* 防止iOS输入框缩放 */
    .form-group input,
    .form-group textarea,
    .form-group select,
    input[type="text"],
    input[type="number"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* 表格横向滚动 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 禁止横向滚动 */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* 内容区域适配 */
    .container {
        padding: 0 15px;
    }

    /* 网体树结构水平滚动 */
    .tree-container, .network-tree {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 按钮触控优化 */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .mobile-page-title {
        font-size: 16px;
    }

    .mobile-back-btn {
        font-size: 18px;
        padding: 6px 10px;
    }

    /* 商品2列网格 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 140px;
    }

    /* 会员统计2列 */
    .member-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 数据卡片单列 */
    .card-grid {
        grid-template-columns: 1fr;
    }

    /* 步骤指示器优化 */
    .steps {
        flex-wrap: wrap;
        gap: 10px;
    }

    .step {
        flex: 0 0 auto;
        min-width: 60px;
    }
}

/* ===== 以下为从各页面迁移的内联样式 ===== */

/* 金币转换卡片 */
.coins-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.coins-amount {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}

.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.balance-amount {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}

.conversion-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.conversion-info h4 {
    margin-bottom: 10px;
    color: #007bff;
}

/* 移动端金币/余额卡片适配 */
@media (max-width: 768px) {
    .coins-card, .balance-card {
        padding: 20px;
    }

    .coins-amount, .balance-amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .coins-card, .balance-card {
        padding: 15px;
    }

    .coins-amount, .balance-amount {
        font-size: 24px;
    }
}
