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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

header {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-count {
    background: #ff6b6b;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: #ee5a5a;
    transform: translateY(-2px);
}

.btn-primary {
    background: #4a90d9;
}

.btn-primary:hover {
    background: #357abd;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.features {
    padding: 60px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 48px;
    color: #4a90d9;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.products {
    padding: 60px 0;
}

.products h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 24px;
    color: #ff6b6b;
    font-weight: bold;
}

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

.product-duration {
    font-size: 14px;
    color: #4a90d9;
    margin-bottom: 15px;
}

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

.product-actions .btn {
    flex: 1;
    text-align: center;
}

.login-page, .register-page {
    padding: 60px 0;
}

.login-box, .register-box {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-box h2, .register-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90d9;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
}

.login-box p, .register-box p {
    text-align: center;
    margin-top: 20px;
}

.login-box p a, .register-box p a {
    color: #4a90d9;
    text-decoration: none;
}

.login-box p a:hover, .register-box p a:hover {
    text-decoration: underline;
}

.cart-page {
    padding: 60px 0;
}

.cart-page h2 {
    margin-bottom: 30px;
    color: #333;
}

.cart-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.cart-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.cart-table img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
}

.cart-table .quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-table .quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.cart-table .quantity input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

.cart-summary {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: right;
}

.cart-summary p {
    font-size: 18px;
    margin-bottom: 10px;
}

.cart-summary .total {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
}

.empty-cart {
    text-align: center;
    padding: 60px;
    color: #999;
}

.empty-cart i {
    font-size: 64px;
    margin-bottom: 20px;
}

.orders-page {
    padding: 60px 0;
}

.orders-page h2 {
    margin-bottom: 30px;
    color: #333;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.order-no {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-completed {
    background: #f8d7da;
    color: #721c24;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.order-total {
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    color: #ff6b6b;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.pay-page {
    padding: 60px 0;
}

.pay-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.pay-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.pay-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.pay-info p {
    margin-bottom: 10px;
}

.pay-info .amount {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
}

.pay-methods {
    margin-bottom: 30px;
}

.pay-methods h3 {
    margin-bottom: 20px;
    color: #333;
}

.pay-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.pay-method:hover {
    border-color: #4a90d9;
}

.pay-method.active {
    border-color: #4a90d9;
    background: #f0f7ff;
}

.pay-method input[type="radio"] {
    width: 20px;
    height: 20px;
}

.pay-method i {
    font-size: 32px;
}

.pay-method label {
    font-size: 16px;
    font-weight: bold;
}

.pay-box .btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #4a90d9;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.admin-page {
    padding: 30px 0;
}

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

.admin-header h2 {
    color: #333;
}

.admin-sidebar {
    width: 200px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.admin-sidebar ul li a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.admin-sidebar ul li a:hover, .admin-sidebar ul li a.active {
    background: #4a90d9;
    color: white;
}

.admin-content {
    flex: 1;
    margin-left: 30px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.admin-stat {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.admin-stat .number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

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

.admin-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.admin-table .btn {
    padding: 5px 10px;
    font-size: 12px;
}

.admin-form {
    max-width: 600px;
}

.admin-form .btn {
    margin-top: 20px;
}

.profile-page {
    padding: 60px 0;
}

.profile-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.profile-box h2 {
    margin-bottom: 30px;
    color: #333;
}

.profile-info {
    margin-bottom: 30px;
}

.profile-info p {
    margin-bottom: 10px;
    font-size: 16px;
}

.profile-info span {
    font-weight: bold;
    color: #4a90d9;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    nav ul {
        gap: 10px;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .feature-grid, .product-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-table {
        overflow-x: auto;
    }
    
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .admin-content {
        margin-left: 0;
    }
}
