/* 迅舶国际物流 - 资讯页面共用样式 */
:root {
    --primary: #1a5276;
    --primary-dark: #0e2f44;
    --primary-light: #2980b9;
    --accent: #e67e22;
    --accent-dark: #d35400;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.8;
    background: var(--bg-light);
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }

/* 导航 */
.news-nav {
    background: var(--primary-dark);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.news-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.news-nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
.news-nav .nav-logo img {
    height: 36px;
}
.news-nav .nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.news-nav .nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    transition: color 0.3s;
}
.news-nav .nav-links a:hover,
.news-nav .nav-links a.active {
    color: var(--accent);
}

/* 面包屑 */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    font-size: 13px;
    color: var(--text-light);
}
.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { margin: 0 6px; }

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 48px 0 40px;
    text-align: center;
}
.page-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}
.page-header p {
    font-size: 15px;
    opacity: 0.8;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 0;
}

.article-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 28px;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.article-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.article-date-box {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 8px 0;
    line-height: 1.3;
}
.article-date-box .day {
    font-size: 24px;
    font-weight: 700;
}
.article-date-box .month {
    font-size: 12px;
    opacity: 0.85;
}

.article-content { flex: 1; min-width: 0; }
.article-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.5;
}
.article-content h3 a { color: var(--text); }
.article-content h3 a:hover { color: var(--primary-light); }
.article-content .article-summary {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
    align-items: center;
    flex-wrap: wrap;
}
.article-meta .category-tag {
    background: rgba(26,82,118,0.1);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
}
.article-meta .tag-item {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 32px 0 48px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: all 0.3s;
}
.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 文章详情 */
.article-detail {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 32px 0;
}
.article-detail h1 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text);
}
.article-detail .detail-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.article-detail .detail-body {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
}
.article-detail .detail-body h2 {
    font-size: 22px;
    margin: 32px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}
.article-detail .detail-body h3 {
    font-size: 18px;
    margin: 24px 0 12px;
}
.article-detail .detail-body p {
    margin-bottom: 16px;
}
.article-detail .detail-body ul,
.article-detail .detail-body ol {
    margin: 12px 0 16px 24px;
}
.article-detail .detail-body li {
    margin-bottom: 6px;
}
.article-detail .detail-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.article-detail .detail-body th,
.article-detail .detail-body td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
}
.article-detail .detail-body th {
    background: var(--primary);
    color: #fff;
}
.article-detail .detail-body blockquote {
    border-left: 4px solid var(--accent);
    background: var(--bg-light);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-detail .detail-body .highlight-box {
    background: linear-gradient(135deg, rgba(26,82,118,0.05), rgba(230,126,34,0.05));
    border: 1px solid rgba(26,82,118,0.15);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
}
.article-detail .detail-body .price-table {
    margin: 16px 0;
}
.article-detail .detail-body .price-table td:first-child {
    font-weight: 600;
}

.article-tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.article-tags .tag-label {
    font-size: 14px;
    color: var(--text-light);
    margin-right: 4px;
}
.article-tags .tag {
    background: var(--bg-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    transition: background 0.3s;
}
.article-tags .tag:hover {
    background: rgba(26,82,118,0.1);
}

/* 相关文章 */
.related-articles {
    margin-top: 40px;
}
.related-articles h3 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid var(--accent);
}
.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.related-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: background 0.3s;
}
.related-item:hover {
    background: rgba(26,82,118,0.05);
}
.related-item h4 {
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.5;
}
.related-item h4 a { color: var(--text); }
.related-item h4 a:hover { color: var(--primary-light); }
.related-item .related-date {
    font-size: 12px;
    color: var(--text-light);
}

/* 相关业务内链 */
.related-services {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 20px;
}
.related-services h3 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid var(--accent);
}
.related-service-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.related-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: all 0.3s;
    color: var(--text);
}
.related-service-item:hover {
    background: rgba(26,82,118,0.08);
    transform: translateY(-2px);
}
.related-service-item i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}
.related-service-item span {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.related-service-item small {
    font-size: 12px;
    color: var(--text-light);
}

/* CTA */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin: 32px 0;
}
.cta-box h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.cta-box p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}
.cta-box .btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s;
}
.cta-box .btn:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* 页脚 */
.news-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 32px 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}
.news-footer a { color: rgba(255,255,255,0.85); }
.news-footer a:hover { color: var(--accent); }

/* 管理页面 */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px;
}
.admin-form {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}
.admin-form h2 {
    font-size: 22px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    line-height: 1.6;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.1);
}
.form-group textarea {
    min-height: 300px;
    resize: vertical;
}
.form-group .hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-secondary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-secondary:hover {
    background: var(--accent-dark);
}
.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.output-box {
    margin-top: 24px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: none;
}
.output-box.show { display: block; }
.output-box h3 {
    font-size: 16px;
    margin-bottom: 12px;
}
.output-box pre {
    background: var(--primary-dark);
    color: #e0e0e0;
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
}
.output-box .copy-btn {
    margin-top: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-header h1 { font-size: 24px; }
    .article-item { flex-direction: column; gap: 12px; }
    .article-date-box { width: auto; display: flex; gap: 8px; padding: 6px 12px; }
    .article-date-box .day { font-size: 16px; }
    .article-detail { padding: 20px; }
    .article-detail h1 { font-size: 22px; }
    .form-row { grid-template-columns: 1fr; }
    .news-nav .nav-links { gap: 12px; }
    .news-nav .nav-links a { font-size: 12px; }
    .related-list { grid-template-columns: 1fr; }
    .related-service-list { grid-template-columns: repeat(2, 1fr); }
}
