/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #0056b3;
    transition: color 0.3s;
}

a:hover {
    color: #003d82;
}

ul {
    list-style: none;
}

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

section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0056b3;
    margin: 10px auto 0;
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-left: 4px solid #0056b3;
    padding-left: 15px;
}

.bg-light {
    background-color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #0056b3;
    color: white;
    border: 2px solid #0056b3;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
    color: white;
}

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

.btn-outline:hover {
    background-color: white;
    color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
}

.btn-secondary:hover {
    background-color: #0056b3;
    color: white;
}

.center-btn {
    text-align: center;
    margin-top: 30px;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #0056b3;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #555;
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0056b3;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0056b3;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Home Banner */
.banner {
    background: linear-gradient(rgba(0, 40, 85, 0.9), rgba(0, 40, 85, 0.8)), url('../images/banner-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-color: #004494; /* Fallback */
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

@media (min-width: 768px) {
    .banner-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .banner-text {
        flex: 1;
        text-align: left;
    }
    .banner-image {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }
    .banner-btns {
        justify-content: flex-start;
    }
    .banner {
        text-align: left;
    }
}

.banner-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.banner-btns {
    display: flex;
    gap: 20px;
    justify-content: center; /* Default center for mobile */
}

.banner-image img {
    max-width: 100%;
    max-height: 280px;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s;
}

.banner-image img:hover {
    transform: scale(1.05);
}

.caption {
    font-size: 0.85rem;
    margin-top: 10px;
    color: rgba(255,255,255,0.8);
}

/* Inner Page Banner */
.inner-banner {
    background: linear-gradient(to right, #0056b3, #003d82);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.inner-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.inner-banner p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Features Grid (Home) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Business Preview (Home) */
.business-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.preview-item {
    padding: 20px;
}

.preview-item i {
    font-size: 2rem;
    color: #666;
    margin-bottom: 15px;
}

.preview-item h4 {
    margin-bottom: 10px;
    color: #333;
}

/* News List (Home) */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

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

.news-item .date {
    background: #f0f2f5;
    color: #666;
    padding: 5px 10px;
    border-radius: 4px;
    height: fit-content;
    font-size: 0.9rem;
    white-space: nowrap;
}

.news-item h4 {
    margin-bottom: 8px;
    color: #333;
}

.news-item p {
    color: #666;
    font-size: 0.95rem;
}

/* About Page Styles */
.about-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-stats {
    background: #0056b3;
    color: white;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.culture-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
}

.culture-card i {
    font-size: 2rem;
    color: #d35400;
    margin-bottom: 15px;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.org-box {
    border: 2px solid #0056b3;
    padding: 10px 20px;
    border-radius: 4px;
    background: white;
    font-weight: bold;
    min-width: 120px;
    text-align: center;
}

.org-box.root {
    background: #0056b3;
    color: white;
}

.org-lines {
    height: 30px;
    width: 2px;
    background: #0056b3;
}

.org-row {
    display: flex;
    gap: 20px;
    position: relative;
}

.org-row::before {
    content: '';
    position: absolute;
    top: -15px; /* Adjust based on spacing */
    left: 50%;
    transform: translateX(-50%);
    width: 80%; /* Width of the horizontal connector */
    height: 15px;
    border-top: 2px solid #0056b3;
    border-left: 2px solid #0056b3;
    border-right: 2px solid #0056b3;
    z-index: -1;
}
/* Fix for simplified org chart line visuals - simplified for static CSS */

/* Business Page Styles */
.business-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.biz-card {
    display: flex;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    gap: 20px;
}

.biz-icon {
    font-size: 2rem;
    color: #0056b3;
    flex-shrink: 0;
}

.biz-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.biz-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.biz-tags {
    display: flex;
    gap: 10px;
}

.biz-tags li {
    background: #e9ecef;
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    color: #495057;
}

.market-map {
    background: white;
    padding: 40px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.market-list .market-item {
    margin-bottom: 20px;
}

.market-list h5 {
    font-size: 1.1rem;
    color: #0056b3;
    margin-bottom: 5px;
}

.map-visual {
    background: #f0f8ff;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #aab7c4;
    border-radius: 8px;
}

.map-icon {
    font-size: 5rem;
    margin-bottom: 10px;
    color: #cbd6e2;
}

/* Compliance Page Styles */
.compliance-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.gallery-item {
    flex: 0 0 250px;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: contain; /* Changed to contain for license */
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tax-info-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-top: 5px solid #d35400;
}

.tax-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

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

.compliance-note {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Contact Page Styles */
.contact-grid-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item-large {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item-large i {
    font-size: 1.5rem;
    color: white;
    background: #0056b3;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.submit-btn {
    background: #0056b3;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.submit-btn:hover {
    background: #004494;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto; /* Push to bottom */
}

.footer-links {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tax-id-footer {
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 0.8rem;
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .main-nav ul.active {
        display: flex;
    }

    .banner h2 {
        font-size: 2rem;
    }

    .business-preview,
    .culture-grid,
    .business-detail-grid,
    .market-map,
    .contact-grid-page,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .banner-btns {
        flex-direction: column;
    }
    
    .org-row {
        flex-direction: column;
    }
    
    .org-row::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        border: none;
        border-left: 2px solid #0056b3;
    }
}
