* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f8f9fa;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

h2 {
    color: #444;
    margin-bottom: 20px;
}

.products-container, .cart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.product-info {
    flex: 1;
}

.product-title {
    font-weight: bold;
    color: #333;
}

.product-price {
    color: #e44d26;
    font-weight: bold;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 35px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    min-width: 100px;
    cursor: pointer;
    color: #333;
    font-weight: 500;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

.quantity-select:hover {
    border-color: #4CAF50;
    background-color: #f8f8f8;
}

.quantity-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.quantity-select option {
    padding: 10px;
    font-size: 14px;
    background-color: white;
    color: #333;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-total {
    margin-top: 20px;
    text-align: right;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

#total-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #e44d26;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.usdt-price {
    font-size: 0.9em;
    color: #2196F3;
    font-weight: normal;
}

#checkout-btn {
    margin-top: 10px;
    padding: 12px 25px;
    background-color: #2196F3;
    font-size: 16px;
}

#checkout-btn:hover {
    background-color: #1976D2;
}

/* 用户认证样式 */
.auth-container {
    max-width: 400px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-group input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: #2196F3;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* 用户中心样式 */
.user-header {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.user-info {
    margin-top: 1rem;
}

.user-info p {
    margin: 0.5rem 0;
    color: #666;
}

.user-info strong {
    color: #333;
    margin-right: 0.5rem;
}

.orders-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.order-header span {
    color: #666;
}

.order-details {
    color: #333;
}

.order-details p {
    margin: 0.5rem 0;
}

.no-orders {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    background-color: #4CAF50;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #45a049;
}

.btn-danger {
    background-color: #f44336;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.btn-primary {
    background-color: #2196F3;
}

.btn-primary:hover {
    background-color: #1976D2;
}

.main-nav {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #e9ecef;
}

.nav-links a.active {
    background-color: #007bff;
    color: white;
}

/* 公告栏样式 */
.site-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-info h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-content, .price-info {
    background-color: white;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.info-content h3, .price-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-content ul, .price-info ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.info-content li, .price-info li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-content li:before, .price-info li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

/* 产品列表样式 */
.card {
    transition: transform 0.2s ease-in-out;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    color: #666;
    margin-bottom: 1rem;
}

.text-decoration-line-through {
    color: #999;
    margin-right: 0.5rem;
}

.badge {
    margin-left: 0.5rem;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-links a:hover {
    background-color: #f8f9fa;
    color: #333;
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-info {
        padding: 1rem;
    }
    
    .info-content, .price-info {
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* 全局样式 */
body {
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
}

/* 卡片样式 */
.card {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.1);
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 表单样式 */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* 表格样式 */
.table th {
    border-top: none;
    background-color: #f8f9fa;
}

/* 价格样式 */
.price {
    color: #dc3545;
    font-weight: bold;
}

/* 商品卡片样式 */
.product-card {
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* 购物车样式 */
.cart-item {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

/* 订单样式 */
.order-status {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-paid {
    background-color: #28a745;
    color: #fff;
}

.status-cancelled {
    background-color: #dc3545;
    color: #fff;
}

/* 页脚样式 */
.footer {
    margin-top: 50px;
    padding: 20px 0;
    background-color: #343a40;
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        margin-bottom: 15px;
    }
}

.cart-summary {
    margin-bottom: 2rem;
}

.cart-items {
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.item-name {
    flex: 1;
    margin-right: 1rem;
}

.item-quantity {
    color: #666;
    margin-right: 1rem;
}

.item-total {
    font-weight: bold;
    min-width: 80px;
    text-align: right;
} 