/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局头像样式 - 确保所有头像都是圆形 */
.user-avatar, 
.user-icon,
.table-avatar,
img[alt*="用户"],
img[alt*="头像"],
img[src*="user"] {
    border-radius: 50% !important;
    object-fit: cover !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部栏样式 */
.top-bar {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 65px;
    gap: 20px;
}

.top-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.top-logo img {
    height: 40px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.top-logo:hover img {
    transform: scale(1.05);
}

/* 顶部搜索框 */
.top-search {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #8fd3a8;
    border-radius: 5px;
    overflow: hidden;
    margin-left: auto;
    margin-right: 15px;
}

.top-search input {
    background: none;
    border: none;
    color: #333;
    outline: none;
    width: 100%;
    font-size: 14px;
    padding: 10px 16px;
}

.top-search input::placeholder {
    color: #999;
}

.top-search button {
    background: #8fd3a8;
    border: none;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 48px;
}

.top-search button:hover {
    background: #7bc995;
    transform: scale(1.05);
}

/* 搜索图标样式 */
.search-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.top-search button:hover .search-icon {
    transform: scale(1.1);
    filter: brightness(0);
}

/* 顶部用户图标 */
.top-user {
    color: #666;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50% !important;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    flex: 0 0 auto;
    background: white;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    overflow: hidden;
}

.top-user:hover {
    background: #f8f9fa;
    border-color: #8fd3a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 用户图标样式 */
.user-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    filter: brightness(0.4);
}

.top-user:hover .user-icon {
    transform: scale(1.1);
    filter: brightness(0.2);
}

/* 导航栏样式 */
.navbar {
    background: #353132;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    height: 45px;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
}

.nav-logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
}

.logo-season {
    background: linear-gradient(45deg, #90EE90, #32CD32);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 5px;
}

/* 桌面导航菜单 */
.nav-menu {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 100%;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: white;
    opacity: 0.3;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    height: auto;
    min-height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover,
.nav-item.active .nav-link {
    background: #8fd3a8;
}

/* 搜索框 */
.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    margin: 0 20px;
}

.nav-search input {
    background: none;
    border: none;
    color: white;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.nav-search button {
    color: white;
    padding: 5px;
    display: flex;
    align-items: center;
}

/* 用户图标 */
.nav-user {
    color: white;
    padding: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-user:hover {
    color: #90EE90;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 主要内容 */
.main-content {
    margin-top: 110px; /* 65px(顶部栏) + 45px(导航栏) */
}


.register-btn {
    background: #90EE90;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.register-btn:hover {
    background: #32CD32;
    transform: translateY(-2px);
}

/* 区块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
}

.view-more {
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #90EE90;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
    /* margin-top: 80px; */
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-slogan {
    color: #bdc3c7;
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #bdc3c7;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #90EE90;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}


.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: 14px;
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    .top-container {
        gap: 15px;
    }
    
    .top-search {
        display: none; /* 隐藏搜索框 */
    }
    
    .top-user {
        margin-left: auto; /* 让用户头像靠右对齐 */
    }
    
    .nav-menu,
    .nav-search {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 45px;
        left: 0;
        right: 0;
        background: #2c3e50;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        height: auto; /* 移动端菜单高度自适应 */
    }
    
    .nav-item {
        width: 100%;
        display: block; /* 移动端不需要flex */
    }
    
    /* 移动端不显示竖线分割符 */
    .nav-item:not(:last-child)::after {
        display: none;
    }
    
    .nav-link {
        padding: 15px 20px; /* 移动端恢复上下padding */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        height: auto; /* 移动端不需要拉伸高度 */
        min-height: auto; /* 移动端不需要最小高度 */
        display: block; /* 移动端使用block布局 */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    .top-container {
        padding: 0 15px;
        height: 55px;
        gap: 10px;
    }
    
    .top-logo img {
        height: 30px;
    }
    
    .top-search {
        display: none; /* 确保手机端也隐藏搜索框 */
    }
    
    .top-user {
        margin-left: auto; /* 确保手机端用户头像也靠右对齐 */
    }
    
    .user-icon {
        width: 20px;
        height: 20px;
    }

    .nav-container {
        padding: 0 15px;
        height: 40px;
    }
    
    .main-content {
        margin-top: 95px; /* 55px(顶部栏) + 40px(导航栏) */
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-logo img {
        height: 30px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
} 