* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.login-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0d62d9;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.login-btn:hover {
    background: #e57f7f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 顶部导航栏样式 */
.top-nav {
    background-color: #2c3e50;
    color: white;
    padding: 8px 0;
    font-size: 14px;
    width: 100%;
}

.top-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    width: 205px;
    height: 65px;
    background-color: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-separator {
    color: #7f8c8d;
    margin: 0 2px;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.user-info a{
    color: white;
    text-decoration: none;
}

.user-avatar {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 70%;
    height: 70%;
    object-fit: cover;
    border-radius: 50%;
}

/* 主内容区域样式 */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    width: 100%;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.search-box form {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    min-width: 0;
    color: grey;
}

.search-box input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.search-box button {
    padding: 12px 20px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-box button:hover {
    background-color: #0d62d9;
}

/* 主内容布局 */
.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

/* 数据分类导航样式 */
.data-category-nav {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 20px;
    width: 30%;
}

.category-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e57f7f;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.category-item {
    text-align: center;
}

.category-item a {
    display: block;
    padding: 12px 8px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-item a:hover {
    background: linear-gradient(135deg, #e87796, #481843, #78D71A);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 127, 127, 0.3);
}

.category-item a.active {
    background: linear-gradient(135deg, #e87796, #481843, #4D95E1);
    color: white;
}

/* 事件追踪列表样式 */
.event-track-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    width: 100%;
}

.event-track-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-track-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.event-track-content {
    padding: 0;
}

.event-track-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.event-track-item:hover {
    background: #f8f9fa;
}

.event-track-item:last-child {
    border-bottom: none;
}

.event-track-info {
    flex: 1;
}

.event-track-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a73e8;
    margin-bottom: 5px;
    line-height: 1.4;
}

.event-track-date {
    font-size: 13px;
    color: #888;
}

.event-track-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.event-track-actions a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.event-track-actions a:hover {
    background: #e57f7f;
    color: white;
}

/* 异动信息表格样式 */
.movements-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    margin-bottom: 20px;
}

.movements-table tr:first-child {
    background: linear-gradient(135deg, #e87796, #481843, #4D95E1);
}

.movements-table tr:first-child td {
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    border: none;
    letter-spacing: 2px;
}

.movements-table tr:not(:first-child) {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.movements-table tr:not(:first-child):nth-child(odd) {
    background: #fafafa;
}

.movements-table tr:not(:first-child):nth-child(even) {
    background: #ffffff;
}

.movements-table tr:not(:first-child):hover {
    background: #f8f9ff;
}

.movements-table tr:not(:first-child) td {
    padding: 16px 20px;
    border: none;
    vertical-align: top;
}

.movements-table a{
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.movement-header {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.movement-header span {
    display: inline-block;
    margin-right: 25px;
}

.movement-info {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    padding: 8px 0;
    border-top: 1px dashed #e8e8e8;
    margin-top: 8px;
}

.stock-code {
    color: #1890ff;
    font-weight: bold;
}

.change-positive {
    color: #ff4d4f;
    font-weight: bold;
}

.change-negative {
    color: #52c41a;
    font-weight: bold;
}

.news-date {
    color: #d73c3c;
}

.reason {
    color: #722ed1;
    font-weight: 500;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    text-align: center;
    color: #888;
    font-size: 14px;
    width: 100%;
}

/* 全屏弹幕容器 */
.fullscreen-danmu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

/* 弹幕项样式 */
.danmu-item {
    position: absolute;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    padding: 6px 12px;
    border-radius: 15px;
    background: rgb(240, 221, 197);
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    z-index: 9999;
}

/* 弹幕颜色变体 */
.danmu-item.type-red {
    border-color: #cac86f;
    color: #8a1022;
}

.danmu-item.type-green {
    border-color: #cac86f;
    color: green;
}

/* 在现有CSS基础上添加这些延迟类 */
.danmu-item.delay-0 { animation-delay: 0s; }
.danmu-item.delay-1 { animation-delay: 3s; }
.danmu-item.delay-2 { animation-delay: 5s; }
.danmu-item.delay-3 { animation-delay: 7s; }
.danmu-item.delay-4 { animation-delay: 10s; }
.danmu-item.delay-5 { animation-delay: 17s; }
.danmu-item.delay-6 { animation-delay: 12s; }
.danmu-item.delay-7 { animation-delay: 9s; }
.danmu-item.delay-8 { animation-delay: 45s; }
.danmu-item.delay-9 { animation-delay: 50s; }
.danmu-item.delay-10 { animation-delay: 20s; }
.danmu-item.delay-11 { animation-delay: 6s; }
.danmu-item.delay-12 { animation-delay: 9s; }
.danmu-item.delay-13 { animation-delay: 10s; }
.danmu-item.delay-14 { animation-delay: 15s; }
.danmu-item.delay-15 { animation-delay: 8s; }
.danmu-item.delay-16 { animation-delay: 16s; }
.danmu-item.delay-17 { animation-delay: 20s; }
.danmu-item.delay-18 { animation-delay: 5s; }
.danmu-item.delay-19 { animation-delay: 16s; }

/* 弹幕动画 */
@keyframes danmuMove {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .main-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .search-box button {
        margin-left: 0;
        width: 100%;
    }

    header {
        margin: 15px 0;
        flex-direction: column;
        align-items: stretch;
    }

    .top-nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .top-nav-left {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .logo {
        width: 100%;
        margin-bottom: 0;
        height: 50px;
    }

    .nav-links {
        justify-content: center;
        gap: 5px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .top-nav-right {
        justify-content: center;
    }

    .user-info {
        justify-content: center;
        text-align: center;
    }

    .data-category-nav {
        padding: 15px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
    }

    .category-item a {
        padding: 10px 6px;
        font-size: 13px;
    }

    .movements-table tr:first-child td {
        padding: 15px;
        font-size: 16px;
    }

    .movements-table tr:not(:first-child) td {
        padding: 12px 15px;
    }

    .movement-header span {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .event-track-item {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
    }

    .event-track-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }

    .movements-table tr:first-child td {
        padding: 12px;
        font-size: 14px;
    }

    .movements-table tr:not(:first-child) td {
        padding: 10px 12px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 防止内容溢出 */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* 改善触摸体验 */
@media (hover: none) {
    .category-item a:hover,
    .event-track-actions a:hover {
        background: inherit;
        transform: none;
    }

    .movements-table tr:not(:first-child):hover {
        background: inherit;
    }
}

/*************分页***********/
/* 自定义分页样式 - 基于Discuz结构 */
.custom-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 30px 0;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-pagination .pg {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 所有分页链接和按钮 */
.custom-pagination a,
.custom-pagination strong,
.custom-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background-color: #1890ff;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* 链接悬停效果 */
.custom-pagination a:hover {
    background-color: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

/* 当前页 - 红色背景 */
.custom-pagination strong {
    background-color: #e57f7f !important;
    border-color: #d46b6b;
    cursor: default;
    transform: scale(1.05);
}

/* 禁用状态 */
.custom-pagination span {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* 跳页输入框样式 */
.custom-pagination label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px;
}

.custom-pagination .px {
    width: 60px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.custom-pagination .px:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.custom-pagination label span {
    background: none !important;
    color: #666 !important;
    font-size: 14px;
    white-space: nowrap;
}

/* 特殊按钮样式 */
.custom-pagination .prev,
.custom-pagination .nxt,
.custom-pagination .last {
    padding: 0 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .custom-pagination {
        justify-content: center;
    }

    .custom-pagination .pg {
        justify-content: center;
        gap: 6px;
    }

    .custom-pagination a,
    .custom-pagination strong,
    .custom-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }

    .custom-pagination .px {
        width: 50px;
        height: 36px;
    }
}