* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 导航样式 */
.main-nav {
    background: linear-gradient(135deg, #e87796, #481843, #4D95E1);
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.nav-link i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-bottom-color: #ffd04b;
}

.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    border-bottom-color: #ffd04b;
    font-weight: 600;
}

/* 移动端响应式 */
@media (max-width: 1024px) {
    .nav-menu {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 0;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 0 15px;
    }

    .nav-logo {
        padding: 10px 0;
        font-size: 20px;
    }

    .nav-menu {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 0;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 8px 10px;
        font-size: 11px;
    }

    .nav-link i {
        font-size: 14px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e87796, #481843, #4D95E1);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    outline: none;
}

.btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #1e5799 0%, #207cca 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.results-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.section-header {
    padding: 15px 25px;
    background: linear-gradient(135deg, #1e5799 0%, #207cca 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 1.4rem;
}

.results-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #f8f9fa;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #eee;
}

td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

.stock-code {
    font-weight: 600;
    color: #1e5799;
}

.positive {
    color: #2ecc71;
    font-weight: bold;
}

.negative {
    color: #e74c3c;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 10px;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn.active {
    background: #1e5799;
    color: white;
    border-color: #1e5799;
}

.page-btn:hover:not(.active) {
    background: #f0f0f0;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    display: flex;
    align-items: center;
    margin: 0 15px;
    font-size: 0.9rem;
    color: #666;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #777;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    th, td {
        padding: 10px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Element UI 组件样式微调 */
.el-loading-mask {
    border-radius: 10px;
}

.el-table {
    border-radius: 0;
}

.el-table th {
    background-color: #f8f9fa;
}

.el-pagination {
    justify-content: center;
    padding: 20px;
}

/* 滚动条样式 */
.nav-menu::-webkit-scrollbar {
    height: 4px;
}

.nav-menu::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}