/**
 * iLovePDF 风格样式 - 仿制设计
 * 基于 ilovepdf.com 的中文官网设计
 */

:root {
    --primary-color: #FF5562;
    --primary-hover: #e64450;
    --white: #ffffff;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #999999;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(255, 85, 98, 0.2);
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* 导航栏样式 */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    height: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-header {
    display: flex;
    align-items: center;
    height: 60px;
    float: left;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color) !important;
    text-decoration: none;
    padding: 0;
    display: flex;
    align-items: center;
    height: 60px;
    line-height: 60px;
    float: left;
}

.navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 8px 20px;
    border: none;
    background: none;
}

.navbar-toggle .icon-bar {
    display: none;
}

.navbar-toggle::after {
    content: '';
    display: block;
    width: 128px;
    height: 128px;
    background-image: url('/1765803849-641f910a91432fb.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.navbar-nav > li > a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-nav > li > a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 85, 98, 0.05);
}

/* 导航菜单样式 */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    height: 60px;
}

.navbar-nav > li {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-nav > li > a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 36px;
}

.navbar-nav > li > a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 85, 98, 0.05);
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px 0;
    min-width: 180px;
    margin-top: 8px;
}

.dropdown-menu li a {
    color: var(--dark-gray);
    padding: 10px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Hero 区域样式 */
.hero-section {
    padding: 80px 0 20px;
    text-align: center;
    background: var(--white);
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--medium-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 工具分类导航 */
.tool-categories {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.categories-nav {
    display: flex;
    gap: 0;
    white-space: nowrap;
    justify-content: center;
}

.category-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    color: var(--medium-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover,
.category-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 工具网格样式 */
.tools-section {
    padding: 60px 0;
    background: var(--white);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0 10px;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #ff7676);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--white);
}

.tool-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.tool-desc {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.5;
}

/* 增值服务区域 */
.premium-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.premium-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.premium-card h3 {
    font-size: 24px;
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.premium-card p {
    color: var(--medium-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* 页脚样式 */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .categories-nav {
        justify-content: flex-start;
        padding: 0 15px;
    }
    
    .navbar-nav {
        gap: 15px;
    }
    
    .premium-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

/* 隐藏默认布局元素 */
.content {
    margin-top: 0 !important;
    padding: 0 !important;
}

.mainbody {
    display: none;
}