/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    /*background-color: #f5f5f5;*/
}

/* 导航栏样式 */
.navbar {
    background-color: #1890ff;
    color: white;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
}

.nav-logo i {
    margin-right: 8px;
    font-size: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-login {
    background-color: white;
    color: #1890ff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    font-size: 20px;
    cursor: pointer;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: white;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.btn-primary:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: #d9d9d9;
    color: #666;
}

.btn-outline:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.btn-danger {
    background-color: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
}

.btn-danger:hover {
    background-color: #ff7875;
    border-color: #ff7875;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-get-code {
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-get-code:hover {
    background-color: #e6e6e6;
}

/* 页面样式 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 搜索区域 */
.search-section {
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

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

.search-result-name {
    font-weight: 500;
}

.search-result-code {
    color: #666;
    font-size: 12px;
}

/* 指数区域 */
.indices-section {
    margin-bottom: 20px;
}

.indices-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.index-item {
    background-color: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.index-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.index-value {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.index-change {
    font-size: 12px;
    font-weight: 500;
}

.index-change.positive {
    color: #f5222d;
}

.index-change.negative {
    color: #52c41a;
}

/* 分组区域 */
.groups-section {
    background-color: white;
    border-radius: 13px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.groups-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.groups-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.groups-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.group-tag {
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.group-tag:hover {
    background-color: #e6f7ff;
    border-color: #91d5ff;
}

.group-tag.active {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.group-actions {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

/* 自选列表区域 */
.watchlist-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 65px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.watchlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.watchlist-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.watchlist-actions {
    display: flex;
    gap: 10px;
}

.watchlist-table-container {
    overflow-x: auto;
}

.table-wrapper {
    min-width: 800px;
    position: relative;
}

.watchlist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.watchlist-table th {
    background-color: #fafafa;
    padding: 12px 8px;
    text-align: left;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    min-width: 80px;
}

.watchlist-table th:first-child {
    text-align: left;
    font-weight: 500;
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: #fafafa;
    min-width: 150px;
    max-width: 200px;
}

.watchlist-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.watchlist-table td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 5;
    font-weight: 500;
    cursor: pointer;
    color: #1890ff;
}

.watchlist-table td:first-child:hover {
    text-decoration: underline;
}

.watchlist-table tr:hover {
    background-color: #fafafa;
}

.watchlist-table .date-label {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    font-weight: 400;
    text-align: left; /* 日期标签也左对齐 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .watchlist-table th,
    .watchlist-table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    .date-label {
        font-size: 9px;
    }

    .watchlist-table th:first-child,
    .watchlist-table td:first-child {
        white-space: normal; /* 允许换行 */
        word-break: break-word; /* 允许单词内断行 */
        max-width: 150px; /* 移动端更窄 */
    }
}

.fund-name-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fund-code {
    font-size: 11px;
    color: #999;
    font-weight: normal;
}

.change-positive {
    color: #f5222d;
    font-weight: 500;
}

.change-negative {
    color: #52c41a;
    font-weight: 500;
}

.change-neutral {
    color: #333;
    font-weight: 500;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.large-modal {
    max-width: 900px;
    max-height: 90vh;
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 表单样式 */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.auth-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.auth-tab.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.code-input-group {
    display: flex;
    gap: 10px;
}

.code-input-group input {
    flex: 1;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 编辑列表样式 */
.groups-edit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-edit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: #fafafa;
    border-radius: 4px;
}

.group-edit-item input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
}

.group-edit-actions {
    display: flex;
    gap: 8px;
}

.edit-watchlist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.watchlist-edit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #fafafa;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    cursor: move;
}

.watchlist-edit-item:hover {
    background-color: #f0f0f0;
}

.watchlist-edit-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.watchlist-edit-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.watchlist-edit-code {
    font-size: 12px;
    color: #666;
}

.drag-handle {
    color: #999;
    cursor: move;
    padding: 4px;
}

/* 基金详情样式 */
.fund-detail-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chart-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.chart-periods {
    display: flex;
    gap: 8px;
}

.period-btn {
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.period-btn:hover {
    background-color: #e6e6e6;
}

.period-btn.active {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.chart-container {
    height: 300px;
    position: relative;
}

.holdings-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.holdings-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.holdings-table-container {
    overflow-x: auto;
}

.holdings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.holdings-table th {
    background-color: #fafafa;
    padding: 12px 8px;
    text-align: right;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.holdings-table th:first-child {
    text-align: left;
    z-index: 15;
}

.holdings-table td {
    padding: 12px 8px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.holdings-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.holdings-table tr:hover {
    background-color: #fafafa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #1890ff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .indices-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .large-modal {
        max-width: 100%;
    }
}

/* 基金涨跌幅样式 */
.fund-change-rate {
    font-size: 18px;
    font-weight: 600;
    margin-left: 10px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

.fund-change-rate.change-positive {
    color: #f5222d;
    background-color: rgba(245, 34, 45, 0.1);
}

.fund-change-rate.change-negative {
    color: #52c41a;
    background-color: rgba(82, 196, 26, 0.1);
}

.fund-change-rate.change-neutral {
    color: #333;
    background-color: rgba(51, 51, 51, 0.1);
}

/* 基金详情模态框标题样式 */
.modal-header h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}


/*持仓 start*/
/* 持仓明细标题区域样式 */
.holdings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.holdings-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* 持仓更新日期样式 */
.holdings-update-date {
    font-size: 12px;
    color: #999;
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

/* 或者使用更醒目的样式 */
.holdings-update-date {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #1890ff;
}

/* 持仓表格样式保持原样 */
.holdings-table-container {
    overflow-x: auto;
    margin-top: 10px;
}

.holdings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.holdings-table th {
    background-color: #fafafa;
    padding: 12px 8px;
    text-align: right;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.holdings-table th:first-child {
    text-align: left;
}

.holdings-table td {
    padding: 12px 8px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.holdings-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.holdings-table tr:hover {
    background-color: #fafafa;
}

/* 修改表格列宽 */
.watchlist-table th:nth-child(2),  /* 净值列 */
.watchlist-table td:nth-child(2) {
    width: 100px;  /* 从原来的100px+减小到90px */
    min-width: 100px;
    max-width: 100px;
}

.watchlist-table th:nth-child(3),  /* 估值列 */
.watchlist-table td:nth-child(3) {
    width: 100px;  /* 从原来的100px+减小到90px */
    min-width: 100px;
    max-width: 100px;
}

/* 涨跌颜色类 */
.index-value.positive,
.index-change.positive {
    color: #f5222d; /* 红色 */
}

.index-value.negative,
.index-change.negative {
    color: #52c41a; /* 绿色 */
}

.index-value.neutral,
.index-change.neutral {
    color: #333; /* 黑色 */
}

/* 刷新按钮样式 */
#refreshWatchlistBtn {
    margin-right: 8px;
}

/* 刷新动画 */
.fa-sync-alt.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 按钮组间距优化 */
.watchlist-actions {
    display: flex;
    gap: 8px;
}

.watchlist-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 13px;
}

/* 分组操作按钮样式 */
.groups-actions {
    display: flex;
    gap: 8px;
}

.groups-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 13px;
}

/* 移除分组标签上的操作按钮样式 */
.group-actions {
    display: none; /* 隐藏分组标签上的编辑删除按钮 */
}

.watchlist-table td:first-child {
    padding-right: 30px; /* 仅数据行第一列添加右边距 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    /*.groups-header {*/
    /*    flex-wrap: wrap; !* 在小屏幕上允许换行 *!*/
    /*    gap: 10px;*/
    /*   */
    /*}*/

    /*.groups-actions {*/
    /*    margin-left: 0; !* 取消自动左外边距 *!*/
    /*    width: 100%; !* 占满宽度 *!*/
    /*    justify-content: flex-end; !* 按钮右对齐 *!*/
    /*}*/

    /*.groups-header h3 {*/
    /*    width: 100%; !* 标题占满宽度，换行显示 *!*/
    /*}*/

    /* 或者保持单行布局，缩小字体 */
    .groups-header {
        flex-wrap: nowrap;
    }

    .groups-header h3 {
        font-size: 14px;
    }

    .groups-actions .btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* 用户认证容器 */
#userAuthContainer {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 登录按钮样式 */
.btn-login {
    background-color: white;
    color: #1890ff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-login:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

/* 登录后用户面板样式 */
#userLoggedInPanel {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 用户邮箱显示 */
.user-email {
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 退出按钮样式 */
.btn-logout {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .user-email {
        max-width: 120px;
        font-size: 12px;
    }

    .btn-logout {
        padding: 5px 10px;
        font-size: 12px;
    }

    .btn-login {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 全局加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-container {
    background: white;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 200px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(24, 144, 255, 0.1);
}

.loading-overlay.active .loading-container {
    transform: translateY(0);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #1890ff;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

/* 不同类型的加载提示 */
.loading-error .loading-spinner {
    border-top-color: #f5222d;
}

.loading-success .loading-spinner {
    border-top-color: #52c41a;
}

.loading-warning .loading-spinner {
    border-top-color: #faad14;
}

/* 小型加载提示 */
.mini-loading {
    position: fixed;
    background: white;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border: 1px solid #f0f0f0;
}

.mini-loading.active {
    opacity: 1;
    visibility: visible;
}

.mini-loading-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mini-loading-top {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.mini-loading-bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.mini-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.mini-message {
    color: #333;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

/* 按钮加载状态 */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* 表单字段加载状态 */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 消息提示样式 */
.message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    min-width: 320px;
    max-width: 600px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.message-container.show {
    opacity: 1;
    transform: translateX(-50%) translateY(60px);
    pointer-events: auto;
}

.message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message i {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
}

/* 不同类型的消息样式 */
.message-success {
    border-left: 4px solid #52c41a;
    background: rgba(82, 196, 26, 0.1);
    border-color: rgba(82, 196, 26, 0.2);
}

.message-success i {
    color: #52c41a;
}

.message-error {
    border-left: 4px solid #f5222d;
    background: rgba(245, 34, 45, 0.1);
    border-color: rgba(245, 34, 45, 0.2);
}

.message-error i {
    color: #f5222d;
}

.message-warning {
    border-left: 4px solid #faad14;
    background: rgba(250, 173, 20, 0.1);
    border-color: rgba(250, 173, 20, 0.2);
}

.message-warning i {
    color: #faad14;
}

.message-info {
    border-left: 4px solid #1890ff;
    background: rgba(24, 144, 255, 0.1);
    border-color: rgba(24, 144, 255, 0.2);
}

.message-info i {
    color: #1890ff;
}

/* 关闭按钮 */
.message-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
    transition: color 0.3s;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
}

.message-close:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.1);
}

/* 确认对话框样式 */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-modal.show {
    opacity: 1;
    visibility: visible;
}

.confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.confirm-modal.show .confirm-dialog {
    transform: translateY(0);
}

.confirm-title {
    padding: 20px 24px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.confirm-content {
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-buttons {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-buttons .btn {
    min-width: 80px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .message-container {
        top: 140px;
        left: 10px;
        right: 10px;
        transform: none;
        min-width: auto;
        max-width: none;
    }

    .message-container.show {
        transform: none;
    }

    .message {
        padding: 12px 16px;
    }

    .message i {
        font-size: 18px;
        margin-right: 10px;
    }

    .message-text {
        font-size: 13px;
    }

    .confirm-dialog {
        width: calc(100% - 40px);
    }

    .confirm-buttons {
        flex-direction: column;
    }

    .confirm-buttons .btn {
        width: 100%;
    }
}

/* 批量上传样式 */
.upload-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.upload-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #f0f0f0;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 5px;
}

.step-item.active .step-circle {
    background-color: #1890ff;
    color: white;
}

.step-text {
    font-size: 12px;
    color: #999;
}

.step-item.active .step-text {
    color: #1890ff;
    font-weight: 500;
}

.step-content {
    min-height: 300px;
}

.step-panel {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.step-panel.active {
    display: block;
}

.upload-hint {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 40px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: #999;
    font-size: 16px;
    text-align: center;
}

.upload-area:hover {
    border-color: #1890ff;
    background-color: #f8f9fa;
}

.upload-area i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #d9d9d9;
}

.recognition-status {
    padding: 40px 20px;
    text-align: center;
}

.status-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.status-icon i {
    color: #1890ff;
}

.status-icon.error i {
    color: #f5222d;
}

.status-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.error-text {
    color: #666;
}

.step-hint {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
}

.funds-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.fund-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fund-item:hover {
    background-color: #fafafa;
}

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

.fund-checkbox {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1890ff;
}

.fund-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fund-info {
    flex: 1;
    text-align: left;
}

.fund-name {
    font-weight: 500;
    color: #1990ff;
    margin-bottom: 4px;
    font-size: 14px;
}

.fund-code {
    font-size: 12px;
    color: #999;
}

.fund-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(82, 196, 26, 0.1);
    color: #52c41a;
    white-space: nowrap;
}

.fund-checkbox:checked + .fund-info .fund-name::before {
    content: "";
    color: #52c41a;
    font-weight: bold;
}


/* 关于我们页面样式 */
.about-page {
    /*background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);*/
    min-height: 100vh;
    padding: 40px 0 60px;
}

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

/* 顶部标题区域 */
.about-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.header-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.about-main-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1a1a1a, #333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 主内容卡片 */
.about-content-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 左侧图标区域 */
.about-icon-section {
    position: relative;
}

.icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.icon-item {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa, #f1f3f5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.icon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.icon-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.2);
}

.icon-item:nth-child(2) .icon-circle {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    box-shadow: 0 6px 20px rgba(82, 196, 26, 0.2);
}

.icon-item:nth-child(3) .icon-circle {
    background: linear-gradient(135deg, #faad14, #ffc53d);
    box-shadow: 0 6px 20px rgba(250, 173, 20, 0.2);
}

.icon-item:nth-child(4) .icon-circle {
    background: linear-gradient(135deg, #f5222d, #ff4d4f);
    box-shadow: 0 6px 20px rgba(245, 34, 45, 0.2);
}

.icon-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.icon-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* 右侧文案区域 */
.about-text-section {
    position: relative;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.heading-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1890ff, #40a9ff);
    border-radius: 2px;
    margin-top: 8px;
}

.mission-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.mission-highlights {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 4px solid #1890ff;
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
    color: #333;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-item i {
    color: #52c41a;
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
}

/* 核心价值卡片 */
.values-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.value-card {
    text-align: center;
    padding: 25px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    background: white;
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.2);
}

.value-card:nth-child(2) .value-icon {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    box-shadow: 0 4px 15px rgba(82, 196, 26, 0.2);
}

.value-card:nth-child(3) .value-icon {
    background: linear-gradient(135deg, #f5222d, #ff4d4f);
    box-shadow: 0 4px 15px rgba(245, 34, 45, 0.2);
}

.value-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 底部CTA区域 */
.about-footer {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.footer-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-buttons .btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .about-content-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-main-title {
        font-size: 36px;
    }

    .about-content-card {
        padding: 30px;
    }

    .icon-grid {
        grid-template-columns: 1fr;
    }

    .values-section {
        grid-template-columns: 1fr;
    }

    .about-footer {
        padding: 30px;
    }

    .footer-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .about-main-title {
        font-size: 28px;
    }

    .about-subtitle {
        font-size: 16px;
    }

    .about-content-card {
        padding: 20px;
    }

    .section-heading h2 {
        font-size: 24px;
    }
}

.contact-container {
    /*display: flex;*/
    /*justify-content: center;*/
    /*align-items: center;*/
    margin-left: 23%;
    margin-top: 10%;
}

.contact-content {
    margin-left: 21%;
    margin-top: 15%;
    display: flex;
    /*justify-content: center;*/
    /*align-items: center;*/
}


/*备案信息*/
.footer-links {
    display: flex;
    align-items: center;
    width: 300px;
    margin: 0 auto;
    /*padding-left: 70px;*/
    white-space: nowrap; /* 防止内容换行 */
    background: white;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
}

.footer-links img {
    height: 20px;
    vertical-align: middle; /* 图片与文本垂直居中 */
}

.footer-links p {
    display: inline;
    margin: 0 0 0 5px;
    color: #939393;
    vertical-align: middle; /* 文本与图片垂直居中 */
}

