/* 公共样式文件 - 所有页面共享 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
}

/* 导航栏 */
.navbar {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 50px 120px;
}

.navbar .container {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 99%;
    width: 99%;
    height: 100%;
    border-radius: 10px;
}

.navbar-left {
    background: white;
    padding: 25px 30px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 150px;
    height: 80px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 28px;
    color: #1a4b94;
    font-weight: bold;
}

.logo-text p {
    font-size: 14px;
    color: #666;
    letter-spacing: 2px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 40px;
    flex: 1;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 60px;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a4b94;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: black;
    font-size: 20px;
    font-weight: bold;
}

/* 首页Hero区域 */
.hero {
    position: relative;
    height: 900px;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content .container {
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    color: white;
    font-weight: bold;
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    line-height: 1.8;
    margin: 0 auto;
}

/* 通用按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #1a4b94;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0d3b7a;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
}

/* 固定工具栏 */
.fixed-tools {
    position: fixed;
    right: 20px;
    bottom: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.popup-overlay {
    position: absolute;
    right: 100%;
    margin-right: 10px;
    z-index: 1001;
    display: none;
}

#contactPopup {
    top: -40px;
}

#qrPopup {
    top: 30px;
}

#contactBtn:hover + #contactPopup,
#contactPopup:hover {
    display: block;
}

#qrBtn:hover + #qrPopup,
#qrPopup:hover {
    display: block;
}

.tool-item {
    width: 50px;
    background: white;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1a4b94;
    cursor: pointer;
    transition: all 0.3s;
    padding: 15px 0;
    text-align: center;
}

.tool-item svg {
    margin-bottom: 10px;
}

.tool-item:hover {
    background: #1a4b94;
    color: white;
}

.tool-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.tool-item span {
    font-size: 12px;
    text-align: center;
}

.tool-item .vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    font-size: 14px !important;
}

.square-item {
    width: 50px;
    height: 50px;
    padding: 0;
}

.to-top {
    display: none;
    width: 50px;
    height: 50px;
    padding: 0;
}

/* ========== 移动端适配 ========== */
@media screen and (max-width: 768px) {
    /* 导航栏适配 */
    .navbar {
        padding: 10px;
        position: relative;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .navbar .container {
        flex-direction: column;
        padding: 10px;
        border-radius: 5px;
    }

    .navbar-left {
        padding: 10px;
        width: 100%;
        border-radius: 0;
    }

    .logo {
        flex-direction: column;
        gap: 5px;
    }

    .logo img {
        width: 80px;
        height: 50px;
    }

    .logo-text h1 {
        font-size: 16px;
        text-align: center;
    }

    .logo-text p {
        font-size: 10px;
        text-align: center;
        letter-spacing: 1px;
    }

    .navbar-right {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
        width: 100%;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 14px;
        padding: 5px 10px;
    }

    .contact-phone {
        font-size: 14px;
    }

    .contact-phone svg {
        width: 16px;
        height: 16px;
    }

    /* Hero 区域适配 */
    .hero {
        height: 80vh;
        min-height: 500px;
        max-height: 700px;
    }

    .hero-bg video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .hero-content h1 {
        font-size: 28px;
        padding: 0 20px;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .hero-content p {
        font-size: 14px;
        padding: 0 20px;
        line-height: 1.8;
        max-width: 90%;
        margin: 0 auto;
    }

    /* 关于我们适配 */
    .about {
        padding: 40px 0;
    }

    .about .container {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
    }

    .about-left,
    .about-right {
        flex: 0 0 100%;
        width: 100%;
    }

    .about-left img {
        height: 300px;
        width: 100%;
    }

    .about-right h2 {
        font-size: 20px;
        text-align: center;
    }

    .about-right h3 {
        font-size: 12px;
        text-align: center;
    }

    .about-right p {
        font-size: 13px;
        text-align: justify;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .stat-item {
        width: 100%;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 16px;
    }

    /* 服务范围适配 */
    .services {
        padding: 40px 20px;
        height: auto;
    }

    .services h2 {
        font-size: 22px;
    }

    .services-desc {
        font-size: 13px;
        padding: 0 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        height: 400px;
    }

    /* 页脚适配 */
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 固定工具栏适配 */
    .fixed-tools {
        right: 10px;
        bottom: 80px;
    }

    .tool-item {
        width: 40px;
        padding: 10px 0;
    }

    .tool-item span {
        font-size: 10px;
    }

    .tool-item .vertical-text {
        font-size: 12px !important;
    }

    /* 按钮适配 */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
        display: inline-block;
        text-align: center;
    }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 480px) {
    .navbar {
        padding: 5px;
    }

    .navbar .container {
        padding: 5px;
    }

    .navbar-left {
        padding: 5px;
    }

    .logo img {
        width: 60px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 14px;
    }

    .logo-text p {
        font-size: 9px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 3px 8px;
    }

    .contact-phone {
        font-size: 12px;
    }

    /* Hero 区域小屏适配 */
    .hero {
        height: 70vh;
        min-height: 400px;
        max-height: 600px;
    }

    .hero-content h1 {
        font-size: 22px;
        padding: 0 15px;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 13px;
        padding: 0 15px;
        line-height: 1.6;
        max-width: 95%;
    }
}

/* 弹窗内容 */
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    min-width: 260px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.popup-close:hover {
    color: #333;
}

.contact-item-popup {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.contact-item-popup:last-child {
    border-bottom: none;
}

.contact-item-popup svg {
    width: 28px;
    height: 28px;
    color: #666;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.qr-popup {
    text-align: center;
    padding: 25px;
}

.qr-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.qr-code {
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-desc {
    font-size: 14px;
    color: #666;
}

/* 页面通用Hero区域 */
.page-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.page-hero-content .container {
    width: 100%;
    max-width: 100%;
    padding-left: 120px;
    margin: 0;
    position: relative;
}

.page-hero-content .container::before {
    content: none;
}

.page-hero-content h1 {
    font-size: 56px;
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-hero-content h1::before {
    content: none;
}

.page-hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0;
    line-height: 1.8;
    padding-left: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
}

.breadcrumb .container {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb p {
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #1a4b94;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 标签页通用样式 */
.tabs-nav {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background: #e8e8e8;
}

.tab-btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0;
}

.tab-btn:hover,
.tab-btn.active {
    background: #1a4b94;
    color: white;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .navbar .container {
        max-width: 95%;
        width: 95%;
    }
}

@media (max-width: 768px) {
    /* 导航栏适配 */
    .navbar {
        position: relative;
        padding: 20px;
    }
    
    .navbar .container {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        border-radius: 8px;
    }
    
    .navbar-left {
        width: 100%;
        padding: 15px 20px;
        border-radius: 8px 8px 0 0;
        border-bottom: 1px solid #eee;
    }
    
    .logo img {
        width: 100px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
    
    .navbar-right {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        width: 100%;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .contact-phone {
        font-size: 14px;
    }
    
    /* Hero 区域适配 */
    .hero {
        height: 80vh;
        min-height: 500px;
        max-height: 700px;
    }
    
    .hero-bg video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .hero-content h1 {
        font-size: 28px;
        padding: 0 20px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .hero-content p {
        font-size: 14px;
        padding: 0 20px;
        line-height: 1.8;
        max-width: 90%;
        margin: 0 auto;
    }
    
    /* 页面 Hero 区域适配 */
    .page-hero {
        height: 400px;
    }
    
    .page-hero-content {
        justify-content: center;
        text-align: center;
    }
    
    .page-hero-content .container {
        padding-left: 20px;
    }
    
    .page-hero-content h1 {
        font-size: 32px;
    }
    
    .page-hero-content p {
        font-size: 14px;
        padding-left: 20px;
    }
    
    /* 面包屑导航适配 */
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb .container {
        padding: 0 15px;
    }
    
    .breadcrumb p {
        font-size: 12px;
    }
    
    /* 标签页适配 */
    .tabs-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* 关于我们详情适配 */
    .about-detail {
        flex-direction: column;
        padding: 20px;
    }
    
    .about-detail-image {
        flex: 0 0 100%;
        min-height: 200px;
    }
    
    .about-detail-content h2 {
        font-size: 22px;
        text-align: center;
    }
    
    .about-detail-content h3 {
        font-size: 14px;
        text-align: center;
    }
    
    .about-detail-content p {
        font-size: 13px;
    }
    
    /* 企业文化适配 */
    .culture-content {
        flex-direction: column;
        padding: 20px;
    }
    
    .culture-image {
        flex: 0 0 100%;
        min-height: 200px;
    }
    
    .culture-text p {
        font-size: 13px;
    }
    
    /* 页脚适配 */
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        gap: 40px;
    }
    
    /* 固定工具栏适配 */
    .fixed-tools {
        right: 10px;
        bottom: 100px;
    }
    
    .tool-item {
        width: 40px;
        padding: 10px 0;
    }
    
    .tool-item i {
        font-size: 16px;
    }
    
    .tool-item span {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    /* Hero 区域小屏适配 */
    .hero {
        height: 70vh;
        min-height: 400px;
        max-height: 600px;
    }
    
    .hero-content h1 {
        font-size: 22px;
        padding: 0 15px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 13px;
        padding: 0 15px;
        line-height: 1.6;
        max-width: 95%;
    }
    
    .page-hero {
        height: 300px;
    }
    
    .page-hero-content h1 {
        font-size: 24px;
    }
    
    .page-hero-content p {
        font-size: 13px;
    }
    
    .breadcrumb p {
        font-size: 11px;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .about-detail {
        padding: 15px;
    }
    
    .about-detail-content h2 {
        font-size: 18px;
    }
    
    .about-detail-content h3 {
        font-size: 12px;
    }
    
    .about-detail-content p {
        font-size: 12px;
    }
    
    .culture-content {
        padding: 15px;
    }
    
    .culture-text p {
        font-size: 12px;
    }
    
    .logo img {
        width: 80px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 14px;
    }
    
    .logo-text p {
        font-size: 9px;
    }
    
    .nav-links a {
        font-size: 12px;
        gap: 10px;
    }
    
    .contact-phone {
        font-size: 12px;
    }
}
