/* 全局样式 */
:root {
    --primary-color: #7d2528;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --success-color: #10b981;
    --success-light: #ecfdf5;
    --danger-color: #ef4444;
    --danger-light: #fef2f2;
    --warning-color: #f59e0b;
    --warning-light: #fffbeb;
    --gray-light: #f3f4f6;
    --gray: #e5e7eb;
    --gray-dark: #4b5563;
    --text-dark: #111827;
    --text-light: #6b7280;
    --border-radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* 排版优化 */
body {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 1.875rem; }

h2 { font-size: 1.5rem; }

h3 { font-size: 1.25rem; }

h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 时间轴样式 */
.timeline {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.timeline h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

.timeline-container {
    margin-top: 10px;
}

.timeline-items {
    position: relative;
    padding: 0 0 0 30px;
    list-style: none;
}

/* 时间轴连接线 */
.timeline-items::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
    background-color: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 时间轴节点 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 15px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* 已完成节点样式 */
.timeline-item.completed::before {
    background-color: var(--success-color);
    box-shadow: 0 0 0 2px var(--success-light);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.timeline-name {
    font-weight: bold;
    font-size: 16px;
}

.timeline-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.timeline-controls input[type='date'] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 180px;
}

.timeline-controls label {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.timeline-controls input[type='checkbox'] {
    width: 16px;
    height: 16px;
    accent-color: var(--success-color);
}

/* 收款状态样式 */
.payment-status {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.payment-status .form-group {
    margin-bottom: 15px;
}

.payment-status select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 确保所有页面有足够高度并统一布局 */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--gray-light);
}

/* 确保内容区填满空间，使footer贴底 */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

/* 内容区域占满剩余空间 */
.login-container, .content-wrapper {
    flex: 1;
}

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

/* 统一页面宽度，适配大屏 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 确保main内容居中显示 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Footer样式 - 确保始终贴底 */
footer {
    text-align: center;
    padding: 15px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
    width: 100%;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* 头部样式 */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 0;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

/* 标题区域样式 - 用于放置标题和按钮 */
.title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* 按钮样式优化 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border-radius: var(--border-radius);
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--gray);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--gray-dark);
    color: #fff;
}

header h1 {
    margin-left: 20px;
    font-size: 22px;
    font-weight: 600;
}

.user-info {
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-size: 14px;
}

.user-info a {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.user-info a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 导航样式 */
nav {
    background-color: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 12px 18px;
    display: block;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover {
    background-color: var(--gray-light);
    border-bottom-color: var(--primary-color);
}

nav ul li a.active {
    border-bottom-color: var(--primary-color);
    font-weight: 500;
}

/* 主内容区样式 */
main {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #fff;
}

table th, table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

table th {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

table tr:hover {
    background-color: var(--gray-light);
    transition: background-color 0.2s ease;
}

/* 隔行变色 */
table tr:nth-child(even) {
    background-color: #f9fafb;
}

/* 响应式表格 */
@media (max-width: 768px) {
    /* 水平滚动提示 */
    .table-container {
        position: relative;
        overflow-x: auto;
        margin-bottom: 20px;
    }
    
    .table-container::after {
        content: "滑动查看更多";
        position: absolute;
        right: 10px;
        top: 10px;
        background: rgba(255, 255, 255, 0.8);
        padding: 5px 10px;
        border-radius: 3px;
        font-size: 12px;
        color: #666;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s;
    }
    
    .table-container:hover::after {
        opacity: 0;
    }
    
    table {
        min-width: 600px;
    }
    
    table th, table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    /* 卡片布局 */
    .table-container {
        overflow-x: visible;
    }
    
    .table-container::after {
        display: none;
    }
    
    table {
        display: block;
        min-width: auto;
    }
    
    thead {
        display: none;
    }
    
    tbody {
        display: block;
    }
    
    tr {
        display: block;
        margin-bottom: 20px;
        padding: 15px;
        border: 1px solid var(--gray);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        background-color: #fff;
    }
    
    td {
        display: block;
        text-align: right;
        padding: 8px 10px;
        border-bottom: 1px solid var(--gray-light);
        font-size: 13px;
    }
    
    td:last-child {
        border-bottom: none;
    }
    
    td::before {
        content: attr(data-label) ": ";
        float: left;
        font-weight: bold;
        color: var(--text-dark);
    }
    
    tr:hover {
        background-color: #fff;
    }
    
    tr:nth-child(even) {
        background-color: #fff;
    }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger-color);
}

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

.btn-warning {
    background-color: var(--warning-color);
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* 表单元素样式 */
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    margin-bottom: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

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

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
}

.card-header h3 {
    margin: 0;
    color: var(--text-dark);
}

/* 统计卡片样式 */
.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.stat-card p {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

/* 响应式调整 */
/* 大屏幕 (1200px以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .dashboard-stats {
        gap: 30px;
    }
    
    .stat-card p {
        font-size: 32px;
    }
}

/* 中等屏幕 (992px-1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        padding: 0 20px;
    }
    
    .dashboard-stats {
        gap: 20px;
    }
    
    .stat-card p {
        font-size: 26px;
    }
}

/* 小屏幕 (768px-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding: 0 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin-bottom: 5px;
    }
    
    .dashboard-stats {
        gap: 15px;
    }
    
    .stat-card p {
        font-size: 24px;
    }
}

/* 超小屏幕 (768px以下) */
@media (max-width: 767px) {
    .dashboard-stats {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
    }
    
    /* 表格优化为卡片布局 */
    table {
        display: block;
        overflow-x: auto;
    }
    
    /* 为表格添加水平滚动提示 */
    table::-webkit-scrollbar {
        height: 8px;
    }
    
    table::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    table::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    table::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}

/* 超小屏幕 (576px以下) */
@media (max-width: 576px) {
    .login-container {
        margin: 40px 20px;
        padding: 30px 20px;
    }
    
    /* 表格卡片布局 */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    td {
        border: none;
        position: relative;
        padding: 8px 8px 8px 40%;
        text-align: right;
        min-height: 30px;
        display: flex;
        align-items: center;
    }
    
    td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 8px;
        width: 35%;
        text-align: left;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 表单优化 */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 12px 12px;
    }
    
    .btn-login {
        padding: 12px;
    }
}

/* 登录页面样式 */
.login-container {
    max-width: 420px;
    margin: 80px auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

.login-logo {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border-radius: 50%;
    padding: 5px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #4299e1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    padding: 12px;
    background-color: #fff5f5;
    color: #c53030;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fed7d7;
}

.success-message {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 响应式表单布局 */
@media (max-width: 768px) {
    .login-container {
        margin: 60px 20px;
        padding: 30px 20px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 12px;
        font-size: 14px;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .login-container {
        margin: 40px 15px;
        padding: 25px 15px;
    }
    
    .login-logo {
        max-width: 100px;
    }
    
    .login-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 10px;
        font-size: 12px;
    }
    
    .btn-login {
        padding: 10px;
        font-size: 12px;
    }
}

/* 响应式调整 */
@media (max-width: 576px) {
    .login-container {
        margin: 40px 20px;
        padding: 30px 20px;
    }
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.btn-login {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-login:hover {
    background-color: #2980b9;
}

.error-message {
    color: #e74c3c;
    margin-bottom: 15px;
}

/* 现代化登录页面样式 */
.modern-login {
    background: #7d2528;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

/* 添加一些可爱的装饰元素 */
.modern-login::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.modern-login::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.modern-login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

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

/* 添加跳动动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.modern-login-header {
    background: #7d2528;
    color: white;
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.modern-login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: block;
    animation: bounce 2s infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modern-login-form {
    padding: 30px;
}

.modern-login-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
}

/* 添加输入框焦点时的可爱效果 */
.modern-login-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
    transform: scale(1.02);
}

/* 添加输入框图标 */
.modern-login-input::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.modern-login-button {
    width: 100%;
    padding: 15px;
    background: #7d2528;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.modern-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.modern-login-button:active {
    transform: translateY(0);
}

/* 添加按钮点击效果 */
.modern-login-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.modern-login-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

.modern-login-footer {
    text-align: center;
    padding: 20px;
    color: #657786;
    font-size: 14px;
    border-top: 1px solid #e1e8ed;
}

/* 页脚样式 */
footer {
    background-color: #fff;
    border-top: 1px solid #e1e8ed;
    padding: 20px 0;
    margin-top: auto;
}

footer .text-muted {
    color: #657786 !important;
    font-size: 14px;
}



/* 项目详情页面样式 */
.section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
}

.add-row-btn {
    background-color: #2ecc71;
    margin-bottom: 15px;
}

.add-row-btn:hover {
    background-color: #27ae60;
}

.summary-row {
    font-weight: bold;
    background-color: #f2f2f2;
}

.profit {
    color: #27ae60;
    font-weight: bold;
}

/* 左下角财务指引样式优化 */
#left-sidebar {
    z-index: 999;
}

#sidebar-toggle {
    z-index: 1000;
}

/* 项目详情页面表单响应式样式 */
@media (max-width: 768px) {
    .project-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .project-form .form-row .form-group {
        margin-bottom: 15px;
    }
    
    .project-form input, 
    .project-form select, 
    .project-form textarea {
        padding: 8px;
        font-size: 12px;
    }
    
    .project-form .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* 优化导航菜单 */
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .nav-menu li a {
        display: block;
        padding: 10px;
        border-radius: 4px;
    }
    
    /* 优化表格显示 */
    .table-responsive {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    /* 优化卡片布局 */
    .card-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .project-form {
        padding: 15px;
    }
    
    .project-form input, 
    .project-form select, 
    .project-form textarea {
        padding: 6px;
        font-size: 10px;
    }
    
    .project-form .btn {
        padding: 6px 12px;
        font-size: 10px;
    }
}

