/* 全局样式 */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 2rem;
     display: flex;
}

.navbar-nav {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    background-color: #ffffff;
}

.nav-item {
    margin-right: 10px;
    display: flex;
    align-items: center;
    height: 40px;
    justify-content: center;
}

.nav-link, .nav-text {
    color: #3498db;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover, .nav-text:hover {
    background-color: #3498db;
    color: white;
}

.nav-link.active {
    background-color: #2c3e50;
    color: white;
}

.search-form {
    margin-left: auto;
} 

/* 欢迎区域样式 */
.welcome-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.welcome-section h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.welcome-section p {
    color: #5a6c7d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 股票列表区域 */
.stock-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stock-section h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #f8f9fa;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

th {
    font-weight: 600;
    color: #2c3e50;
}

td {
    color: #4a5568;
}

tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* 搜索区域样式 */
#amis-container {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* 标签样式 */
#amis-container label {
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* 输入框样式 */
#amis-container input[type="text"],
#amis-container select {
    height: 38px;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #2d3748;
    background-color: #fff;
    transition: all 0.2s ease;
    min-width: 120px;
}

#amis-container input[type="text"]:focus,
#amis-container select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* 按钮样式 */
button {
    height: 38px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

/* 分页样式 */
#pagination {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

#pagination a {
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #3498db;
    text-decoration: none;
    transition: all 0.2s ease;
}

#pagination a:hover {
    background-color: #3498db;
    color: #ffffff;
}

/* 弹窗样式 */
/* .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    width: 85%;
    max-width: 1200px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    transform: translateY(0);
    animation: modalFadeIn 0.3s ease-out;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #4a5568;
    cursor: pointer;
    z-index: 1010;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.close:hover {
    color: #e53e3e;
    background-color: rgba(255, 255, 255, 0.95);
    transform: rotate(90deg);
} */

/* 图表容器样式 */
/* #myChart {
    width: 100% !important;
    height: 70vh !important;
    max-height: 800px;
    margin: 0 auto;
} */

/* 加载动画样式 */
#loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

/* 复选框样式 */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #cbd5e0;
    cursor: pointer;
}

/* 页脚样式 */
.footer {
    background-color: #ffffff;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid #edf2f7;
}

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

.text-muted {
    color: #718096;
}

/* 关注按钮样式 */
.follow-stock-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.follow-stock-btn:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.follow-stock-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.stock-name-container {
    display: flex;
    align-items: center;
}

.stock-name {
    margin-right: 10px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .welcome-section,
    .stock-section {
        margin: 1rem;
        padding: 1rem;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    th, td {
        padding: 0.75rem;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .follow-stock-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        margin-left: 5px;
    }
}