/* Event 应用专属样式 - 基于 huidoudour.github.io 设计风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a85bd;
    --secondary-color: #e28aa6;
    --accent-color: #f2b3c3;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --glass-color: rgba(255, 255, 255, 0.15);
    --text-color: #2d3436;
    --text-light: #636e72;
    --card-bg: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans SC', 'Poppins', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(1100px 520px at 8% -5%, rgba(165, 211, 240, 0.30), transparent 60%),
        radial-gradient(900px 480px at 95% 5%, rgba(242, 179, 195, 0.30), transparent 60%),
        linear-gradient(160deg, #f8fbff 0%, #eef6fc 50%, #fdf1f5 100%);
    background:
        -webkit-radial-gradient(1100px 520px at 8% -5%, rgba(165, 211, 240, 0.30), transparent 60%),
        -webkit-radial-gradient(900px 480px at 95% 5%, rgba(242, 179, 195, 0.30), transparent 60%),
        -webkit-linear-gradient(160deg, #f8fbff 0%, #eef6fc 50%, #fdf1f5 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 133, 189, 0.12);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a85bd;
    text-decoration: none;
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #5a6b7a;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a85bd;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: #4a85bd;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero 区域 */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-header {
    text-align: center;
    padding: 40px 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    max-width: calc(320px * 3 + 25px * 2);
    margin: 0 auto;
}

.hero-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #a5d3f0;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                #a5d3f0 border-box;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(74, 133, 189, 0.18);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #4a85bd;
}

.subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 18px;
    color: #6b7b8c;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.05rem;
    color: #5a6b7a;
    margin-bottom: 0;
    line-height: 1.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #4a85bd;
    text-decoration: none;
    background: rgba(74, 133, 189, 0.06);
    padding: 9px 18px;
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid rgba(74, 133, 189, 0.3);
    font-weight: 500;
}

.github-link:hover {
    background: rgba(74, 133, 189, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 133, 189, 0.15);
    color: #3a6fa5;
}

/* 功能特性区域 */
.features {
    padding: 2.5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: #4a85bd;
}

.section-subtitle {
    font-size: 1.05rem;
    text-align: center;
    color: #6b7b8c;
    margin-bottom: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid rgba(74, 133, 189, 0.1);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(45, 52, 54, 0.04), 0 8px 24px rgba(74, 133, 189, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #a5d3f0;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(74, 133, 189, 0.15);
    border-color: rgba(74, 133, 189, 0.25);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #d9ecfb;
    color: #4a85bd;
    font-size: 1.5rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3436;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-card p {
    color: #5a6b7a;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* 技术栈区域 */
.tech-stack {
    padding: 2.5rem 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.tech-item {
    background: #ffffff;
    border: 1px solid rgba(74, 133, 189, 0.1);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(45, 52, 54, 0.04), 0 8px 24px rgba(74, 133, 189, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.tech-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #a5d3f0;
    z-index: 1;
}

.tech-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(74, 133, 189, 0.15);
    border-color: rgba(74, 133, 189, 0.25);
}

.tech-item i {
    font-size: 1.5rem;
    color: #4a85bd;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #d9ecfb;
    position: relative;
    z-index: 1;
}

.tech-item span {
    font-weight: 600;
    color: #2d3436;
    position: relative;
    z-index: 1;
}

/* 统计信息区域 */
.stats-section {
    padding: 2.5rem 0;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: #ffffff;
    border: 1px solid rgba(74, 133, 189, 0.1);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(45, 52, 54, 0.04), 0 8px 24px rgba(74, 133, 189, 0.08);
    min-width: 150px;
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 133, 189, 0.18);
    border-color: rgba(74, 133, 189, 0.25);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* 页脚 */
.footer {
    margin-top: 40px;
    padding: 2.5rem 0 2rem;
    color: #7a8a99;
    border-top: 1px solid rgba(74, 133, 189, 0.12);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a85bd;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #4a85bd;
}

.footer-section p {
    color: #5a6b7a;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #5a6b7a;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: #4a85bd;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(74, 133, 189, 0.12);
    padding-top: 2rem;
    text-align: center;
    color: #7a8a99;
}

.update-time {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #b9dff7;
    color: #3b76b6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #9ed2f2;
    color: #2d6098;
    transform: translateY(-2px);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #a5d3f0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8ec0e8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-header {
        padding: 20px 15px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

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

    .section-title {
        font-size: 1.7rem;
    }

    .stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .stat-item {
        width: 100%;
        max-width: 250px;
    }
}
