/* ==========================================================================
   Modern Reset & Base Typography
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    font-size: 16px;
    color: #34495e;
    background-color: #f4f6f9;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
    border: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.section {
    padding: 60px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: #3498db;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.btn-more {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #3498db;
    color: #3498db;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #3498db;
    color: #ffffff;
}


/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: #f8f9fa;
    color: #7f8c8d;
    font-size: 14px;
    height: 35px;
    line-height: 35px;
    border-bottom: 1px solid #e7e7e7;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top .user-links a {
    color: #7f8c8d;
    margin-left: 15px;
    font-size: 13px;
}

.header-top .user-links a:hover {
    color: #3498db;
}

.header-main {
    height: 80px;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2c3e50;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav ul {
    display: flex;
}

.nav li {
    margin-left: 35px;
}

.nav a {
    display: block;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* ==========================================================================
   Banner & Slider
   ========================================================================== */
.banner {
    width: 100%;
    height: 450px;
    background-color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-position: center;
    background-size: cover;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide::after { /* Dark overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    z-index: 2;
}

.slide-caption h2 {
    font-size: 48px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
}

.slide-caption p {
    font-size: 20px;
    color: #f1f1f1;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dots .dot.active {
    background-color: #ffffff;
}

.slider-arrows {
    z-index: 3;
}

.slider-arrows .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border-radius: 50%;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-arrows .arrow:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.slider-arrows .prev { left: 30px; }
.slider-arrows .next { right: 30px; }

/* ==========================================================================
   Company Intro Section
   ========================================================================== */
.company-intro {
    display: flex;
    align-items: center;
    gap: 50px;
}

.intro-image {
    flex-basis: 45%;
}

.intro-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro-content {
    flex-basis: 55%;
}

.intro-content h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.intro-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #7f8c8d;
}

/* ==========================================================================
   Cases Section
   ========================================================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.case-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.case-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-item:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 30px 20px 20px;
    color: #fff;
    opacity: 1;
    transition: opacity 0.3s;
}

.case-overlay span {
    font-size: 18px;
    font-weight: 600;
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.news-text-list .section-title,
.news-image-list .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.news-text-list .section-title h2,
.news-image-list .section-title h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.news-text-list .section-title h2::after,
.news-image-list .section-title h2::after {
    left: 0;
    transform: none;
}

.news-text-list .more {
    font-size: 14px;
    color: #999;
}

.news-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e7e7e7;
}

.news-list h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.news-list p {
    font-size: 14px;
    color: #7f8c8d;
}

.news-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-cards li a {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, transform 0.3s;
}

.news-cards li a:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    color: #2980b9;
}

.news-cards img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    margin-right: 20px;
}

.news-cards span {
    font-weight: 600;
    color: #34495e;
}

/* ==========================================================================
   Friend Links
   ========================================================================== */
.friend-links {
    text-align: center;
}

.friend-links a {
    margin: 0 15px;
    color: #7f8c8d;
    font-size: 16px;
}

.friend-links a:hover {
    color: #3498db;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
    padding: 20px 0;
    background-color: #ecf0f1;
}

.breadcrumb .container {
    font-size: 14px;
}

.breadcrumb a {
    color: #7f8c8d;
}

.breadcrumb a:hover {
    color: #3498db;
}

.breadcrumb .separator {
    margin: 0 10px;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
    display: flex;
    margin: 40px auto;
    gap: 40px;
}

.content-left {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.content-right {
    width: 300px;
}

.page-title {
    font-size: 28px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 20px;
}

.page-content p {
    margin-bottom: 15px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.sidebar-nav li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #34495e;
    font-weight: 500;
}

.sidebar-nav li:last-child a {
    border-bottom: none;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #3498db;
}

.sidebar-contact p {
    margin-bottom: 10px;
    font-size: 15px;
}

/* ==========================================================================
   News List Page
   ========================================================================== */
.news-list-full .news-item {
    display: flex;
    padding: 25px 0;
    border-bottom: 1px solid #e7e7e7;
    transition: background-color 0.3s;
}

.news-list-full .news-item:first-child {
    padding-top: 0;
}

.news-list-full .news-thumb {
    width: 200px;
    height: 150px;
    margin-right: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.news-list-full .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-list-full .news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-list-full .news-info { flex: 1; }
.news-list-full .news-title { font-size: 20px; margin-bottom: 10px; }
.news-list-full .news-meta { font-size: 13px; color: #95a5a6; margin-bottom: 15px; }
.news-list-full .news-desc { font-size: 15px; color: #7f8c8d; }


/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-box {
    max-width: 500px;
    margin: 0 auto;
}

.form-table { width: 100%; }
.form-table td { padding: 12px 5px; }
.form-label {
    width: 100px;
    font-weight: 600;
    text-align: right;
    padding-right: 20px;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 15px;
}

.form-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-btn {
    width: 100%;
    height: 44px;
    line-height: 44px;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-btn:hover { background-color: #2980b9; }

.form-captcha { display: flex; align-items: center; gap: 10px; }
.form-captcha input { width: 140px; }
.captcha-canvas {
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
}
.captcha-canvas + a { font-size: 13px; color: #7f8c8d; }

.agreement-box { margin-top: 30px; text-align: center; }
.agreement-textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 1px solid #e7e7e7;
    background-color: #f8f9fa;
    color: #7f8c8d;
    font-size: 13px;
    border-radius: 4px;
    line-height: 1.6;
    resize: vertical;
}
.agreement-box p {
    margin-top: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 50px 0;
    margin-top: 60px;
    font-size: 14px;
}

.footer-content {
    text-align: center;
    line-height: 1.8;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #ecf0f1;
    margin: 0 15px;
    transition: color .3s;
}

.footer-nav a:hover {
    color: #3498db;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-info a {
    color: #bdc3c7;
    transition: color .3s;
}

.footer-info a:hover {
    color: #ffffff;
}
