/* 域名测试模块样式 */

/* 通用域名容器 */
.domain-section-container {
    margin-bottom: 24px;
}

/* 通用内容容器 */
.domain-content-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
}

.domain-content-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 容器头部样式 - 仅应用于实际存在的头部div */
#promotion-domains-container > div[id^="header"] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* 添加域名按钮 */
#add-domain-btn {
    background-color: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

#add-domain-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

#add-domain-btn:active {
    transform: translateY(0);
}

#add-domain-btn i {
    margin-right: 6px;
}

/* 通用域名按钮容器 */
.domain-buttons-container {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    text-align: left;
}

/* 域名按钮样式 - 与添加域名按钮保持一致的大小和颜色 */
.domain-button {
    background-color: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    min-width: var(--button-width, 120px);
}

.domain-button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.domain-button:active {
    transform: translateY(0);
}

/* 域名按钮焦点样式 */
.domain-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* 推广历史容器 */
#promotion-history-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
}

#promotion-history-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .domain-content-container {
        padding: 16px;
    }
    
    .domain-buttons-container {
        gap: 8px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(min-content, max-content);
        width: 100%;
    }
    
    .domain-button {
        font-size: 13px;
        padding: 7px 14px;
        min-width: unset;
        width: 100%;
        box-sizing: border-box;
    }
    
    #add-domain-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
}

/* 页脚响应式样式 */
footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 确保文字不换行 */
footer h2, 
footer .text-sm {
    white-space: nowrap;
}

/* 小屏幕响应式调整 */
@media (max-width: 768px) {
    footer .text-sm {
        font-size: 11px;
    }
    
    footer h2 {
        font-size: 14px;
    }
    
    /* 当屏幕较小时，可以让两个子容器分别占一行 */
    footer .container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* 超小屏幕进一步调整 */
@media (max-width: 480px) {
    footer {
        padding: 0.5rem 1rem;
    }
    
    footer .text-sm {
        font-size: 10px;
    }
    
    footer h2 {
        font-size: 12px;
    }
}