* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #67C23A;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 导航栏 */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 3rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #4A90E2 100%);
    color: var(--white);
    padding: 200px 20px 150px;
    text-align: center;
    margin-top: 60px;
    perspective: 1000px;
    overflow: hidden;
    position: relative;
}

/* 3D冰块装饰 */
.hero-3d {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.ice-cube-3d {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 10px;
    position: relative;
    transform-style: preserve-3d;
    animation: float3D 3s ease-in-out infinite;
}

.ice-cube-3d::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 100%);
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 10px;
    transform: rotateX(45deg);
}

.ice-cube-3d::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    transform: rotateY(-45deg);
}

@keyframes float3D {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateX(10deg) rotateY(10deg);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s backwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 产品展示 */
.products {
    padding: 100px 20px;
    background-color: var(--bg-light);
    text-align: center;
    perspective: 2000px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    width: 320px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.product-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--shadow-3d);
}

.product-card.featured {
    border: 2px solid var(--secondary-color);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
}

/* 3D制冰机图片 */
.product-image-3d {
    width: 200px;
    height: 220px;
    margin: 0 auto 30px;
    perspective: 1000px;
}

.ice-maker-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3D 8s linear infinite;
}

@keyframes rotate3D {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.ice-maker-front {
    position: absolute;
    width: 120px;
    height: 180px;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    border-radius: 15px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateZ(30px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.ice-maker-side {
    position: absolute;
    width: 60px;
    height: 180px;
    background: linear-gradient(135deg, #357ABD 0%, #4A90E2 100%);
    border-radius: 0 15px 15px 0;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) rotateY(90deg) translateZ(30px);
    box-shadow: 0 5px 15px rgba(53, 122, 189, 0.4);
}

.ice-maker-top {
    position: absolute;
    width: 120px;
    height: 60px;
    background: linear-gradient(135deg, #5BA3F5 0%, #7BB8F7 100%);
    border-radius: 15px;
    left: 50%;
    top: 0;
    transform: translateX(-50%) rotateX(90deg) translateZ(0px);
    box-shadow: 0 5px 15px rgba(91, 163, 245, 0.4);
}

.ice-cube-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.ice-cube-small {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 5px;
    animation: floatIceCube 2s ease-in-out infinite;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(255,255,255,0.5);
}

.ice-cube-small:nth-child(1) {
    left: 30%;
    top: 65%;
}

.ice-cube-small:nth-child(2) {
    left: 70%;
    top: 62%;
}

.ice-cube-small:nth-child(3) {
    left: 50%;
    top: 75%;
}

.ice-cube-small:nth-child(4) {
    left: 35%;
    top: 70%;
}

.ice-cube-small:nth-child(5) {
    left: 65%;
    top: 68%;
}

@keyframes floatIceCube {
    0%, 100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotateX(15deg);
        opacity: 1;
    }
}

.smart-indicator {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #67C23A;
    border-radius: 50%;
    top: 30px;
    right: 35px;
    box-shadow: 0 0 20px rgba(103, 194, 58, 0.8);
    animation: pulse 2s ease-in-out infinite;
    transform: translateZ(31px);
}

@keyframes pulse {
    0%, 100% {
        transform: translateZ(31px) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateZ(31px) scale(1.3);
        opacity: 0.7;
    }
}

/* 商用款更大的尺寸 */
.ice-maker-3d.commercial .ice-maker-front {
    width: 140px;
    height: 200px;
}

.ice-maker-3d.commercial .ice-maker-side {
    width: 70px;
    height: 200px;
}

.ice-maker-3d.commercial .ice-maker-top {
    width: 140px;
    height: 70px;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background-color: #357ABD;
    transform: scale(1.02);
}

/* 产品特点 */
.features {
    padding: 100px 20px;
    text-align: center;
}

.feature-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.feature-item {
    width: 280px;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.feature-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 关于我们 */
.about {
    padding: 100px 20px;
    background-color: var(--bg-light);
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 60px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.info-item {
    text-align: center;
    background: var(--white);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.info-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-3d);
}

.info-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(74, 144, 226, 0.2);
}

.info-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* 联系我们 */
.contact {
    padding: 100px 20px;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.contact-item {
    width: 250px;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.contact-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--shadow-3d);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.copyright {
    margin-top: 1rem;
    opacity: 0.6;
}

.footer-address {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .product-grid {
        gap: 20px;
    }
    
    .feature-grid {
        gap: 30px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        gap: 0;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .logo {
        margin-right: auto;
    }

    .navbar .container {
        justify-content: space-between;
    }

    .hero {
        padding: 180px 20px 130px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-3d {
        gap: 15px;
        margin-bottom: 30px;
    }

    .ice-cube-3d {
        width: 45px;
        height: 45px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .product-grid {
        margin-top: 40px;
    }

    .product-card {
        width: 100%;
        max-width: 340px;
        padding: 30px;
    }

    .product-image-3d {
        width: 160px;
        height: 180px;
        margin-bottom: 20px;
    }

    .feature-grid {
        gap: 20px;
        margin-top: 40px;
    }

    .feature-item {
        width: 100%;
        max-width: 280px;
        padding: 25px;
    }

    .about-info {
        gap: 20px;
    }

    .info-item {
        width: 45%;
        min-width: 140px;
        padding: 25px 20px;
    }

    .info-number {
        font-size: 2rem;
    }

    .contact-info {
        gap: 20px;
        margin-top: 40px;
    }

    .contact-item {
        width: 100%;
        max-width: 280px;
        padding: 25px;
    }

    .products,
    .features,
    .about,
    .contact {
        padding: 70px 20px;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
    .hero {
        padding: 150px 15px 100px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .hero-3d {
        gap: 10px;
    }

    .ice-cube-3d {
        width: 35px;
        height: 35px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .product-card {
        padding: 25px 20px;
    }

    .product-card h3 {
        font-size: 1.3rem;
    }

    .product-card p {
        font-size: 0.95rem;
    }

    .price {
        font-size: 1.6rem;
    }

    .product-image-3d {
        width: 140px;
        height: 160px;
    }

    .feature-item {
        width: 100%;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .info-item {
        width: 100%;
        min-width: auto;
    }

    .contact-item {
        padding: 20px;
    }

    .contact-item h3 {
        font-size: 1.2rem;
    }

    .products,
    .features,
    .about,
    .contact {
        padding: 50px 15px;
    }

    footer {
        padding: 40px 15px;
    }

    .footer-logo {
        font-size: 1.6rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .product-card h3,
    .contact-item h3,
    .feature-item h3 {
        font-size: 1.1rem;
    }

    .info-number {
        font-size: 1.8rem;
    }
}
