:root {
    --primary-color: #0066ff;
    --primary-hover: #0052cc;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --bg-color: #f5f7fa;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --border-color: #e8e8e8;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

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

.header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
}

.logo h1 a {
    color: var(--primary-color);
    text-decoration: none;
}

.logo .subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 10px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.search-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052cc 100%);
    padding: 60px 20px;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.search-title {
    color: #fff;
    font-size: 36px;
    margin-bottom: 15px;
}

.search-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.express-select {
    width: 140px;
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    background: #fff;
    cursor: pointer;
}

.tracking-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    outline: none;
}

.search-btn {
    padding: 14px 36px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--primary-hover);
}

.loading-spinner {
    margin-top: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-container,
.error-container {
    max-width: 800px;
    margin: 0 auto 40px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.result-header {
    padding: 24px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-color);
}

.express-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.express-company {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.tracking-no {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: monospace;
}

.delivery-status {
    font-size: 24px;
    font-weight: 700;
    color: var(--success-color);
}

.progress-timeline {
    padding: 30px;
}

.history-container {
    margin-top: 12px;
}

.history-header {
    margin-bottom: 8px;
}

.history-title {
    font-size: 13px;
    color: #fff;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 12px;
    background: #e0e0e0;
    border-radius: 12px;
    font-size: 13px;
    color: #666;
}

.history-item-text {
    cursor: pointer;
}

.history-item-delete {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    padding: 0 2px;
}

.history-item-delete:hover {
    color: var(--error-color);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 30px;
    border-left: 2px solid var(--border-color);
    margin-left: 15px;
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-item.active::before {
    background: var(--success-color);
    box-shadow: 0 0 0 2px var(--success-color);
}

.timeline-item.active {
    border-left-color: var(--success-color);
}

.timeline-time {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.timeline-content {
    font-size: 15px;
    color: var(--text-primary);
}

.timeline-location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.error-container {
    text-align: center;
    padding: 60px 30px;
}

.error-icon {
    width: 60px;
    height: 60px;
    background: var(--error-color);
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.error-container p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.retry-btn {
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.retry-btn:hover {
    background: var(--primary-hover);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-content h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.mobile-four-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 16px;
    text-align: center;
    outline: none;
    box-sizing: border-box;
}

.mobile-four-input:focus {
    border-color: var(--primary-color);
}

.modal-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.confirm-btn {
    background: var(--primary-color);
    color: #fff;
}

.confirm-btn:hover {
    background: var(--primary-hover);
}

.cancel-btn {
    background: #f5f5f5;
    color: var(--text-primary);
}

.cancel-btn:hover {
    background: #eee;
}

.article-section {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 4px solid var(--primary-color);
}

.article-grid {
    display: grid;
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-cover img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.article-content h4 a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #fff;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
}

.footer {
    background: #2c2c2c;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }

    .search-title {
        font-size: 26px;
    }

    .search-form {
        flex-direction: column;
    }

    .express-select,
    .search-btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

.article-detail {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-cover {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 30px 30px 10px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 20px;
    padding: 0 30px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.article-meta .author {
    color: var(--primary-color);
}

.article-content {
    padding: 30px;
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 16px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 20px 0 15px;
    color: var(--text-primary);
}

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

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 10px 20px;
    background: #f8f9fa;
    margin: 15px 0;
    color: var(--text-secondary);
}

.article-tags {
    padding: 0 30px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags a {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
}

.article-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.article-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.article-nav a:hover {
    color: var(--primary-color);
}

.comments-section {
    padding: 30px;
    border-top: 1px solid #eee;
}

.comments-section h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px dashed #eee;
}

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

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-form {
    margin-top: 30px;
}

.comment-form textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 14px;
    resize: vertical;
}

.comment-form input {
    margin-right: 15px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form button {
    padding: 10px 25px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-form button:hover {
    background: var(--primary-hover);
}