/* 全局样式 */
:root {
    --primary-color: #0078ff;
    --secondary-color: #00c9ff;
    --text-color: #333;
    --light-text: #777;
    --lightest-text: #999;
    --background: #fff;
    --light-background: #f8f9fa;
    --dark-background: #1a1a2e;
    --border-color: #e9ecef;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--background);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: var(--light-text);
}

/* GEO优化: mark标签样式 */
mark {
    background-color: transparent;
    color: inherit;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 120, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 120, 255, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 18px;
}

/* 导航栏 - 重写版本 */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    transition: var(--transition);
    padding: 15px 0;
    z-index: 999;
}

.main-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo-text {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.main-header.scrolled .logo-text {
    color: #0078ff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: 0.3s;
    display: block;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.main-header.scrolled .nav-links a {
    color: #333;
}

.main-header.scrolled .nav-links a:hover {
    background: #f8f9fa;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.main-header.scrolled .hamburger span {
    background: #333;
}

/* 英雄部分 */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)) no-repeat center center/cover;
}

.hero-content {
    color: #fff;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-content .highlight {
    color: var(--secondary-color);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* 关于我们 */
#about {
    background-color: var(--light-background);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
    font-size: 18px;
}

/* 核心产品 */
.product-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-background);
    border-radius: 50%;
}

.product-icon i {
    font-size: 36px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--light-text);
}

/* 客户案例 */
#customers {
    background-color: var(--light-background);
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.customer-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.customer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.customer-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--light-background);
    border-radius: 50%;
}

.customer-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.customer-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 我们的服务 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    background: var(--light-background);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card p {
    margin-bottom: 0;
}

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

/* 联系我们 */
#contact {
    background-color: var(--dark-background);
    color: #fff;
}

#contact .section-header h2 {
    color: #fff;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    color: #fff;
    margin-bottom: 20px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.contact-info a {
    color: var(--secondary-color);
}

.qr-code {
    margin-top: 40px;
}

.qr-code img {
    width: 150px;
    height: 150px;
    background-color: #fff;
    padding: 10px;
    border-radius: var(--border-radius);
}

/* 企业微信二维码 */
.wechat-qr {
    margin-top: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 250px;
}

.wechat-qr .qr-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.wechat-qr img {
    width: 180px;
    height: 180px;
    background-color: #fff;
    padding: 8px;
    border-radius: var(--border-radius);
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wechat-qr .qr-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 0;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-status {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.form-status.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.form-group input.error,
.form-group textarea.error {
    border: 1px solid #e74c3c;
}

/* 加载动画 */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 页脚 */
footer {
    background-color: #151525;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.7);
}

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

.copyright p {
    margin-bottom: 5px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.copyright a {
    color: rgba(255, 255, 255, 0.5);
}

.copyright a:hover {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 10px 0;
    }

    .nav-links a {
        color: var(--text-color);
        font-size: 18px;
        padding: 12px 0;
        width: 100%;
        border-radius: 0;
    }

    .nav-links a:hover {
        background-color: transparent;
        color: var(--primary-color);
        padding-left: 10px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .product-card {
        min-width: 100%;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        flex-direction: row;
        align-items: center;
        padding: 20px;
    }

    .service-icon {
        margin-right: 15px;
        margin-bottom: 0;
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 20px;
    }
    
    .service-card h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .service-card p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .service-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    
    .service-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
} 

/* =========================================
   新增样式 - Logo 与 备案信息优化
   ========================================= */

/* 1. 顶部 Logo 样式 */
.brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-logo img {
    height: 40px; /* 根据实际Logo比例调整，通常40px-50px在导航栏很合适 */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* 2. 底部备案信息样式 */
.beian-container {
    display: flex;
    flex-wrap: wrap; /* 手机端自动换行 */
    gap: 20px; /* 两个备案号之间的间距 */
    margin-top: 10px;
}

.beian-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5) !important; /* 强制继承页脚文字颜色 */
    font-size: 14px;
    transition: var(--transition);
}

.beian-item:hover {
    color: var(--secondary-color) !important;
}

.beian-icon {
    width: 20px; /* 图标标准大小 */
    height: 20px;
    margin-right: 5px; /* 图标和文字的间距 */
    vertical-align: middle;
}

/* 移动端适配微调 */
@media (max-width: 768px) {
    .beian-container {
        justify-content: flex-start; /* 手机上左对齐 */
        gap: 10px;
        flex-direction: column; /* 手机上垂直排列显得更整齐，如果想并排可以删掉这一行 */
    }

    .brand-logo img {
        height: 32px; /* 手机端稍微缩小Logo */
    }
}

/* =========================================
   隐私政策模态框样式
   ========================================= */

/* 隐私政策链接样式 */
.privacy-link {
    cursor: pointer;
}

.privacy-link:hover {
    color: var(--secondary-color) !important;
}

/* 模态框背景 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 模态框内容容器 */
.modal-content {
    background-color: #fff;
    margin: 20px;
    padding: 0;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

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

/* 模态框头部 */
.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 120, 255, 0.05), rgba(0, 201, 255, 0.05));
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
    color: var(--text-color);
}

/* 关闭按钮 */
.close-modal {
    color: var(--light-text);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary-color);
    background-color: rgba(0, 120, 255, 0.1);
    transform: rotate(90deg);
}

/* 模态框主体内容 */
.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* 自定义滚动条 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 最后更新日期 */
.last-updated {
    color: var(--lightest-text);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 25px;
}

/* 隐私政策内容样式 */
.modal-body h3 {
    color: var(--text-color);
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-background);
}

.modal-body p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 15px;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-body li {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 10px;
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.modal-body a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.modal-body strong {
    color: var(--text-color);
    font-weight: 600;
}

/* 响应式设计 - 模态框 */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-height: 90vh;
        border-radius: 8px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body h3 {
        font-size: 18px;
    }
}