/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo h1 {
    color: #ff6b00;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b00;
}

/* 首页横幅样式 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 120px 20px 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 2rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #ff6b00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e65100;
}

/* 关于我们样式 */
.about {
    padding: 2rem 0;
    background-color: #f8f9fa;
    position: relative;
    margin-bottom: 2rem;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-list {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.about-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.1rem;
}

.about-list li:before {
    content: "•";
    color: #ff6b00;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 产品服务样式 */
.services {
    background-color: #fff;
    position: relative;
    margin-bottom: 2rem;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card i {
    font-size: 2rem;
    color: #ff6b00;
    margin-bottom: 1rem;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* 联系我们样式 */
.contact {
    padding: 2rem 0;
    background-color: #f8f9fa;
    position: relative;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 800px;
    padding: 0 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.info-item i {
    font-size: 1.5rem;
    color: #ff6b00;
}

.info-item p {
    margin: 0;
    color: #333;
}

.info-item a {
    color: #ff6b00;
    text-decoration: none;
}

.info-item a:hover {
    color: #e65100;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0 1rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-info h3 {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b00;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ff6b00;
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
    z-index: 1000;
    user-select: none;
}

.back-to-top:hover {
    background-color: #e65100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.back-to-top.visible {
    display: flex;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0.8rem 15px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 35px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 15px 40px;
    }

    .about-content {
        padding: 0 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .qr-code {
        width: 180px;
        height: 180px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
}

/* 添加平滑滚动 */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

/* 优化触摸体验 */
@media (hover: none) {
    .service-card:active {
        transform: none;
    }
}

/* 标题样式统一 */
section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #ff6b00, #ff8f40);
    border-radius: 3px;
}

/* QR Code Popup Dialog */
.qr-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.qr-popup.active {
    display: flex;
}

/* 当弹窗激活时禁止body滚动 */
body.popup-active {
    overflow-y: hidden;
    position: relative;
    width: 100%;
}

.qr-popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    max-width: 90%;
    width: 300px;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.qr-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

.qr-popup img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 1rem 0;
}

.qr-popup p {
    margin: 0.5rem 0;
    color: #333;
}

.contact-trigger {
    cursor: pointer;
} 