/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f6f7f8;
    color: #111418;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 滚动条隐藏 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 头部导航 */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    border-bottom: 1px solid #f0f2f4;
    background-color: white;
    padding: 12px 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #111418;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(43, 140, 238, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.logo-icon:hover {
    background-color: rgba(43, 140, 238, 0.2);
}

.logo-icon .material-symbols-outlined {
    color: #2b8cee;
    font-size: 24px;
}

.header-logo h2 {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.header-nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: #111418;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2b8cee;
}

.nav-links a.active {
    color: #2b8cee;
    font-weight: bold;
    border-bottom: 2px solid #2b8cee;
    padding-bottom: 2px;
}

.contact-btn {
    display: flex;
    min-width: 84px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    height: 40px;
    padding: 0 24px;
    background-color: #2b8cee;
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: normal;
    letter-spacing: 0.015em;
    border: none;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #2580d3;
}

.menu-btn {
    display: none;
    padding: 8px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid #f0f2f4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 40;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.mobile-nav-links a {
    padding: 12px 16px;
    color: #111418;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.mobile-nav-links a:hover {
    background-color: #f6f7f8;
}

.mobile-nav-links a.active {
    color: #2b8cee;
    background-color: rgba(43, 140, 238, 0.1);
}

.mobile-contact-btn {
    margin: 8px 16px 16px;
    padding: 12px;
    background-color: #2b8cee;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mobile-contact-btn:hover {
    background-color: #2580d3;
}

/* 按钮样式 */
.btn-primary {
    flex: 1;
    background-color: #2b8cee;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2580d3;
}

.btn-secondary {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: white;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 页脚 */
footer {
    background-color: white;
    border-top: 1px solid #f0f2f4;
    padding-top: 64px;
    padding-bottom: 32px;
    z-index: 20;
    position: relative;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    grid-column: span 1;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111418;
    margin-bottom: 24px;
}

.footer-brand-header .logo-icon {
    width: 24px;
    height: 24px;
}

.footer-brand-header h2 {
    font-size: 20px;
    font-weight: bold;
}

.footer-brand p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #94a3b8;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #2b8cee;
}

.footer-section h4 {
    font-weight: bold;
    color: #111418;
    margin-bottom: 24px;
}

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

.footer-section ul li {
    margin-bottom: 16px;
}

.footer-section ul li a {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #2b8cee;
}

.footer-contact .phone {
    font-size: 24px;
    font-weight: bold;
    color: #2b8cee;
    margin-bottom: 8px;
}

.footer-contact .hours {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.footer-contact button {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.footer-contact button:hover {
    background-color: #f8fafc;
}

.footer-bottom {
    border-top: 1px solid #f0f2f4;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #64748b;
}

/* 备案号链接样式 - 去掉下划线 */
.footer-bottom p a {
    text-decoration: none;
    color: #94a3b8;
}

.footer-bottom p a:hover {
    color: #64748b;
}

/* 响应式设计 - 公共部分 */
@media (max-width: 768px) {
    header {
        padding: 12px 16px;
    }

    .header-nav {
        display: none;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
