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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #111111 0%, #222222 100%);
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.categories-container {
    text-align: center;
    margin: 50px 0;
}

.identity-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #00ff80;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 255, 128, 0.6);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 0;
}

.category-card {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 128, 64, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(to bottom, rgba(30, 30, 30, 0.95), rgba(30, 30, 30, 0.95)), linear-gradient(90deg, #00ff80, #008040, #00ff80);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 128, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 128, 64, 0.2);
    background-image: linear-gradient(to bottom, rgba(30, 30, 30, 0.95), rgba(30, 30, 30, 0.95)), linear-gradient(90deg, #00ff80, #008040, #00ff80);
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-card .icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-card h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #00ff80;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 128, 0.5);
}

.category-card p {
    display: none;
}

.category-btn {
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #008040 0%, #006633 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(0, 128, 64, 0.2);
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 64, 0.4);
    padding: 10px 35px;
}

.form-container {
    background: rgba(30, 30, 30, 1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 128, 64, 0.2);
    margin: 50px auto;
    max-width: 800px;
    min-height: 800px;
    box-shadow: 0 10px 30px rgba(0, 128, 64, 0.1);
    display: none;
    position: relative;
    z-index: 2;
}

.form-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.form-group label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 500;
}

.form-group label.required::after {
    content: ' *';
    color: #00ff80;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid rgba(0, 128, 64, 0.2);
    border-radius: 10px;
    background: rgba(40, 40, 40, 0.8);
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #00ff80;
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.3);
}

.form-control::placeholder {
    color: #666666;
}

/* 下拉框样式 */
select.form-control {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #00ff80 50%), linear-gradient(135deg, #00ff80 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

select.form-control::-ms-expand {
    display: none;
}

/* 下拉框选项样式 */
select.form-control option {
    background: #282828;
    color: #ffffff;
    padding: 10px;
}

select.form-control option:checked {
    background: #008040;
    color: #ffffff;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 128, 64, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-item:hover,
.checkbox-item:hover {
    background: rgba(0, 128, 64, 0.1);
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00ff80;
}

.error-message {
    color: #ff4757;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .form-control {
    border-color: #ff4757;
}

.form-group.error .error-message {
    display: block;
}

.captcha-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.submit-btn {
    width: 100%;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #008040 0%, #006633 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 128, 64, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: rgba(0, 128, 64, 0.3);
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 128, 64, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-message,
.error-message-box {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
    text-align: center;
}

.success-message {
    background: rgba(0, 128, 64, 0.2);
    border: 1px solid #008040;
    color: #00ff80;
}

.error-message-box {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid #ff4757;
    color: #ff4757;
}

.success-message.show,
.error-message-box.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 科技感背景线条 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 96%, rgba(0, 255, 128, 0.05) 96%, rgba(0, 255, 128, 0.05) 100%),
        linear-gradient(0deg, transparent 96%, rgba(0, 255, 128, 0.05) 96%, rgba(0, 255, 128, 0.05) 100%);
    background-size: 25px 25px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 128, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: pulse 15s ease-in-out infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 25px 25px;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 30px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .submit-btn {
        font-size: 1rem;
        padding: 15px 30px;
    }
}
