﻿
:root {
    --bg: #f5f6f7;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --brand: #303296;
    --shadow: 0 6px 18px rgba(0,0,0,.06);
    --radius: 10px;
    --container: 1400px;
    --font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 10px
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0
}

.logo {
    height: 40px;
    display: flex;
    align-items: center
}

    .logo img {
        height: 100%;
        width: auto;
        max-height: 40px
    }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem
}

    .nav-links a {
        text-decoration: none;
        color: #374151;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: .3rem
    }

        .nav-links a:hover, .nav-links a.active {
            color: var(--brand)
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem
}

.nav-icon {
    font-size: 1.2rem;
    color: #374151;
    cursor: pointer
}

.search-icon {
    width: 16px;
    height: 16px;
    border: 2px solid #374151;
    border-radius: 50%;
    position: relative;
    cursor: pointer
}

    .search-icon::after {
        content: '';
        position: absolute;
        bottom: -4px;
        right: -4px;
        width: 6px;
        height: 2px;
        background: #374151;
        transform: rotate(45deg)
    }

.spacer {
    height: 80px
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    height: 300px;
    background: url('/images/News.jpg') center/cover no-repeat;
    position: relative;
    margin-bottom: 2rem
}

    .hero-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.3);
        z-index: 1
    }

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5)
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    margin: 24px 0 20px;
    flex-wrap: wrap
}

    .breadcrumb a {
        color: var(--text);
        text-decoration: none
    }

        .breadcrumb a:hover {
            color: var(--brand)
        }

.breadcrumb-separator {
    color: var(--muted);
    font-weight: normal
}

.breadcrumb-current {
    color: var(--muted);
    font-weight: 500
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0
}

/* Article Content */
.article-content {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.3
}

.article-date {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 2rem
}

/* Table of Contents */
.toc {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 2rem 0;
    position: relative
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem
}

.toc-toggle {
    font-size: 0.8rem;
    cursor: pointer
}

.toc-content {
    display: none
}

    .toc-content.show {
        display: block
    }

/* Article Body */
.article-body {
    font-size: 1rem;
    line-height: 1.8
}

    .article-body p {
        margin-bottom: 1.5rem
    }

.article-image {
    margin: 2rem 0;
    text-align: center
}

    .article-image img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius);
        box-shadow: var(--shadow)
    }

/* Navigation */
.article-nav {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border)
}

    .article-nav a {
        color: var(--brand);
        text-decoration: none;
        font-weight: 500
    }

        .article-nav a:hover {
            text-decoration: underline
        }

/* Share Section */
.share-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--radius)
}

.share-title {
    font-weight: 600;
    margin-bottom: 1rem
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s
}

    .share-btn:hover {
        transform: scale(1.1)
    }

.share-fb {
    background: #1877f2
}

.share-twitter {
    background: #000
}

.share-linkedin {
    background: #0077b5
}

.share-reddit {
    background: #ff4500
}

.share-wechat {
    background: #07c160
}

/* Contact Form Section */
.contact-form-section {
    margin: 2rem 0
}

.contact-form {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text)
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem
}

.form-group {
    margin-bottom: 0
}

    .form-group.full-width {
        margin-bottom: 1.5rem
    }

    .form-group label {
        display: block;
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: var(--text);
        font-size: 0.9rem
    }

    .form-group input, .form-group textarea {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        font-size: 1rem;
        transition: border-color 0.3s;
        background: #f9fafb;
        font-family: var(--font)
    }

        .form-group input:focus, .form-group textarea:focus {
            outline: none;
            border-color: var(--brand);
            background: #fff
        }

    .form-group textarea {
        height: 100px;
        resize: vertical;
        min-height: 100px
    }

.submit-btn {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

    .submit-btn:hover {
        background: #212529
    }

.required {
    color: #dc2626
}

/* Sidebar */
.sidebar {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    height: fit-content
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.recommended-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border)
}

    .recommended-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0
    }

.recommended-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0
}

    .recommended-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.recommended-content {
    flex: 1
}

.recommended-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem
}

    .recommended-title a {
        color: var(--text);
        text-decoration: none
    }

        .recommended-title a:hover {
            color: var(--brand)
        }

.footer {
    background: #1f2937;
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

.footer-mission {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: rgba(204, 204, 204, 1);
    line-height: 1.6;
    max-width: 600px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

    .footer-column a:hover {
        color: #fff;
    }

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
    overflow: hidden;
}

    .social-icon:hover {
        transform: scale(1.1);
    }

    .social-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
    font-size: 0.9rem;
}


/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px
    }

    .nav-links {
        display: none
    }

    .hero-banner {
        height: 200px;
        margin-bottom: 1rem
    }

    .hero-title {
        font-size: 2rem
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 1rem
    }

    .article-content {
        padding: 1.5rem
    }

    .sidebar {
        padding: 1.5rem
    }

    .article-title {
        font-size: 1.5rem
    }

    .share-buttons {
        justify-content: center
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0
    }

    .contact-form {
        padding: 1.5rem
    }
}

