/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fefefe;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #ff3366;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
    text-align: center;
}

.btn:hover {
    background-color: #e6004c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #ff3366;
    color: #ff3366;
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: #ff3366;
    color: white;
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #ff3366, #33ccff);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 70px;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ff3366;
    text-decoration: none;
    z-index: 1001;
}

.logo i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.logo span {
    font-size: 1.5rem;
}

/* 桌面端导航链接 */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff3366;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff3366;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #1a1a2e;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a1a2e;
    margin: 5px auto;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    padding: 20px;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    width: 100%;
}

.mobile-menu li {
    margin-bottom: 25px;
}

.mobile-menu a {
    font-size: 1.8rem;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 10px 0;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #ff3366;
    transform: scale(1.05);
}

/* 英雄区域 */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    max-width: 100%;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a2e;
    font-weight: 800;
}

.hero h1 span {
    color: #ff3366;
    position: relative;
}

.hero h1 span:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(255, 51, 102, 0.2);
    z-index: -1;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-btns .btn {
    flex: 1;
    min-width: 160px;
    padding: 16px 24px;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    width: 100%;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a2e;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background-color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ff3366;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.about-visual {
    width: 100%;
    height: 300px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-visual:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff3366, #33ccff);
    opacity: 0.8;
    z-index: 1;
}

.visual-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
    width: 90%;
}

.visual-content i {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.visual-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

/* 产品展示 */
.products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-icon {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    color: #ff3366;
    font-size: 3.5rem;
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-weight: 700;
}

.product-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-tag {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(51, 204, 255, 0.1);
    color: #33ccff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 联系信息 */
.contact {
    padding: 80px 0;
    background-color: #fff;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    width: 100%;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a2e;
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.7;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: rgba(255, 51, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #ff3366;
    font-size: 1.2rem;
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #1a1a2e;
    font-weight: 700;
}

.contact-form {
    width: 100%;
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.contact-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff3366;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fefefe;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #ff3366;
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
}

/* 页脚 */
.footer {
    background-color: #1a1a2e;
    color: white;
    padding: 60px 0 25px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 100%;
}

.footer-logo .logo {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 100%;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links {
    width: 100%;
}

.footer-links h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ff3366;
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background-color: #ff3366;
    transform: translateY(-3px);
}

/* 版权信息 */
.copyright {
    text-align: center;
    padding-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    margin-bottom: 5px;
    line-height: 1.5;  /* 添加这一行 */
}

.copyright a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: #FF3366;
}

.copyright img {
    vertical-align: middle;
    margin-right: 5px;
}

/* 访客计数器样式 */
.visitor-counter {
    text-align: center;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    line-height: 1.5;
}

.visitor-count {
    color: #ff3366;
    font-weight: 700;
    font-size: 1rem;
}


/* 响应式设计 */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-content {
        flex-direction: row;
        align-items: stretch;
    }

    .about-text,
    .about-visual,
    .contact-info,
    .contact-form {
        width: 50%;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .footer-logo {
        width: 30%;
        flex: 0 0 30%;
    }

    .footer-links {
        width: 30%;
        flex: 0 0 30%;
        min-width: 150px;
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .section-title h2 {
        font-size: 2.8rem;
    }

    .about-visual {
        height: 400px;
    }

    .footer-content {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .footer-logo {
        width: 40%;
        flex: 0 0 40%;
    }

    .footer-links {
        width: 25%;
        flex: 0 0 25%;
    }
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .hero-btns {
        gap: 12px;
        margin-top: 20px;
    }

    .hero-btns .btn {
        width: 100%;
        min-width: 100%;
        padding: 14px 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

    .contact-form {
        padding: 20px;
    }
}