/* css.css - 环球商报网 样式表 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif; background-color: #f4f5f7; color: #2c3e50; line-height: 1.7; }
a { text-decoration: none; color: #2c3e50; transition: color 0.3s ease; }
a:hover { color: #0056b3; } /* 商业深蓝色为主色调 */
ul, li { list-style: none; }
.container { width: 1220px; margin: 0 auto; overflow: hidden; }

/* Header (整合到各页面) */
.header { background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.top-bar { height: 90px; display: flex; align-items: center; justify-content: space-between; }
.logo h1 { font-size: 32px; font-weight: bold; color: #0056b3; letter-spacing: 1px; font-family: "Georgia", serif; }
.logo h1 a { color: #0056b3; }
.logo span { font-size: 14px; color: #7f8c8d; margin-left: 15px; padding-left: 15px; border-left: 1px solid #ddd; text-transform: uppercase; font-family: "Arial", sans-serif; }
.search { display: flex; border: 1px solid #bdc3c7; border-radius: 2px; overflow: hidden; }
.search input { padding: 10px 15px; width: 250px; border: none; outline: none; font-size: 14px; background: #fafafa; }
.search input:focus { background: #fff; }
.search button { padding: 10px 25px; background: #0056b3; color: #fff; border: none; cursor: pointer; font-size: 15px; font-weight: bold; transition: background 0.3s; }
.search button:hover { background: #004494; }

/* Navigation */
.nav { background-color: #002b5e; }
.nav ul { display: flex; justify-content: center; }
.nav li a { display: block; padding: 0 35px; line-height: 50px; color: #ecf0f1; font-size: 16px; font-weight: 500; letter-spacing: 1px; }
.nav li a:hover, .nav li a.active { background-color: #0056b3; color: #fff; }

/* Layout */
.main { display: flex; justify-content: space-between; margin: 30px auto; }
.left-col { width: 850px; }
.right-col { width: 340px; }

/* Block Title */
.block-title { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #002b5e; margin-bottom: 20px; padding-bottom: 10px; }
.block-title h2 { font-size: 24px; color: #002b5e; font-weight: bold; position: relative; padding-left: 15px; line-height: 1; }
.block-title h2::before { content: ''; position: absolute; left: 0; top: 0; width: 5px; height: 100%; background-color: #0056b3; }
.block-title .more { font-size: 14px; color: #7f8c8d; font-family: "Arial", sans-serif; }
.block-title .more:hover { color: #0056b3; }

/* Index Headlines (头条大图) */
.headline-box { display: flex; gap: 20px; margin-bottom: 30px; }
.headline-main { width: 500px; position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.headline-main .pic { display: block; width: 100%; height: 320px; }
.headline-main .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.headline-main:hover .pic img { transform: scale(1.03); }
.headline-main .info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }
.headline-main .info h3 { font-size: 22px; font-weight: normal; margin-bottom: 5px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.headline-sub { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.headline-sub .item { flex: 1; background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.headline-sub .item h3 { font-size: 18px; margin-bottom: 10px; }
.headline-sub .item p { color: #7f8c8d; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Article List (财经列表) */
.article-list .item { display: flex; background: #fff; padding: 25px; margin-bottom: 20px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; border-left: 3px solid transparent; }
.article-list .item:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.08); border-left-color: #0056b3; }
.article-list .item .pic { width: 240px; height: 150px; overflow: hidden; margin-right: 25px; flex-shrink: 0; border-radius: 2px; }
.article-list .item .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-list .item:hover .pic img { transform: scale(1.05); }
.article-list .item .info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.article-list .item h3 { font-size: 20px; font-weight: bold; line-height: 1.4; }
.article-list .item .desc { color: #555; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-list .item .meta { display: flex; align-items: center; color: #95a5a6; font-size: 13px; font-family: "Arial", sans-serif; }
.article-list .item .meta .tag { color: #0056b3; font-weight: bold; margin-right: 15px; text-transform: uppercase; }
.article-list .item .meta .date { margin-right: 15px; }

/* Sidebar Widget */
.widget { background: #fff; padding: 25px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 25px; border-top: 3px solid #002b5e; }
.widget-title { font-size: 18px; font-weight: bold; color: #002b5e; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #ecf0f1; text-transform: uppercase; letter-spacing: 1px; }
.data-box { background: #f8f9fa; padding: 15px; border-radius: 4px; margin-bottom: 20px; text-align: center; border: 1px solid #e9ecef; }
.data-box .index { font-size: 24px; font-weight: bold; color: #c0392b; font-family: "Arial", sans-serif; }
.data-box .index.green { color: #27ae60; }
.data-box .name { font-size: 14px; color: #7f8c8d; margin-top: 5px; }

.rank-list li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed #ecf0f1; display: flex; align-items: flex-start; }
.rank-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.rank-list .num { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; background: #bdc3c7; color: #fff; font-size: 12px; margin-right: 15px; border-radius: 2px; font-family: "Arial", sans-serif; }
.rank-list li:nth-child(1) .num { background: #002b5e; }
.rank-list li:nth-child(2) .num { background: #0056b3; }
.rank-list li:nth-child(3) .num { background: #3498db; }
.rank-list a { flex: 1; font-size: 15px; line-height: 1.5; font-weight: 500; }

/* Breadcrumb & Pagination */
.breadcrumb { background: #fff; padding: 15px 25px; margin-bottom: 25px; font-size: 14px; border-radius: 4px; color: #7f8c8d; box-shadow: 0 1px 5px rgba(0,0,0,0.03); }
.breadcrumb a { color: #34495e; font-weight: 500; }
.pagination { text-align: center; margin: 40px 0; }
.pagination li { display: inline-block; margin: 0 4px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 18px; background: #fff; border: 1px solid #bdc3c7; border-radius: 2px; color: #34495e; font-weight: 500; font-family: "Arial", sans-serif; }
.pagination .thisclass, .pagination a:hover { background: #0056b3; color: #fff; border-color: #0056b3; }

/* Article Content */
.article-box { background: #fff; padding: 50px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.article-title { text-align: center; margin-bottom: 35px; }
.article-title h1 { font-size: 30px; margin-bottom: 20px; color: #2c3e50; font-weight: bold; line-height: 1.4; }
.article-meta { color: #7f8c8d; font-size: 14px; text-align: center; padding-bottom: 20px; border-bottom: 1px solid #ecf0f1; margin-bottom: 35px; font-family: "Arial", sans-serif; }
.article-meta span { margin: 0 15px; }
.article-content { font-size: 17px; line-height: 2.2; color: #34495e; }
.article-content p { margin-bottom: 25px; text-align: justify; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 30px auto; border: 1px solid #ecf0f1; padding: 5px; }
.article-content blockquote { border-left: 4px solid #0056b3; background: #f8f9fa; padding: 15px 20px; margin: 20px 0; color: #555; font-style: italic; }
.article-nav { margin-top: 50px; padding: 25px; background: #f8f9fa; border-radius: 4px; font-size: 15px; color: #34495e; border-left: 3px solid #bdc3c7; }
.article-nav p { margin-bottom: 10px; }
.article-nav p:last-child { margin-bottom: 0; }

/* Footer */
.footer { background: #001a38; border-top: 4px solid #0056b3; color: #95a5a6; text-align: center; padding: 50px 0; margin-top: 50px; }
.footer p { margin-bottom: 10px; font-size: 14px; letter-spacing: 0.5px; }
.footer a { color: #bdc3c7; }
.footer a:hover { color: #fff; }
.footer-links { margin-bottom: 20px; }
.footer-links a { margin: 0 15px; font-size: 15px; }