* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 2px solid #ff9800;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 a {
    color: #ff9800;
    text-decoration: none;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.logo span {
    color: #fff;
    font-size: 14px;
    margin-left: 10px;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

nav a:hover {
    background: #ff9800;
    color: #000;
}

nav .user {
    color: #ff9800;
    font-weight: bold;
}

main {
    padding: 40px 0;
}

.filter-bar {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form select,
.filter-form input {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn.rent,
.btn.submit {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    font-weight: bold;
}

.btn.rent:hover,
.btn.submit:hover {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
}

.btn.reset {
    background: #666;
    color: #fff;
}

.btn.delete {
    background: #f44336;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
}

.account-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.account-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 152, 0, 0.2);
    border-color: #ff9800;
}

.account-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.account-info {
    padding: 20px;
}

.account-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.account-server {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 10px;
}

.account-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.tag.gear {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.account-desc {
    color: #bbb;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.account-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: #ff9800;
    font-size: 22px;
    font-weight: bold;
}

.detail-page {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
}

.detail-image img {
    width: 100%;
    border-radius: 10px;
}

.detail-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.detail-server {
    color: #aaa;
    margin-bottom: 20px;
}

.detail-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
}

.stat-value.gear {
    color: #4caf50;
}

.detail-desc {
    margin-bottom: 30px;
}

.detail-desc h3 {
    margin-bottom: 10px;
    color: #ff9800;
}

.detail-desc p {
    line-height: 1.8;
    color: #ddd;
}

.detail-price {
    margin-bottom: 30px;
}

.price-label {
    color: #aaa;
    margin-right: 10px;
}

.price-value {
    font-size: 36px;
    color: #ff9800;
    font-weight: bold;
}

.price-unit {
    color: #aaa;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff9800;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #aaa;
}

.auth-link a {
    color: #ff9800;
    text-decoration: none;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.alert.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.login-required {
    background: rgba(255, 152, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.login-required a {
    color: #ff9800;
}

.admin-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.admin-section h3 {
    margin-bottom: 20px;
    color: #ff9800;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.admin-table,
.order-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td,
.order-table th,
.order-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th,
.order-table th {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.empty {
    text-align: center;
    padding: 60px;
    color: #aaa;
    font-size: 18px;
}

footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    text-align: center;
    color: #666;
    margin-top: 60px;
}

@media (max-width: 900px) {
    .detail-page {
        grid-template-columns: 1fr;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
}
