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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2563eb;
    letter-spacing: -0.3px;
}

.logo a {
    text-decoration: none;
    color: #2563eb;
}

.logo a:hover {
    color: #1d4ed8;
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #2563eb;
    transition: all 0.2s ease;
    border-radius: 1px;
}

/* 汉堡菜单动画 */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center; /* 确保导航项内容垂直居中 */
}

.nav-links.nav-links-static {
    justify-content: center; /* 机中贼页面导航保持居中展示 */
}

.nav-links a {
    color: #666;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
    display: inline-flex; /* 使用内联弹性布局兼容原有导航结构 */
    align-items: center; /* 保持文本垂直居中 */
    justify-content: center; /* 保持链接内容水平居中 */
    vertical-align: middle; /* 避免内联元素在服务器环境出现基线偏移 */
}

.nav-title {
    padding: 0.75rem 1.25rem;
    width: 100%; /* 保证机中贼标题所在区域占满导航用于居中 */
    text-align: center; /* 让机中贼标题在导航中水平居中 */
}

.nav-title-content {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2563eb;
    justify-content: center; /* 让标题内容在自身内部水平居中 */
}/* 导航栏机中贼标题样式 */

.nav-links a:hover,
.nav-links a.nav-active {
    color: #2563eb;
    background: #f8fafc;
    transform: translateY(-1px);
}

.nav-links a:active {
    transform: translateY(0);
}

/* 主要内容区域 */
main {
    max-width: 1200px; /* 桌面端扩大主体宽度，减少左右留白 */
    margin: 0 auto;
    padding: 4rem 3vw; /* 动态内边距适配不同分辨率 */
}

/* 英雄区域样式 */
.hero-section {
    text-align: center;
    padding: 3rem 0 5rem 0;
    margin: 0 auto 3rem auto;
    max-width: 1100px; /* 扩大英雄区宽度减少左右留白 */
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 720px; /* 适当放宽描述行宽 */
    margin: 0 auto;
    line-height: 1.75;
    font-weight: 400;
}

/* 服务区域样式 */
.services-section {
    margin-bottom: 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

.services-grid {
    display: flex;
    flex-direction: column; /* 固定垂直排列三张卡片 */
    gap: 2rem; /* 卡片间距保持一致 */
    width: 100%;
}

/* 服务卡片样式 */
.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.25rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    height: 100%; /* 保证卡片等高撑满栅格 */
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.service-card:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* 卡片链接样式 */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.card-text {
    flex: 1;
    display: flex; /* 让卡片文本区域可控制内部排列 */
    flex-direction: column;
    justify-content: center; /* 确保标题与正文整体垂直居中 */
}

.service-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex; /* 让标题内部内容水平居中 */
    align-items: center;
    justify-content: center; /* 机中贼标题图标与文字居中对齐 */
    gap: 4px; /* 标题内部图标与文字间保持4px间距 */
}

.service-card p {
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    font-size: 1rem;
}

.page-title-icon {
    width: 40px;
    height: 40px;
    margin-right: 0.6rem;
    vertical-align: middle;
    display: inline-block;
}/* 手机管理页面标题图标样式 */

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* 页面内容样式 */
.page-content {
    background: transparent;
    padding: 2rem 0;
    margin: 0;
}

.phone-description {
    color: #475569; /* 页面文案颜色 */
    line-height: 1.8; /* 提升阅读体验 */
    margin-bottom: 1.5rem; /* 控制段落间距 */
    text-align: left; /* 保持文本左对齐 */
}

.phone-feature-list {
    display: flex; /* 使用弹性布局呈现卡片 */
    flex-direction: column; /* 每行仅展示一个卡片 */
    gap: 1rem; /* 卡片之间的间隔 */
    margin-bottom: 1.5rem; /* 与下方内容保持间距 */
}

.phone-feature-card {
    background: #ffffff; /* 卡片背景 */
    border: 1px solid #e2e8f0; /* 卡片边框 */
    border-radius: 12px; /* 卡片圆角 */
    padding: 1.5rem; /* 卡片内边距 */
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06); /* 卡片阴影 */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* hover 动画 */
}

.phone-feature-card:hover {
    transform: translateY(-4px); /* 悬浮视觉反馈 */
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12); /* 加强悬浮阴影 */
}

.phone-feature-card h4 {
    font-size: 1.15rem; /* 卡片标题字号 */
    color: #1e293b; /* 卡片标题颜色 */
    margin-bottom: 0.4rem; /* 标题下间距 */
}

.phone-feature-card p {
    color: #64748b; /* 卡片正文颜色 */
    line-height: 1.65; /* 卡片正文行高 */
    margin: 0; /* 移除默认外边距 */
}

.page-content h1 {
    color: #1e293b;
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
}

/* 隐私条款页面特定样式 */
.privacy-policy h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.privacy-policy h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.privacy-policy p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.privacy-policy ul, .privacy-policy ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.privacy-policy li {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.privacy-policy strong {
    color: #1e293b;
    font-weight: 600;
}

.privacy-policy a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.privacy-policy a:hover {
    color: #1d4ed8;
}

/* 页脚样式 */
footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.copyright {
    color: #64748b;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.9rem;
}

.separator {
    color: #bdc3c7;
}

.email-link {
    color: #2563eb;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: #1d4ed8;
}

/* 备案信息样式 */
.beian-info {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.beian-link {
    color: #2563eb;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    transition: all 0.2s ease;
    display: inline-block;
}

.beian-link:hover {
    color: #1d4ed8;
    border-color: #2563eb;
    background-color: #f8fafc;
}

/* 隐私条款链接样式 */
.privacy-link {
    color: #2563eb; 
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: #1d4ed8; 
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1.25rem 4%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 隐藏导航菜单 */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-top: 1px solid #e2e8f0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
    }
    
    .nav-links.nav-links-static {
        position: static; /* 静态导航不再脱离文档流 */
        flex-direction: column; /* 移动端保持垂直居中 */
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        border-top: none;
    }
    
    .nav-links.nav-links-static .nav-title {
        border-bottom: none; /* 移除静态导航的底部分割线 */
    }
    
    /* 显示导航菜单 */
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        font-size: 1rem;
        display: block;
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .nav-links a:hover,
    .nav-links a.nav-active {
        background: #f8fafc;
        color: #2563eb;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 2%;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 0.3rem;
    }
    
    .nav-links a {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    .hero-section {
        padding: 1rem 0 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 1.75rem;
        margin: 0;
    }
    
    .card-content {
        gap: 1.25rem;
    }
    
    .card-icon {
        font-size: 1.75rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .page-content {
        padding: 1.5rem 1rem;
    }
    
    .privacy-policy h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .privacy-policy h2 {
        font-size: 1.3rem;
        margin: 2.5rem 0 1.25rem 0;
    }
    
    .privacy-policy h3 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .privacy-policy p {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    .privacy-policy ul, .privacy-policy ol {
        padding-left: 1.25rem;
    }
    
    .privacy-policy li {
        font-size: 0.95rem;
        line-height: 1.55;
    }
    
    footer {
        padding: 2rem 1rem;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 1rem 3%;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .card-content {
        gap: 1rem;
    }
    
    .card-icon {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.15rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
}
