/* 手机端项目管理系统样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --success: #34a853;
    --warning: #fbbc04;
    --danger: #ea4335;
    --dark: #202124;
    --gray: #5f6368;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
    font-size: 14px;
}

/* 登录页 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a73e8 0%, #667eea 50%, #764ba2 100%);
}

.login-box {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo .icon {
    font-size: 56px;
    display: block;
    margin-bottom: 10px;
}

.login-logo h1 {
    font-size: 22px;
    color: var(--dark);
    font-weight: 700;
}

.login-logo p {
    color: var(--gray);
    font-size: 13px;
    margin-top: 5px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.btn {
    display: inline-block;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26,115,232,0.3);
}

.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-secondary { background: var(--gray); color: white; }

/* 通用页面 */
.page {
    min-height: 100vh;
    background: #f5f5f5;
}

.header {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.user-info .avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 导航 */
.nav-tabs {
    display: flex;
    background: var(--white);
    padding: 10px 15px;
    gap: 8px;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

.nav-tab {
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
}

.nav-tab.active {
    background: var(--primary);
    color: white;
}

/* 卡片 */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin: 15px;
    box-shadow: var(--shadow);
}

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

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.card-more {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.blue::before { background: var(--primary); }
.stat-card.green::before { background: var(--success); }
.stat-card.orange::before { background: var(--warning); }
.stat-card.red::before { background: var(--danger); }

.stat-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

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

/* 列表 */
.list {
    background: var(--white);
    border-radius: 16px;
    margin: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

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

.list-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.list-item-desc {
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

.list-item-value {
    text-align: right;
}

.list-item-value .amount {
    font-size: 15px;
    font-weight: 600;
}

.list-item-value .time {
    font-size: 11px;
    color: var(--gray);
}

/* 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 10px;
    text-align: left;
    font-size: 13px;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--gray);
}

.table td {
    border-bottom: 1px solid #f0f0f0;
}

/* 百分比进度条 */
.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 底部操作栏 */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.action-bar .btn {
    flex: 1;
}

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

.empty .icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty p {
    font-size: 14px;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

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

.modal-header h3 {
    font-size: 17px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

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

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.tag-primary { background: rgba(26,115,232,0.1); color: var(--primary); }
.tag-success { background: rgba(52,168,83,0.1); color: var(--success); }
.tag-warning { background: rgba(251,188,4,0.1); color: #b38600; }
.tag-danger { background: rgba(234,67,53,0.1); color: var(--danger); }

/* 返回按钮 */
.back-btn {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 响应式 */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .list-item, .stat-card {
    animation: fadeIn 0.3s ease;
}

/* 金额样式 */
.amount {
    font-weight: 600;
    font-family: 'DIN Alternate', monospace;
}

.amount-large {
    font-size: 28px;
}

/* 股东详情 */
.shareholder-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin: 15px;
}

.shareholder-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.shareholder-percent {
    font-size: 36px;
    font-weight: 700;
    margin: 15px 0;
}

/* 图标 */
.icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.icon-blue { background: rgba(26,115,232,0.1); color: var(--primary); }
.icon-green { background: rgba(52,168,83,0.1); color: var(--success); }
.icon-orange { background: rgba(251,188,4,0.1); color: #b38600; }
.icon-red { background: rgba(234,67,53,0.1); color: var(--danger); }
