/* public.css */
:root {
    --sidebar-width: 250px;
    --header-height: 80px;
    --primary-color: #4a6bdf;
    --bg-color: #fff;
    --border-color: #e5e7eb;
    --content-max-width: 800px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: #333;
    overflow-y: auto;
}

/* 错误提示样式 */
.error-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    max-width: 80%;
}

.error-icon {
    font-size: 36px;
    font-weight: bold;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #ff5252;
    margin-bottom: 15px;
}

.error-info p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}


/* 提示信息样式 */
/* 提示信息显示 - 修改为信息风格 */
/* 提示信息样式 - 修改后 */
.alert-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9); /* 与loading背景一致 */
    color: #333; /* 文字颜色改为深色 */
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 与loading阴影一致 */
    min-width: 300px;
    max-width: 80%;
    border: 1px solid var(--border-color); /* 添加边框增强层次感 */
}

.alert-icon {
    font-size: 36px;
    font-weight: bold;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: transparent; /* 移除背景色 */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color); /* 图标改为主色调蓝色 */
}

.alert-info p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500; /* 加粗文字 */
}

/* 加载状态 */
.loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.loading.hide {
    animation: fadeOut 0.3s ease-out;
    animation-fill-mode: forwards;
}

/* 按钮基本样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    gap: 10px;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3a5bd0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 223, 0.3);
}

.btn-success {
    background-color: #2ecc71;
    color: white;
}

.btn-success:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* 表单基础样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 223, 0.15);
    outline: none;
}

.error-message {
    color: #e74c3c;
    margin-top: 8px;
    font-size: 0.9rem;
    padding: 8px 12px;
    background-color: rgba(231, 76, 60, 0.08);
    border-radius: 6px;
}

.logo-container {
   
    display: flex;
    justify-content: center;
    align-items: center;
   
}

.logo-img {
    width: auto;
    max-height: 100%;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-container p {
    margin: 2px;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}
/* 响应式调整 */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        padding-left: 0;
    }
}

/* 发票表单样式 */
.invoice-form {
    background-color: #f9fafb;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.invoice-form .form-group {
    margin-bottom: 20px;
}

.invoice-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.invoice-form input,
.invoice-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.invoice-form input:focus,
.invoice-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 223, 0.15);
    outline: none;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #3a5bd0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 223, 0.3);
}

/* 记录列表样式 */
.record-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.record-header {
    display: flex;
    background-color: #f5f7fa;
    padding: 12px 15px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.record-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

/* 发票记录样式 */
.invoice-record {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.invoice-record-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.invoice-record-title {
    font-weight: 600;
    color: var(--primary-color);
}

.invoice-record-date {
    color: #888;
    font-size: 0.9rem;
}

.invoice-record-content {
    margin-top: 10px;
    font-size: 0.95rem;
}

.invoice-record-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 10px;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.record-item:hover {
    background-color: #f9fafb;
}

.record-column {
    flex: 1;
    padding: 6px 0;
}

/* 状态标签样式 */
.success {
    color: #2ecc71;
    font-weight: 500;
}

    .wavy-underline {
      text-decoration: underline wavy;
      text-decoration-color: currentColor;
    }

    .dot-below {
      position: relative;
      display: inline-block;
    }

    .dot-below::after {
      content: '·';
      position: absolute;
      bottom: -0.5em;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.8em;
    }

    .underset {
      position: relative;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      vertical-align: top;
    }

    .underset-symbol {
      font-size: 0.7em;
      line-height: 1;
      margin-top: -0.2em;
    }

    .boxed {
      border: 1px solid #000;
      padding: 2px 6px;
      margin: 0 2px;
      display: inline-block;
    }