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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f7fa;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-area p {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* 成功图标 */
.success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon svg {
    width: 80px;
    height: 80px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 标题样式 */
h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

h1 {
    font-size: 24px;
    font-weight: 600;
}

h2 {
    font-size: 20px;
    font-weight: 500;
}

/* 容器样式 */
.invoice-info, .invoice-detail {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin: 0 auto 20px;
    max-width: 500px;
}

/* 信息项样式 */
.info-item, .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child, .detail-item:last-child {
    border-bottom: none;
}

.info-item label, .detail-item label {
    color: #666;
    font-weight: 400;
}

.info-item span, .detail-item span {
    color: #333;
    font-weight: 500;
    text-align: right;
}

/* 特殊样式 - 金额 */
.info-item span:last-child, .detail-item span:last-child {
    font-size: 16px;
}

/* 隐私政策 */
.policy-agree {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    font-size: 12px;
    color: #666;
}

.policy-agree input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1989fa;
}

/* 按钮样式 */
button, .download-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    text-decoration: none;
    background-color: #f0f2f5;
    color: #333;
}

.receive-btn {
    background-color: #1989fa;
    color: #fff;
}

.receive-btn:hover {
    background-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 137, 250, 0.3);
}

.preview-btn, .send-email-btn {
    /* 继承button的基础样式 */
}

.preview-btn:hover, .download-btn:hover, .send-email-btn:hover {
    background-color: #e4e7ed;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 重新申请链接 */
.reapply-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #1989fa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.reapply-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* 提示信息 */
.note {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 响应式设计 */
@media (max-width: 576px) {
    body {
        padding: 15px;
    }
    
    .invoice-info, .invoice-detail {
        padding: 20px;
    }
    
    .info-item, .detail-item {
        padding: 10px 0;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .success-icon svg {
        width: 60px;
        height: 60px;
    }
}

/* 加载动画 */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.success {
    background-color: #f0f9eb;
    color: #67c23a;
}

.status-tag.processing {
    background-color: #ecf5ff;
    color: #409eff;
}

/* 分隔线 */
.divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 20px 0;
}

/* 页脚样式 */
.footer {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}