/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 可点击元素光标样式 */
a, button, .nav-link, .carousel-btn, .indicator, .download-btn, .mobile-menu-toggle, .feature-item, .printer-container {
    cursor: pointer;
}

/* 禁用文本选择 */
button, .nav-link, .carousel-btn, .indicator, .download-btn, .download-item, .feature-item {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题栏样式 */
.header {
    background: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 15px 20px;*/
}

.brand-name{
    white-space: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    padding: 4px;

}

.logo-img{
    width: 86px;
    height: 86px;
}

.flame-icon {
    font-size: 28px;
    margin-right: 10px;
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-link {
    display: inline-block;
    height: 86px;
    line-height: 86px;
    padding: 0 20px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    font-size: 16px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #FFCA42;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: #FFCA42;
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 轮播图样式 */
.hero-section {
    height: 990px;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    position: relative;
    overflow: hidden;
    margin-top: 94px;
}

.carousel-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-slide {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    /*padding: 0 20px;*/
    gap: 50px;
    height: 100%;
}

.slide-img{
    height: 100%;
    margin: auto
}


.product-info {
    flex: 1;
    color: white;
    z-index: 2;
}

.product-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInLeft 1s ease-out;
}

.product-subtitle {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.product-specs {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffd700;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.product-tagline {
    font-size: 1.2rem;
    opacity: 0.8;
    animation: slideInLeft 1s ease-out 0.6s both;
}

.product-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out 0.8s both;
}

.printer-container {
    position: relative;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.printer-container:hover {
    transform: perspective(1000px) rotateY(-10deg) scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.printer {
    position: relative;
    width: 300px;
    height: 200px;
}

.printer-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.printer-body::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 30px;
    background: #333;
    border-radius: 5px;
}

.printer-body::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #ff6b35;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.printer-label {
    position: absolute;
    top: 50%;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 200px;
    height: 100px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: printOut 2s ease-in-out infinite;
}

@keyframes printOut {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(20px); }
}

.label-content {
    padding: 10px;
    font-size: 12px;
    color: #333;
}

.label-header {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.barcode {
    font-family: monospace;
    text-align: center;
    margin: 5px 0;
    letter-spacing: 2px;
}

.tracking {
    font-size: 10px;
    text-align: center;
    word-break: break-all;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
    will-change: transform;
    transform: translateZ(0);
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 100px;
    height: 10px;
    /*border-radius: 50%;*/
    background: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    will-change: transform;
    transform: translateZ(0);
}

.indicator.active {
    background: #FF7A00;
    /*transform: scale(1.2);*/
}

.indicator:hover {
    /*background: rgba(255,255,255,0.8);*/
    /*transform: scale(1.1);*/
}

/* Banner样式 */
.banner-section {
    /*padding: 80px 0;*/
    background: #f8f9fa;
}

.banner-content{
    width: 1920px;
    margin: auto;
}

.banner-img{
    width: 1920px;
    height: 420px;
}



.banner-content {
    text-align: center;
}

.banner-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.banner-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    will-change: transform;
    transform: translateZ(0);
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 下载区域样式 */
.download-section {
    padding: 80px 0;
    background: white;
    width: 1420px;
    margin: auto;
    padding-top: 30px;
}

.download-section .container{
    width: 1440px;
    padding: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

.download-category {
    margin-bottom: 60px;
    width: 1440px;
    padding-top: 30px
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}
.category-header-icon{
    width: 50px;
    height: 50px;
}

.category-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    gap: 120px 100px;
    padding-top: 40px;
}

.download-item{
    text-align: center;
    overflow: visible;
}
.download-item-box {
    /*background: #f8f9fa;*/
    background: #fff;
    /*padding: 30px 20px;*/
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    will-change: transform;
    transform: translateZ(0);
    border-color: #FFF;
    box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.2);
    width: 200px;
    height: 200px;
}

.download-item-box:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #D7D7D7;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.download-icon {
    width: 180px;
    height: 180px;
    padding: 10px;
}

.download-title{
    padding-top: 35px;
}

.windows-icon {
    background: linear-gradient(135deg, #0078d4, #106ebe);
}

.macos-icon {
    background: linear-gradient(135deg, #000, #333);
}

.linux-icon {
    background: linear-gradient(135deg, #fcc624, #f7931e);
}

.app-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.bartender-icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.windows-logo {
    width: 40px;
    height: 40px;
    background: white;
    position: relative;
}

.windows-logo::before,
.windows-logo::after {
    content: '';
    position: absolute;
    background: #0078d4;
}

.windows-logo::before {
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
}

.windows-logo::after {
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
}

.apple-logo {
    width: 30px;
    height: 35px;
    background: white;
    border-radius: 5px 5px 8px 8px;
    position: relative;
}

.apple-logo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    background: white;
    border-radius: 50% 50% 0 0;
}

.linux-logo {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.linux-logo::before {
    content: '🐧';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.app-logo,
.bartender-logo {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.download-item h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.4;
}

.download-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    will-change: transform;
    transform: translateZ(0);
}

.download-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* 底部样式 */
.footer {
    background: #fff;
    color: white;
    padding: 60px 0;
}

.footer .container{
    width: 1280px;
    border-top: 1px solid #bbb;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 40px;
    padding: 0 280px;
    color: #000;;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #000;;
}

.contact-item {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-item strong {
    color: #000;
}

.qr-container {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.3);*/
}

.qr-placeholder {
    text-align: center;
}

.qrcode {
    width: 200px;
    height: 200px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 遮罩层（通用） */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 弹窗主体 */
.modal {
    background: white;
    width: 90%;
    max-width: 800px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal h2 {
    margin-bottom: 15px;
    color: #333;
}

.modal p {
    color: #666;
    line-height: 1.6;
}

/* 显示状态 */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal .modal-header{
    width: 100%;
    display: flex;
    flex-direction: row;
    line-height: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dddddd;
}
.modal .modal-header h3{
    flex-grow: 1;
    font-size: 24px;
}
.modal .modal-header .icon3{
    cursor: pointer;
    width: 25px;
    height: 25px;
}

.modal .modal-content{
    height: 50vh;
    overflow: auto;

}

.modal .modal-content-row{
    width: 100%;
    display: flex;
    flex-direction: row;
    line-height: 60px;
    border-bottom: 1px solid #dddddd;
    align-items: center;
}

.modal .modal-content-row a{
    line-height: 0;
}

.modal .modal-content-row .icon1,.icon2{
    width: 25px;
    height: 25px;
    margin: 10px;
}

.modal .modal-content-row .name{
    flex-grow: 1;
}


/* 动画效果 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {

}

@media (max-width: 480px) {
    .nav-content{
        display: none;
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 68px;
        left: 0;
        background: rgba(0,0,0,0.5)
    }
    .nav-list {
        width: 50%;
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        background: black;
        flex-direction: column;
        padding: 0px;
    }
    .nav-list li {
        width: 100%;
    }

    .nav-content.active{
        display: flex;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-link{
        width: 100%;
        display: inline-block;
        height: 52px;
        line-height: 50px;
        padding: 0 0px;
        text-decoration: none;
        color: white;
        font-weight: 500;
        position: relative;
        transition: color 0.3s ease;
        font-size: 16px;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-link.active::after {
        bottom: -2px;
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .product-title {
        font-size: 2.5rem;
    }

    .product-subtitle {
        font-size: 1.5rem;
    }

    .printer {
        width: 250px;
        height: 150px;
    }

    .printer-label {
        width: 150px;
        height: 80px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .carousel-controls {
        padding: 0 15px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }


    .container {
        padding: 0 15px;
        max-width: initial;
    }

    .logo-img{
        width: 60px;
        height: 60px;
    }

    .hero-section{
        width: 100%;
        height: 190px;
        margin-top: 68px;
    }

    .slide-img{
        width: 100%;
        margin: auto
    }

    .indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.8);
        cursor: pointer;
        transition: all 0.3s ease;
        user-select: none;
        will-change: transform;
        transform: translateZ(0);
    }

    .indicator.active{
        background: #333333;
    }

    .carousel-indicators{
        bottom: 20px;
    }

    .banner-img{
        width: 100%;
        height: 82px;
    }

    .banner-content{
        width: 100%;
        margin: auto;
    }

    /* 下载区域样式 */
    .download-section {
        padding: 80px 0;
        background: white;
        width: 100%;
        padding-top: 0;
        padding-bottom: 0;
    }

    .download-section .container{
        width: 100%;
        padding: 0;
    }

    .section-header {
        text-align: center;
        margin-bottom: 60px;
    }

    .section-header h2 {
        font-size: 2.5rem;
        color: #2c3e50;
        position: relative;
        display: inline-block;
    }

    .section-header h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(90deg, #ff6b35, #f7931e);
        border-radius: 2px;
    }

    .download-category {
        width: 100%;
        padding: 18px;
        padding-top: 15px;
        margin-bottom: 0px;
    }

    .category-header {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        gap: 15px;
    }

    .category-header-icon{
        width: 25px;
        height: 25px;
    }

    .category-header h3 {
        font-size: 1.2rem;
        color: #2c3e50;
    }

    .download-grid {
        margin: 0 auto;
        grid-template-columns: repeat(2, minmax(105px, 1fr));
        gap: 0 20px;
        padding-top: 0px;
    }

    .download-item{
        margin: 0 auto;
        text-align: center;
        overflow: visible;
    }
    .download-item-box {
        background: #fff;
        border-radius: 15px;
        text-align: center;
        transition: all 0.3s ease;
        will-change: transform;
        transform: translateZ(0);
        border-color: #FFF;
        box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.2);
        width: 105px;
        height: 100px;
        margin: auto;
    }

    .download-icon {
        width: 90px;
        height: 90px;
        padding: 5px;
    }

    .download-item h4 {
        font-size: 14px;
        padding-top: 12px;
        margin-bottom: 20px;
        color: #2c3e50;
        line-height: 1.4;
    }

    /* 底部样式 */
    .footer {
        background: #fff;
        color: white;
        padding: 15px 18px;
    }

    .footer .container{
        width: 100%;
        border-top: 3px solid #bbb;
    }

    .footer-content {
        align-items: center;
        margin-top: 50px;
        margin-bottom: 40px;
        padding: 0 20px;
        color: #000;;
    }

    .contact-info h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        color: #000;;
    }

    .contact-item {
        margin-bottom: 10px;
        font-size: 1em;
    }

    .qr-container {
        width: 100px;
        height: 100px;
        background: white;
    }

    .qr-placeholder {
        text-align: center;
    }

    .qrcode {
        width: 100px;
        height: 100px;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid #34495e;
        color: #bdc3c7;
    }

    .modal {
        padding: 20px;
    }
    .modal .modal-header h3{
        font-size: 18px;
    }
    .modal .modal-header .icon3{
        cursor: pointer;
        width: 20px;
        height: 20px;
    }

    .modal .modal-content-row{
        line-height: 50px;
    }
}

/* 滚动动画 - 优化避免闪动 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    will-change: opacity, transform;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 防止动画闪动的优化 */
* {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
}

/* 优化过渡性能 - 确保所有动画元素都有硬件加速 */
.feature-item, .download-item, .printer-container, .carousel-btn, .indicator, .download-btn {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* 防止动画闪动的关键优化 */
.feature-item, .download-item, .download-btn, .carousel-btn, .indicator {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
