/* 计算器页面样式 - 简约白灰色设计 */
.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fafafa;
    min-height: calc(100vh - 80px);
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calculator-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.calculator-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.calculator-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e8e8e8;
}

.calculator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d0d0d0;
}

.card-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #6c757d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 24px;
    color: white;
}

.vip-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
}

.card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
    min-height: 42px;
}

.card-action {
    text-align: right;
}

.use-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.calculator-card:hover .use-btn {
    background: #495057;
    color: white;
    border-color: #495057;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-icon i {
    font-size: 32px;
    color: #adb5bd;
}

.empty-state h3 {
    font-size: 18px;
    color: #495057;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.empty-state p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* 登录提示弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #666;
}

.modal-body {
    padding: 30px;
}

.login-required-content {
    text-align: center;
}

.login-icon {
    font-size: 48px;
    color: #faad14;
    margin-bottom: 20px;
}

.login-icon i::before {
    content: "🔒";
}

.login-required-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 100px;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background-color: #e8e8e8;
}

/* 图标样式 */
.icon-calculator::before {
    content: "🧮";
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 20px 15px;
    }
    
    .calculator-header {
        margin-bottom: 25px;
        padding: 20px;
    }
    
    .calculator-header h1 {
        font-size: 24px;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-icon i {
        font-size: 20px;
    }
}
