/* ===== 顶部蓝色区域 ===== */
.header-section {
    background: var(--alipay-blue);
    color: #fff;
    padding: 12px 16px 24px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.status-bar .right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-bar .right svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.nav-bar .back {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-bar .back svg {
    fill: #fff;
    width: 22px;
    height: 22px;
}

.nav-bar .title {
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-bar .ant-head {
    width: 28px;
    height: 28px;
}

.nav-bar .ant-head svg {
    width: 28px;
    height: 28px;
}

.safety-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.safety-tip svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.safety-tip .arrow {
    font-size: 1rem;
}

.total-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 8px;
}

.total-label svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.total-amount {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.pending-box {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pending-tag {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
}

.profit-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 16px;
}

.profit-item {
    text-align: center;
}

.profit-item .label {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-bottom: 4px;
}

.profit-item .value {
    font-size: 1.1rem;
    font-weight: 600;
}

.asset-link {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.asset-link a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 6px 16px;
}

/* ===== 快捷入口 ===== */
.quick-actions {
    display: flex;
    justify-content: space-around;
    background: #fff;
    border-radius: 12px;
    margin: -10px 16px 12px;
    padding: 16px 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--icon-color);
}

.quick-action svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.quick-action .name {
    font-size: 0.75rem;
    color: var(--text);
}

/* ===== 市场热点 ===== */
.news-card {
    background: #fff;
    border-radius: 12px;
    margin: 0 16px 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.news-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.news-header svg {
    width: 16px;
    height: 16px;
    fill: var(--red);
}

.news-header .tag {
    color: var(--alipay-blue);
    font-size: 0.85rem;
    font-weight: 600;
}

.news-content {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.news-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.news-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: #F0F0F0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-img svg {
    width: 48px;
    height: 48px;
}

.news-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.news-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--alipay-blue);
}

.news-dot:not(.active) {
    opacity: 0.25;
}

/* ===== 我的持有 ===== */
.holdings-section {
    background: var(--bg);
}

.holdings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 10px;
}

.holdings-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 700;
}

.holdings-title svg {
    width: 16px;
    height: 16px;
    fill: var(--text);
}

.holdings-sort {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.holdings-sort svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border);
    cursor: pointer;
}

.filter-tab.active {
    background: var(--alipay-blue);
    color: #fff;
    border-color: var(--alipay-blue);
}

.table-header {
    display: flex;
    padding: 8px 16px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
}

.table-header .col-name {
    flex: 1;
}

.table-header .col-amount,
.table-header .col-profit {
    width: 90px;
    text-align: right;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.category-row svg {
    width: 14px;
    height: 14px;
    fill: var(--orange);
}

.fund-list {
    background: #fff;
}

.fund-item {
    display: flex;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.fund-item:active {
    background: #f9f9f9;
}

.fund-item .col-name {
    flex: 1;
    min-width: 0;
}

.fund-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fund-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.fund-tag {
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 3px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 2px;
}

.fund-tag.gold {
    background: #FFF8E6;
    color: var(--gold);
    border: 1px solid #F0E0B0;
}

.fund-tag.blue {
    background: #E8F3FF;
    color: var(--alipay-blue);
    border: 1px solid #C9E0FF;
}

.fund-tag.gray {
    background: #F5F5F5;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.fund-tag svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.fund-tip {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.fund-tip .ant-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.fund-tip .ant-icon svg {
    width: 16px;
    height: 16px;
}

.fund-item .col-amount,
.fund-item .col-profit {
    width: 90px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amount-value {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.amount-change {
    font-size: 0.8rem;
}

.profit-value {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.profit-rate {
    font-size: 0.8rem;
}

/* ===== 底部导航 ===== */
.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 12px;
    z-index: 100;
}

@media (min-width: 768px) {
    .bottom-tab-bar {
        max-width: 680px;
    }
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-tertiary);
    font-size: 0.65rem;
    cursor: pointer;
}

.tab-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.tab-item.active {
    color: var(--alipay-blue);
}
