/* 全局样式 */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 广告容器样式 */
.ad-container {
    min-width: 300px;
    min-height: 100px;
    margin: 20px auto;
    padding: 10px;
    display: block;
    overflow: hidden;
    width: 100%;
}

.ad-content {
    width: 100%;
    min-height: 90px;
    display: block;
    position: relative;
}

.adsbygoogle {
    display: block !important;
    width: 100%;
    min-height: 90px;
    min-width: 300px;
}

.ad-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-align: center;
}

/* 修复AdSense容器问题 */
.ad-container .adsbygoogle {
    background: transparent;
    border: none;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 工具页面样式 */
.tool-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.tool-title {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #007bff;
}

/* 按钮样式 */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
main {
    flex: 1 0 auto;
}

footer {
    border-top: 1px solid #eee;
    flex-shrink: 0;
    margin-top: auto;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .ad-container {
        min-width: 280px;
        padding: 5px;
    }
    
    .adsbygoogle {
        min-width: 280px;
    }
}

/* 工具页面特定样式 */
.result-container {
    background-color: #f0f8ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}

.copy-btn {
    cursor: pointer;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background-color: #e9ecef;
}

/* 表单元素样式 */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 工具图标样式 */
.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
}