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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #1890ff;
}

.nav a {
    color: #666;
    text-decoration: none;
    padding: 0 15px;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #1890ff;
}

.user-info a {
    color: #1890ff;
    text-decoration: none;
}

.main-banner {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.main-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

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

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

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

.btn-block {
    display: block;
    width: 100%;
}

.section {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-item p {
    color: #999;
    font-size: 14px;
}

.order-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.order-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.game-name {
    color: #1890ff;
    font-size: 14px;
}

.status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-0 { background: #e6f7ff; color: #1890ff; }
.status-1 { background: #fff7e6; color: #fa8c16; }
.status-2 { background: #f6ffed; color: #52c41a; }
.status-3 { background: #f0f0f0; color: #999; }
.status-4 { background: #fff1f0; color: #ff4d4f; }
.status-5 { background: #f6ffed; color: #52c41a; }

.order-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-info {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.order-info span {
    margin-right: 15px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.price {
    color: #ff4d4f;
    font-size: 18px;
    font-weight: bold;
}

.time {
    color: #999;
    font-size: 12px;
}

.page-header {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 24px;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
}

.filter-bar select:focus,
.filter-bar input:focus {
    border-color: #1890ff;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination .btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #333;
}

.pagination .btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1890ff;
}

.tab-header {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.tab-header .tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s;
}

.tab-header .tab.active {
    color: #1890ff;
    border-bottom: 2px solid #1890ff;
}

.form {
    display: none;
}

.form.active {
    display: block;
}

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

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

.form-group .required {
    color: #ff4d4f;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1890ff;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-container h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.order-detail {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f5f5f5;
}

.detail-body {
    padding: 20px;
}

.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    width: 120px;
    color: #999;
    flex-shrink: 0;
}

.detail-actions {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.comment-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.comment-section h3 {
    margin-bottom: 15px;
}

.comment-form .rating {
    margin-bottom: 15px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    min-height: 80px;
    margin-bottom: 15px;
}

.comment-list {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.comment-list h3 {
    margin-bottom: 15px;
}

.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

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

.comment-header .nickname {
    font-weight: 500;
}

.comment-header .rating {
    color: #faad14;
}

.comment-header .time {
    color: #999;
    font-size: 12px;
}

.comment-content {
    color: #666;
}

.user-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.user-avatar {
    margin-right: 20px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.user-meta .nickname {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-meta .role {
    color: #999;
    margin-bottom: 5px;
}

.user-meta .balance {
    color: #ff4d4f;
}

.footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.footer p {
    color: #999;
}

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

.text-center {
    text-align: center;
}

.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.message.success {
    color: #52c41a;
}

.message.error {
    color: #ff4d4f;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-list {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
    }
    
    .nav {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
    
    .nav a {
        padding: 0 10px;
        font-size: 14px;
    }
    
    .main-banner h1 {
        font-size: 28px;
    }
}
