:root {
    --primary-color: #00b4ff;
    --secondary-color: #0066cc;
    --accent-color: #00ff99;
    --dark-color: #0a192f;
    --light-color: #f8f9fa;
    --gray-color: #8892b0;
    --white-color: #ffffff;
    --circuit-green: #00ff41;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans SC', sans-serif;
    color: var(--white-color);
    background-color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 电路板背景图案 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 180, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 180, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 180, 255, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center; 
}

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 60%;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--circuit-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links li::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--circuit-green);
    transition: width 0.3s;
}

.nav-links li:hover::after {
    width: 100%;
}

.nav-links a {
    text-decoration: none;
    color: var(--white-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--circuit-green);
}

.auth-buttons {
    display: flex;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: 1px solid transparent;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--circuit-green);
    color: var(--circuit-green);
    margin-right: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.btn-outline:hover {
    background-color: var(--circuit-green);
    color: var(--dark-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.5);
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--circuit-green);
    box-shadow: 0 0 10px var(--circuit-green);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-color);
    max-width: 700px;
    margin: 30px auto 0;
}

/* Card Styles */
.card {
    background: rgba(25, 42, 70, 0.6);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 180, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--circuit-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 180, 255, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

/* Footer */
footer {
    background-color: rgba(10, 25, 47, 0.95);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 180, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--circuit-green);
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--circuit-green);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.footer-links a:hover {
    color: var(--circuit-green);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(0, 180, 255, 0.3);
}

.social-icon:hover {
    background-color: var(--circuit-green);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-color);
    font-size: 14px;
}

/* 电路板装饰元素 */
.circuit-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circuit-line {
    position: absolute;
    background: var(--circuit-green);
    box-shadow: 0 0 5px var(--circuit-green);
}

.circuit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--circuit-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--circuit-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 5px 10px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; box-shadow: 0 0 15px var(--circuit-green); }
    100% { opacity: 0.3; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(25, 42, 70, 0.95);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid rgba(0, 180, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.close {
    color: var(--circuit-green);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--white-color);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--circuit-green);
    font-size: 24px;
    margin: 0;
}

.modal-body {
    margin-bottom: 20px;
}

.qr-code {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--circuit-green);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.modal-footer {
    margin-top: 20px;
    color: var(--gray-color);
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}