/* 全局样式 */
:root {
    --primary-color: #00c2ff;
    --primary-dark: #0088ff;
    --accent-color: #0066ff;
    --text-light: #a9e0ff;
    --text-white: #ffffff;
    --card-bg: rgba(10, 25, 50, 0.7);
    --border-color: rgba(0, 150, 255, 0.3);
    --glow-color: rgba(0, 150, 255, 0.8);
}

/* 基础样式 */
body {
    background: radial-gradient(ellipse at center, rgba(10, 20, 40, 1) 0%, rgba(5, 10, 25, 1) 70%, rgba(2, 5, 15, 1) 100%);
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    letter-spacing: 0.5px;
    overflow-x: hidden;
    position: relative;
}

/* 星空背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(1px 1px at 25% 35%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(1.5px 1.5px at 75% 30%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(2px 2px at 20% 80%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(2.5px 2.5px at 40% 10%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(1px 1px at 90% 70%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 50%);
    background-size: 550px 550px;
    animation: stars-drift 150s linear infinite;
    opacity: 0.5;
}

@keyframes stars-drift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 550px 550px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 20, 40, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px var(--glow-color);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00e5ff, #0099ff);
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 英雄区域样式 */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background-image: url('Banner.png');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(5, 15, 30, 0.7), rgba(10, 20, 40, 0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* 搜索和筛选区域 */
.search-filter-section {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--card-bg);
    color: var(--text-white);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.4);
}

.search-box input::placeholder {
    color: rgba(169, 224, 255, 0.6);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(45deg, rgba(0, 100, 200, 0.6), rgba(0, 200, 255, 0.5));
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
    transform: translateY(-2px);
    color: var(--text-white);
}

/* 统计区域 */
.stats-section {
    padding: 3rem 0;
    background: rgba(5, 15, 30, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanline 3s infinite linear;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--glow-color);
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

/* 教程区域 */
.tutorials-section {
    padding: 4rem 0;
}

.tutorial-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title i {
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--glow-color);
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* 教程卡片 */
.tutorial-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: scale(1);
}

.tutorial-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.tutorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanline 3s infinite linear;
}

.tutorial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-dark), transparent);
    animation: scanline 3s infinite linear 1.5s;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 150, 255, 0.4);
}

.card-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tutorial-difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tutorial-card.basic .tutorial-difficulty {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tutorial-card.advanced .tutorial-difficulty {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.tutorial-card.extended .tutorial-difficulty {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tutorial-card.outdated .tutorial-difficulty.outdated {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.outdated-btn {
    background: linear-gradient(90deg, #c2410c, #ef4444) !important;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
}

.tutorial-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tutorial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(169, 224, 255, 0.8);
}

.tutorial-meta > div {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tutorial-meta i {
    color: var(--primary-color);
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 150, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-btn {
    background: linear-gradient(90deg, #005599, var(--primary-dark));
    color: var(--text-white);
    border: none;
    border-radius: 5px;
    padding: 0.8rem 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.3);
}

.tutorial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 150, 255, 0.4);
    background: linear-gradient(90deg, #0066aa, #00aaff);
}

.text-tutorial-btn {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.text-tutorial-btn:hover {
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
}

.tutorial-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(169, 224, 255, 0.7);
}

.tutorial-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tutorial-stats i {
    color: var(--primary-color);
}

/* 社区贡献区域 */
.community-section {
    padding: 4rem 0;
    background: rgba(5, 15, 30, 0.5);
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.community-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a78bfa, transparent);
    animation: scanline 3s infinite linear;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(167, 139, 250, 0.3);
}

.contributor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.3);
}

.contributor-details h4 {
    margin: 0;
    color: var(--text-white);
    font-size: 1.1rem;
}

.contributor-role {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.community-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.community-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.community-btn {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    color: var(--text-white);
    border: none;
    border-radius: 5px;
    padding: 0.8rem 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.3);
}

.community-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(167, 139, 250, 0.4);
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 10, 20, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    box-shadow: 0 0 50px rgba(0, 150, 255, 0.3);
    border-radius: 12px;
    position: relative;
    animation: modal-appear 0.5s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanline 3s infinite linear;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    z-index: 10;
}

.close:hover,
.close:focus {
    color: var(--text-white);
    text-shadow: 0 0 10px var(--glow-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.3);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(0, 150, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-white);
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
}

.modal-meta {
    margin-top: 1rem;
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    color: var(--text-light);
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--text-white);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.3);
}

.modal-body h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul, .modal-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-body code {
    background: rgba(0, 50, 100, 0.4);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.modal-body pre {
    background: rgba(5, 15, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.modal-body pre code {
    background: none;
    padding: 0;
}

/* 页脚样式 */
footer {
    background: rgba(5, 15, 30, 0.8);
    color: var(--text-light);
    padding: 2rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.5), transparent);
    transform: translateY(-1px);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    position: relative;
}

footer a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px var(--glow-color);
}

footer a:hover::before {
    width: 100%;
}

.footer-links {
    margin-top: 1rem;
}

/* 返回顶部按钮 */
#backToTop {
    background: linear-gradient(135deg, #0066cc, var(--primary-dark));
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.5);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, opacity 0.2s ease;
    opacity: 0;
    transform: translateY(100px);
    animation: float-btn 3s ease-in-out infinite;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    pointer-events: none;
}

#backToTop.show {
    opacity: 0.9;
    transform: translateY(0);
    pointer-events: auto;
}

#backToTop:hover {
    opacity: 1;
    transform: translateY(0) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 150, 255, 0.7);
}

@keyframes float-btn {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 星际科技辉光文字 */
.glow-text {
    color: var(--text-white);
    text-shadow: 0 0 10px #00aeff, 0 0 20px #0077ff, 0 0 30px #0055ff;
    animation: pulsate 2s infinite alternate;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    font-weight: 700;
}

@keyframes pulsate {
    0% {
        text-shadow: 0 0 10px #00aeff, 0 0 20px #0077ff, 0 0 30px #0055ff;
    }
    100% {
        text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-dark), 0 0 40px var(--accent-color);
    }
}

/* 导航栏样式 */
nav {
    background: rgba(5, 15, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

nav .logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: var(--text-white);
    text-shadow: 0 0 10px var(--glow-color);
    position: relative;
    padding-left: 15px;
    text-decoration: none;
}

nav .logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(to bottom, var(--primary-color), #0066cc);
    box-shadow: 0 0 10px var(--glow-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    position: relative;
    background: transparent;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--text-white);
    text-shadow: 0 0 10px var(--glow-color);
}

nav ul li a:hover::before, nav ul li a.active::before {
    width: 80%;
}

/* 汉堡菜单按钮样式 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--text-white);
}

/* 移动端导航菜单样式 */
.mobile-nav {
    background: rgba(5, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
}

.mobile-nav ul {
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav ul li {
    margin: 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    background: rgba(0, 194, 255, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 扫描线动画 */
@keyframes scanline {
    0% {
        left: -100%;
        right: auto;
    }
    45% {
        left: 100%;
        right: auto;
    }
    55% {
        left: auto;
        right: -100%;
    }
    100% {
        left: auto;
        right: 100%;
    }
}

/* 响应式样式 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .tutorials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .community-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .mobile-menu-btn {
        display: block;
    }
    
    /* 隐藏桌面端导航菜单 */
    .desktop-nav {
        display: none;
    }
    
    nav .container {
        flex-direction: row;
        padding: 0.5rem 1rem;
        justify-content: space-between;
        align-items: center;
    }
    
    nav .logo {
        margin-bottom: 0;
    }
    
    .hero {
        padding-top: 150px;
        padding-bottom: 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .tutorials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .tutorial-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 1.8rem;
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .tutorial-card .card-header,
    .tutorial-card .card-body,
    .tutorial-card .card-footer {
        padding: 1rem;
    }
    
    .community-card {
        padding: 1.5rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .search-box input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    }
    
    .search-box i {
        left: 0.8rem;
    }
    
    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
}