/* ========================================
   BotQuote 智能报价系统 - 自定义样式
   博涛文化创意AI协同平台
   ======================================== */

/* 全局样式 */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 
                 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 报价单打印样式 */
.quote-paper {
    background: white;
    position: relative;
}

.quote-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 28px,
        rgba(0, 0, 0, 0.01) 28px,
        rgba(0, 0, 0, 0.01) 29px
    );
    pointer-events: none;
}

/* 工艺卡片悬浮效果 */
.craft-card {
    transition: all 0.3s ease;
}

.craft-card:hover {
    transform: translateY(-2px);
}

/* 上传区域拖拽效果 */
#upload-area.drag-over {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

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

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 按钮点击效果 */
button:active {
    transform: scale(0.98);
}

/* 输入框聚焦效果 */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* 表格样式优化 */
table {
    border-collapse: collapse;
}

/* 报价单表格打印优化 */
@media print {
    .quote-paper table {
        page-break-inside: auto;
    }
    
    .quote-paper tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .quote-paper thead {
        display: table-header-group;
    }
    
    .quote-paper tfoot {
        display: table-footer-group;
    }
}

/* 移动端优化 */
@media (max-width: 640px) {
    .quote-paper {
        padding: 1rem !important;
    }
    
    .quote-paper table {
        font-size: 0.75rem;
    }
    
    .quote-paper th,
    .quote-paper td {
        padding: 0.25rem;
    }
}

/* 数字输入框去除上下箭头 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* 复选框自定义样式 */
input[type="checkbox"] {
    cursor: pointer;
}

/* 下拉框样式 */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25rem;
    padding-right: 2rem;
}

/* Tab 切换动画 */
.tab-content {
    transition: opacity 0.3s ease;
}

/* 加载旋转动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 阴影效果 */
.shadow-soft {
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 
                0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

/* 玻璃态效果 */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 页脚 - 统一平台风格 */
.site-footer {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    color: #a0aec0;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.site-footer p {
    color: #8892b0;
    margin: 0;
}

.footer-sub {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.7;
}

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