/* 基础样式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #01bef3;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* 数据源图标样式 */
.source-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 4px;
}

/* 关于页面样式 */
.about-content {
    max-width: 1000px;
    margin: 30px auto 0px;
}

.about-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.about-section h2 i {
    margin-right: 12px;
    color: var(--accent-color);
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.about-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-section li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

/* 团队成员样式 */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.team-member {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.team-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* 联系信息样式 */
.contact-info {
    list-style: none;
    margin-left: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info li i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-header h1 {
        font-size: 2rem;
    }

    .about-section {
        padding: 20px;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .team-members {
        grid-template-columns: 1fr;
    }
}

/* 固定头部样式 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #8e44ad, #3498db, #2c3e50);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo .logo-image {
    width: 48px;
}

.logo h1,
.logo .logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* logo添加链接 */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    opacity: 0.9;
}

/* 导航栏样式（修改为普通链接样式，放在左边） */
.header-nav {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    margin-left: 20px;
}

.header-nav-item {
    position: relative;
}

.header-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 0;
    background-color: transparent;
    position: relative;
}

.header-nav-link:hover {
    color: var(--accent-color);
    background-color: transparent;
    transform: none;
}

.header-nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.header-nav-link.active {
    color: var(--accent-color);
    background-color: transparent;
    box-shadow: none;
}

.header-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.header-nav-link i {
    font-size: 1.2rem;
}

/* 返回链接 */
.back-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.back-link:hover {
    color: var(--secondary-color);
}

/* 主内容区域 */
main {
    padding: 30px 0;
    flex: 1;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.6rem;
    margin: 20px 0px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 i {
    color: var(--secondary-color);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.stat-header h3 {
    font-size: 1.1rem;
    color: var(--gray-color);
    font-weight: 500;
}

.stat-header i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-value.positive {
    color: var(--success-color);
}

.stat-value.negative {
    color: var(--danger-color);
}

.stat-note {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    margin-top: 10px;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--gray-color);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-color);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: auto;
    width: 100%;
}

.footer .container {
    text-align: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.disclaimer {
    font-size: 0.9rem;
    color: #bdc3c7;
    max-width: 800px;
    margin: 0 auto;
}

.friend-link {
    font-size: 0.9rem;
    color: #bdc3c7;
    max-width: 800px;
    margin: 0 auto;
}

.friend-link a {
    color: #bdc3c7;
    text-decoration: none;
}

.friend-link a:hover {
    color: #27ae60;
}

/* 资金流水样式 */
.cash-flows-section {
    margin-top: 40px;
}

.cash-flows-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.cash-flows-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.cash-flows-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cash-flows-table tr:last-child td {
    border-bottom: none;
}

.cash-flows-table tr:hover {
    background: #f8f9fa;
}

/* 资金流水类型徽章 */
.badge.cash-in {
    background: var(--success-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.cash-out {
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 交易记录类型徽章 */
.badge.buy {
    background: var(--success-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.sell {
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.runtime-counter {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ecf0f1;
}

.time-unit {
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    margin: 0 2px;
}

.days {
    color: #3498db;
}

.hours {
    color: #2ecc71;
}

.minutes {
    color: #f39c12;
}

.seconds {
    color: #e74c3c;
}

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

/* 移动端导航按钮 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 15px 0 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-left: 0;
    }

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

    .header-nav-item {
        width: 100%;
    }

    .header-nav-link {
        padding: 12px 15px;
        border-radius: 6px;
        justify-content: center;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.1);
    }

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

    .header-nav-link:hover::after {
        display: none;
    }

    .header-nav-link.active {
        background-color: rgba(1, 190, 243, 0.2);
    }

    .header-nav-link.active::after {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .date-info {
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .logo h1,
    .logo .logo-text {
        font-size: 1.4rem;
    }
}

/* 下拉框样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-arrow {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

.dropdown-item i {
    font-size: 1rem;
    color: var(--secondary-color);
}

.dropdown-item.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    font-weight: 600;
}

/* 移动端下拉框样式 */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        padding: 8px 0;
        margin-top: 5px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 12px 15px;
        color: white;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
    }

    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
    }

    .dropdown-item.active {
        background-color: rgba(1, 190, 243, 0.2);
        color: var(--accent-color);
    }

    .dropdown-item i {
        color: var(--accent-color);
    }
}