/* 煤炭工具页面样式 */

/* 主容器 */
.main-content {
    max-width: 1800px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 工具布局 - 上下结构 */
.tools-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 横向工具菜单 */
.tools-horizontal-menu {
    display: flex;
    gap: 10px;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.tool-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa !important;
    border: 2px solid transparent !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.tool-tab:hover {
    background: #fff5f5 !important;
    border-color: #ffd6d6 !important;
    transform: translateY(-2px);
}

.tool-tab.active {
    background: linear-gradient(135deg, #951D1D 0%, #7a1717 100%) !important;
    border-color: #951D1D !important;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(149, 29, 29, 0.3);
}

.tool-tab .tool-icon {
    font-size: 20px;
}

.tool-tab .tool-name {
    white-space: nowrap;
}

/* 工具内容区 */
.tools-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 900px;
}

/* 工具面板 */
.tool-panel {
    display: none;
    flex-direction: column;
    height: 100%;
}

.tool-panel.active {
    display: flex;
}

/* 面板头部 */
.tool-panel-header {
    background: linear-gradient(135deg, #951D1D 0%, #7a1717 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.panel-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.action-btn .icon {
    font-size: 16px;
}

/* iframe容器 */
.tool-iframe-container {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.tool-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 全屏iframe */
.tool-iframe.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

/* 广告位区域 */
.ad-section {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 20px;
}

.ad-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ad-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.ad-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ad-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
