:root {
    --bg-main: #e8eef3;
    --bg-card: #e8eef3;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --accent: #4fd1c5;
    --accent-hover: #38b2ac;
    --success: #68d391;
    --danger: #fc8181;
    --shadow-light: #ffffff;
    --shadow-dark: #c5d0d8;
    --font-main: 'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;
}

[data-theme="dark"] {
    --bg-main: #1a1a2e;
    --bg-card: #16213e;
    --text-primary: #e8e8e8;
    --text-secondary: #a0aec0;
    --accent: #4fd1c5;
    --accent-hover: #38b2ac;
    --shadow-light: #1e2a4a;
    --shadow-dark: #0f1525;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

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

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    transition: all 0.3s;
    z-index: 100;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.neu-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    padding: 30px;
    transition: background 0.3s, box-shadow 0.3s;
}

.neu-btn {
    background: var(--bg-card);
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.neu-btn:hover {
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    transform: translateY(-2px);
}

.neu-btn:active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}

.neu-btn-primary {
    background: linear-gradient(145deg, var(--accent), var(--accent-hover));
    color: #fff;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.neu-btn-primary:hover {
    background: linear-gradient(145deg, var(--accent-hover), var(--accent));
}

.neu-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    transition: all 0.3s;
}

.neu-input:focus {
    outline: none;
    box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light), 0 0 0 3px rgba(79, 209, 197, 0.3);
}

.neu-textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: none;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s;
}

.neu-textarea:focus {
    outline: none;
    box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light), 0 0 0 3px rgba(79, 209, 197, 0.3);
}

.site-header {
    padding: 25px 0;
    background: var(--bg-main);
    transition: background 0.3s;
}

.server-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-dot.offline {
    background: var(--danger);
}

.main-content {
    padding: 40px 0;
}

.hero {
    margin-bottom: 50px;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.hero-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.server-ip-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    transition: background 0.3s, box-shadow 0.3s;
}

.ip-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.ip-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.ip-display code {
    font-family: 'Consolas', monospace;
    font-size: 1.5rem;
    color: var(--accent);
    flex: 1;
    font-weight: 600;
}

.ip-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.copy-btn {
    background: var(--bg-main);
    border: none;
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    transition: all 0.25s;
}

.copy-btn:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
    transition: color 0.3s;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 80%;
    background: var(--accent);
    border-radius: 3px;
}

.rules-section {
    margin-bottom: 50px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    transition: background 0.3s, box-shadow 0.3s;
}

.rules-list {
    list-style: none;
}

.rules-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(197, 208, 216, 0.3);
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-primary);
    transition: color 0.3s, border-color 0.3s;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 2px 2px 4px var(--shadow-dark);
}

.faq-section {
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    transition: all 0.3s;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.faq-question {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--accent);
    font-weight: 600;
    transition: color 0.3s;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.site-footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--bg-card);
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

.back-link:hover {
    color: var(--accent);
}

.page-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.page-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
    transition: color 0.3s;
}

.apply-box, .status-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    transition: background 0.3s, box-shadow 0.3s;
}

.apply-form, .search-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: color 0.3s;
}

.required {
    color: var(--danger);
    margin-left: 3px;
}

.search-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box .neu-input {
    flex: 1;
}

.alert {
    padding: 18px 22px;
    border-radius: 15px;
    margin-bottom: 22px;
    font-weight: 500;
    transition: all 0.3s;
}

.alert-error {
    background: rgba(252, 129, 129, 0.15);
    color: #c53030;
    box-shadow: inset 3px 3px 6px rgba(252, 129, 129, 0.1);
}

.alert-success {
    background: rgba(104, 211, 145, 0.15);
    color: #276749;
    text-align: center;
    box-shadow: inset 3px 3px 6px rgba(104, 211, 145, 0.1);
}

.result-card {
    margin-top: 30px;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    transition: background 0.3s, box-shadow 0.3s;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px;
    background: rgba(79, 209, 197, 0.1);
    border-bottom: 1px solid rgba(197, 208, 216, 0.2);
}

.result-username {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s;
}

.result-status {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(237, 137, 54, 0.2);
    color: #c05621;
}

.status-approved {
    background: rgba(104, 211, 145, 0.2);
    color: #276749;
}

.status-rejected {
    background: rgba(252, 129, 129, 0.2);
    color: #c53030;
}

.result-info {
    padding: 22px;
}

.result-info p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.result-info strong {
    color: var(--text-primary);
    transition: color 0.3s;
}

.success-tip {
    color: #276749 !important;
    font-weight: 600;
    margin-top: 18px !important;
    padding: 18px;
    background: rgba(104, 211, 145, 0.15);
    border-radius: 15px;
}

.reject-tip {
    color: #c53030 !important;
    font-weight: 600;
    margin-top: 18px !important;
}

.pending-tip {
    color: #c05621 !important;
    font-weight: 600;
    margin-top: 18px !important;
}

.empty-tip {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    transition: color 0.3s;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

@media (max-width: 600px) {
    .neu-card {
        padding: 22px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .ip-display code {
        font-size: 1.15rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .neu-btn {
        width: 100%;
        justify-content: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .apply-box, .status-box {
        padding: 22px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }
}
