/* ============================================
   NEWS DETAIL PAGE - COMPLETE STYLESHEET
   匹配网站整体风格
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(to bottom, #f9fafb 0%, #f3f4f6 50%, #f9fafb 100%);
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

button {
    font-family: inherit;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 90px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
}

.nav-links a.active {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    margin-left: auto;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
.mobile-menu-button:hover { background: #f3f4f6; }
.mobile-menu-button svg { width: 24px; height: 24px; color: #111827; }
#navbar .mobile-menu {
    display: none !important;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    padding: 1rem;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 999;
}
#navbar .mobile-menu.open { display: block !important; }
#navbar .mobile-menu-content { display: flex; flex-direction: column; gap: 0.25rem; }
#navbar .mobile-menu-content > a,
#navbar .mobile-nav-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.mobile-nav-item:hover { background: rgba(243, 244, 246, 0.8); }
.mobile-nav-item.active { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.mobile-nav-sub-item { padding-left: 2rem; font-size: 0.8125rem; color: #6b7280; }
.btn-primary-mobile { margin-top: 0.5rem; background: #06b6d4; color: white !important; text-align: center; font-weight: 600; }
.btn-primary-mobile:hover { background: #0891b2; }

@media (max-width: 1023px) {
    .nav-links { display: none !important; }
    .mobile-menu-button { display: block !important; }
}

.btn-primary {
    padding: 0.625rem 1.5rem;
    margin-left: 1rem;
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
    border-radius: 0.5rem;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #22d3ee, #60a5fa);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.dropdown-trigger:hover {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
}

.dropdown-trigger.active {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
}

.icon-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-dropdown.open .icon-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 50;
    width: 14rem;
    background: white;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.1);
    padding: 0.5rem;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    padding-top: 5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #111827 0%, rgba(17, 24, 39, 0.85) 50%, transparent 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
}

.hero-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    width: 100%;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.breadcrumb a {
    color: #d1d5db;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #22d3ee;
}

.breadcrumb .separator {
    color: #9ca3af;
}

.breadcrumb .current {
    color: #f9fafb;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #d1d5db;
    font-size: 0.875rem;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-info svg {
    width: 16px;
    height: 16px;
    color: #22d3ee;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

/* ============================================
   ARTICLE SECTION
   ============================================ */

.article-section {
    padding: 3rem 1.5rem 4rem;
}

.article-single {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   ARTICLE MAIN
   ============================================ */

.article-main {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .article-main {
        padding: 3rem;
    }
}

.article-summary {
    background: linear-gradient(to right, #ecfeff, #f0f9ff);
    border-left: 4px solid #06b6d4;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.article-summary p {
    color: #0f766e;
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 500;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.article-tags .tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.article-tags .tag:hover {
    background: #06b6d4;
    color: white;
    transform: translateY(-2px);
}

.article-content {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #111827;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.article-content h1 {
    font-size: 2rem;
}

.article-content h2 {
    font-size: 1.75rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content a {
    color: #06b6d4;
    text-decoration: underline;
    transition: color 0.3s;
}

.article-content a:hover {
    color: #0891b2;
}

.article-content blockquote {
    border-left: 4px solid #06b6d4;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f9fafb;
    border-radius: 0.5rem;
    color: #6b7280;
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-content th,
.article-content td {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.article-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.article-content tr:hover {
    background: #f9fafb;
}

.article-gallery {
    margin: 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.article-gallery img {
    width: 100%;
}

/* ============================================
   ARTICLE NAVIGATION
   ============================================ */

.article-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .article-navigation {
        grid-template-columns: 1fr 1fr;
    }
}

.nav-prev,
.nav-next {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.nav-prev:hover,
.nav-next:hover {
    background: #ecfeff;
    border-color: #06b6d4;
}

.nav-prev svg,
.nav-next svg {
    color: #06b6d4;
    flex-shrink: 0;
}

.nav-prev.disabled,
.nav-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.nav-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-prev:hover .nav-title,
.nav-next:hover .nav-title {
    color: #0891b2;
}

/* ============================================
   SIDEBAR
   ============================================ */

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #06b6d4;
}

/* Search Widget */
.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.search-btn {
    padding: 0.75rem 1rem;
    background: #06b6d4;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #0891b2;
}

/* Recent News Widget */
.recent-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.recent-news-item:hover {
    background: #ecfeff;
    transform: translateX(4px);
}

.news-image {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

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

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-news-item:hover .news-title {
    color: #0891b2;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.news-date svg {
    width: 14px;
    height: 14px;
    color: #06b6d4;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 2rem;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #06b6d4;
    color: white;
    transform: translateY(-2px);
}

/* Contact Widget */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item svg {
    color: #06b6d4;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item p {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
}

.btn-contact {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: linear-gradient(to right, #22d3ee, #60a5fa);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(to right, #0891b2, #3b82f6);
}

.cta-container {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: #ecfeff;
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #0891b2;
    border-radius: 0.75rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.btn-cta:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #f3f4f6;
    color: #6b7280;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 10rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #22d3ee;
}

.footer-bottom {
    border-top: 1px solid #d1d5db;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.qr-codes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 24rem;
    margin-top: 1.5rem;
}

.qr-code {
    text-align: center;
}

.qr-code-img {
    width: 5rem;
    height: 5rem;
    background: #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.qr-code-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-code-label {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero .fade-in {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .hero {
        height: 300px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .meta-info {
        gap: 1rem;
        font-size: 0.75rem;
    }
    
    .article-main {
        padding: 1.5rem;
    }
    
    .article-content h1 {
        font-size: 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.375rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
}
