/* ========================================
   科学画报 - Public Site Styles
   ======================================== */

/* --- Header --- */
.app-header { position: relative; width: 100%; height: 200px; }
.app-header .app-header-wrapper { width: 1280px; margin: 0 auto; height: 200px; background: url('/public/static/image/banner.jpg') no-repeat; }
.app-header .app-header-wrapper .top-menu { display: flex; justify-content: space-between; padding-top: 20px; }
.app-header .app-header-wrapper .logo { width: 200px; height: 120px; }
.app-header .app-header-wrapper ul.right-nav { display: flex; margin: 0; padding: 0; list-style: none; }
.app-header .app-header-wrapper ul.right-nav li { width: 100px; }
.app-header .app-header-wrapper ul.right-nav li a { color: #fff !important; text-decoration: none; font-size: 16px; font-weight: bold; }

/* --- Main Layout --- */
.app-main { width: 1280px; margin: 0 auto; display: flex; gap: 30px; padding: 20px 0; }
.app-left { flex: 1; overflow: auto; }
.app-right { width: 300px; }
.app-main-content { width: 1280px; margin: 0 auto; min-height: 500px; padding-top: 20px; }
.app-index { min-width: 1280px; }

/* --- Article List --- */
.article-list { display: flex !important; flex-direction: row !important; gap: 20px !important; margin-bottom: 24px !important; padding-bottom: 24px !important; border-bottom: 1px solid #eee; }
.article-list .article-cover { width: 180px; flex-shrink: 0; }
.article-list .article-cover img { width: 180px; height: 130px; object-fit: cover; border-radius: 4px; }
.article-list ul.article-list-box { margin: 0; padding: 0; list-style: none; flex: 1; }
.article-list ul.article-list-box .article-title { font-size: 18px; font-weight: bold; line-height: 1.4; margin-bottom: 8px; }
.article-list ul.article-list-box .article-title a { color: #1c4879; text-decoration: none; }
.article-list ul.article-list-box .article-title a:hover { color: #005293; text-decoration: underline; }
.article-list ul.article-list-box .article-author { font-size: 13px; color: #888; margin-bottom: 4px; }
.article-list ul.article-list-box .article-created-at { font-size: 13px; color: #888; margin-bottom: 6px; }
.article-list ul.article-list-box .article-summary { font-size: 14px; color: #666; line-height: 1.6; }
.latest-articles { text-align: left; }

/* --- Section Headers --- */
.main-content-header { background-color: #005293; display: flex; flex-direction: row; justify-content: space-between; height: 50px; border-top-left-radius: 10px; border-top-right-radius: 10px; padding: 0 19px; position: relative; margin-top: 10px; margin-bottom: 29px; }
.main-content-header .header-title { font-size: 18px; display: block; text-align: left; height: 50px; line-height: 50px; color: #fff; }
.main-content-header a { text-decoration: none; color: #fff; font-size: 16px; display: block; height: 50px; line-height: 50px; }
.more-articles-btn { margin: 20px 0; text-align: center; }
.box-header { font-size: 16px; font-weight: bold; border-left: 3px solid #1c477a; padding-left: 12px; margin: 20px 0 12px; }

/* --- Sidebar --- */
.side-box-right ul.btn-list-box { list-style: none; padding: 0; margin: 0; }
.side-box-right ul.btn-list-box li img { width: 300px; }
.side-box-right .btn-desc { display: block; width: 100px; height: 35px; line-height: 35px; text-align: center; color: #fff; background: #d9534f; font-weight: bold; margin: 10px 0; text-decoration: none; }

/* --- Hot Articles --- */
.hot-articles ul { padding: 0; margin: 0; list-style: none; }
.hot-articles ul li { line-height: 30px; font-size: 14px; }
.hot-articles ul li a { color: #428bca; text-decoration: none; }
.hot-articles ul li a:hover { text-decoration: underline; }

/* --- Issue List --- */
.mod-title { font-size: 18px; font-weight: bold; border-left: 4px solid #1c477a; padding-left: 15px; margin: 20px 0; }
.issue-list-box { display: flex; flex-wrap: wrap; gap: 80px; }
.issue-list-box .issue { width: 245px; }
.issue-list-box .issue a { text-decoration: none; color: #333; display: block; }
.issue-list-box .issue .cover-image { width: 245px; height: 325px; }
.issue-list-box .issue .title { font-size: 14px; text-align: center; margin-top: 8px; }

/* --- Issue Detail --- */
.issue-base-info { text-align: left; display: flex; flex-direction: row; }
.issue-base-info img { width: 120px; }
.issue-description { margin-left: 20px; }

/* --- Carousel --- */
.showcase-carousel { position: relative; width: 100%; height: 500px; overflow: hidden; }
.showcase-carousel .carousel-inner { position: relative; width: 100%; height: 100%; }
.showcase-carousel .carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; z-index: 1; }
.showcase-carousel .carousel-slide.active { opacity: 1; z-index: 2; }
.showcase-carousel .carousel-slide img { width: 100%; height: 500px; object-fit: cover; }
.showcase-carousel .carousel-indicators { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.showcase-carousel .carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.showcase-carousel .carousel-dot.active { background: #fff; }
.showcase-carousel .carousel-prev, .showcase-carousel .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(0,0,0,0.3); color: #fff; border: none; font-size: 24px; width: 40px; height: 40px; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.showcase-carousel .carousel-prev { left: 15px; }
.showcase-carousel .carousel-next { right: 15px; }
.showcase-carousel .carousel-prev:hover, .showcase-carousel .carousel-next:hover { background: rgba(0,0,0,0.6); }

/* --- Page Content --- */
.page-content { margin: 20px 0 10px; text-align: left; font-size: 15px; line-height: 1.8; padding-left: 15px; border-left: 4px solid #1c477a; }
.page-content h1 { font-size: 22px; color: #1c477a; margin-bottom: 20px; }
.page-content p { margin: 6px 0; color: #333; }

/* --- Footer --- */
.app-footer { background: #005293; color: #fff; padding: 40px; }
.app-footer .footer-blocks { display: flex; justify-content: space-between; max-width: 1280px; margin: 0 auto; }
.app-footer .footer-blocks .title { font-size: 18px; margin-bottom: 10px; }
.app-footer .footer-blocks ul { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 24px; }
.app-footer .footer-address { max-width: 1280px; margin: 20px auto 0; font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.app-footer .footer-address a { color: #fff; }
.app-footer .footer-logo img { height: 60px; }

/* --- Cover image fallback --- */
.cover-image { width: 245px; height: 325px; object-fit: contain; background: #f5f5f5; }
