/* 全局样式 */
:root {
    --primary-color: #d4af37;  /* 金色 */
    --secondary-color: #9f9f9f; /* 银色 */
    --dark-color: #333333;
    --light-color: #f9f9f9;
    --accent-color: #c86b01;  /* 铜色 */
    --danger-color: #dc3545;
    --success-color: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --price-up-color: #dc3545;  /* 价格上涨颜色 */
    --price-down-color: #28a745;  /* 价格下跌颜色 */
    --dark-bg-color: #121212;  /* 深色背景 */
    --dark-card-color: #1e1e1e;  /* 深色卡片背景 */
    --dark-text-color: #e0e0e0;  /* 深色主题文字颜色 */
    --dark-border-color: #333;  /* 深色主题边框颜色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}
.app-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}

/* 深色主题 - 行情页面 */
.dark-theme {
    background-color: var(--dark-bg-color);
    color: var(--dark-text-color);
}

.dark-theme .app-container {
    background-color: var(--dark-bg-color);
}

.dark-theme .app-header {
    background: linear-gradient(135deg, #222, #333);
    border-bottom: 1px solid var(--dark-border-color);
}

.dark-theme .status-bar {
    background-color: var(--dark-card-color);
    color: var(--dark-text-color);
    border-bottom: 1px solid var(--dark-border-color);
}

.dark-theme .notice-bar {
    background-color: rgba(255, 249, 230, 0.1);
    border-bottom: 1px solid var(--dark-border-color);
}

.dark-theme .notice-content .swiper-slide {
    color: var(--dark-text-color);
}

.dark-theme .market-card {
    background-color: var(--dark-card-color);
    border: 1px solid var(--dark-border-color);
}

.dark-theme .market-header {
    background: linear-gradient(to right, #222, #2a2a2a);
    border-bottom: 1px solid var(--dark-border-color);
}

.dark-theme .market-header h2 {
    color: var(--dark-text-color);
}

.dark-theme .table-header {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--dark-text-color);
}

.dark-theme .table-row {
    border-bottom: 1px solid var(--dark-border-color);
}

.dark-theme .table-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .time-status,
.dark-theme .customer-service {
    color: var(--dark-text-color);
}

.dark-theme .bottom-nav {
    background-color: var(--dark-card-color);
    border-top: 1px solid var(--dark-border-color);
}

.dark-theme .bottom-nav .nav-item {
    color: #777;
}

.dark-theme .bottom-nav .nav-item.active {
    color: var(--primary-color);
}

/* 顶部栏样式 */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), #f5d76e);
    color: white;
    padding: 15px;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 30px;
    margin-right: 10px;
}

.logo-container h1 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
    display: flex;
    align-items: center;
}

.logo-container h1 i {
    margin-right: 8px;
}

.customer-service {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.customer-service i {
    margin-right: 5px;
}

/* 客服电话按钮 */
.customer-service-btn {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.customer-service-btn i {
    margin-right: 4px;
    font-size: 0.9rem;
}

.customer-service-btn:hover {
    background-color: #e5c14c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

/* 状态栏样式 */
.status-bar {
    background: #fff;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time-status {
    color: #606266;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.time-status i {
    margin-right: 8px;
    color: #909399;
}

.market-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.market-status.open {
    background: #f0f9eb;
    color: var(--success-color);
}

.market-status.closed {
    background: #fef0f0;
    color: var(--danger-color);
}

/* 公告栏样式 */
.notice-bar {
    background: #fff;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    height: 50px;
    overflow: hidden;
}

.notice-bar i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
    overflow: hidden;
    height: 24px;
}

.notice-content .swiper-wrapper {
    transition-timing-function: linear;
}

.notice-content .swiper-slide {
    font-size: 0.9rem;
    color: #606266;
    line-height: 24px;
    height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-link {
    color: #606266;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.notice-link:hover {
    color: var(--primary-color);
}

/* 主内容区样式 */
.main-content {
    padding: 15px 5px;
    margin-bottom: 60px;
    flex: 1;
    width: 100%;
}

.market-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.market-card:hover {
    transform: translateY(-2px);
}

.market-header {
    background: linear-gradient(to right, var(--primary-color), #f5d76e);
    padding: 8px 15px;
    color: white;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.market-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
}

.market-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 15px;
}

.market-header h2::before,
.market-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: rgba(212, 175, 55, 0.5);
}

.market-header h2::before {
    left: -40px;
}

.market-header h2::after {
    right: -40px;
}

.market-header h2 i {
    margin-right: 8px;
    color: #fff;
}

.market-table {
    width: 100%;
}

.table-header {
    display: flex;
    background: #f9f9f9;
    padding: 10px;
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
}

.table-row {
    display: flex;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: #f5f7fa;
    transform: translateX(5px);
}

.table-row .col {
    flex: 1;
    text-align: center;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-row .col:first-child {
    text-align: left;
    flex: 1;
    justify-content: flex-start;
}

.table-row .col i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* 商品类型特定样式 */
.table-row.gold .col:first-child {
    color: var(--primary-color);
    font-weight: 500;
}

.table-row.platinum .col:first-child {
    color: var(--secondary-color);
    font-weight: 500;
}

.table-row.silver .col:first-child {
    color: #a8a8a8;
    font-weight: 500;
}

/* 价格样式 */
.price-up {
    color: var(--price-up-color);
    font-weight: 500;
    position: relative;
}

.price-up::after {
    content: '↑';
    margin-left: 4px;
    font-size: 0.9em;
    color: var(--price-up-color);
}

.price-down {
    color: var(--price-down-color);
    font-weight: 500;
    position: relative;
}

.price-down::after {
    content: '↓';
    margin-left: 4px;
    font-size: 0.9em;
    color: var(--price-down-color);
}

/* 交易价格特定样式 */
.buy-price, .sell-price {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin-right: 20px;
    margin-bottom: 5px;
}

/* 底部导航样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #606266;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* 轮播图样式 */
.main-swiper {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.main-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* 快捷菜单 */
.quick-menu {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #606266;
    transition: all 0.3s;
}

.quick-item:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.quick-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.quick-text {
    font-size: 0.9rem;
}

/* 投资贴士 */
.tips-content {
    padding: 15px;
}

.tip-item {
    display: flex;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
}

.tip-text {
    flex: 1;
}

.tip-text h3 {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: #333;
}

.tip-text p {
    font-size: 0.9rem;
    color: #606266;
    margin: 0;
    line-height: 1.5;
}

/* 交易页面样式 */
.trade-section {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.trade-option-group {
    margin-bottom: 20px;
}

.option-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.option-title i {
    margin-right: 8px;
    color: var(--primary-color);
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 8px 16px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #606266;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.option-btn:hover {
    color: var(--primary-color);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.1);
}

.option-btn.selected {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    background: #f5f7fa;
    border-radius: var(--border-radius);
}

.price-item {
    text-align: center;
    flex: 1;
}

.price-label {
    font-size: 0.9rem;
    color: #606266;
    margin-bottom: 5px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #606266;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover {
    color: var(--primary-color);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.1);
}

.quantity-input {
    width: 80px;
    height: 36px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.direction-group {
    display: flex;
    gap: 15px;
}

.direction-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #606266;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.direction-btn:hover {
    color: var(--primary-color);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.1);
}

.direction-btn.selected {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.direction-btn.buy.selected {
    background: var(--success-color);
    border-color: var(--success-color);
}

.direction-btn.sell.selected {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.total-amount {
    background: #f5f7fa;
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 20px 0;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.amount-row:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.amount-label {
    color: #606266;
    font-size: 0.9rem;
}

.amount-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #303133;
}

.confirm-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn:hover {
    background: #e5c14c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* 订单列表样式 */
.order-list {
    margin-top: 20px;
}

.order-item {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.3s;
}

.order-item:hover {
    transform: translateY(-2px);
}

.order-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-number {
    color: #606266;
    font-size: 0.9rem;
}

.order-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.order-status.pending {
    background: #fdf6ec;
    color: var(--accent-color);
}

.order-status.completed {
    background: #f0f9eb;
    color: var(--success-color);
}

.order-details {
    padding: 15px;
}

.order-details p {
    margin: 8px 0;
    color: #606266;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.order-details p i {
    margin-right: 8px;
    color: #909399;
}

.order-action {
    padding: 12px 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.action-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #e5c14c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

/* 积分商城样式 */
.points-header {
    background-color: var(--primary-color);
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
}

.points-amount {
    font-size: 1.2rem;
    font-weight: 600;
}

.points-detail-link {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
}


.filter-tab {
    padding: 12px 15px;
    font-size: 0.9rem;
    color: #606266;
    white-space: nowrap;
    cursor: pointer;
}

.filter-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.sort-options {
    display: flex;
    margin-bottom: 15px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.sort-option {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 0.85rem;
    color: #606266;
    cursor: pointer;
}

.sort-option.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
}

.product-meta {
    font-size: 0.8rem;
    color: #606266;
    margin-bottom: 10px;
}

.product-meta div {
    margin-bottom: 4px;
}

.product-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.points {
    color: var(--accent-color);
    font-weight: 500;
}

.exchange-btn {
    padding: 4px 8px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.3s;
}

.exchange-btn:hover {
    background-color: #e5c14c;
    transform: translateY(-2px);
}

/* 个人中心样式 */
.user-header {
    background-color: var(--primary-color);
    padding: 25px 15px;
    color: white;
    position: relative;
    overflow: hidden;
}

.dark-theme .user-header {
    background: linear-gradient(135deg, #333, #222);
}

.user-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2" /></svg>') repeat;
    opacity: 0.2;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 35px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
}

.username {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-phone {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.user-level {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 3px 12px;
    font-size: 0.8rem;
}

.user-stats {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin-top: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-around;
}

.user-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.asset-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px;
    margin-bottom: 20px;
}

.dark-theme .asset-card {
    background-color: var(--dark-card-color);
    border: 1px solid var(--dark-border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.dark-theme .card-header {
    border-bottom-color: var(--dark-border-color);
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 8px;
    color: var(--primary-color);
}

.more-link {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.more-link i {
    margin-left: 4px;
    font-size: 0.7rem;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.asset-item {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 12px;
    text-align: center;
}

.dark-theme .asset-item {
    background-color: rgba(255, 255, 255, 0.05);
}

.asset-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.asset-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.asset-label {
    font-size: 0.8rem;
    color: #666;
}

.dark-theme .asset-label {
    color: #aaa;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.action-buttons .action-btn {
    flex: 1;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 8px 0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-buttons .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-buttons .action-btn i {
    margin-right: 5px;
}

.menu-list {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.dark-theme .menu-list {
    background-color: var(--dark-card-color);
    border: 1px solid var(--dark-border-color);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.dark-theme .menu-item {
    border-bottom-color: var(--dark-border-color);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #f9f9f9;
}

.dark-theme .menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-label {
    display: flex;
    align-items: center;
}

.menu-icon {
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--primary-color);
}

.dark-theme .menu-icon {
    background-color: #333;
}

.menu-name {
    font-size: 0.95rem;
}

.menu-arrow {
    color: #ccc;
}

.dark-theme .menu-arrow {
    color: #666;
}

.logout-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    text-align: center;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

.logout-btn i {
    margin-right: 8px;
}

/* 登录/注册页面样式 */
.login-container {
    padding: 20px 15px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #666;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.help-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.help-link {
    color: #666;
    text-decoration: none;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    border: none;
    font-size: 1rem;
    margin-bottom: 20px;
}

.alt-login {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
}

/* 走势图页面样式 */
.chart-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    padding: 15px;
    height: 300px;
    position: relative;
}

#priceChart {
    width: 100%;
    height: 100%;
}

.dark-theme .chart-container {
    background-color: var(--dark-card-color);
    border: 1px solid var(--dark-border-color);
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.time-frame-buttons {
    display: flex;
    gap: 8px;
}

.time-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 12px;
    color: #666;
}

.dark-theme .time-btn {
    background-color: #333;
    border-color: #444;
    color: #ccc;
}

.time-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.time-btn:hover {
    background-color: #eee;
}

.dark-theme .time-btn:hover {
    background-color: #444;
}

.chart-indicators {
    display: flex;
    gap: 8px;
}

.indicator-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 12px;
    color: #666;
}

.dark-theme .indicator-btn {
    background-color: #333;
    border-color: #444;
    color: #ccc;
}

.indicator-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.indicator-btn:hover {
    background-color: #eee;
}

.dark-theme .indicator-btn:hover {
    background-color: #444;
}

.product-stats {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    padding: 15px;
}

.dark-theme .product-stats {
    background-color: var(--dark-card-color);
    border: 1px solid var(--dark-border-color);
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.stats-item {
    flex: 1;
    min-width: calc(50% - 10px);
    margin: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
}

.dark-theme .stats-item {
    background-color: rgba(255, 255, 255, 0.05);
}

.stats-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.dark-theme .stats-label {
    color: #aaa;
}

.stats-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.dark-theme .stats-value {
    color: var(--dark-text-color);
}

.stats-value.up {
    color: var(--price-up-color);
}

.stats-value.down {
    color: var(--price-down-color);
}

/* 公告详情页样式 */
.notice-detail-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.notice-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.notice-meta {
    display: flex;
    justify-content: space-between;
    color: #909399;
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.notice-content-detail {
    color: #606266;
    line-height: 1.6;
    font-size: 0.95rem;
}

.notice-content-detail p {
    margin-bottom: 15px;
}

/* 图表加载状态 */
.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.loading-text {
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.chart-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 11;
}

.chart-error i {
    font-size: 2rem;
    color: var(--danger-color);
    margin-bottom: 10px;
}

.error-text {
    color: #666;
    font-size: 0.9rem;
}

/* 订单详情页样式 */
.order-status-card {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-icon {
    font-size: 2.5rem;
    margin-right: 15px;
}

.status-info h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.status-info p {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.order-info, .payment-info, .delivery-info {
    padding: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: #666;
    font-size: 0.9rem;
}

.info-item .value {
    color: #333;
    font-weight: 500;
}

.info-item .value.highlight {
    color: #e74c3c;
    font-weight: 600;
}

.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-tag.completed {
    background-color: #e8f5e9;
    color: #4CAF50;
}

.trade-details {
    padding: 15px;
}

.trade-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.trade-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.trade-icon.gold {
    background-color: #fff3e0;
    color: #ff9800;
}

.trade-info {
    flex: 1;
}

.trade-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.trade-meta {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.8rem;
}

.trade-amount {
    text-align: right;
}

.trade-amount .amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.trade-amount .unit {
    font-size: 0.8rem;
    color: #666;
    margin-left: 2px;
}

.price-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price-item:last-child {
    margin-bottom: 0;
}

.action-buttons {
    display: flex;
    gap: 10px;
    padding: 15px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background-color: #4CAF50;
    color: white;
}

.action-btn.secondary {
    background-color: #f5f5f5;
    color: #333;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 高/低价格分行显示 */
.high-price {
    color: var(--price-up-color);
    font-size: 0.85rem;
    text-align: right;
}

.low-price {
    color: var(--price-down-color);
    font-size: 0.85rem;
    text-align: right;
}

/* 高/低价格前添加标识 */
.high-price::before {
    content: "";
    color: #606266;
    font-size: 0.85rem;
    margin-right: 2px;
}

.low-price::before {
    content: "";
    color: #606266;
    font-size: 0.85rem;
    margin-right: 2px;
} 