/* 公共样式 */

.main-content {
    padding: 40px 0;
    min-height: 400px;
}

/* 认证页面 */
.auth-container {
    max-width: 400px;
    margin: 60px auto;
}

.auth-box {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.auth-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer a {
    color: #3498db;
}

/* 购物车 */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cart-list {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.placeholder-image {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border-radius: 4px;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.item-price {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 10px;
}

.item-quantity {
    margin: 0 30px;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.item-subtotal {
    width: 120px;
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.item-action {
    margin-left: 20px;
}

.btn-delete {
    color: #e74c3c;
    text-decoration: underline;
}

.cart-footer {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary {
    flex: 1;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

.summary-row.total {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.total-amount {
    color: #e74c3c;
    font-size: 28px;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 8px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-cart h2 {
    margin-bottom: 10px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 20px;
}

/* 结账页面 */
.checkout-container {
    max-width: 800px;
    margin: 0 auto;
}

.checkout-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.checkout-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.item-name {
    flex: 1;
}

.order-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.total-row.final {
    font-size: 20px;
    font-weight: bold;
}

.final-amount {
    color: #e74c3c;
}

.payment-method {
    margin-bottom: 15px;
}

.payment-method label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method label:hover,
.payment-method input:checked + .method-info {
    border-color: #3498db;
}

.payment-method input[type="radio"] {
    margin-right: 15px;
}

.method-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.method-desc {
    font-size: 12px;
    color: #666;
}

.balance-pay {
    background: #f8f9fa;
}

.checkout-submit {
    text-align: center;
    margin-top: 20px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* 充值页面 */
.recharge-container {
    max-width: 600px;
    margin: 0 auto;
}

.balance-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.balance-info h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.balance-amount {
    font-size: 48px;
    font-weight: bold;
}

.recharge-form {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}

.recharge-form h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-option {
    text-align: center;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-option:hover,
.amount-option input:checked + span {
    border-color: #3498db;
    background: #f8f9fa;
}

.amount-option span {
    font-size: 18px;
    font-weight: 500;
}

.custom-amount {
    margin-bottom: 30px;
}

.payment-methods h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.payment-option:hover,
.payment-option input:checked + .option-info {
    border-color: #3498db;
    background: #f8f9fa;
}

.payment-option input[type="radio"] {
    margin-right: 15px;
}

.option-info {
    display: flex;
    align-items: center;
}

.option-icon {
    font-size: 24px;
    margin-right: 10px;
}

.option-name {
    font-weight: 500;
}

/* 表单操作 */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
