:root {
    --primary: #1A3C6E;
    --primary-light: #5B88C5;
    --accent: #D4AF37;
    --white: #FFFFFF;
    --bg-light: #F5F7FA;
    --text-dark: #333333;
    --text-gray: #666666;
    --border: #E5E5E5;
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    z-index: 9999;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container override */
.container {
    max-width: 1200px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.section-title p {
    color: var(--text-gray);
    font-size: 16px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header .navbar-brand img {
    height: 85px;
    width: auto;
}

.header .nav-link {
    color: #333333;
    font-size: 15px;
    padding: 10px 15px !important;
    position: relative;
}

.header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.header .nav-link:hover::after,
.header .nav-link.active::after {
    width: 80%;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: var(--accent);
}

/* Banner */
.banner {
    position: relative;
    overflow: hidden;
}

.banner .carousel-item img {
    height: 500px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .banner .carousel-item img {
        height: 350px;
    }
}

/* Product Section */
.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #eee;
    padding: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-info {
    padding: 10px 0;
}

.product-info h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Product Categories */
.product-categories button {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.product-categories button:hover,
.product-categories button.active {
    background: var(--primary);
    color: var(--white);
}

/* Product Title Styles */
.product-title {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary);
}

.product-subtitle {
    color: #666;
    margin-bottom: 30px;
    display: block;
}

.nav-pills .nav-link {
    padding: 8px 25px;
    border-radius: 0;
    margin-right: 5px;
    font-size: 14px;
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
    color: #fff;
}

.nav-pills .nav-link:not(.active) {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.product-name {
    font-weight: 600;
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--primary);
}

.product-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.btn-detail {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 6px 15px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-detail:hover {
    background-color: #c9a227;
    color: #fff;
}

/* Solution Section */
.solution-page .solution-item {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.solution-item-content {
    padding: 30px;
}

.solution-item-content h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

.solution-item-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Case Section */
.case-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.case-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.case-info p {
    font-size: 14px;
    color: var(--text-gray);
}

/* News Section */
.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-info {
    padding: 20px;
}

.news-info .date {
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 10px;
    display: block;
}

.news-info h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-info h3 a:hover {
    color: var(--primary);
}

.news-info p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* News List Item */
.news-list-item {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.news-list-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-list-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-list-item-content {
    padding: 25px;
}

.news-list-item-content h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.news-list-item-content .date {
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 10px;
    display: block;
}

.news-list-item-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* News Sidebar */
.news-sidebar {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.news-sidebar h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.news-sidebar ul li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.news-sidebar ul li:last-child {
    border-bottom: none;
}

.news-sidebar ul li a {
    font-size: 15px;
    color: var(--text-gray);
    transition: 0.3s;
}

.news-sidebar ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-light);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-item:nth-child(even)::before {
    left: 50%;
}

.timeline-content {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-right: 30px;
    max-width: 350px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 30px;
}

.timeline-content h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* Team */
.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.team-member h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-member p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* Contact */
.contact-info .bg-primary {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info .bg-primary i {
    font-size: 20px;
}

/* Footer */
.footer a {
    opacity: 0.8;
    transition: 0.3s;
}

.footer a:hover {
    opacity: 1;
    color: var(--accent) !important;
}

.footer h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer ul li a {
    font-size: 14px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .section-title h2 {
        font-size: 28px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: 20px;
    }
    
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header .navbar-brand img {
        height: 60px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .solution-item-content {
        padding: 20px;
    }
    
    .solution-item-content h3 {
        font-size: 20px;
    }
}

/* Utility Classes */
.bg-light {
    background-color: var(--bg-light) !important;
}

.text-muted {
    color: var(--text-gray) !important;
}

/* Form Validation */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
}

/* Dropdown toggle arrow */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}
