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

:root {
    --primary-color: #007dfc;
    --primary-dark: #0066cc;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 单页面滚动section */
.section {
    scroll-margin-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}


.logo a:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    position: relative;
}

.nav-menu::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: var(--indicator-left, 0);
    width: var(--indicator-width, 0);
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                left 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 125, 252, 0.3);
}

.nav-menu.has-active::after {
    opacity: 1;
}

.nav-menu a,
.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-menu a:hover,
.nav-link:hover {
    color: var(--primary-color);
}

.nav-menu a.active,
.nav-link.active {
    color: var(--primary-color);
}

/* 移动端不使用滑动指示器 */
@media (max-width: 768px) {
    .nav-menu::after {
        display: none;
    }
    
    .nav-menu a.active::after,
    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--primary-color);
        border-radius: 2px;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #007dfc 0%, #0056b3 100%);
    color: white;
    padding: 2.5rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-qrcode {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    justify-self: end;
}

.hero-qrcode .qr-code-img {
    width: 200px;
    height: 200px;
    border-radius: 0;
    display: block;
    margin: 0 auto 1rem;
    object-fit: contain;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-qrcode p {
    color: white;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* 区块标题 */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* 功能卡片 */
.features {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 0.75rem;
    background: transparent;
    border-radius: 0;
    color: #4b5563;
    transition: transform 0.3s ease;
}

.feature-icon svg {
    width: 80px;
    height: 80px;
    stroke: #4b5563;
    stroke-width: 1.5;
}

.feature-card:hover .feature-icon {
    transform: translateY(-5px) scale(1.05);
    color: var(--primary-color);
}

.feature-card:hover .feature-icon svg {
    stroke: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 优势区块 */
.advantages {
    padding: 5rem 2rem;
}

.advantages-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.advantage-item {
    text-align: center;
}

.advantage-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.advantage-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.advantage-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 用户评价 */
.testimonials {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.testimonials-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.testimonials-swiper {
    padding: 2rem 0 4rem;
    overflow: hidden;
}

.testimonials-swiper .swiper-wrapper {
    align-items: stretch;
}

.testimonials-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    width: 100%;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: #6b7280;
}

.author-avatar svg {
    width: 28px;
    height: 28px;
    stroke: #6b7280;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-role {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Swiper 样式自定义 */
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.testimonials-swiper .swiper-button-next:after,
.testimonials-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.testimonials-swiper .swiper-pagination-bullet {
    background: #d1d5db;
    opacity: 1;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-contact {
    max-width: 600px;
    width: 100%;
    padding: 2rem;
}

.footer-list {
    list-style: none;
    text-align: center;
}

.footer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-contact .section-title {
    color: white;
    margin-bottom: 2rem;
}

.footer-contact .section-title::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.beian-info {
    font-size: 0.9rem;
}

.beian-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.beian-info a:hover {
    color: white;
    text-decoration: underline;
}

/* 响应式设计 - 平板 */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .logo-img {
        height: 32px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        box-shadow: var(--shadow);
        padding: 1.5rem 0;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0.75rem 0;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger {
        display: flex;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 2rem 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-qrcode {
        justify-self: center;
    }

    .hero-qrcode .qr-code-img {
        width: 160px;
        height: 160px;
    }

    .hero-qrcode p {
        font-size: 0.9rem;
    }

    .section {
        scroll-margin-top: 60px;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .features {
        padding: 3rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }

    .feature-icon svg {
        width: 45px;
        height: 45px;
    }

    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .feature-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .advantages {
        padding: 3rem 1rem;
    }

    .advantages-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .advantage-number {
        font-size: 2.5rem;
    }

    .advantage-item h3 {
        font-size: 1.25rem;
    }

    .advantage-item p {
        font-size: 0.9rem;
    }

    .testimonials {
        padding: 3rem 1rem;
    }

    .testimonials-wrapper {
        padding: 1rem 0;
    }

    .testimonials-swiper {
        padding: 1rem 0 3rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-stars {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .author-avatar svg {
        width: 24px;
        height: 24px;
    }

    .author-name {
        font-size: 0.95rem;
    }

    .author-role {
        font-size: 0.85rem;
    }

    .testimonials-swiper .swiper-button-next,
    .testimonials-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .testimonials-swiper .swiper-button-next:after,
    .testimonials-swiper .swiper-button-prev:after {
        font-size: 14px;
    }

    .testimonials-swiper .swiper-pagination {
        bottom: 10px;
    }

    .testimonials-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .testimonials-swiper .swiper-pagination-bullet-active {
        width: 20px;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-contact {
        padding: 1.5rem;
    }

    .footer-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-item {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .beian-info {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 15px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    a {
        -webkit-tap-highlight-color: rgba(0, 125, 252, 0.1);
    }

    .feature-card,
    .testimonial-card {
        -webkit-tap-highlight-color: transparent;
    }

    .footer-section a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* 极小屏幕优化 */
@media (max-width: 360px) {
    .features-grid {
        gap: 0.75rem;
    }

    .feature-card {
        padding: 0.75rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon svg {
        width: 38px;
        height: 38px;
    }

    .feature-card h3 {
        font-size: 0.9rem;
    }

    .feature-card p {
        font-size: 0.75rem;
    }
}

