/* Element UI 风格样式 - Invoice Generator */

:root {
    /* Element UI 色彩系统 */
    --el-color-primary: #409EFF;
    --el-color-primary-light-1: #53a8ff;
    --el-color-primary-light-2: #66b1ff;
    --el-color-primary-light-3: #79bbff;
    --el-color-primary-light-4: #8cc5ff;
    --el-color-primary-light-5: #a0cfff;
    --el-color-primary-light-6: #b3d8ff;
    --el-color-primary-light-7: #c6e2ff;
    --el-color-primary-light-8: #d9ecff;
    --el-color-primary-light-9: #ecf5ff;
    
    --el-color-success: #67C23A;
    --el-color-warning: #E6A23C;
    --el-color-danger: #F56C6C;
    --el-color-info: #909399;
    
    --el-color-text-primary: #303133;
    --el-color-text-regular: #606266;
    --el-color-text-secondary: #909399;
    --el-color-text-placeholder: #C0C4CC;
    
    --el-color-border: #DCDFE6;
    --el-color-border-light: #E4E7ED;
    --el-color-border-lighter: #EBEEF5;
    --el-color-border-extra-light: #F2F6FC;
    
    --el-color-background: #FFFFFF;
    --el-color-background-page: #F2F3F5;
    
    /* Element UI 字体 */
    --el-font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    --el-font-size-extra-large: 20px;
    --el-font-size-large: 18px;
    --el-font-size-medium: 16px;
    --el-font-size-base: 14px;
    --el-font-size-small: 13px;
    --el-font-size-extra-small: 12px;
    
    /* Element UI 间距 */
    --el-spacing-xs: 4px;
    --el-spacing-sm: 8px;
    --el-spacing-md: 16px;
    --el-spacing-lg: 24px;
    --el-spacing-xl: 32px;
    
    /* Element UI 圆角 */
    --el-border-radius-base: 4px;
    --el-border-radius-small: 2px;
    --el-border-radius-large: 6px;
    
    /* Element UI 阴影 */
    --el-box-shadow-base: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
    --el-box-shadow-dark: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.12);
    --el-box-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--el-font-family);
    font-size: var(--el-font-size-base);
    line-height: 1.5;
    color: var(--el-color-text-primary);
    background-color: var(--el-color-background-page);
}

/* 应用容器 */
.app-container {
    min-height: 100vh;
    background-color: var(--el-color-background-page);
    display: flex;
    flex-direction: column;
}

/* 应用头部 */
.app-header {
    background-color: var(--el-color-background);
    border-bottom: 1px solid var(--el-color-border-lighter);
    padding: var(--el-spacing-md) var(--el-spacing-lg);
    box-shadow: var(--el-box-shadow-base);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
}

.app-title {
    font-size: var(--el-font-size-extra-large);
    font-weight: 500;
    color: var(--el-color-text-primary);
    margin: 0 0 var(--el-spacing-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--el-spacing-sm);
}

.app-title i {
    color: var(--el-color-primary);
}

.app-subtitle {
    font-size: var(--el-font-size-small);
    color: var(--el-color-text-secondary);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--el-spacing-sm);
    flex-wrap: wrap;
}

/* 主内容区域 */
.app-main {
    flex: 1;
    padding: var(--el-spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--el-spacing-lg);
    align-items: start;
}

/* 表单区域 */
.form-section {
    display: flex;
    flex-direction: column;
}

/* 预览区域 */
.preview-section {
    display: flex;
    flex-direction: column;
    gap: var(--el-spacing-md);
    position: sticky;
    top: var(--el-spacing-lg);
}

/* Element UI 卡片 */
.el-card {
    background-color: var(--el-color-background);
    border: 1px solid var(--el-color-border-lighter);
    border-radius: var(--el-border-radius-base);
    overflow: hidden;
    box-shadow: var(--el-box-shadow-base);
    transition: all 0.3s ease;
    margin-bottom: 32px;
}

.el-card:last-child {
    margin-bottom: 0;
}

.el-card:hover {
    box-shadow: var(--el-box-shadow-light);
}

.el-card__header {
    padding: var(--el-spacing-md) var(--el-spacing-lg);
    border-bottom: 1px solid var(--el-color-border-lighter);
    background-color: var(--el-color-background);
}

.el-card__body {
    padding: var(--el-spacing-lg);
}

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

.card-icon {
    color: var(--el-color-primary);
    margin-right: var(--el-spacing-sm);
    font-size: var(--el-font-size-medium);
}

.card-title {
    font-size: var(--el-font-size-medium);
    font-weight: 500;
    color: var(--el-color-text-primary);
    flex: 1;
}

/* Element UI 表单 */
.el-form-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.el-form-item:last-child {
    margin-bottom: 0;
}

.el-form-item__label {
    display: inline-block;
    color: var(--el-color-text-regular);
    font-size: var(--el-font-size-base);
    line-height: 40px;
    padding: 0 16px 0 0;
    box-sizing: border-box;
    width: 160px;
    text-align: left;
    flex-shrink: 0;
    margin-top: 0;
    font-weight: 500;
}

.el-form-item__content {
    line-height: 40px;
    position: relative;
    font-size: var(--el-font-size-base);
    flex: 1;
    margin-left: 0;
}

.el-form-item__content .el-input__inner {
    height: 40px;
    line-height: 40px;
}

/* 文本域特殊处理 */
.el-form-item .el-textarea__inner {
    line-height: 1.5;
    height: auto;
    min-height: 60px;
}

.el-form-item .el-form-item__content {
    line-height: 1.5;
}

/* 卡片内表单布局优化 */
.el-card__body .el-form-item {
    margin-bottom: 18px;
}

.el-card__body .el-form-item:last-child {
    margin-bottom: 0;
}

/* 栅格布局在卡片内的优化 */
.el-card__body .el-row {
    margin-left: -8px;
    margin-right: -8px;
    margin-bottom: 18px;
}

.el-card__body .el-row:last-child {
    margin-bottom: 0;
}

.el-card__body .el-col {
    padding-left: 8px;
    padding-right: 8px;
}

/* Element UI 输入框 */
.el-input__inner {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--el-color-background);
    background-image: none;
    border: 1px solid var(--el-color-border);
    border-radius: var(--el-border-radius-base);
    box-sizing: border-box;
    color: var(--el-color-text-primary);
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    outline: none;
    padding: 0 15px;
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
}

.el-input__inner:focus {
    outline: none;
    border-color: var(--el-color-primary);
}

.el-input__inner::placeholder {
    color: var(--el-color-text-placeholder);
}

/* 日期输入框特殊样式 */
input[type="date"].el-input__inner,
.el-input__inner[type="date"] {
    cursor: pointer;
    background-color: #ffffff;
    padding-right: 40px;
    color: #303133;
    font-family: inherit;
    border-radius: 8px;
    border: 2px solid #dcdfe6;
    transition: all 0.3s ease;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: 500;
}

input[type="date"].el-input__inner:focus,
.el-input__inner[type="date"]:focus {
    border-color: #4096ff;
    box-shadow: 0 0 0 4px rgba(64, 158, 255, 0.15);
    outline: none;
}

input[type="date"].el-input__inner:hover,
.el-input__inner[type="date"]:hover {
    border-color: #79bbff;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.1);
}

/* 日历图标样式 */
input[type="date"].el-input__inner::-webkit-calendar-picker-indicator,
.el-input__inner[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

input[type="date"].el-input__inner::-webkit-calendar-picker-indicator:hover,
.el-input__inner[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* 隐藏默认的日期选择器图标和按钮 */
.el-input__inner[type="date"]::-webkit-inner-spin-button,
.el-input__inner[type="date"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

/* 让整个输入框可点击 */
.el-input__inner[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
}

/* Firefox 日期输入框样式 */
input[type="date"].el-input__inner::-moz-calendar-picker-indicator,
.el-input__inner[type="date"]::-moz-calendar-picker-indicator {
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    width: 20px;
    height: 20px;
}

/* 确保日期输入框文本样式 */
.el-input__inner[type="date"]::-webkit-datetime-edit {
    padding: 0;
    margin: 0;
    font-weight: 500;
    color: var(--el-color-text-primary);
}

.el-input__inner[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
    background: transparent;
}

.el-input__inner[type="date"]::-webkit-datetime-edit-text {
    color: var(--el-color-text-primary);
    padding: 0 3px;
    font-weight: 500;
}

.el-input__inner[type="date"]::-webkit-datetime-edit-month-field,
.el-input__inner[type="date"]::-webkit-datetime-edit-day-field,
.el-input__inner[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--el-color-text-primary);
    padding: 0 3px;
    font-weight: 500;
    background: transparent;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.el-input__inner[type="date"]::-webkit-datetime-edit-month-field:hover,
.el-input__inner[type="date"]::-webkit-datetime-edit-day-field:hover,
.el-input__inner[type="date"]::-webkit-datetime-edit-year-field:hover {
    background-color: rgba(64, 158, 255, 0.1);
}

.el-textarea__inner {
    display: block;
    resize: vertical;
    padding: 5px 15px;
    line-height: 1.5;
    box-sizing: border-box;
    width: 100%;
    font-size: inherit;
    color: var(--el-color-text-primary);
    background-color: var(--el-color-background);
    background-image: none;
    border: 1px solid var(--el-color-border);
    border-radius: var(--el-border-radius-base);
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.el-textarea__inner:focus {
    outline: none;
    border-color: var(--el-color-primary);
}

.el-textarea__inner::placeholder {
    color: var(--el-color-text-placeholder);
}

/* Element UI 栅格系统 */
.el-row {
    position: relative;
    box-sizing: border-box;
    margin-left: -8px;
    margin-right: -8px;
}

.el-row--flex {
    display: flex;
    flex-wrap: wrap;
}

.el-col {
    position: relative;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
}

.el-col-12 {
    width: 50%;
}

.el-col-10 {
    width: 41.66667%;
}

.el-col-4 {
    width: 16.66667%;
}

.el-col-6 {
    width: 25%;
}

/* 栅格内的表单项 - 简化处理 */
.el-row .el-form-item {
    margin-bottom: 18px;
}

.el-row .el-form-item:last-child {
    margin-bottom: 0;
}

.el-row .el-form-item__label {
    width: auto;
    text-align: left;
    padding: 0 0 8px 0;
    line-height: 1.5;
    margin-top: 0;
    font-size: var(--el-font-size-small);
    color: var(--el-color-text-regular);
}

.el-row .el-form-item__content {
    line-height: 1.5;
    margin-left: 0;
}

/* Element UI 按钮 */
.el-button {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: var(--el-color-background);
    border: 1px solid var(--el-color-border);
    color: var(--el-color-text-primary);
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    margin: 0;
    transition: 0.1s;
    font-weight: 500;
    padding: 12px 20px;
    font-size: var(--el-font-size-base);
    border-radius: var(--el-border-radius-base);
    user-select: none;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--el-spacing-xs);
}

.el-button:hover,
.el-button:focus {
    color: var(--el-color-primary);
    border-color: var(--el-color-primary-light-7);
    background-color: var(--el-color-primary-light-9);
}

.el-button--primary {
    color: var(--el-color-background);
    background-color: var(--el-color-primary);
    border-color: var(--el-color-primary);
}

.el-button--primary:hover,
.el-button--primary:focus {
    background: var(--el-color-primary-light-1);
    border-color: var(--el-color-primary-light-1);
    color: var(--el-color-background);
}

.el-button--info {
    color: var(--el-color-background);
    background-color: var(--el-color-info);
    border-color: var(--el-color-info);
}

.el-button--info:hover,
.el-button--info:focus {
    background: #a6a9ad;
    border-color: #a6a9ad;
    color: var(--el-color-background);
}

.el-button--small {
    padding: 9px 15px;
    font-size: var(--el-font-size-small);
    border-radius: var(--el-border-radius-small);
}

.el-button:disabled {
    color: var(--el-color-text-placeholder);
    cursor: not-allowed;
    background-image: none;
    background-color: var(--el-color-background);
    border-color: var(--el-color-border-lighter);
}

/* Element UI 分割线 */
.el-divider {
    background-color: var(--el-color-border-lighter);
    position: relative;
    margin: var(--el-spacing-lg) 0;
}

.el-divider--horizontal {
    display: block;
    height: 1px;
    width: 100%;
}

/* 项目明细表头样式 */
.items-header {
    background-color: var(--el-color-background-light);
    border: 1px solid var(--el-color-border-lighter);
    border-radius: var(--el-border-radius-base);
    padding: 12px 16px;
    margin-bottom: 12px;
}

.items-header .el-row {
    margin: 0;
}

.items-header .el-col {
    padding: 0 8px;
}

.header-label {
    font-size: var(--el-font-size-small);
    font-weight: 600;
    color: var(--el-color-text-primary);
    text-align: left;
}

/* 项目行样式 */
.item-row {
    background-color: var(--el-color-background-page);
    border: 1px solid var(--el-color-border-lighter);
    border-radius: var(--el-border-radius-base);
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.item-row:hover {
    border-color: var(--el-color-primary);
    box-shadow: var(--el-box-shadow-base);
}

.item-row:last-child {
    margin-bottom: 0;
}

.item-row .el-row {
    margin: 0;
}

.item-row .el-col {
    padding: 0 8px;
}

.item-row .el-form-item {
    margin-bottom: 0;
    align-items: center;
}

.item-row .el-form-item__label {
    display: none;
}

.item-row .el-form-item__content {
    line-height: 32px;
}

.item-row .el-input__inner {
    height: 32px;
    line-height: 32px;
    font-size: var(--el-font-size-small);
}

.item-row .el-button {
    height: 32px;
    padding: 0 12px;
    font-size: var(--el-font-size-small);
}

/* 发票预览 */
.invoice-preview {
    background-color: var(--el-color-background);
    border: 1px solid var(--el-color-border-lighter);
    border-radius: var(--el-border-radius-base);
    padding: var(--el-spacing-lg);
    min-height: 400px;
    font-size: var(--el-font-size-small);
    line-height: 1.6;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--el-color-text-secondary);
    text-align: center;
}

.preview-placeholder i {
    font-size: 48px;
    margin-bottom: var(--el-spacing-md);
    opacity: 0.5;
}

.preview-placeholder p {
    font-size: var(--el-font-size-base);
    color: var(--el-color-text-secondary);
}

/* 总计样式 */
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--el-spacing-sm) 0;
    font-size: var(--el-font-size-base);
}

.total-label {
    color: var(--el-color-text-regular);
}

.total-value {
    color: var(--el-color-text-primary);
    font-weight: 500;
}

.discount-value {
    color: var(--el-color-danger);
}

.total-final {
    padding-top: var(--el-spacing-md);
    margin-top: var(--el-spacing-sm);
    border-top: 1px solid var(--el-color-border-lighter);
}

.total-final .total-label {
    font-size: var(--el-font-size-medium);
    font-weight: 500;
    color: var(--el-color-text-primary);
}

.total-amount {
    font-size: var(--el-font-size-large);
    font-weight: 600;
    color: var(--el-color-primary);
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--el-spacing-sm);
    margin-top: var(--el-spacing-md);
}

.action-buttons .el-button {
    width: 100%;
}

/* Element UI 消息提示 */
.el-message {
    min-width: 300px;
    box-sizing: border-box;
    border-radius: var(--el-border-radius-base);
    border-width: 1px;
    border-style: solid;
    border-color: var(--el-color-border-lighter);
    position: fixed;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    background-color: var(--el-color-background);
    transition: opacity 0.3s, transform 0.4s, top 0.4s;
    padding: 15px 19px;
    display: flex;
    align-items: center;
    z-index: 2000;
}

.el-message--success {
    background-color: #f0f9ff;
    border-color: #b3e19d;
    color: var(--el-color-success);
}

.el-message--warning {
    background-color: #fdf6ec;
    border-color: #f5dab1;
    color: var(--el-color-warning);
}

.el-message--error {
    background-color: #fef0f0;
    border-color: #fbc4c4;
    color: var(--el-color-danger);
}

.el-message--info {
    background-color: #f4f4f5;
    border-color: #d3d4d6;
    color: var(--el-color-info);
}

.el-message__icon {
    margin-right: var(--el-spacing-sm);
    font-size: var(--el-font-size-medium);
}

.el-message__content {
    padding: 0;
    font-size: var(--el-font-size-base);
    line-height: 1;
}

.el-message__closeBtn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--el-color-text-secondary);
    font-size: var(--el-font-size-base);
}

.el-message__closeBtn:hover {
    color: var(--el-color-text-primary);
}

/* Element UI 加载动画 */
.el-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--el-color-border-lighter);
    border-top: 2px solid var(--el-color-primary);
    border-radius: 50%;
    animation: el-loading-spinner 1s linear infinite;
}

@keyframes el-loading-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .app-content {
        grid-template-columns: 1fr 350px;
        gap: var(--el-spacing-md);
    }
}

@media (max-width: 768px) {
    .app-content {
        grid-template-columns: 1fr;
        gap: var(--el-spacing-md);
    }
    
    .preview-section {
        position: static;
        order: -1;
    }
    
    .el-form-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .el-form-item__label {
        width: auto;
        text-align: left;
        line-height: 1.5;
        padding: 0 0 var(--el-spacing-xs) 0;
    }
    
    .el-form-item__content {
        line-height: 1.5;
    }
    
    .el-row--flex {
        flex-direction: column;
    }
    
    .el-col-12,
    .el-col-10,
    .el-col-4,
    .el-col-6 {
        width: 100%;
        margin-bottom: var(--el-spacing-sm);
    }
    
    .app-main {
        padding: var(--el-spacing-md);
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--el-spacing-sm);
    }
    
    .header-right {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .app-main {
        padding: var(--el-spacing-sm);
    }
    
    .app-header {
        padding: var(--el-spacing-sm) var(--el-spacing-md);
    }
    
    .el-card__body {
        padding: var(--el-spacing-md);
    }
    
    .invoice-preview {
        padding: var(--el-spacing-md);
        min-height: 300px;
    }
    
    .action-buttons {
        flex-direction: row;
    }
    
    .action-buttons .el-button {
        flex: 1;
    }
    
    .el-card {
        margin-bottom: 24px;
    }
    
    .el-form-item {
        margin-bottom: 16px;
    }
}

/* 打印样式 */
@media print {
    .app-header,
    .action-buttons {
        display: none !important;
    }
    
    .app-main {
        padding: 0;
    }
    
    .app-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .el-card {
        box-shadow: none;
        border: 1px solid var(--el-color-border);
        margin-bottom: var(--el-spacing-md);
    }
    
    .invoice-preview {
        border: none;
        box-shadow: none;
    }
}

/* 新的发票预览样式 - 匹配PDF设计 */
.invoice-preview {
    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1.2;
    color: #000000;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
}

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

.company-info {
    flex: 1;
}

.company-name {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;
}

.company-details {
    font-size: 10px;
    color: #666666;
    line-height: 1.3;
}

.invoice-title-section {
    text-align: right;
    width: 150px;
}

.invoice-title {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;
}

.invoice-number {
    font-size: 12px;
    color: #666666;
}

.preview-bill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.bill-to {
    flex: 1;
}

.section-label {
    font-size: 10px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;
}

.customer-name {
    font-size: 12px;
    color: #000000;
    margin-bottom: 5px;
}

.customer-details {
    font-size: 10px;
    color: #666666;
    line-height: 1.3;
}

.invoice-details {
    text-align: right;
    width: 120px;
}

.detail-value {
    font-size: 10px;
    color: #000000;
    margin-bottom: 10px;
}

.preview-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.preview-items-table th {
    background-color: #000000;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 6px 8px;
    text-align: left;
    border: 0.5px solid #000000;
}

.preview-items-table th:nth-child(2),
.preview-items-table th:nth-child(4) {
    text-align: right;
}

.preview-items-table th:nth-child(3) {
    text-align: center;
}

.preview-items-table td {
    font-size: 10px;
    color: #000000;
    padding: 4px 8px;
    border: 0.5px solid #000000;
}

.preview-items-table td:nth-child(2),
.preview-items-table td:nth-child(4) {
    text-align: right;
}

.preview-items-table td:nth-child(3) {
    text-align: center;
}

.preview-totals {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.totals-table {
    width: 180px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #000000;
    margin-bottom: 2px;
}

.total-row.total-final {
    font-size: 12px;
    font-weight: bold;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #000000;
}

.preview-notes {
    font-size: 10px;
    color: #000000;
    margin-bottom: 20px;
}

.notes-label {
    font-weight: bold;
}

/* CloudFlare Turnstile 样式 */
.turnstile-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.turnstile-container .cf-turnstile {
    margin: 0 auto;
}

.turnstile-container::before {
    content: "🔒 Security Verification Required";
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    font-size: 14px;
}

/* 按钮禁用状态 */
.el-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.el-button:disabled:hover {
    background-color: var(--el-color-primary);
    border-color: var(--el-color-primary);
}

/* 高对比度支持 */
@media (prefers-contrast: high) {
    :root {
        --el-color-primary: #0066cc;
        --el-color-border: #000000;
        --el-box-shadow-base: 0 2px 4px rgba(0, 0, 0, 0.3);
        --el-box-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.3);
    }
}

/* 隐私保护通知卡片样式 */
.privacy-notice-card {
    margin-bottom: var(--el-spacing-md);
    animation: slideDown 0.3s ease-out;
}

.privacy-notice-content {
    display: flex;
    align-items: center;
    gap: var(--el-spacing-sm);
    padding: var(--el-spacing-sm);
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f9ff 100%);
    border-radius: var(--el-border-radius-base);
    border-left: 4px solid var(--el-color-primary);
}

.privacy-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--el-color-primary);
    color: white;
    border-radius: 50%;
    font-size: 14px;
}

.privacy-text {
    flex: 1;
}

.privacy-text h4 {
    margin: 0 0 var(--el-spacing-xs) 0;
    color: var(--el-color-text-primary);
    font-size: var(--el-font-size-small);
    font-weight: 600;
}

.privacy-text p {
    margin: 0;
    color: var(--el-color-text-regular);
    font-size: var(--el-font-size-extra-small);
    line-height: 1.4;
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 语言切换开关样式 */
.language-toggle-switch {
    display: flex;
    background: var(--el-color-border-lighter);
    border-radius: var(--el-border-radius-base);
    padding: 2px;
    border: 1px solid var(--el-color-border);
    overflow: hidden;
}

.language-option {
    flex: 1;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--el-color-text-secondary);
    font-size: var(--el-font-size-small);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: calc(var(--el-border-radius-base) - 2px);
    position: relative;
    outline: none;
}

.language-option:hover {
    color: var(--el-color-text-primary);
    background: rgba(64, 158, 255, 0.1);
}

.language-option.active {
    background: var(--el-color-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(64, 158, 255, 0.3);
}

.language-option.active:hover {
    background: var(--el-color-primary-light-1);
    color: white;
}

.language-option span {
    display: block;
    text-align: center;
    white-space: nowrap;
}

/* 开关动画效果 */
.language-toggle-switch {
    position: relative;
}

.language-option {
    position: relative;
    z-index: 2;
}

.language-option.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--el-color-primary);
    border-radius: calc(var(--el-border-radius-base) - 2px);
    z-index: -1;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 页脚样式 */
.app-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-info p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.footer-info p:first-child {
    font-weight: 500;
    color: #495057;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer-separator {
    color: #6c757d;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-info p {
        font-size: 13px;
    }
    
    .footer-link {
        font-size: 13px;
    }
}