/* Custom CSS for PDF Master */

/* Variables for consistent styling */
:root {
    --primary-color: #007bff; /* Bootstrap primary blue */
    --secondary-color: #6c757d; /* Bootstrap secondary grey */
    --success-color: #28a745; /* Bootstrap success green */
    --info-color: #17a2b8; /* Bootstrap info cyan */
    --warning-color: #ffc107; /* Bootstrap warning yellow */
    --danger-color: #dc3545; /* Bootstrap danger red */
    --light-color: #f8f9fa; /* Bootstrap light grey */
    --dark-color: #343a40; /* Dark text */
    --text-dark: #343a40; /* Dark text */
    --text-muted: #6c757d; /* Muted text */
    --border-color: #dee2e6; /* Border color */
    --accent-color: #ffc107; /* VIP/Highlight accent color */
}

/* Custom spacing utilities */
.mb-6 { margin-bottom: 0.5rem !important; } /* Equivalent to Bootstrap's spacing scale, 48px */
.mt-6 { margin-top: 1rem !important; }

body {
    font-family: 'Roboto', sans-serif; /* Example font */
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header/Navbar Styling */
.header .navbar {
    border-bottom: 1px solid var(--border-color);
}
.header .navbar-brand {
    font-size: 1.2rem;
}
.header .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin-right: 2px;
}
.header .nav-link.active {
    color: var(--primary-color) !important;
}
.header .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.header .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #e0f2f7, #ffffff);
    padding: 80px 0;
}
.hero-section .display-4 {
    color: var(--dark-color);
}
.hero-animation img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Tool Categories Section */
.tools-section {
    padding: 1px ;
}

.section-title {
    /* 调整标题上下间距，更紧凑 */
    margin-top: 0rem; /* 适当减小与上方内容的距离 */
    margin-bottom: 2.5rem !important; /* 适当减小与下方卡片组的距离 */
    position: relative;
    padding-bottom: 15px;
    font-size: 2.2rem; /* 标题字号微调 */
    color: var(--primary-color);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* 标题下划线变短 */
    height: 3px; /* 下划线变细 */
    background-color: var(--primary-color);
    border-radius: 2px;
}

.tool-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 调整卡片内边距，使其更紧凑 */
.tool-card .card-body {
    padding: 1.25rem; /* 减小内边距 */
}

.tool-card .card-title {
    font-size: 1.15rem; /* 标题字号微调 */
    font-weight: 600; /* 加粗 */
    color: var(--dark-color);
    margin-bottom: 0.75rem; /* 调整标题与描述间距 */
}
.tool-card .card-text {
    font-size: 0.88rem; /* 描述字号微调 */
    color: var(--text-muted);
    min-height: 2.5em; /* 保证描述区域有最小高度，避免内容不齐 */
    line-height: 1.4;
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制描述为两行 */
    -webkit-box-orient: vertical;
    margin-bottom: 0.75rem; /* 调整描述与按钮间距 */
}
.tool-card .btn {
    margin-top: auto; /* Push button to bottom */
    font-size: 0.85rem; /* 按钮字号微调 */
    padding: 0.4rem 0.8rem; /* 按钮内边距微调 */
}

/* Material Symbols Icon Styling */
.tool-icon-material {
    font-size: 3.5rem; /* 适当减小图标大小，使其与紧凑的卡片更匹配 */
    line-height: 1;
    display: block;
    margin: 0 auto 0.75rem; /* 调整图标与标题间距 */
}

/* VIP Module specific styling */
.vip-card {
    border: 3px solid var(--accent-color) !important;
    background-color: #fffbe6;
    padding: 1.5rem !important; /* VIP卡片内边距也适当减小 */
}

.vip-card .vip-badge {
    background-color: var(--accent-color) !important;
    color: var(--text-dark) !important;
    font-weight: bold;
    padding: 0.4em 0.8em; /* VIP徽章大小微调 */
    border-radius: 50px;
    font-size: 0.8em;
    margin-bottom: 0.75rem; /* 徽章下方间距微调 */
}

.vip-card .tool-icon-material {
    font-size: 4.5rem; /* VIP图标略大，但不过分 */
    margin-bottom: 1rem; /* 确保图标顶部没有多余间距 */
}

.vip-card .card-title {
    font-size: 1.3rem; /* VIP标题稍大 */
    margin-bottom: 0.6rem;
}

.vip-card .card-text {
    font-size: 0.9rem; /* VIP描述字号微调 */
    min-height: auto; /* VIP卡片的描述不需要固定高度 */
    -webkit-line-clamp: unset; /* 取消行数限制 */
    margin-bottom: 1rem;
}

.vip-card ul {
    padding-left: 0;
    list-style: none;
    font-size: 0.9rem; /* 列表文字大小 */
    margin-bottom: 1rem !important; /* 调整列表与按钮间距 */
}

.vip-card ul li {
    margin-bottom: 0.3rem; /* 列表项之间更紧凑 */
    display: flex;
    align-items: flex-start;
}

.vip-card ul .material-symbols-rounded {
    font-size: 1.1rem; /* 列表前的勾图标大小 */
    margin-top: 0.1rem; /* 微调对齐 */
    color: var(--warning-color);
}

.vip-card .btn {
    font-size: 0.95rem; /* VIP按钮略大 */
    padding: 0.6rem 1.2rem;
}


/* Advertisement Slot */
.advertisement-slot {
    background-color: var(--light-color);
    border: 1px dashed var(--border-color);
    padding: 25px; /* 减小内边距 */
    border-radius: 8px;
    margin-top: 3rem; /* 调整间距 */
    margin-bottom: 3rem; /* 调整间距 */
}

/* Features Section */
.features-section .feature-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px; /* 减小内边距 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
}
.features-section .feature-item:hover {
    transform: translateY(-3px);
}
.features-section .material-symbols-rounded {
    font-size: 3.5rem; /* 调整图标大小 */
    color: var(--primary-color);
    margin-bottom: 12px; /* 调整图标与标题间距 */
}
.features-section h4 {
    font-weight: bold;
    color: var(--dark-color);
    font-size: 1.2rem; /* 标题字号微调 */
    margin-bottom: 0.5rem;
}
.features-section p {
    font-size: 0.9rem; /* 描述字号微调 */
}


/* Testimonials Section */
.testimonials-section {
    padding: 40px 0; /* 减小上下内边距 */
}
.testimonials-section .blockquote {
    font-style: italic;
    color: var(--text-dark);
    padding: 20px !important; /* 减小内边距 */
}
.testimonials-section .blockquote p {
    font-size: 1.05rem; /* 评价文字大小 */
}
.testimonials-section .blockquote-footer {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.trust-logos img {
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
    margin: 0 15px; /* 调整logo间距 */
}
.trust-logos img:hover {
    opacity: 1;
}

/* Bottom Ad Section */
.bottom-ad-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0; /* 减小内边距 */
}
.bottom-ad-section h3 {
    font-size: 2rem; /* 标题字号微调 */
}
.bottom-ad-section .lead {
    font-size: 1.1rem; /* 引导文字字号微调 */
}


/* Footer */
.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.6);
}
.footer h6 {
    color: #fff;
    margin-bottom: 12px; /* 调整标题间距 */
}
.footer ul li a {
    font-size: 0.85rem; /* 链接字号微调 */
    line-height: 1.8; /* 行高微调 */
}
.footer .social-icons img {
    opacity: 0.8;
    transition: opacity 0.2s;
}
.footer .social-icons img:hover {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    /* Large devices (desktops) */
    .row-cols-lg-5 > * {
        flex: 0 0 auto;
        width: 20%; /* For 5 columns */
    }
}

@media (max-width: 992px) {
    /* Medium devices (tablets) */
    .section-title {
        font-size: 2rem;
    }
    .tool-card .card-body {
        padding: 1rem;
    }
    .tool-icon-material {
        font-size: 3rem;
        margin-bottom: 0.6rem;
    }
    .tool-card .card-title {
        font-size: 1.1rem;
    }
    .tool-card .card-text {
        font-size: 0.85rem;
    }
    .vip-card .tool-icon-material {
        font-size: 4rem;
    }
    .vip-card .card-title {
        font-size: 1.2rem;
    }
    .vip-card .card-text {
        font-size: 0.85rem;
    }
    .vip-card ul li {
        font-size: 0.85rem;
    }
    .row-cols-lg-5 > * { /* Reset for medium devices if needed or rely on default Bootstrap */
        width: 33.333%; /* 3 columns for md */
    }
}

@media (max-width: 768px) {
    /* Small devices (phones in landscape, small tablets) */
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section .lead {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .tool-card .card-body {
        padding: 0.85rem; /* 进一步减小内边距 */
    }
    .tool-icon-material {
        font-size: 2.8rem;
    }
    .tool-card .card-title {
        font-size: 1rem;
    }
    .tool-card .card-text {
        font-size: 0.8rem;
        min-height: unset; /* 在小屏幕上取消最小高度，适应内容 */
        -webkit-line-clamp: 3; /* 描述限制3行 */
    }
    .vip-card .card-body {
        padding: 1rem !important;
    }
    .vip-card .tool-icon-material {
        font-size: 3.5rem;
    }
    .vip-card .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    /* Extra small devices (phones) */
    .header .navbar-brand {
        font-size: 1.2rem;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .tool-card .card-body {
        padding: 0.75rem; /* 进一步减小内边距 */
    }
    .tool-icon-material {
        font-size: 2.5rem;
    }
    .tool-card .card-title {
        font-size: 0.95rem;
    }
    .tool-card .card-text {
        font-size: 0.75rem;
        -webkit-line-clamp: 4; /* 描述限制4行 */
    }
    .tool-card .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    .vip-card .card-body {
        padding: 0.85rem !important;
    }
    .vip-card .tool-icon-material {
        font-size: 3rem;
    }
    .vip-card .card-title {
        font-size: 1rem;
    }
    .vip-card .card-text {
        font-size: 0.8rem;
    }
    .vip-card ul {
        font-size: 0.8rem;
    }
    .vip-card ul .material-symbols-rounded {
        font-size: 1rem;
    }
    .vip-card .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    .features-section .feature-item {
        padding: 20px;
    }
    .features-section .material-symbols-rounded {
        font-size: 3rem;
    }
    .features-section h4 {
        font-size: 1.1rem;
    }
    .features-section p {
        font-size: 0.85rem;
    }
}

.img-fluid{
    max-width: 100%;
    height: 440;
}
.container-hero{
    padding-top: 10px;
  /*  background-image: url('/images/hero.png');   */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
   /*  min-height: 340px; 加这个 */
}
/* style.css */

:root {
    --primary-color: #007bff; /* 蓝色 */
    --secondary-color: #6c757d; /* 灰色 */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529; /* 深灰色文本 */
    --border-color: #dee2e6; /* 边框颜色 */
    --header-height: 70px; /* 示例头部高度 */
    --footer-height: 200px; /* 示例底部高度 */
}

body {
    font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: #f0f2f5; /* Light grey background for the whole page */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 确保body至少占满视口高度 */
}

.header {
    /* 保持原有样式，可能需要固定定位 */
    z-index: 1030; /* Ensure header is above other content */
}

/* Ensure main content takes up remaining space and pushes footer down */
.main-wrapper {
    flex-grow: 1;
    display: flex; /* Make it a flex container to hold sidebar and main content */
}

.footer {
    /* 保持原有样式 */
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* 移除首页对 .function-section 的宽度限制，让它在子页面中可以和侧边栏并排 */
.function-section {
    padding: 3rem 0; /* 保持垂直内边距 */
    background-color: var(--light-color); /* 背景色 */
}

/* 如果你的首页没有主内容区，或者布局不同，需要确保首页的 .function-section 有适当的宽度 */
/* 例如，首页可能不需要 .main-wrapper 或 .sidebar */
/* 确保通用的 .container 类在主要内容区域内部使用以控制宽度 */

.tool-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 10px;
}

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

.tool-icon-material {
    font-size: 4rem;
    line-height: 1;
}

.section-title {
    color: var(--dark-color);
}
/***********************************************
* 导航栏下拉菜单样式调整（Bootstrap 5）
************************************************/
/* 支持鼠标悬停展开 */
.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
}

/* 保持 Bootstrap 默认行为一致 */
.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
  min-width: 200px; /* Or use 'width' for a fixed width */
  max-width: 300px; /* Optional: to prevent it from getting too wide */
}



/* 首页链接被选中的效果*/
.card-link {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden; /* 防止子元素溢出 */
}

.card-hover-effect {
  background: #ffffff;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-hover-effect:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.15);
  background: linear-gradient(to bottom right, #e8f5e9, #c8e6c9); /* 柔和绿色渐变 */
  cursor: pointer;
}

.card-hover-effect:active {
  transform: scale(0.98);
  background-color: #a5d6a7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



    /* 可选：通用提示框自定义提示样式 */
.custom-alert {
      position: fixed;
      top: 60px;
      left: 50%;
      transform: translateX(-50%);
      color: white;
      padding: 10px 20px;
      border-radius: 4px;
      z-index: 9999;
      font-size: 16px;
      display: none;
      animation: fadeSlide 0.3s ease-out;
    }

    /* 地区限制提示 */
    .region-tip {
      background-color: #ff4d4d;
    }

    /* 功能未开放提示 */
    .feature-tip {
      background-color: #4d90ff;
    }

    @keyframes fadeSlide {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }

/** 语言选项*/
.lang-dropdown-menu {
  min-width: 386px;
  padding: 0.5rem;
}

.lang-columns {
  display: flex;
  justify-content: space-between;
}

.column {
  width: 25%;
  padding-right: 10px;
  box-sizing: border-box;
}

.column:last-child {
  padding-right: 0;
  border-left: 0px solid #ddd;
}

.lang-group-title {
  font-weight: bold;
  font-size: 0.85rem;
  margin-top: 0.6rem;
  margin-bottom: 0.3rem;
  color: #555;
  text-transform: uppercase;
}

.lang-group-divider {
  height: 1px;
  background-color: #eee;
  margin: 0.4rem 0;
}

.dropdown-item {
  white-space: nowrap;
  margin-bottom: 0.25rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f1f1f1;
}

/**上传文件后的 图片显示**/
.top-left-image {
     position: absolute; /* 保持图片在左上角定位 */
     top: 0;
     left: 0;
     max-width: 24px;   /* 最大宽度为 24 像素 */
     max-height: 24px;  /* 最大高度为 24 像素 */
     width: auto;       /* 保持图片的原始宽度比例 */
     height: auto;      /* 保持图片的原始高度比例 */
     object-fit: contain; /* 如果图片比例不符，确保完整显示在24x24区域内 */
  }
.file-name {
 
  /* 确保文本可以换行 */
  white-space: normal;   /* 允许文本正常换行，这是默认值，但显式写出更清晰 */
  word-wrap: break-word; /* 强制长单词或 URL 在指定点换行 */
  overflow-wrap: break-word; /* 新标准，与 word-wrap 类似，推荐使用 */
 /* 尝试添加一个最大宽度，例如父容器宽度的 70% 或固定像素值 */
  max-width: 95%; /* 示例：确保它不会占据超过父容器 70% 的宽度 */
   
}