/* ============================================
   JINBEI AMC - Full Style
   Inspired by guangzhouamc.com
   ============================================ */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", PingFangSC, "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: #4c5053;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.3s, background 0.3s; }
a:hover { color: #bf9046; }

img { max-width: 100%; vertical-align: middle; }

ul { list-style: none; }

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

/* ============================================
   Compatible notice bar
   ============================================ */
.compatible {
    background: #f57b13;
    color: #fff;
    text-align: center;
    padding: 8px 15px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}
.compatible a { color: #fff; text-decoration: underline; }

.compatible.show { display: block; }

/* ============================================
   Header
   ============================================ */
.header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: all 0.3s;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-data {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 30px;
    height: 80px;
}

/* Logo */
.site-logo { flex-shrink: 0; }
.site-logo a { display: block; }
.site-logo img { height: 36px; }

/* Menu */
.menu-wrapper { display: flex; align-items: center; }

.menu { display: flex; gap: 0; }

.menu > .menu-item { position: relative; }

.menu > .menu-item > a {
    display: block;
    padding: 0 22px;
    height: 80px;
    line-height: 80px;
    font-size: 15px;
    color: #4c5053;
    letter-spacing: 1px;
    position: relative;
}

.menu > .menu-item > a:hover,
.menu > .menu-item.active > a,
.menu > .menu-item.cur > a {
    color: #bf9046;
}

.menu > .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 22px;
    right: 22px;
    height: 2px;
    background: #bf9046;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.menu > .menu-item > a:hover::after,
.menu > .menu-item.active > a::after,
.menu > .menu-item.cur > a::after {
    transform: scaleX(1);
}

/* Level 2 dropdown */
.level2 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 140px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    padding: 8px 0;
    text-align: center;
}

.menu-item:hover > .level2 {
    opacity: 1;
    visibility: visible;
}

.level2 .menu-item a {
    display: block;
    padding: 10px 25px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.level2 .menu-item a:hover {
    color: #bf9046;
    background: #fff9f3;
}

/* ============================================
   Hero Banner (full-screen Swiper)
   ============================================ */
.banner-wrap {
    padding-top: 80px;
}

.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.banner .swiper-container,
.banner .swiper {
    width: 100%;
    height: 100%;
}

.banner .swiper-slide {
    overflow: hidden;
}

.banner .swiper-slide .slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner .slide-text {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 700px;
}

.banner .slide-text h1 {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.banner .slide-text p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 30px;
}

.banner .slide-text .btn-more {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.banner .slide-text .btn-more:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* Swiper pagination */
.banner .swiper-pagination-bullet {
    width: 32px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    transform: skew(-30deg);
    opacity: 1;
    margin: 0 4px;
}

.banner .swiper-pagination-bullet-active {
    background: #bf9046;
}

/* Swiper arrows */
.banner .swiper-button-prev,
.banner .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: background 0.3s;
}

.banner .swiper-button-prev:hover,
.banner .swiper-button-next:hover {
    background: rgba(255,255,255,0.25);
}

.banner .swiper-button-prev::after,
.banner .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

/* ============================================
   Section Common
   ============================================ */
.page-wrap {
    overflow: hidden;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 28px;
    color: #3f302a;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-header .divider {
    width: 40px;
    height: 3px;
    background: #bf9046;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */
.home-about {
    background: #fff9f3;
}

.home-about .about-wrap {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-left { flex: 1; }

.about-left .small-title {
    font-size: 14px;
    color: #bf9046;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.about-left h2 {
    font-size: 32px;
    color: #3f302a;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-left p {
    color: #666;
    line-height: 2;
    margin-bottom: 15px;
    font-size: 15px;
}

.about-left .btn-link {
    display: inline-block;
    color: #bf9046;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 10px;
    border-bottom: 1px solid #bf9046;
    padding-bottom: 3px;
}

.about-right {
    flex: 1;
    text-align: center;
}

.about-right .about-img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

/* ============================================
   Business Section
   ============================================ */
.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.business-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 300px;
}

.business-item .biz-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.business-item:hover .biz-img {
    transform: scale(1.05);
}

.business-item .biz-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.business-item .biz-overlay h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.business-item .biz-overlay p {
    font-size: 13px;
    opacity: 0.8;
}

/* ============================================
   News Section
   ============================================ */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.news-item:last-child { border-bottom: none; }

.news-date {
    text-align: center;
    min-width: 70px;
    padding-top: 5px;
}

.news-date .day {
    font-size: 36px;
    font-weight: 300;
    color: #bf9046;
    line-height: 1;
}

.news-date .month {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.news-info { flex: 1; }

.news-info .news-tag {
    display: inline-block;
    font-size: 12px;
    color: #bf9046;
    border: 1px solid #bf9046;
    padding: 2px 10px;
    margin-bottom: 8px;
}

.news-info h3 a {
    font-size: 17px;
    color: #3f302a;
    font-weight: 500;
    line-height: 1.5;
}

.news-info h3 a:hover { color: #bf9046; }

.news-info p {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    margin-top: 10px;
}

.news-more-link {
    text-align: center;
    margin-top: 30px;
}

.news-more-link a {
    color: #bf9046;
    font-size: 14px;
    letter-spacing: 2px;
    border-bottom: 1px solid #bf9046;
    padding-bottom: 3px;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: #3f302a;
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item .stat-num {
    font-size: 48px;
    font-weight: 600;
    color: #bf9046;
}

.stat-item .stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    letter-spacing: 2px;
}

/* ============================================
   Footer
   ============================================ */
.footer-wrap {
    background: #3f302a;
    color: #ccc;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col .ft-logo img { height: 30px; margin-bottom: 15px; }
.footer-col .ft-desc { font-size: 13px; color: #aaa; line-height: 1.8; }

.footer-col h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: #aaa; }
.footer-col ul li a:hover { color: #bf9046; }

.footer-col .ft-contact li {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-col .ft-contact .icon { color: #bf9046; flex-shrink: 0; }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #bf9046; }

/* ============================================
   Sub Pages Banner
   ============================================ */
.page-banner {
    padding-top: 80px;
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.page-banner .banner-content {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 14px;
    opacity: 0.7;
    letter-spacing: 3px;
}

.page-content {
    padding: 60px 0;
    min-height: 400px;
}

/* ============================================
   Page Content Style
   ============================================ */
.page-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
    color: #555;
}

.page-article h3 {
    font-size: 20px;
    color: #3f302a;
    margin-bottom: 15px;
}

.page-article p { margin-bottom: 15px; }

/* Timeline for history page */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0d5c5;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #bf9046;
    border-radius: 50%;
}

.timeline-item h4 { color: #bf9046; font-size: 18px; margin-bottom: 8px; }
.timeline-item p { color: #666; line-height: 1.8; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 3px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #4c5053;
    transition: all 0.3s;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    .business-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .home-about .about-wrap { flex-direction: column; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .banner .slide-text h1 { font-size: 36px; }
    .banner .slide-text { left: 5%; right: 5%; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        max-height: 70vh;
        overflow-y: auto;
    }

    .menu.show { display: flex; }

    .menu > .menu-item > a {
        height: auto;
        line-height: normal;
        padding: 14px 25px;
        border-bottom: 1px solid #f5f5f5;
    }

    .menu > .menu-item > a::after { display: none; }

    .level2 {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding: 0;
        background: #fafafa;
    }

    .menu-item.open > .level2 { display: block; }

    .level2 .menu-item a { padding: 10px 35px; font-size: 13px; }

    .header-data { padding: 0 15px; height: 60px; }
    .menu > .menu-item > a { height: auto; line-height: normal; }
    .banner { height: 70vh; min-height: 400px; }
    .banner .slide-text h1 { font-size: 26px; }
    .banner .slide-text p { font-size: 15px; }
    .section { padding: 50px 0; }
    .business-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .news-item { flex-direction: column; gap: 10px; }
    .page-banner { height: 250px; }
    .page-banner h1 { font-size: 26px; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .banner .slide-text h1 { font-size: 22px; }
}
