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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

/* Scrolled Header */
header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 15px 0;
}

header.scrolled h1 {
    font-size: 24px;
    transition: font-size 0.3s ease;
}

header.scrolled nav ul li a {
    font-size: 15px;
    transition: font-size 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

header h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 0;
}

nav ul li a:hover {
    color: #3498db;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8) 0%, rgba(155, 89, 182, 0.8) 50%, rgba(241, 196, 15, 0.8) 100%), url('https://images.pexels.com/photos/160006/pexels-photo-160006.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&dpr=1') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 200px 0;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

/* Animated Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: backgroundAnimation 25s ease infinite;
}

@keyframes backgroundAnimation {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: scale(1.1) rotate(120deg);
        opacity: 0.9;
    }
    66% {
        transform: scale(0.9) rotate(240deg);
        opacity: 0.6;
    }
}

/* Floating Particles */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: float 20s linear infinite;
    opacity: 0.5;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-50px) rotate(360deg);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Hero Text Animation */
.hero h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7), 0 0 30px rgba(255,255,255,0.3);
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out 0.3s both;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.2);
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.6s both;
    opacity: 0.95;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(60px) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Enhanced Section Transitions */
.products, .about, .contact {
    position: relative;
    overflow: hidden;
}

.products::before,
.about::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(52, 152, 219, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

.products:hover::before,
.about:hover::before,
.contact:hover::before {
    opacity: 1;
}

/* Products Section */
.products {
    padding: 100px 0;
    background: #fff;
    position: relative;
}

.products h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 70px;
    font-size: 36px;
    font-weight: 700;
    position: relative;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

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

.product-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
    border: 3px solid transparent;
}

.product-item:hover {
    transform: translateY(-20px) rotateX(8deg) rotateY(8deg) scale(1.05);
    box-shadow: 0 40px 80px rgba(0,0,0,0.25), 0 0 60px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
    animation: pulse-scale 0.5s ease-in-out;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.product-item:hover::before {
    opacity: 1;
}

.product-item a {
    text-decoration: none;
    color: #333;
    display: block;
    height: 100%;
    position: relative;
    z-index: 2;
}

.product-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-item:hover .product-image img {
    transform: scale(1.15) rotate(2deg);
}

/* Image Overlay Effects */
.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.product-item:hover .product-image::before,
.product-item:hover .product-image::after {
    opacity: 1;
}

.product-info {
    padding: 30px;
    position: relative;
    background: linear-gradient(to bottom, #fff 0%, #fafafa 100%);
    transition: all 0.4s ease;
}

.product-item:hover .product-info {
    background: linear-gradient(to bottom, #fff 0%, #f5f9ff 100%);
}

.product-item h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.product-item:hover h3 {
    color: #3498db;
    transform: translateX(10px);
}

.product-item h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    transition: width 0.3s ease;
}

.product-item:hover h3::after {
    width: 100%;
}

.product-item p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.product-item:hover p {
    color: #555;
    transform: translateX(5px);
}

/* Enhanced View Details Effect */
.product-item::after {
    content: '查看详情';
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 15px;
    color: #3498db;
    font-weight: 600;
    opacity: 0;
    transform: translateZ(20px) translateX(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.product-item:hover::after {
    opacity: 1;
    transform: translateZ(20px) translateX(0);
}

/* Glow Effect */
.product-item:hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
    opacity: 0.5;
    animation: glow 2s ease-out infinite;
}

@keyframes glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

@keyframes pulse-scale {
    0% {
        transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1);
    }
    50% {
        transform: translateY(-22px) rotateX(9deg) rotateY(9deg) scale(1.07);
    }
    100% {
        transform: translateY(-20px) rotateX(8deg) rotateY(8deg) scale(1.05);
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8f9fa;
    text-align: center;
    position: relative;
}

.about h2 {
    color: #2c3e50;
    margin-bottom: 70px;
    font-size: 36px;
    font-weight: 700;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

.about p {
    max-width: 900px;
    margin: 0 auto;
    color: #6c757d;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 400;
}

/* Staggered Animation for Product Cards */
.product-item:nth-child(1) { transition-delay: 0.1s; }
.product-item:nth-child(2) { transition-delay: 0.2s; }
.product-item:nth-child(3) { transition-delay: 0.3s; }
.product-item:nth-child(4) { transition-delay: 0.4s; }

/* Contact Item Hover Effects */
.contact-item {
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
}

.contact-item i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #3498db;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #2980b9;
}

.contact-item p {
    transition: color 0.3s ease;
}

.contact-item:hover p {
    color: #2c3e50;
    font-weight: 500;
}

/* Decorative Elements and Background Effects */

/* Abstract Background Shapes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(52, 152, 219, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(155, 89, 182, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(241, 196, 15, 0.02) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: backgroundShift 30s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, 10px) rotate(90deg);
    }
    50% {
        transform: translate(-10px, 10px) rotate(180deg);
    }
    75% {
        transform: translate(-10px, -10px) rotate(270deg);
    }
}

/* Decorative Lines */
.products::after,
.about::after,
.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(52, 152, 219, 0.2) 50%, transparent 100%);
    opacity: 0.5;
    z-index: 0;
}

/* Enhanced Header Decoration */
header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db 0%, #8e44ad 50%, #f1c40f 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

header.scrolled::before {
    opacity: 1;
}

/* Enhanced Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #fff;
    text-align: center;
    position: relative;
}

.contact h2 {
    color: #2c3e50;
    margin-bottom: 70px;
    font-size: 36px;
    font-weight: 700;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.contact-item p {
    margin: 15px 0 0;
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
}

.contact-item i {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.contact-item:hover i {
    opacity: 1;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 14px;
}

/* Product Detail Page */
.product-detail {
    padding: 100px 0;
    background: #fff;
    position: relative;
}

.product-detail .container {
    max-width: 1000px;
}

.product-detail h2 {
    color: #2c3e50;
    margin-bottom: 70px;
    font-size: 36px;
    font-weight: 700;
    position: relative;
    text-align: center;
}

.product-detail h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.product-detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    position: relative;
    background: #f8f9fa;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-detail-image:hover img {
    transform: scale(1.03);
}

.product-detail-info h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.product-detail-info p {
    margin-bottom: 30px;
    color: #6c757d;
    line-height: 2.0;
    font-size: 17px;
}

.product-detail-info h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.product-detail-info ul {
    margin-bottom: 30px;
    color: #6c757d;
    list-style: none;
    padding-left: 0;
}

.product-detail-info ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    font-size: 16px;
}

.product-detail-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 18px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    background: #3498db;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.back-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.back-btn i {
    margin-right: 8px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 20px;
        flex-direction: column;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}