﻿/* ===== SHARED STYLES - 天津汇星月科技有限公司 ===== */
:root {
    --primary: #0A2E5C;
    --primary-light: #154285;
    --accent: #1E88E5;
    --accent-light: #42A5F5;
    --orange: #FF7043;
    --gray: #546E7A;
    --bg-light: #F5F7FA;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-gray: #263238;
    --shadow-sm: 0 2px 8px rgba(10,46,92,0.08);
    --shadow-md: 0 6px 20px rgba(10,46,92,0.12);
    --shadow-lg: 0 12px 40px rgba(10,46,92,0.18);
    --transition: 0.3s ease;
    --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
}

/* ===== HEADER ===== */
header {
    background: var(--primary);
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 68px;
    min-height: 68px;
    max-height: 68px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    transition: background var(--transition);
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.14);
}

.logo-mark img {
    width: 78%;
    height: 78%;
    display: block;
    object-fit: contain;
}


.logo-text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
    overflow: hidden;
}

nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10px; right: 10px;
    height: 2px;
    background: var(--accent-light);
    transform: scaleX(0);
    transition: transform var(--transition);
    border-radius: 1px;
}

nav a:hover, nav a.active {
    color: white;
    background: rgba(255,255,255,0.08);
}

nav a:hover::after, nav a.active::after {
    transform: scaleX(1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.consult-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(30,136,229,0.4);
    white-space: nowrap;
}

.consult-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(30,136,229,0.5);
}

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

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-nav {
    display: none !important;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--primary);
    padding: 20px 6%;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mobile-nav.open { display: flex !important; }

.mobile-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    transition: var(--transition);
}

.mobile-nav a:hover { color: white; background: rgba(255,255,255,0.1); }

.mobile-nav a.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.mobile-nav-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.mobile-nav-tools .consult-btn {
    text-align: center;
    justify-content: center;
}

.mobile-lang-toggle {
    align-self: flex-start;
}

/* ===== SECTION BASE ===== */
section { padding: 80px 6%; }

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

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(30,136,229,0.1), rgba(66,165,245,0.1));
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid rgba(30,136,229,0.2);
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 38px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.25;
}

.section-header p {
    color: var(--gray);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    box-shadow: 0 4px 15px rgba(30,136,229,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,136,229,0.45);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.btn-outline-blue {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline-blue:hover {
    background: var(--accent);
    color: white;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(180deg, var(--primary) 0%, #061a38 100%);
    color: white;
    padding: 64px 6% 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 28px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-logo-mark img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    display: block;
}


.footer-brand .footer-logo-text {
    color: white;
    font-size: 17px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 13.5px;
    opacity: 0.6;
    line-height: 1.8;
    margin-bottom: 22px;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(30,136,229,0.1);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 24px; height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

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

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

.footer-col ul li a {
    font-size: 13.5px;
    opacity: 0.6;
    cursor: pointer;
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.footer-col ul li a:hover { opacity: 1; color: var(--accent-light); }

.footer-contact-info p {
    font-size: 13.5px;
    opacity: 0.6;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-info p i {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.4;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 70px 6%;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    border: 60px solid rgba(255,255,255,0.04);
    border-radius: 50%;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 20%;
    width: 250px; height: 250px;
    border: 40px solid rgba(30,136,229,0.08);
    border-radius: 50%;
}

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

.page-hero .breadcrumb {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 16px;
}

.page-hero .breadcrumb a { color: white; text-decoration: none; }
.page-hero .breadcrumb span { margin: 0 8px; }

.page-hero h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.2;
}

.page-hero p {
    font-size: 17px;
    opacity: 0.8;
    max-width: 600px;
}

/* ===== UTILS ===== */
.tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
}

.divider {
    width: 48px; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    margin: 16px auto 0;
}

/* Scroll animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-main { grid-template-columns: repeat(2, 1fr); }
    nav a { font-size: 12px; padding: 4px 6px; }
    .section-header h2 { font-size: 32px; }
}

@media (max-width: 768px) {
    nav, .header-right { display: none !important; }
    .hamburger { display: flex !important; }
    header { padding: 0 5%; }
    section { padding: 60px 5%; }
    .section-header h2 { font-size: 28px; }
    .footer-main { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .page-hero h1 { font-size: 32px; }
    .page-hero { padding: 50px 5%; }
    .btn { padding: 11px 24px; font-size: 14px; }
}

/* ===== LANG TOGGLE BUTTON ===== */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 44px;
    padding: 0 10px;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 15px;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}
.lang-toggle:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
    color: white;
}
@media (max-width: 768px) {
    .lang-toggle { display: inline-flex !important; }
}



