/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}



/* 首页banner */
.banner {
    background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.8)), url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}
.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}
.banner p {
    font-size: 20px;
    max-width: 800px;
}

/* 通用容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
}

/* 公司介绍 */
.company-intro {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}
.intro-text {
    flex: 1;
}
.intro-text h2 {
    font-size: 32px;
    color: #1a365d;
    margin-bottom: 20px;
}
.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}
.intro-img {
    flex: 1;
}
.intro-img img {
    width: 100%;
    border-radius: 8px;
}

/* 基金信息公示 */
.fund-section h2 {
    font-size: 32px;
    color: #1a365d;
    margin-bottom: 30px;
    text-align: center;
}
.fund-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.fund-table th, .fund-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}
.fund-table th {
    background-color: #f8f9fa;
    color: #1a365d;
    font-weight: bold;
}
.fund-table tr:hover {
    background-color: #f8f9fa;
}
.risk-tip {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px;
    margin: 30px 0;
    color: #856404;
}
/* 未登录时基金区域占位样式 */
.fund-placeholder {
    text-align: center;
    padding: 80px 0;
    color: #666;
    font-size: 18px;
    border: 1px dashed #ddd;
    border-radius: 8px;
}
.fund-placeholder a {
    color: #1a365d;
    text-decoration: none;
    font-weight: bold;
}

/* 投资者登录 */
.login-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}
.login-container h2 {
    text-align: center;
    color: #1a365d;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.btn {
    width: 100%;
    padding: 12px;
    background-color: #1a365d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.btn:hover {
    background-color: #2c5282;
}
/* 投资者资产状况样式 */
.asset-dashboard {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}
.asset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.asset-header h2 {
    color: #1a365d;
    font-size: 28px;
}
.logout-btn {
    padding: 8px 20px;
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.logout-btn:hover {
    background-color: #c53030;
}

/* 资产概览卡片 */
.asset-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.asset-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1a365d;
}
.asset-card h3 {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}
.asset-card .value {
    font-size: 24px;
    font-weight: bold;
    color: #1a365d;
}
.asset-card .label {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

/* 持仓明细表格 */
.holding-table {
    width: 100%;
    border-collapse: collapse;
}
.holding-table th, .holding-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}
.holding-table th {
    background-color: #f8f9fa;
    color: #1a365d;
    font-weight: bold;
}
.holding-table tr:hover {
    background-color: #f8f9fa;
}
.positive {
    color: #22c55e;
    font-weight: bold;
}
.negative {
    color: #ef4444;
    font-weight: bold;
}

/* 未登录提示 */
.not-login {
    text-align: center;
    padding: 80px 0;
    color: #666;
    font-size: 18px;
}
.not-login a {
    color: #1a365d;
    text-decoration: none;
    font-weight: bold;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .asset-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .asset-overview {
        grid-template-columns: 1fr;
    }
    .holding-table th, .holding-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
}



/* 隐藏元素 */
.hidden {
    display: none !important;
}