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

html {
    font-size: 16px;
}

body {
    font-family: '宋体', 'Microsoft YaHei', sans-serif;
    font-size: 1rem;
    background-color: #fff;
    line-height: 1.5;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 767px) {
    html {
        font-size: 10px;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    html {
        font-size: 16px;
    }
}
@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* ========== 顶部导航栏========== */
.topbanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    height: 5rem;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    transition: background 0.3s;
}
.topbanner.scrolled,
.topbanner:not(.scrolled):hover {
    background: white;
}
.tbstate0 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    width: 3.5rem;
    flex-shrink: 0;
}
.img_logo {
    width: 100%;
    height: auto;
    display: block;
}
.name0 {
    font-size: 1.8rem;
    font-family:
    font-weight: 700;
    white-space: nowrap;
    margin-left: 1rem;
    flex-grow: 1;
}
/* 桌面端导航 */
.nav-links {
    display: flex;
    gap: 2.5rem;
    margin-right: 13rem;
}
.nav-links a {
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.25rem;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background: orange;
    transition: width 0.3s;
}
.nav-links a:hover {
    color: orange;
}
.nav-links a:hover::after {
    width: 100%;
}
.topbanner:not(.scrolled) .nav-links a,
.topbanner:not(.scrolled) .name0 {
    color: white;
}
.topbanner.scrolled .nav-links a,
.topbanner.scrolled .name0,
.topbanner:not(.scrolled):hover .nav-links a,
.topbanner:not(.scrolled):hover .name0 {
    color: black;
}
.hamburger{
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.8rem;
    height: 1.5rem;
    cursor: pointer;
}
.hamburger span {
    width: 100%;
    height: 0.2rem;
    background: black !important;
    border-radius: 2px;
    transition: 0.2s;
}
.topbanner:not(.scrolled) .hamburger span {
    background: black;
}
.topbanner.scrolled .hamburger span,
.topbanner:not(.scrolled):hover .hamburger span {
    background: black;
}

/* ========== 首栏大图 ========== */
.hero-banner {
    width: 100%;
    height: 80vh;
    overflow: hidden;
}
.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== 联系方式区域========== */
.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 100%;
    margin: 3rem auto;
    padding: 0 5vw;
}
.method-card {
    flex: 1;
    text-align: center;
    min-width: 150px;
}
.method-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.8rem;
}
.method-icon img {
    width: 100%;
    height: auto;
}
.method-text {
    font-size: 1rem;
    line-height: 1.4;
    word-break: break-word;
}
.method-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
}

/* ========== 留言表单 ========== */
.feedback-section {
    max-width: 100%;
    margin: 2rem 0;
    padding: 0 5vw 3rem;
}
.flash-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}
.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.form-field {
    flex: 1;
    min-width: 180px;
}
.form-field.full-width {
    flex: 1 1 100%;
}
label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: 0.2s;
}
.form-input:focus, .form-textarea:focus {
    border-color: orange;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,165,0,0.2);
}
.form-textarea {
    min-height: 8rem;
    resize: vertical;
}
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.btn-submit, .btn-reset {
    padding: 0.6rem 1.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    font-family: inherit;
}
.btn-submit {
    background: orange;
    color: white;
}
.btn-submit:hover {
    filter: brightness(0.95);
}
.btn-reset {
    background: #e0e0e0;
    color: #333;
}
.btn-reset:hover {
    background: #ccc;
}
.form-errors {
    margin-top: 1rem;
    color: #c00;
    font-size: 0.85rem;
}

/* ========== 底栏========== */
.footer {
    width: 100%;
    background: #d7d7d7;
    padding: 2rem 5vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-logo {
    height: 2.5rem;
    width: auto;
}
.footer-company {
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-nav a {
    font-size: 1rem;
}
.footer-nav a:hover {
    color: #145E59;
    text-decoration: underline;
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}
.footer-copyright {
    font-size: 0.7rem;
    font-family: 'Noto Sans SC', sans-serif;
}
.footer-icp {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
}
.footer-icp img {
    width: 1rem;
    height: 1rem;
}

/* ========== Toast 弹窗 ========== */
.connect-toast-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}
.connect-toast-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.connect-toast-box {
    min-width: 240px;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 0.8rem;
    text-align: center;
    box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.2);
}
.connect-toast-box p {
    margin-bottom: 1rem;
}
.connect-toast-box button {
    background: #169bd5;
    border: none;
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
}

/* ==========移动端适配========== */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }
    .topbanner {
        height: 4rem;
        padding: 0 4vw;
        background: white;
    }
    .topbanner:not(.scrolled) .name0,
    .topbanner:not(.scrolled) .hamburger span {
        color: black;
        background: transparent;
    }
    .name0 {
        font-size: 1.2rem;
        margin-left: 0.5rem;
    }
    .logo {
        width: 2.5rem;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 4rem;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem 0;
        transform: translateY(-120%);
        transition: 0.3s;
        z-index: 999;
        margin: 0;
    }
    .nav-links.open {
        transform: translateY(0);
    }
    .nav-links a {
        font-size: 1.2rem;
        color: #333 !important;
    }
    .contact-methods {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        margin: 2rem auto;
    }
    .method-card {
        width: 100%;
    }
    .form-actions {
        flex-direction: column;
    }
    .btn-submit, .btn-reset {
        width: 100%;
        text-align: center;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }
    .footer-left, .footer-right {
        align-items: center;
    }
    .footer-nav {
        justify-content: center;
    }
    .hero-banner{
        width:100vw;
        height:30vh;
    }
}
/*平板端适配*/
@media (min-width: 767px) and (max-width:1024px) {
     .topbanner {
        height: 4rem;
        padding: 0 4vw;
        background: white;
    }
    .topbanner:not(.scrolled) .name0,
    .topbanner:not(.scrolled) .hamburger span {
        color: black;
        background: transparent;
    }
    .nav-links {
        position: fixed;
        top: 4rem;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem 0;
        transform: translateY(-120%);
        transition: 0.3s;
        z-index: 999;
        margin: 0;
    }
    .nav-links.open {
        transform: translateY(0);
    }
    .nav-links a {
        font-size: 1.2rem;
        color: #333 !important;
    }
    .hamburger{
        display:flex;
    }
     .footer {
        flex-direction: column;
        text-align: center;
    }
    .footer-left, .footer-right {
        align-items: center;
    }
    .footer-nav {
        justify-content: center;
    }
}