/* 期权分析工具 - 自定义样式 */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

#root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    width: 100%;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
    color: #1890ff;
}

.logo-icon {
    font-size: 32px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
}

/* 控制面板 */
.control-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 参数组 */
.param-group {
    margin-bottom: 16px;
}

.param-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #666;
}

/* 按钮样式 */
.analyze-button {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    border: none;
    height: 40px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
    transition: all 0.3s ease;
}

.analyze-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.4);
}

/* 结果展示区域 */
.results-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 表格样式 */
.results-table {
    margin-top: 16px;
    overflow-x: auto;
}

.table-header {
    background: #fafafa;
    font-weight: 600;
}

.table-row:hover {
    background: #f6ffed;
}

/* 统计信息 */
.stats-card {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: white;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 警告信息 */
.warning-card {
    background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
    color: white;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #999;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #666;
}

.empty-description {
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        padding: 20px;
    }

    .header-content {
        padding: 14px 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }

    .control-panel,
    .results-panel {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 12px;
    }

    .header-content {
        padding: 10px 12px;
    }

    .control-panel,
    .results-panel {
        padding: 12px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(24, 144, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(24, 144, 255, 0.7);
}

/* 高级表格样式 */
.advanced-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.advanced-table .ant-table-thead>tr>th {
    background: linear-gradient(135deg, #f0f5ff 0%, #e6f7ff 100%);
    font-weight: 600;
    color: #1890ff;
    border-bottom: 2px solid #1890ff;
}

.advanced-table .ant-table-tbody>tr:hover>td {
    background: #f6ffed !important;
}

.advanced-table .ant-table-thead>tr>th,
.advanced-table .ant-table-tbody>tr>td {
    border-right: 1px solid #e6f7ff;
}

.advanced-table .ant-table-thead>tr>th:last-child,
.advanced-table .ant-table-tbody>tr>td:last-child {
    border-right: none;
}

/* 成功状态 */
.success-text {
    color: #52c41a;
    font-weight: 500;
}

/* 危险状态 */
.danger-text {
    color: #ff4d4f;
    font-weight: 500;
}

/* 警告状态 */
.warning-text {
    color: #faad14;
    font-weight: 500;
}

/* 信息状态 */
.info-text {
    color: #1890ff;
    font-weight: 500;
}

/* 代码块样式 */
.code-block {
    background: #f5f5f5;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 12px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 表单样式增强 */
.form-item-enhanced {
    margin-bottom: 16px;
}

.form-item-enhanced .ant-form-item-label {
    font-weight: 500;
    color: #333;
}

/* 卡片样式增强 */
.card-enhanced {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    background: #fff;
    will-change: transform;
    transform: translateZ(0);
}

.card-enhanced .ant-card-head {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
}

/* 标签样式 */
.tag-primary {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    border: none;
}

.tag-success {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: white;
    border: none;
}

.tag-warning {
    background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
    color: white;
    border: none;
}

.tag-danger {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
    color: white;
    border: none;
}

/* 进度条样式 */
.progress-custom .ant-progress-bg {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    border-radius: 100px;
}

/* 最后添加一些工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-16 {
    margin-bottom: 16px;
}

.mt-16 {
    margin-top: 16px;
}

.p-16 {
    padding: 16px;
}

.rounded-8 {
    border-radius: 8px;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shadow-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 微信联系悬浮按钮 */
.wechat-float-button {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #07c160 0%, #06ae56 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.wechat-float-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.5);
}

.wechat-float-button svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* 微信二维码弹窗遮罩 */
.wechat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

/* 微信二维码弹窗内容 */
.wechat-modal-content {
    background: #2c2c2c;
    border-radius: 16px;
    padding: 0;
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wechat-modal-header {
    background: #2c2c2c;
    color: #ffffff;
    padding: 24px 32px;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid #3c3c3c;
}

.wechat-modal-body {
    background: #ffffff;
    padding: 40px;
    text-align: center;
}

.wechat-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.wechat-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wechat-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.wechat-qr-code {
    width: 280px;
    height: 280px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wechat-qr-code img {
    width: 100%;
    height: 100%;
    display: block;
}

.wechat-tip {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.wechat-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #ffffff;
    font-size: 20px;
}

.wechat-close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wechat-float-button {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }

    .wechat-float-button svg {
        width: 26px;
        height: 26px;
    }

    .wechat-modal-content {
        max-width: 95%;
    }

    .wechat-modal-header {
        padding: 20px 24px;
        font-size: 18px;
    }

    .wechat-modal-body {
        padding: 30px 20px;
    }

    .wechat-avatar {
        width: 64px;
        height: 64px;
    }

    .wechat-title {
        font-size: 18px;
    }

    .wechat-qr-code {
        width: 240px;
        height: 240px;
        padding: 12px;
    }

    .wechat-tip {
        font-size: 14px;
    }
}
