/* 错误提示 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.toast.error {
    border-left: 4px solid #ff4d4f;
}

.toast.success {
    border-left: 4px solid #52c41a;
}

.toast.warning {
    border-left: 4px solid #faad14;
}
 
.toast.info {
    border-left: 4px solid #1890ff;
}

.toast-icon {
    margin-right: 12px;
    font-size: 20px;
}

.toast.error .toast-icon {
    color: #ff4d4f;
}

.toast.success .toast-icon {
    color: #52c41a;
}

.toast.warning .toast-icon {
    color: #faad14;
}

.toast.info .toast-icon {
    color: #1890ff;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.toast-message {
    color: rgba(0, 0, 0, 0.65);
    font-size: 14px;
}

.toast-close {
    margin-left: 12px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    font-size: 16px;
}

.toast-close:hover {
    color: rgba(0, 0, 0, 0.65);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 用户菜单 */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    display: none;
    z-index: 1000;
}

.user-menu.show {
    display: block;
}

.user-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.65);
}

.user-menu-item:hover {
    background: #f5f5f5;
}

.user-menu-item i {
    margin-right: 8px;
    font-size: 16px;
}

.user-menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

/* 搜索框 */
.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    padding-right: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    outline: none;
}

.search-box .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.search-box .search-icon:hover {
    color: rgba(0, 0, 0, 0.65);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 通用按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-color);
    padding: 9px 19px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-align: center;
    font-size: 15px;
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #ccc;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background: #ff7875;
}

.btn-default {
    background: #fff;
    border-color: #d9d9d9;
    color: rgba(0, 0, 0, 0.65);
}

.btn-default:hover {
    border-color: #40a9ff;
    color: #40a9ff;
}

.btn-icon {
    padding: 4px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.45);
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.65);
}

/* 通用布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-box {
        width: 200px;
    }
    
    .toast {
        min-width: 250px;
    }
}

@media (max-width: 576px) {
    .search-box {
        width: 150px;
    }
    
    .toast {
        min-width: 200px;
    }
}

/* 通用样式 */
body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: #f7f8fa;
    margin: 0;
    color: #222;
}

/* 发布作品按钮样式 */
#header-upload-wrapper {
    position: relative;
    display: inline-block;
}

#upload-btn-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

#upload-panel {
    background-color: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    z-index: 50;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#upload-panel a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

#upload-panel a:hover {
    background-color: #F0F5FF;
    color: #165DFF;
}

#upload-panel a:first-child {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

#upload-panel a:last-child {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* 登录弹窗样式 */
#user-popover {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    min-width: 240px;
    z-index: 50;
    transition: opacity 0.2s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #header-upload-wrapper,
    #login-btn {
        display: none;
    }
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-color);
    padding: 9px 19px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-align: center;
    font-size: 15px;
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #ccc;
    transform: translateY(-2px);
}

#upload-btn-wrapper #upload-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
}

#header-upload-wrapper #upload-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
}

.btn-upload {
  border: 1px solid #1890ff;
  color: #1890ff;
  background: #fff;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-upload:hover, .btn-upload:focus {
  background: #e6f7ff;
  color: #096dd9;
  border-color: #096dd9;
}

/* 导航菜单样式 */
.nav-container {
    border-bottom: 1px dashed #ccc;
    padding: 10px 0;
    margin-bottom: 20px;
}

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

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #165DFF;
    font-weight: bold;
    border: 1px dashed #165DFF;
    border-radius: 32px;
    padding: 8px 20px;
    margin-right: 1.5rem;
    transition: box-shadow .2s, transform .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo i {
    margin-right: 8px;
}

.primary-menu {
    display: flex;
    align-items: center;
}

.primary-menu-item {
    padding: 10px 20px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, color 0.2s;
    position: relative;
    cursor: pointer;
}

.primary-menu-item:hover {
    color: #165DFF;
    transform: scale(1.05);
}

.primary-menu-item.active {
    color: #165DFF;
    font-weight: bold;
}

/* 修改二级菜单容器样式 */
.secondary-menu-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #f8f9fa;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
    border-radius: 8px;
    margin-top: 5px;
    width: auto;
    min-width: 300px;
}

/* 修改二级菜单样式为横排显示 */
.secondary-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* 修改二级菜单项样式 */
.secondary-menu-item {
    background: #fff;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    text-align: center;
    white-space: nowrap;
}

.secondary-menu-item:hover {
    background: #F2F3F5;
    color: #165DFF;
    border-color: #165DFF;
}

/* 显示二级菜单 */
.primary-menu-item:hover .secondary-menu-container,
.secondary-menu-container:hover {
    display: block;
}

/* 发布作品按钮下拉菜单样式 */
#upload-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    min-width: 120px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 5px;
    z-index: 100;
}

.upload-panel-item {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 4px;
}

.upload-panel-item:hover {
    background: #F2F3F5;
    color: #165DFF;
}

/* 顶部导航 */
.navbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}
.nav-menu {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: 1.5rem;
    position: relative;
    z-index: 10;
}
.nav-menu::-webkit-scrollbar {
    display: none;
}
.nav-item {
    color: #222;
    font-size: 1rem;
    padding: 0 12px;
    text-decoration: none;
    transition: color .2s, transform .2s;
    font-weight: 500;
    line-height: 50px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-item.active,
.nav-item:hover {
    color: #165DFF;
    background: #f0f6ff;
    transform: scale(1.08);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-primary {
    background: #165DFF;
    color: #fff;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-primary:hover {
    background: #4080FF;
    box-shadow: 0 4px 12px rgba(22,93,255,0.12);
    transform: translateY(-2px);
}
.btn-secondary {
    background: #fff;
    color: #165DFF;
    border: 1px solid #165DFF;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 16px;
    cursor: pointer;
    transition: border .2s, color .2s, background .2s, transform .2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-secondary:hover {
    background: #f0f6ff;
    color: #4080FF;
    border-color: #4080FF;
    transform: translateY(-2px);
}

/* 卡片区 */
.main-content {
    margin-top: 32px;
    margin-bottom: 32px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}
.tool-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 32px 16px 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow .2s, transform .2s;
}
.tool-card:hover {
    box-shadow: 0 8px 24px rgba(22,93,255,0.10);
    transform: translateY(-4px) scale(1.03);
}
.tool-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f6ff;
    border-radius: 50%;
}
.tool-icon img {
    width: 36px;
    height: 36px;
}
.tool-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 8px 0 6px 0;
}
.tool-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 18px;
    min-height: 36px;
}
.tool-card .btn-primary {
    width: auto;
    min-width: 96px;
    max-width: 100%;
    margin: 18px auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* about/特色区 */
.about-section {
    background: #fff;
    border-radius: 16px;
    margin: 40px 0 0 0;
    padding: 32px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    text-align: center;
}
.about-section h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 24px;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 16px;
}
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}
.about-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}
.about-item h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}
.about-item p {
    color: #666;
    font-size: 13px;
}
.about-section p {
    color: #666;
    font-size: 15px;
    margin-bottom: 18px;
}
.about-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}
@media (max-width: 600px) {
    .about-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* 页脚 */
.footer {
    background: #181A1B;
    color: #fff;
    padding: 40px 0 0 0;
    font-size: 15px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px;
    }
    .container {
        padding: 0 16px;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 0 8px;
    }
    .container {
        padding: 0 8px;
    }
}
.footer-logo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #165DFF;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer ul li {
    margin-bottom: 8px;
    color: #eee;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer ul li i {
    color: #165DFF;
}
.footer-bottom {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    padding: 24px 0 12px 0;
    margin-top: 24px;
    border-top: 1px solid #222;
}

/* 通用自适应 */
@media (max-width: 900px) {
    .nav-flex {
        flex-wrap: wrap;
        height: auto;
        gap: 8px;
    }
    .nav-menu {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        min-width: 0;
        margin-right: 16px;
    }
    .nav-actions {
        width: auto;
        justify-content: flex-end;
        margin-left: 8px;
    }
}
@media (max-width: 600px) {
    .navbar, .footer, .about-section, .main-content {
        padding-left: 0;
        padding-right: 0;
    }
    .nav-flex {
        flex-direction: column;
        height: auto;
        gap: 8px;
        align-items: stretch;
    }
    .nav-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        min-width: 0;
        margin-right: 0;
        margin-bottom: 4px;
    }
    .nav-item {
        font-size: 15px;
        padding: 0 8px;
        line-height: 40px;
    }
    .nav-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
        margin-bottom: 4px;
    }
}

/* 汉堡按钮样式 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  z-index: 1200;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #165DFF;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* 侧边菜单遮罩 */
.side-menu-mask {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1100;
}
.side-menu-mask.active {
  display: block;
}

/* 侧边弹出菜单 */
.side-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 16px rgba(22,93,255,0.08);
  z-index: 1200;
  transition: left 0.3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
}
.side-menu.active {
  left: 0;
}
.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px 20px;
  border-bottom: 1px solid #eee;
}
.side-menu-title {
  font-size: 18px;
  font-weight: bold;
  color: #165DFF;
}
.side-menu-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.side-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}
.side-menu-item,
.side-menu-item.main {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: #222;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.side-menu-item:hover,
.side-menu-item.main:hover {
  background: #f0f6ff;
  color: #165DFF;
}
.side-menu-item-expandable .expand-arrow {
  margin-left: auto;
  font-size: 14px;
  transition: transform 0.2s;
}
.side-menu-item-expandable.expanded .expand-arrow {
  transform: rotate(90deg);
}
.side-menu-sub {
  display: none;
  flex-direction: column;
  background: #f8faff;
  border-left: 2px dashed #165DFF;
  margin-left: 0;
  padding-left: 18px;
  padding-bottom: 6px;
  padding-top: 2px;
}
.side-menu-item-expandable.expanded .side-menu-sub {
  display: flex;
}
.side-menu-sub-item {
  padding: 10px 0 10px 8px;
  color: #165DFF;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 2px;
}
.side-menu-sub-item:hover {
  background: #e6f0ff;
  color: #4080FF;
}

/* 响应式：移动端显示汉堡菜单，隐藏横排菜单 */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
@media (max-width: 900px) {
  .side-menu {
    width: 80vw;
    min-width: 180px;
    max-width: 320px;
  }
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 2000;
    display: none;
    min-width: 160px;
    padding: 8px 0;
    margin: 2px 0 0;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    clear: both;
    font-weight: 400;
    color: #333;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #165DFF;
    text-decoration: none;
    background-color: #f5f7fa;
}

.dropdown-item i {
    margin-right: 8px;
}

/* 登录下拉菜单特殊样式 */
.login-menu {
    width: 240px;
    padding: 12px;
}

.login-menu-header {
    padding: 8px 4px;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.login-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 4px;
    color: #333;
}

.login-menu-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #165DFF;
}

.btn-login {
    display: block;
    background-color: #165DFF;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    margin-top: 12px;
    text-decoration: none;
    font-weight: 500;
}

.btn-login:hover {
    background-color: #4080FF;
}

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

/* 导航菜单下拉样式 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    min-width: 180px;
    border-top: 2px solid #165DFF;
    margin-top: 0;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-menu .nav-dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown .dropdown-toggle::after {
    margin-left: 4px;
    vertical-align: 1px;
}

.nav-dropdown .nav-item {
    padding-right: 16px;
    position: relative;
}

.nav-dropdown .nav-item::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 4px;
    margin-top: -2px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

@media (max-width: 900px) {
    .nav-dropdown {
        display: none;
    }
} 