/* ===== COMMON STYLES ===== */

/* ===== BASE RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #f58221;
    --orange-dark: #c47a2e;
    --dark-bg: #1a1a1a;
    --darker-bg: #111111;
    --card-bg: #222222;
    --text-light: #ffffff;
    --text-gray: #ffffff;
    --text-muted: #888888;
    --border-color: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    width: 100%;
    min-width: 100vw;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(17, 17, 17, 0);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(17, 17, 17, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 65px;
}

.nav-logo {
    gap: 10px;
    text-decoration: none;
    margin-left: 50px;
    margin-right: 10px;
}

.nav-logo .logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: white;
}

.nav-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--orange);
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    padding: 25px 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
    background: var(--orange);
}

.nav-contact {
    color: var(--text-gray);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: center;
    margin-top: 3px;
}

.nav-contact i {
    color: var(--orange);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--darker-bg);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 80px 30px 30px;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
}

.mobile-nav-close i {
    display: none;
}

.mobile-nav-close::before {
    content: 'Close';
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.mobile-nav ul li a:hover {
    color: var(--orange);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ===== FOOTER ===== */
.footer {
    background: #2c2c2c;
    border-top: 1px solid var(--border-color);
}

.footer-row {
    margin: 0 auto;

}

.footer-row-1 {
    padding: 40px 60px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    justify-items: center;
}

.footer-contact {
    display: flex;
    gap: 50px;
    text-align: center;
    justify-content: space-between;
    min-width: 1400px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 13px;
}

.footer-contact-item img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.footer-contact-item span {
    /*font-size: 14px;*/
}

.footer-row-2 {

    display: grid;
    grid-template-columns: 1fr 6fr 1fr;
    gap: 0px;
}

.footer-col-center {
    padding: 0px 50px;
}

.footer-col-wrapper {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    padding: 40px 0px;
}

.footer-col-wrapper:last-child {
    border-right: none;


    border-left: 1px solid var(--border-color);
}

.footer-col {
    text-align: left;
}

.footer-col-top {
    flex: 1;
    text-align: center;
}

.footer-col-top h4 {
    padding: 10px 0px;
}

.footer-col-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    margin-top: 20px;
    min-height: 120px;
    display: flex;
    align-items: flex-start;

}

.footer-col-wrapper:first-child .footer-col-bottom {
    text-align: center;
    justify-content: center;
    justify-items: center;
    padding-top: 50px;
}

.footer-col-wrapper:nth-child(2) .footer-col-bottom {
    padding-left: 40px;
    padding-right: 40px;
    justify-content: space-between;
}

.footer-col-wrapper:nth-child(2) .footer-col-bottom .footer-bottom-left .footer-copyright {

    margin-right: 50px;

}

.footer-col-wrapper:first-child .footer-col-bottom .footer-bottom-left {
    padding-right: 0px;
}

.footer-bottom-left span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-logo .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-align: center;
    justify-items: center;
}

.footer-logo .logo-icon {
    width: 50px;
    height: 50px;


    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;

}

.footer-logo .logo span {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--orange);
}

.footer-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-col h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--orange);
}

.footer-message {
    margin-top: 15px;
}

.footer-message h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-message-input {
    display: flex;
}

.footer-message input {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-right: none;
    color: var(--text-light);
    font-size: 12px;
}

.footer-message input::placeholder {
    color: var(--text-muted);
}

.footer-message button {
    padding: 10px 20px;
    background: var(--orange);
    border: 1px solid var(--orange);
    color: white;
    font-size: 12px;

    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-message button:hover {
    background: var(--orange-dark);
}

.footer-qr {
    text-align: center;
}

.footer-qr h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.qr-code {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 4px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-code::before {
    content: '';
    width: 70px;
    height: 70px;
    background:
        linear-gradient(90deg, #000 2px, transparent 2px) 0 0 / 10px 10px,
        linear-gradient(0deg, #000 2px, transparent 2px) 0 0 / 10px 10px;
    opacity: 0.8;
}

.qr-code::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--orange);
    border-radius: 2px;
}

.footer-bottom-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0;
}

.footer-bottom-left,
.footer-bottom-center,
.footer-bottom-right {
    display: flex;
    align-items: center;
}


.footer-bottom-left {
    padding-right: 15px;

}

#backToTopContainer {
    display: flex;
    flex-direction: column;

}

.footer-bottom-center {
    padding: 0 15px;
}

.footer-bottom-right {
    padding-left: 15px;
}

.footer-bottom-left p,
.footer-bottom-center p {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--orange);
}







/* ===== ABOUT SECTION ===== */
.about-section {
    background: #313131;
    padding: 25px 0;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
}

.about-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 10px;
    padding-top: 32px;
}

.about-container .divider {
    width: 60px;
    height: 2px;
    background: var(--orange);
    margin: 15px auto 30px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 50px;
    margin-bottom: 0px;
    color: #fff;
    font-size: 14px;
    line-height: 2;
}

.about-nav {

    justify-content: center;
    display: flex;

}

.about-nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px 20px;
    min-width: 200px;
}

.about-nav-item:hover {
    background: rgba(232, 146, 58, 0.1);
    border-color: var(--orange);
}

.about-nav-item .nav-img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.about-nav-item .nav-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-nav-item .nav-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 4px;
}

.about-nav-item .nav-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.2;
}

.about-nav-item .nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
/* 修复移动端水平溢出 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .mobile-overlay {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .nav-links,
    .nav-contact {
        display: none;
    }

    /* 所有容器添加最大宽度限制 */
    .nav-container,
    .about-container {
        min-width: unset;
        max-width: 100vw;
        overflow: hidden;
    }

    .footer-contact {
        flex-wrap: wrap;
        justify-content: center;
    }
    .about-container h2{
        font-size: 22px;
    }

    .footer-contact-item {
        flex-shrink: 0;
    }

    .footer-contact {
        min-width: unset !important;
        flex-direction: column;
        gap: 15px;
    }

    .footer-row-2 {
        grid-template-columns: 1fr !important;
    }

    /* About导航修复 */
    .about-nav-item {
        min-width: unset !important;
        flex: 1 1 calc(50% - 10px);
    }
    .about-nav-item .nav-title{
        font-size: 14px;
    }

    /* 隐藏溢出的元素 */
    .about-container>p,
    .about-text {
        word-break: break-word;
    }

    /* 图片响应式 */
    img {
        max-width: 100%;
        height: auto;
    }

    .footer-contact {
        flex-direction: column;
        gap: 20px;
        min-width: auto;
    }

    .footer-row-2 {
        grid-template-columns: 1fr;
    }

    .about-container {
        padding: 0 20px;
    }

    .about-nav-item {
        min-width: 100%;
    }

    .footer-row-1 {
        padding: 30px 20px;
    }

    .footer-col-center {
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    /* ABOUT */
    .about-section {
        margin-top: -10px;
    }

    .about-container .divider {
        margin: 10px auto 10px;
    }

    .about-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-nav-item {
        flex: 1 1 calc(33.33% - 10px);
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 10px 0px;
    }

    .about-nav-item .nav-desc {
        text-align: center;
    }

    .about-nav-item:first-child {
        margin: 0 auto;
    }

    .about-text {
        font-size: 16px;
        text-align: left;
    }
}

.douhao {
    background: url("/public/images/title_douhao.png") no-repeat center;
}