/* 全局样式 */
:root {
    --primary: #00f3ff;
    --secondary: #0a192f;
    --accent: #64ffda;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

body {
    background: var(--secondary);
    color: #ccd6f6;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
header {
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* 主内容区 */
main {
    flex: 1;
    margin-top: 80px;
    padding: 1rem 1rem;
}

.hero {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

}
.hero  h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f3ff, transparent);
}

.hero h1 {
    font-size: 3.5rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #8892b0;
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片容器 */
.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

/* 卡片样式 */
.card {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent,
        rgba(100, 255, 218, 0.1),
        transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.card h2 {
    color: var(--primary);
    margin: 0;
    font-size: 1.8rem;
    line-height: 32px;
    display: inline-block;
    vertical-align: middle;
}

.card p {
    color: #8892b0;
    min-height: 30px;
    margin: 1rem;
}

.card-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    margin: 0;
    vertical-align: middle;
}

.card-icon svg {
    stroke: #333;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-header h2 {
    margin: 0;
}

/* 按钮样式 */
.button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--secondary);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.button:hover {
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem 1rem;
    text-align: center;
    color: #8892b0;
    margin-top: auto;
}

footer p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .content {
        grid-template-columns: 1fr;
    }

    nav ul {
        gap: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* 弹出框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(10, 25, 47, 0.95);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
    position: relative;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-button:hover {
    transform: scale(1.2);
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-content label {
    display: block;
    color: #ccd6f6;
    margin: 0rem 0 0.5rem;
    text-align: left;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    background: rgba(10, 25, 47, 0.8);
    color: #ccd6f6;
    font-size: 1rem;
}

.modal-content textarea {
    resize: none;
    height: 100px;
}

.modal-content .button {
    margin-top: 1rem;
}

.hidden {
    display: none;
}

.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(10, 25, 47, 0.95);
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
    text-align: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}


