* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
    animation: slideDown 0.5s ease-out;
    transition: all 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    letter-spacing: .2992px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s;
    padding: 8px 16px;
    display: inline-block;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 0;
    height: 3px;
    background: #4a90e2;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #4a90e2;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: #4a90e2;
    font-weight: 500;
}

.nav-menu .has-dropdown > a::after {
    content: '▼';
    position: static;
    font-size: 9px;
    margin-left: 5px;
    opacity: 0.5;
    background: none;
    width: auto;
    height: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域 */
.hero {
    margin-top: 0;
    min-height: 100vh;
    height: auto;
    padding: 0;
    background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../img/navBg.webp') center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 40px;
    gap: 30px;
}

.hero-left {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInLeft 1s ease-out forwards;
}

.phone-mockup {
    max-width: 100%;
    width: 260px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    animation: float 3s ease-in-out infinite;
}

.hero-right {
    flex: 0 0 450px;
    text-align: center;
    animation: fadeInRight 1s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 60px;
    font-weight: 600;
    /* margin-bottom: 20px; */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 8px;
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: 0;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    letter-spacing: 2px;
}

.hero p {
    margin-bottom: 0px;
}

.qr-section {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(80, 70, 60, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: fadeIn 1.5s ease-out forwards;
    margin-top: 30px;
}

.qr-code-box {
    width: 110px;
    height: 110px;
    background: white;
    border: none;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.qr-code-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.qr-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qr-logo-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.qr-logo-text {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.qr-description {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 48px;
    /* margin-bottom: 20px; */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.phone-mockup {
    position: absolute;
    left: 10%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 核心服务 */
.services {
    padding: 80px 20px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

.section-subtitle.small {
    font-size: 14px;
    color: #999;
}

.section-subtitle.large-margin {
    margin-bottom: 60px;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.service-card.animate:nth-child(1) { animation-delay: 0.1s; }
.service-card.animate:nth-child(2) { animation-delay: 0.2s; }
.service-card.animate:nth-child(3) { animation-delay: 0.3s; }
.service-card.animate:nth-child(4) { animation-delay: 0.4s; }
.service-card.animate:nth-child(5) { animation-delay: 0.5s; }
.service-card.animate:nth-child(6) { animation-delay: 0.6s; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a73e8;
}

/* 生态流程 */
.process {
    padding: 60px 20px;
    background: white;
}

.process-timeline {
    max-width: 1000px;
    margin: 30px auto;
    position: relative;
}

.timeline-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.timeline-path {
    stroke-dasharray: 8, 6;
    animation: dashAnimation 30s linear infinite;
}

@keyframes dashAnimation {
    to {
        stroke-dashoffset: -1000;
    }
}

.timeline-container {
    position: relative;
    z-index: 2;
}

.timeline-row {
    display: flex;
    align-items: flex-start;
    position: relative;
    justify-content: space-around;
}

.timeline-row-top {
    margin-bottom: 110px;
    padding-top: 10px;
    transform: translateX(20px);
}

.timeline-row-bottom {
    padding-bottom: 30px;
    transform: translateX(-100px);
}

.timeline-step {
    flex: 0 0 30%;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-step.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-row-top .timeline-step.animate:nth-child(1) { animation-delay: 0.1s; }
.timeline-row-top .timeline-step.animate:nth-child(2) { animation-delay: 0.3s; }
.timeline-row-top .timeline-step.animate:nth-child(3) { animation-delay: 0.5s; }
.timeline-row-bottom .timeline-step.animate:nth-child(1) { animation-delay: 0.7s; }
.timeline-row-bottom .timeline-step.animate:nth-child(2) { animation-delay: 0.9s; }
.timeline-row-bottom .timeline-step.animate:nth-child(3) { animation-delay: 1.1s; }

.step-number {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    letter-spacing: 4px;
}

.timeline-step h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-step p {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
}

/* 设计案例 */
.cases {
    padding: 80px 20px;
    background: #f8f9fa;
}

.cases-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
}

.case-card.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.case-card.animate:nth-child(1) { animation-delay: 0.1s; }
.case-card.animate:nth-child(2) { animation-delay: 0.2s; }
.case-card.animate:nth-child(3) { animation-delay: 0.3s; }
.case-card.animate:nth-child(4) { animation-delay: 0.4s; }

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.case-info h3 {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
    margin: 0;
}

.case-arrow {
    font-size: 20px;
    color: #999;
    flex-shrink: 0;
    transition: transform 0.3s, color 0.3s;
}

.case-card:hover .case-arrow {
    transform: translateX(5px);
    color: #1a73e8;
}

/* 联系我们 */
.contact {
    padding: 80px 20px;
    background: white;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.app-preview {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.app-preview img {
    width: 100%;
    max-width: 500px;
    height: auto;
    animation: fadeInLeft 1s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-form {
    animation: fadeInRight 1s ease-out forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #1557b0;
}

/* 页脚 */
.footer {
    background: #f5f5f5;
    color: #666;
    padding: 40px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 40px;
}

.footer-left {
    display: flex;
    gap: 60px;
    flex: 1;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    font-size: 13px;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #1a73e8;
}

.footer-right {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-contact-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.contact-person {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.contact-phone {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    letter-spacing: 1px;
}

.footer-qr-group {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.footer-qr-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qr-code-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-label {
    font-size: 12px;
    margin: 0;
    color: #999;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    background: #1a73e8;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    justify-content: center;
}

.logo-image {
    width: 45px;
    height: 45px;
}

.brand-label {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.copyright {
    text-align: center;
    padding: 30px 20px 20px;
    border-top: 1px solid #ddd;
    color: #999;
    background: #f5f5f5;
}

.copyright p {
    font-size: 13px;
    margin: 8px 0;
    line-height: 1.6;
}

.beian-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.beian-link:hover {
    color: #1a73e8;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0 20px;
    }

    .logo-text {
        font-size: 13px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 58px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 15px 0;
    }

    .nav-menu a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .hero-left {
        flex: none;
        order: 2;
    }

    .hero-right {
        flex: none;
        order: 1;
        text-align: center;
    }

    .phone-mockup {
        width: 250px;
    }

    .qr-section {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-left {
        flex-direction: column;
        gap: 30px;
    }

    .footer-right {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-qr-group {
        flex-wrap: wrap;
    }

    .timeline-svg {
        display: none;
    }

    .timeline-row {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 40px;
        padding: 0 !important;
        transform: none !important;
        align-items: center;
    }

    .timeline-step {
        text-align: center;
    }

    .timeline-row::before,
    .timeline-row::after {
        display: none;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 500px;
        height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .hero-left {
        order: 2;
    }

    .hero-right {
        order: 1;
        text-align: center;
    }

    .phone-mockup {
        width: 220px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .qr-section {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .qr-code-box {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
