@font-face {
    font-family: 'Unifont';
    src: url('unifont.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Opposans';
    src: url('opposans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Opposans', sans-serif;
    background-color: #1a1a1a;
    color: #fff
}

/* 保持hero-section中的字体不变 */
.hero-section,
.hero-section * {
    font-family: 'Unifont', sans-serif !important;
}

/* 保持h1,h2,h3标题字体不变 */
h1, h2, h3 {
    font-family: 'Unifont', sans-serif !important;
}

.hero-section {
    width: auto;
    height: 600px;
    position: relative;
    background-color: #1a1a1a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#oscilloscope-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 88%; /* 限制内容宽度，避免贴边 */
}


.hero-content h1 {
    font-size: 3.3rem; /* 稍微减小字体大小以适应长文本 */
    font-weight: bold;
    margin-bottom: 3rem;
    color: #16ff98;
    text-shadow: 0 0 20px rgba(22, 255, 150, 0.69);
    line-height: 1.2; /* 增加行高提高可读性 */
}

.hero-content p {
    font-size: 1.8rem; /* 增大副标题字体 */
    color: #fff;
    opacity: 0.8;
    text-transform: lowercase; /* 保持小写 */
}

.main {
    background-color: #1a1a1a;
    padding: 5%;
    min-height: 200px;
}

.main h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.main h2 span:nth-child(1) { color: #16ff98; }
.main h2 span:nth-child(2) { color: #32ffa0; }
.main h2 span:nth-child(3) { color: #4effa8; }
.main h2 span:nth-child(4) { color: #6affb0; }
.main h2 span:nth-child(5) { color: #86ffb8; }
.main h2 span:nth-child(6) { color: #a2ffc0; }
.main h2 span:nth-child(7) { color: #d6ffe3; }
.main h2 span:nth-child(8) { color: #ffffff; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
}

.project-card {
    background-color: #111;
    border: none;
    border-radius: 16px;
    padding: 2rem 2rem 2rem 3rem;
    text-align: left;
    letter-spacing: 0.05em;
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #fff;
}

.project-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1rem;
}

.project-details {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.pixel-button {
    background-color: #16ff98;
    color: #000;
    border: 2px solid #16ff98;
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-family: 'Opposans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pixel-button:hover {
    background-color: #fff;
    border-color: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* Q&A Drawer Styles */
.qa-drawer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.qa-item {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.qa-item:hover {
    border-color: #16ff98;
    box-shadow: 0 0 20px rgba(22, 255, 152, 0.1);
}

.qa-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s ease;
    user-select: none;
}

.qa-question:hover {
    background-color: rgba(22, 255, 152, 0.1);
    color: #fff;
}

.qa-question.active {
    background-color: rgba(22, 255, 152, 0.2);
    color: #fff;
}

.qa-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #16ff98;
}

.qa-question.active .qa-icon {
    transform: rotate(45deg);
    color: #fff;
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: #0a0a0a;
}

.qa-answer.open {
    max-height: 300px;
    padding: 1.5rem 2rem 2rem 2rem;
}

.qa-answer p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.qa-answer.open p {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .qa-question {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .qa-answer.open {
        padding: 0 1.5rem 1.2rem 1.5rem;
    }
    
    .qa-drawer {
        padding: 1rem 0;
    }
}

/* Coming Soon Box Styles */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    min-height: 200px;
}

.coming-soon-box {
    background-color: #111;
    border: 2px solid #16ff98;
    border-radius: 20px;
    padding: 3rem 5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(22, 255, 152, 0.1);
}

.coming-soon-box:hover {
    background-color: rgba(22, 255, 152, 0.1);
    box-shadow: 0 0 40px rgba(22, 255, 152, 0.2);
    transform: translateY(-5px);
}

.coming-soon-box span {
    font-family: 'Unifont', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #16ff98;
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px rgba(22, 255, 152, 0.5);
}

@media (max-width: 768px) {
    .coming-soon-box {
        padding: 2rem 3rem;
    }
    
    .coming-soon-box span {
        font-size: 1.5rem;
    }
}

/* Sponsor Grid Styles */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-card {
    background-color: #111;
    border: 2px solid #333;
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sponsor-card:hover {
    border-color: #16ff98;
    box-shadow: 0 0 25px rgba(22, 255, 152, 0.15);
    transform: translateY(-3px);
}

.sponsor-title {
    font-family: 'Opposans', sans-serif !important;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    letter-spacing: 0.05em;
}

.sponsor-button {
    background-color: #16ff98;
    color: #000;
    border: 2px solid #16ff98;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-family: 'Opposans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.sponsor-button:hover {
    background-color: #fff;
    border-color: #fff;
    color: #000;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sponsor-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sponsor-card {
        padding: 1.5rem;
    }
    
    .sponsor-title {
        font-size: 1.3rem;
        font-family: 'Opposans', sans-serif !important;
    }
}

/* Ddo Popup Modal Styles */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 2rem;
    border: none;
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: none;
    animation: slideIn 0.4s ease;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #16ff98;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(22, 255, 152, 0.3);
}

.popup-close:hover {
    color: #fff;
    background: rgba(22, 255, 152, 0.2);
    border-color: #16ff98;
    transform: rotate(90deg);
}

.popup-title {
    text-align: left;
    color: #fff;
    font-family: 'Opposans', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.popup-ad-container {
    text-align: center;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 20% auto;
        padding: 1.5rem;
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
}

/* Popup Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Footer Styles */
.footer {
    background-color: #111;
    border-top: 1px solid #333;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-brand {
    font-family: 'Opposans', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: #16ff98;
}

.footer-copyright {
    font-family: 'Opposans', sans-serif;
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
        margin-top: 3rem;
    }
    
    .footer-brand {
        font-size: 1.1rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* Donate Button Styles */
.donate-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.donate-button {
    background-color: #ff1698;
    color: #fff;
    border: 2px solid #ff1698;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-family: 'Opposans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.donate-button:hover {
    background-color: #fff;
    border-color: #fff;
    color: #ff1698;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 22, 152, 0.3);
}

@media (max-width: 768px) {
    .donate-container {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .donate-button {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}