* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Heiti SC", sans-serif;
}
body {
    background-color: #f8fafc;
    padding: 0;
    line-height: 1.6;
    color: #2d3748;
}
/* 导航栏样式 */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* 移动端菜单遮罩层 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    width: 40px;
    height: 40px;
    background-color: #4299e1;
    border-radius: 8px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}
.website-name {
    font-size: 22px;
    font-weight: bold;
    color: #2d3748;
}
.nav-menu {
    display: flex;
    list-style: none;
}
.nav-item {
    margin-left: 30px;
}
.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-size: 16px;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #4299e1;
}
.nav-link.active {
    color: #4299e1;
    font-weight: 500;
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #2d3748;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #4299e1;
}
.header h1 {
    color: #2d3748;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}
.header h1 .brand-name {
    color: #4299e1;
    font-weight: 700;
    position: relative;
}
.header h1 .brand-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4299e1, transparent);
    opacity: 0.3;
}
.header p {
    color: #718096;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 核心内容区布局修改：主内容+竖排边栏 */
.main-content-wrapper {
    margin-bottom: 40px;
}

/* 左侧主内容区 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 平滑滚动偏移 */
section[id], div[id^="start-"], div[id="compare"], div[id="xiangpi"] {
    scroll-margin-top: 100px;
}

/* 起名知识科普 - 改为2*3布局 */
.knowledge-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 0 auto 30px;
}
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}
.section-icon {
    width: 40px;
    height: 40px;
    background-color: #e8f4f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}
.section-icon i {
    color: #4299e1;
    font-size: 20px;
}
.section-title {
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
}
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2*3布局 - 3列2行 */
    gap: 20px;
    margin-top: 20px;
}
@media (max-width: 992px) {
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr); /* 移动端适配为2列 */
    }
}
@media (max-width: 768px) {
    .knowledge-grid {
        grid-template-columns: 1fr; /* 小屏适配为1列 */
    }
}
.knowledge-card {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.knowledge-card h4 {
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.knowledge-card h4 i {
    color: #4299e1;
    margin-right: 8px;
    font-size: 14px;
}
.knowledge-card p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.7;
}

/* 起名注意事项 */
.notice-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.notice-list {
    margin-top: 20px;
    list-style: none;
}
.notice-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}
.notice-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.notice-number {
    width: 24px;
    height: 24px;
    background-color: #4299e1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}
.notice-content {
    color: #4a5568;
    font-size: 14px;
}
.notice-content strong {
    color: #2d3748;
}

/* 右侧边栏修改为竖排布局（全屏宽度） */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1160px;
    margin: 0 auto;
}

/* 热门名字榜单 - 改为2*4布局（8个名字） */
.hot-name-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
}
.rank-list {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 2*4布局 - 4列2行 */
    gap: 15px;
}
@media (max-width: 992px) {
    .rank-list {
        grid-template-columns: repeat(2, 1fr); /* 平板适配为2列 */
    }
}
@media (max-width: 768px) {
    .rank-list {
        grid-template-columns: 1fr; /* 小屏适配为1列 */
    }
}
.rank-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background-color: #f8f9fa;
}
.rank-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 12px;
    color: white;
}
.rank-num.top1 {
    background-color: #ed8936;
}
.rank-num.top2 {
    background-color: #cbd5e0;
}
.rank-num.top3 {
    background-color: #9f7aea;
}
.rank-num.other {
    background-color: #e2e8f0;
    color: #718096;
}
.rank-info {
    flex: 1;
}
.rank-name {
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 3px;
}
.rank-pinyin {
    font-size: 12px;
    color: #718096;
    font-style: italic;
}
.rank-tag {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: white;
    background-color: #48bb78;
}
.rank-tag.girl {
    background-color: #e53e3e;
}
.rank-tag.boy {
    background-color: #4299e1;
}
.rank-tag.unisex {
    background-color: #9f7aea;
}

/* 用户评价展示 - 改为2*3布局（6个评价） */
.review-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.review-list {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2*3布局 - 3列2行 */
    gap: 15px;
}
@media (max-width: 992px) {
    .review-list {
        grid-template-columns: repeat(2, 1fr); /* 平板适配为2列 */
    }
}
@media (max-width: 768px) {
    .review-list {
        grid-template-columns: 1fr; /* 小屏适配为1列 */
    }
}
.review-card {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e8f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}
.user-avatar i {
    color: #4299e1;
    font-size: 16px;
}
.user-info {
    flex: 1;
}
.user-name {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}
.review-time {
    font-size: 12px;
    color: #718096;
}
.review-content {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
}
.review-rating {
    display: flex;
    margin-top: 8px;
}
.review-star {
    color: #ed8936;
    font-size: 12px;
    margin-right: 2px;
}
.review-star-empty {
    color: #e2e8f0;
    font-size: 12px;
    margin-right: 2px;
}

/* 名字卡片列表样式 - 初始隐藏 */
.name-card-list-container {
    display: none; /* 默认隐藏 */
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.result-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}
.result-header h2 {
    font-size: 24px;
    color: #2d3748;
    display: flex;
    align-items: center;
}
.result-header h2 i {
    color: #4299e1;
    margin-right: 10px;
}
.name-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.name-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.name-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}
.name-main {
    display: flex;
    align-items: center;
}
.name-text {
    font-size: 26px;
    font-weight: bold;
    color: #2d3748;
    margin-right: 12px;
}
.pinyin {
    color: #4299e1;
    font-size: 16px;
    font-style: italic;
}
.card-body {
    display: grid;
    gap: 15px;
}
.info-item {
    display: flex;
    flex-direction: column;
}
.info-label {
    font-size: 14px;
    color: #718096;
    margin-bottom: 4px;
}
.info-value {
    font-size: 15px;
    color: #4a5568;
}
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.feature-tag {
    background-color: #e8f4f8;
    color: #3182ce;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 13px;
}
.wuxing {
    color: #48bb78;
    font-weight: 500;
}
/* 评分星星样式 */
.star-rating {
    display: flex;
}
.star {
    color: #ed8936;
    margin-right: 2px;
}
.star-empty {
    color: #e2e8f0;
}

/* 功能卡片区域样式 - 竖排布局 */
.function-cards-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    scroll-margin-top: 100px;
}
.function-card {
    scroll-margin-top: 100px;
}
.function-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.function-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}
.function-card-icon {
    width: 40px;
    height: 40px;
    background-color: #e8f4f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}
.function-card-icon i {
    color: #4299e1;
    font-size: 20px;
}
.function-card-title {
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
}
.function-card-body {
    margin-top: 20px;
}

/* 名字对比功能样式 */
.compare-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.compare-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.compare-checkbox:hover {
    background-color: #e8f4f8;
}
.compare-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}
.compare-checkbox.checked {
    background-color: #e8f4f8;
    border-color: #4299e1;
}
.compare-btn {
    padding: 10px 20px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}
.compare-btn:hover:not(:disabled) {
    background-color: #3182ce;
}
.compare-btn:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}
.compare-result {
    margin-top: 20px;
}
.compare-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}
.compare-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.compare-section {
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}
.compare-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.compare-section.recommendation {
    background-color: #e8f4f8;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #4299e1;
}
.compare-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.compare-section-title i {
    color: #4299e1;
    margin-right: 8px;
}
.compare-winner {
    font-size: 15px;
    font-weight: 600;
    color: #4299e1;
    margin-bottom: 8px;
}
.compare-analysis {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.8;
}
.loading-text, .error-text {
    text-align: center;
    padding: 20px;
    color: #4a5568;
}
.error-text {
    color: #e53e3e;
}

/* 姓名祥批功能样式 */
.xiangpi-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.xiangpi-option {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.xiangpi-option:hover {
    background-color: #e8f4f8;
}
.xiangpi-option.selected {
    background-color: #e8f4f8;
    border-color: #4299e1;
}
.xiangpi-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}
.xiangpi-pinyin {
    font-size: 12px;
    color: #4299e1;
    font-style: italic;
}
.xiangpi-btn {
    padding: 10px 20px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}
.xiangpi-btn:hover:not(:disabled) {
    background-color: #3182ce;
}
.xiangpi-btn:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}
.xiangpi-result {
    margin-top: 20px;
}
.xiangpi-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}
.xiangpi-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.xiangpi-section {
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}
.xiangpi-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.xiangpi-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.xiangpi-section-title i {
    color: #4299e1;
    margin-right: 8px;
}
.xiangpi-section-content {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.8;
}
.xiangpi-section-content p {
    margin-bottom: 10px;
}
.xiangpi-section-content p:last-child {
    margin-bottom: 0;
}
/* 列表样式优化 - 确保序号和文本对齐 */
.xiangpi-section-content ol,
.xiangpi-section-content ul {
    margin: 10px 0;
    padding-left: 0;
    list-style-position: outside;
}
.xiangpi-section-content ol {
    counter-reset: list-counter;
    list-style: none;
    padding-left: 0;
}
.xiangpi-section-content ol > li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    counter-increment: list-counter;
}
.xiangpi-section-content ol > li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: 600;
    width: 24px;
    text-align: right;
}
.xiangpi-section-content ul {
    list-style: none;
    padding-left: 0;
}
.xiangpi-section-content ul > li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}
.xiangpi-section-content ul > li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
    font-size: 16px;
}
/* 嵌套列表样式 */
.xiangpi-section-content ol ol,
.xiangpi-section-content ul ul,
.xiangpi-section-content ol ul,
.xiangpi-section-content ul ol {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 24px;
}
.xiangpi-section-content ol ol > li::before {
    content: counter(list-counter, lower-alpha) ".";
}
.xiangpi-section-content ul ul > li::before {
    content: "◦";
}
@media (max-width: 768px) {
    .xiangpi-selector {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: scale(0.8);
}
.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}
.back-to-top:hover {
    background-color: #3182ce;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.5);
}
.back-to-top:active {
    transform: translateY(-1px) scale(1);
}
.back-to-top i {
    font-size: 20px;
    color: white;
}
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    .back-to-top i {
        font-size: 18px;
    }
}

/* 限流/封禁提示模态框样式 */
.rate-limit-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10000 !important;
    align-items: center !important;
    justify-content: center !important;
}
.rate-limit-modal.show {
    display: flex !important;
}
.rate-limit-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.rate-limit-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.rate-limit-modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}
.rate-limit-modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}
.rate-limit-modal-icon i {
    color: white;
    font-size: 28px;
}
.rate-limit-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}
.rate-limit-modal-body {
    padding: 25px 30px;
    text-align: center;
}
.rate-limit-message {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
}
.rate-limit-modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}
.rate-limit-modal-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}
.rate-limit-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
}
.rate-limit-modal-btn:active {
    transform: translateY(0);
}
@media (max-width: 768px) {
    .rate-limit-modal-content {
        width: 85%;
        max-width: 400px;
    }
    .rate-limit-modal-header {
        padding: 25px 20px 15px;
    }
    .rate-limit-modal-icon {
        width: 50px;
        height: 50px;
    }
    .rate-limit-modal-icon i {
        font-size: 24px;
    }
    .rate-limit-modal-title {
        font-size: 20px;
    }
    .rate-limit-modal-body {
        padding: 20px;
    }
    .rate-limit-message {
        font-size: 15px;
    }
    .rate-limit-modal-footer {
        padding: 15px 20px 25px;
    }
    .rate-limit-modal-btn {
        padding: 10px 35px;
        font-size: 15px;
    }
}

/* 底部样式 - 重新设计 */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #ffffff;
    padding: 40px 0 30px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.5), transparent);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}
.footer-top::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4299e1, transparent);
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}
.footer-logo:hover {
    transform: translateY(-3px);
}
.footer-logo-img {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-radius: 12px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}
.footer-logo-text {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-desc {
    color: #cbd5e0;
    font-size: 15px;
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-link:hover {
    background: #4299e1;
    border-color: #4299e1;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 30px;
    color: #a0aec0;
    font-size: 13px;
}
.footer-copyright {
    text-align: center;
    line-height: 1.8;
}
.footer-copyright a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-copyright a:hover {
    color: #63b3ed;
}
.footer-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    display: inline-block;
}
@media (max-width: 576px) {
    .footer-copyright p {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .footer-divider {
        display: none;
    }
}

/* 隐藏元素不占用空间 */
.hidden-section {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* 隐藏导航栏中的链接项 */
.hidden-nav-item {
    display: none !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 移动端导航栏样式 */
    .navbar-container {
        padding: 12px 20px;
        position: relative;
    }
    
    .logo {
        flex: 1;
    }
    
    .logo-img {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .website-name {
        font-size: 18px;
    }
    
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 移动端导航菜单样式 */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #ffffff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 20px 0;
        margin: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-item {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 16px 20px;
        font-size: 16px;
        color: #2d3748;
        text-align: left;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: #f7fafc;
        border-left-color: #4299e1;
        color: #4299e1;
        padding-left: 24px;
    }
    
    /* 菜单打开时防止背景滚动 */
    body.menu-open {
        overflow: hidden;
    }
    .header h1 {
        font-size: 24px;
        padding: 0 10px;
    }
    .header p {
        font-size: 16px;
        padding: 0 10px;
    }
    .footer {
        padding: 60px 0 25px;
    }
    .footer-top {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
    .footer-logo-img {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .footer-logo-text {
        font-size: 24px;
    }
    .footer-desc {
        font-size: 14px;
        padding: 0 10px;
    }
    .footer-social {
        gap: 15px;
    }
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .footer-copyright {
        font-size: 12px;
    }
    .footer-divider {
        margin: 0 5px;
    }
    .result-header h2 {
        font-size: 20px;
    }
}

