/* 正文字体：优先 Noto Serif SC（若本机/系统有），否则思源宋体、通用衬线 */

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

body {
    font-family: 'Noto Serif SC', '思源宋体', serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 全站 Loading：点击菜单或页面加载时显示，加载完成后隐藏 */
.page-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(139, 69, 19, 0.2);
    border-top-color: #8B4513;
    border-radius: 50%;
    animation: page-loading-spin 0.9s linear infinite;
}

@keyframes page-loading-spin {
    to { transform: rotate(360deg); }
}

/* 回到顶部：悬浮右下角，随滚动显示/隐藏 */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top img {
    display: block;
    width: auto;
    height: auto;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top:hover {
    background: #8B4513;
}

.back-to-top:focus-visible {
    outline: 2px solid #8B4513;
    outline-offset: 3px;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: relative;
}

.header-phone {
    position: absolute;
    right: 12%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone-img {
    display: block;
    width: auto;
    height: 28px;
    object-fit: contain;
}

.header-phone-text {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.header-phone-num {
    font-weight: 700;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 118px;
}

.logo {
    margin: 0;
}

.logo img {
    height: 78px;
    width: auto;
}

.nav {
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 118px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #8B4513;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #8B4513;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    margin-top: 88px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    margin-bottom: 30px;
}

.hero-image {
    width: 100%;
    max-width: 1920px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.hero-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: #D4A574;
    text-align: right;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 400;
}

.hero-english {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
}

/* Product Carousel */
.product-carousel {
    width: 100%;
    position: relative;
    background: #fff;
}

.carousel-container {
    position: relative;
    width: 100%;
    background: #fff;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.carousel-slide {
    display: none;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.carousel-slide.active {
    display: flex;
}

.carousel-slide img {
    width: 100%;
    max-width: 1920px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.carousel-controls {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 0;
    z-index: 10;
}

.carousel-indicators {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.indicator-img {
    width: auto;
    height: 50px;
    cursor: default;
    display: none;
    transition: opacity 0.3s;
}

.indicator-img.active {
    display: block;
    opacity: 1;
}

/* About Section */
.about-section {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.about-title-image {
    margin-bottom: 40px;
}

.about-title-image img {
    max-width: 100%;
    height: auto;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 40px;
}

.about-tagline {
    font-size: 28px;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 30px;
}

.about-text-bold {
    margin-bottom: 30px;
}

.about-text-bold p {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    line-height: 2;
}

.about-text-normal {
    max-width: 800px;
    margin: 0 auto;
}

.about-text-normal p {
    font-size: 18px;
    line-height: 2;
    color: #555;
    margin-bottom: 15px;
    text-align: center;
}

.about-logo {
    margin-top: 40px;
}

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

/* Interior Section */
.interior-section {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.interior-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    overflow: hidden;
}

.interior-image {
    /* 首页 home_banner4.png：等比例缩放 85%，居中展示 */
    width: 85%;
    max-width: 1632px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    /* 使用宽度缩放更稳定，避免 transform 造成视觉偏移 */
    transform: none;
}

/* 首页专用 Banner 缩放 */
.home-hero-image {
    width: 100%;
    max-width: 1920px;
}

.home-banner2-image {
    width: 90%;
    max-width: 1728px; /* 1920 的 90% */
}

/* Footer */
.footer {
    background: #fff;
    padding: 120px 20px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.footer-title--bold {
    font-weight: 800;
}

.footer-subtitle {
    font-size: 16px;
    color: #666;
}

.footer-contact {
    font-size: 18px;
    color: #8B4513;
    font-weight: 500;
}

.footer-decor {
    text-align: center;
    margin-bottom: 8px;
}

.footer-decor img {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-logo {
    text-align: center;
    margin-top: 0;
}

.footer-logo img {
    max-width: 300px;
    height: auto;
}

.footer-info {
    text-align: center;
    margin-top: 12px;
    padding-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer-line {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    margin: 0 0 8px;
}

.footer-line:last-child {
    margin-bottom: 0;
}

.footer-line--title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.footer-line--copyright {
    font-size: 15px;
    color: #333;
}

.footer-line-num {
    font-weight: 700;
}

.footer-info a {
    color: #333;
    text-decoration: none;
}

.footer-line--friend-links a {
    margin-left: 10px;
    margin-right: 10px;
}

.footer-info a:hover {
    color: #8B4513;
}

.footer-icp {
    text-align: center;
    margin-top: 24px;
    padding-bottom: 20px;
    font-size: 14px;
    color: #000;
}

.footer-icp a {
    color: #000;
    text-decoration: none;
}

.footer-icp a:hover {
    color: #8B4513;
}

/* Products Page 样式已拆分至 css/products.css */

/* 移动端样式 */
@media (max-width: 800px) {
    .header {
        padding: 10px 0;
    }

    .header .container {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .header-inner {
        flex-wrap: wrap;
        flex: 1 1 auto;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .header-inner .nav {
        display: none;
        width: 100%;
        order: 10;
    }

    .header-inner.active .nav {
        display: block;
    }

    .header-inner .nav-menu {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0 0;
    }

    .header-inner .logo {
        order: 0;
    }

    .logo img {
        height: 40px;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        left: 3%;
    }

    .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);
    }

    /* .hero-banner {
        margin-top: 60px;
    } */

    .hero-content {
        right: 5%;
        top: 40%;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-english {
        font-size: 18px;
    }

    .about-section {
        padding: 40px 15px;
    }

    .about-tagline {
        font-size: 22px;
    }

    .about-text-bold p {
        font-size: 16px;
    }

    .about-text-normal p {
        font-size: 16px;
    }

    .footer {
        padding: 40px 15px 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
    }

    .footer-title {
        font-size: 18px;
    }

    .footer-subtitle,
    .footer-contact {
        font-size: 14px;
    }

    .footer-line {
        font-size: 13px;
    }

    .footer-line--title {
        font-size: 15px;
    }

    .footer-line--copyright {
        font-size: 12px;
    }

    .carousel-controls {
        margin-top: 20px;
        gap: 15px;
    }

    .indicator-img {
        height: 40px;
    }
    
    .indicator-img.active {
        display: block;
    }
}

/* PC端全宽显示 */
@media (min-width: 801px) {
    .hero-banner {
        /* min-height: 800px; */
        /* margin-top: 1%; */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-image {
        width: 100%;
        max-width: 1920px;
        height: auto;
        aspect-ratio: 1920 / 800;
        object-fit: contain;
        object-position: center;
    }
    
    .hero-content {
        right: 8%;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 20px;
    }
    
    .hero-english {
        font-size: 28px;
    }
    
    .carousel-slide {
        min-height: 400px;
    }
    
    .carousel-slide img {
        max-width: 1920px;
    }
    
    .indicator-img {
        height: 60px;
    }
}
