/* 全局变量和重置 */
:root {
    --primary-color: #0a6c7e;
    --secondary-color: #0d3b66;
    --accent-color: #28a198;
    --light-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0a6c7e 0%, #28a198 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 可访问性 */
a[href^="http"]:focus,
a[href^="https"]:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(13, 59, 102, 0.95);
    backdrop-filter: blur(10px);
    min-height: 70px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 5%;
    min-height: 60px;
}

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

.navbar.scrolled .nav-links a:hover {
    color: var(--primary-color);
}

.navbar.scrolled .logo {
    color: var(--secondary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-color);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover .logo-img {
    transform: rotate(15deg);
}

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

.nav-links a {
    color: var(--light-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
    white-space: nowrap;
    padding: 5px 0;
    text-decoration: none;
    min-width: 90px;
    text-align: center;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 汉堡菜单 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--light-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.navbar.scrolled .hamburger-menu span {
    background-color: var(--secondary-color);
}

/* 首图模块 */
.hero {
    height: 85vh;
    min-height: 500px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(rgba(13, 59, 102, 0.85), rgba(10, 108, 126, 0.7)), 
                url("https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 108, 126, 0.3);
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 108, 126, 0.4);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 服务项目 */
.services {
    padding: 80px 5%;
    background-color: #f9fbfd;
}

.service-grid, .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card, .advantage-card {
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 108, 126, 0.08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.service-card:hover, .advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(10, 108, 126, 0.12);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.service-card h3, .advantage-card h3 {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-card p, .advantage-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 核心优势 */
.advantages-section {
    padding: 80px 5%;
    background: var(--gradient-light);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

/* 流程介绍 */
.process-section {
    padding: 80px 5%;
    background-color: #ffffff;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 50px auto 0;
    position: relative;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(10, 108, 126, 0.2);
}

.step h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step p {
    color: #666;
    max-width: 200px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* 关于我们 */
.about-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 108, 126, 0.1);
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.lead-paragraph {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.highlight-text {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    color: #555;
    margin: 25px 0;
    background: rgba(10, 108, 126, 0.05);
    border-radius: 0 8px 8px 0;
}

.body-text {
    margin: 20px 0;
    color: #555;
}

.vision-text {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 35px;
    padding: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: relative;
}

/* 页脚 */
footer {
    background: linear-gradient(145deg, #0a1e3c 0%, #0d3b66 100%);
    padding: 80px 5% 25px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(10, 108, 126, 0.3);
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
}

.footer-about-text {
    color: #d1d9e6;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 25px;
    padding-right: 15px;
}

.footer-links {
    padding-left: 15px;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: white;
}

.footer-links h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #d1d9e6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: "›";
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-contact {
    padding-left: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1rem;
    flex-shrink: 0;
}

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

.contact-label {
    display: block;
    color: #b0bec5;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info p {
    color: white;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.wechat-qr-img {
    width: 70px;
    height: auto;
    margin-top: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

/* 地址换行优化 */
@media (min-width: 769px) {
    .contact-info p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 768px) {
    .contact-info p {
        white-space: normal;
        word-break: break-word;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #b0bec5;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal a {
    color: #b0bec5;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

/* 动画效果 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.95rem; }
    .logo { font-size: 1.3rem; }
    .logo-img { width: 36px; height: 36px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { max-width: 600px; margin: 0 auto; }
    .process-steps { flex-wrap: wrap; }
    .step { flex: 0 0 50%; margin-bottom: 40px; }
    .process-steps::before { display: none; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .footer-about { grid-column: span 2; }
    .footer-bottom-content { flex-direction: column; gap: 15px; }
}

@media (max-width: 768px) {
    .navbar { padding: 12px 4%; }
    .logo { font-size: 1.1rem; }
    .logo-img { width: 32px; height: 32px; font-size: 0.9rem; }
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(13, 59, 102, 0.98);
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links a:last-child { border-bottom: none; }
    .navbar.scrolled .nav-links { background: rgba(255, 255, 255, 0.98); }
    .navbar.scrolled .nav-links a { 
        color: #333; 
        border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
    }
    .hamburger-menu { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .advantages-grid, .service-grid { grid-template-columns: 1fr; }
    .step { flex: 0 0 100%; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-about { grid-column: span 1; }
    .footer-links, .footer-contact { padding-left: 0; }
}

@media (max-width: 480px) {
    .navbar { padding: 10px 4%; }
    .logo { font-size: 1rem; gap: 8px; }
    .logo-img { width: 28px; height: 28px; font-size: 0.8rem; }
    .hamburger-menu { width: 26px; height: 18px; }
    .hamburger-menu span { height: 2px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    .cta-button { padding: 10px 24px; font-size: 0.95rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; }
    .service-card, .advantage-card { padding: 20px 15px; }
    .step { margin-bottom: 25px; }
    .step h4 { font-size: 1.1rem; }
    .step p { font-size: 0.9rem; max-width: 180px; }
    .footer-logo { justify-content: flex-start; flex-direction: row; }
    .footer-about-text { text-align: left; }
    .contact-item { flex-direction: row; align-items: flex-start; }
    .footer-legal { flex-direction: column; gap: 5px; }
}