* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(to bottom, rgb(30, 108, 180) 0%, #3f8acd 100px, transparent 200px), #fff;
    color: #333;
    min-height: 100vh;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

img {
    vertical-align: middle;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    width: 1000px;
}

#shortcut {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 8px;
    height: 32px;
    font-size: 12px;
    background: linear-gradient(to bottom, #1a5a9e 0%, #0f4d85 50%, #1c5ca2 100%);
    border-top: 1px solid #0d4d85;
    border-bottom: 1px solid #245ba8;
    color: #fff;
}

#shortcut a {
    color: #fff;
    opacity: 0.8;
    padding: 4px 8px;
    border-radius: 2px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

#shortcut a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

#shortcut span {
    margin: 0 4px;
    opacity: 0.6;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

#header {
    display: flex;
    align-items: center;
    padding: 0 32px;
    height: 248px;
    background-color: #fff;
    background-image: url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
}

#logo img {
    height: 142px;
}

#menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 32px;
    color: #fff;
    background: linear-gradient(to bottom, #4a9ee0 0%, #1e6cb4 50%, #0f5a9c 100%);
    border-top: 1px solid #6bb4f0;
    border-bottom: 2px solid #0d4d85;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 
                0 2px 4px rgba(0, 0, 0, 0.3);
}

#menu a {
    color: #fff;
    padding: 8px 12px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

#main {
    margin: 6px auto;
    display: grid;
    grid-template-columns: 240px 456px 254px;
    row-gap: 6px;
    justify-content: space-between;
}

.span-2 {
    grid-column: span 2;
}

.box {
    border: 1px solid #ccc;
}

.box h2 {
    font-size: 16px;
}

.style1 h2 {
    margin: 6px 0;
    padding-left: 24px;
    height: 28px;
    line-height: 28px;
    background: url('../img/style1.gif') no-repeat center center;
}

.style2 {
    padding: 10px 15px;
    background: linear-gradient(to bottom, #f0f9ff 0%, #e0f2fe 10px, transparent 35px);
}

.style2 h2 {
    display: flex;
    margin: 0 0 6px 0;
    justify-content: space-between;
}

.news-list h2 .more {
    margin: 0;
    height: 16px;
    text-align: right;
}

.news-container {
    display: flex;
    padding: 6px;
}

.news-slideshow {
    position: relative;
    width: 290px;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.slide-nav {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.nav-dot {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.8);
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #94a3b8;
}

.nav-dot.active {
    background: #0ea5e9;
    color: white;
    border-color: #0284c7;
}

.news-list {
    flex: 1;
    padding: 0 15px;
}

.news-list ul {
    list-style: none;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
    line-height: 1.4;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    flex: 1;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.news-list a:hover {
    color: #0ea5e9;
}

.news-list span {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

#footer {
    background: linear-gradient(to bottom, #e6f1fa 0%, #d6e4f0 50%, #c8dbed 100%);
    padding: 15px 0;
    margin-top: 6px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #b8d0e6;
}

.footer-links {
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-links a {
    color: #0066cc;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-info {
    text-align: center;
}

.company-info {
    margin-bottom: 5px;
}

.company-info span {
    margin: 0 10px;
}

.copyright {
    color: #888;
    font-size: 12px;
}

.other img {
    max-width: 100%;
}

.flex {
    display: flex;
    gap: 8px;
}

.img-wrapper {
    flex-shrink: 0;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
}

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

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    padding: 10px 15px;
    font-size: 12px;
}

.links-grid a {
    color: #666;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.links-grid a:hover {
    color: #0ea5e9;
    background: #e3f2fd;
    border-color: #90caf9;
}

/* 页面模板通用样式 */
.page-container {
    margin: 6px auto;
}

.breadcrumb {
    padding: 10px 0;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #0066cc;
}

/* 文章详情页样式 */
.article-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
}

.article-main {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
}

.article-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}

.article-meta span {
    margin-right: 20px;
}

.article-content {
    line-height: 1.8;
    font-size: 14px;
}

.article-content h3 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 12px;
}

.article-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.article-nav a {
    display: block;
    padding: 8px 0;
    color: #0066cc;
    font-size: 13px;
}

/* 列表页样式 */
.list-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
}

.list-main {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
}

.page-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.page-header p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    margin-bottom: 10px;
}

.news-item h3 a {
    color: #333;
    font-size: 16px;
    font-weight: normal;
}

.news-item h3 a:hover {
    color: #0066cc;
}

.news-meta {
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.news-meta span {
    margin-right: 15px;
}

.news-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination .current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 联系我们页面样式 */

.contact-main {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    border-radius: 50%;
}

.contact-details h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.contact-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-list ul {
    list-style: none;
    padding: 10px 15px;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    color: #666;
    font-size: 14px;
    padding: 5px 0;
    display: block;
}

.category-list a:hover,
.category-list a.active {
    color: #0066cc;
}

.contact-info {
    font-size: 14px;
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 8px;
}

.service-links {
    padding: 10px 15px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px dashed #e0e0e0;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item span {
    font-size: 20px;
}

.service-item h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.service-item p {
    font-size: 12px;
    color: #666;
}

#menu a.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}