* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}
body {
    background: #f8f8f8;
    color: #333;
}
a {
    color: #333;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}
/* 顶部 */
.top-bar {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.top-bar .wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.world-time {
    display: flex;
    gap: 24px;
    font-weight: 500;
    color: #555;
    align-items: center;
}
/* 头部 */
.header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
    white-space: nowrap;
}
.local-info {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.date-week {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}
.date { font-size: 14px; }
.week { font-size: 12px; color: #666; }
/* 每日一句 */
.daily-sentence {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
}
.daily-sentence .label {
    color: #333;
    font-weight: normal;
    margin-right: 6px;
}
/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 480px;
    max-width: 50%;
}
.search-box select,
.search-box input,
.search-box button {
    height: 38px;
    border-radius: 4px;
    font-size: 14px;
}
.search-box select {
    padding: 0 8px;
    border: 1px solid #ccc;
}
.search-box input {
    flex: 1;
    padding: 0 12px;
    border: 1px solid #ccc;
    outline: none;
}
.search-box button {
    padding: 0 18px;
    background: #0066cc;
    color: #fff;
    border: none;
    cursor: pointer;
}
/* 布局 */
.container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.left {
    width: 20%;
}
.center {
    width: 55%;
}
.right {
    width: 25%;
}
/* 面板 */
.box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}
.box h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    font-weight: normal;
}
.box h4 {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    font-weight: normal;
}
/* 网格 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 14px;
}
.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px 12px;
    font-size: 14px;
    align-items: center;
    text-align: left;
}
.grid-5 a {
    padding: 0 4px;
}
.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px 12px;
    font-size: 14px;
    align-items: center;
    text-align: left;
}
.grid-6 a {
    padding: 0 4px;
}
/* 行样式：标题 + 一行5个链接 */
.item-row {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}
.item-row h4 {
    width: 130px;
    font-size: 14px;
    color: #333;
    font-weight: normal;
}
.item-row .links {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
/* 同行标题 */
.row-with-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}
/* 右侧资讯 */
.news-list {
    list-style: none;
    font-size: 14px;
    line-height: 1.6;
}
.news-list li {
    margin-bottom: 6px;
}
.ad-space {
    border: 1px dashed #0066cc;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border-radius: 6px;
    background: #fff;
}
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    .left, .center, .right {
        width: 100%;
    }
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    .header-row {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        width: 100%;
        max-width: 100%;
    }
    .cut5-text a {
        display: inline-block;
        max-width: 5ch;     /* ch = 字符宽度，精准5汉字 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.nav { 
  text-align:center !important; 
  margin:20px 0; 
}
.nav a {
  margin:0 12px; 
  text-decoration:none; 
  color:#333; 
  font-size:16px; }
.nav a:hover { 
  color:#007bff; 
}
.nav a.active { 
  color:#007bff; 
  font-weight:bold; 
}    


/* 底部永久居中样式 */
.footer {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  margin-top: 40px;
  color: #666;
  font-size: 14px;
  border-top: 1px solid #eee;
}
.footer p {
  margin: 5px 0;
  text-align: center;
}

