:root {
    --primary-gradient: linear-gradient(135deg, #6caf79 0%, #87a7dc 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    background: #f8fafc;
}

/* 固定浮动按钮 */
.float-button {
    position: fixed !important;
    right: 2%;
    top: 10%;
    z-index: 99999 !important;
    width: 70px;
    height: 50px;
    border-radius: 20%;
    background-color: #4894e1;
    color: white;
    text-decoration: none;
    font-size: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.float-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* 容器样式 - 自适应居中 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* 服务标题和按钮容器 */
.services-header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.services-title-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.8rem;
}

.button-other {
    flex-shrink: 0;
}

a.button-other-a {
    display: inline-flex;
    padding: 0;
    transform: translateY(-3px);
    text-decoration: none;
}

.button-other-btn {
    font-family: 宋体;
    font-size: 14px;
    background-color: transparent;
    color: #4d92e1;
    border: 1px solid #4d92e1;
    border-radius: 4px;
    padding: 0.25rem 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: normal;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.button-other-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(77, 146, 225, 0.3);
    background-color: #4d92e1;
    color: white;
}

/* 渐变头部 */
.gradient-header {
    background: var(--primary-gradient);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.company-logo {
    max-width: 120px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.company-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 轮播图 */
.carousel {
    position: relative;
    overflow: hidden;
    height: calc(100vh - 70px);
    min-height: 400px;
    margin-top: -2px;
    top: 70px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    position: relative;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 5rem;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 0.8s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10;
}

.carousel-btn i {
    color: white;
    font-size: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 2rem; }
.carousel-btn.next { right: 2rem; }

/* 服务区域 */
.services {
    padding: 4rem 0;
    background: white;
}

.services-title {
    font-size: 3rem;
    margin: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease infinite;
    background-size: 200% 200%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: #ebf0fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-icon i {
    color: #4d7fec;
    font-size: 2rem;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.service-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 产品轮播 */
.products-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 1.5rem;
}

.products-carousel-inner {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-carousel-item {
    flex: 0 0 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: none;
}

.products-carousel-item.active {
    opacity: 100;
    display: block;
}

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

.products-carousel-indicators {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.products-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-carousel-indicator.active {
    background: var(--text-primary);
    transform: scale(1.2);
}

.products-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.products-carousel-btn i {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.products-carousel-btn:hover {
    background: rgba(0,0,0,0.1);
    transform: translateY(-50%) scale(1.1);
}

.products-carousel-btn.prev { left: 5px; }
.products-carousel-btn.next { right: 5px; }

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 页脚 */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-list i {
    color: #4d92e1;
}

.footer-list a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4299e1;
    transition: width 0.3s ease;
}

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

.footer-list a:hover::after {
    width: 100%;
}

.copyright {
    color: #718096;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* PDF按钮样式 */
.pdf-button {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    color: #0e70ee;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    border: 1px solid #0e70ee;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
    font-family: sans-serif;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.pdf-button:hover {
    opacity: 1;
    background: #0e70ee;
    color: white;
}

.pdf-button-a {
    transition: transform 0.3s ease;
    border-radius: 5px;
    display: inline-flex;
    text-decoration: none;
}

.pdf-button-a:hover {
    transform: scale(1.05);
}

/* 媒体查询 - 平板设备 */
@media (max-width: 1024px) {
    .carousel-overlay {
        padding: 0 3rem;
    }
    .carousel-title {
        font-size: 2.5rem;
    }
    .services-title {
        font-size: 2.2rem;
    }
}

/* 媒体查询 - 手机设备 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .company-logo {
        max-width: 100px;
        height: 35px;
    }
    
    .company-title {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .carousel {
        height: 400px;
    }
    
    .carousel-overlay {
        padding: 0 1.5rem;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn i {
        font-size: 1.5rem;
    }
    
    .carousel-btn.prev { left: 1rem; }
    .carousel-btn.next { right: 1rem; }
    
    .services {
        padding: 2.5rem 0;
    }
    
    .services-title {
        font-size: 1.8rem;
    }
    
    .services-header {
        justify-content: center;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .product-card img {
        height: 160px;
    }
    
    .products-carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .footer-list li {
        justify-content: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 媒体查询 - 小屏手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .carousel {
        height: 300px;
    }
    
    .carousel-title {
        font-size: 1.4rem;
    }
    
    .carousel-overlay {
        padding: 0 1rem;
    }
    
    .services-title {
        font-size: 1.5rem;
    }
    
    .services-grid {
        gap: 1.2rem;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .products-grid {
        gap: 1.2rem;
    }
    
    .product-card img {
        height: 140px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .float-button {
        right: 3%;
        width: 60px;
        height: 45px;
        font-size: 16px;
    }
    
    .button-other-btn {
        font-size: 14px;
        padding: 0.4rem 1rem;
    }
}