/*
Theme Name: 译达通翻译 Edatone
Theme URI: https://edatone.com/
Author: Edatone
Author URI: https://edatone.com/
Description: 译达通翻译产品落地页主题。首页按钮的跳转链接与显示文字，可在「外观 → 自定义 → 译达通链接设置」中修改，无需改动代码。
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edatone
Tags: landing-page, custom-logo, custom-menu, featured-images, translation-ready, one-column
*/

/*
 * 本文件仅保留主题声明。
 * 站点样式位于 static/css/style.css 与 static/css/custom.css，由 functions.php 统一加载。
 */

/* WordPress 后台管理条在页面顶部的适配 */
.admin-bar .header-area.fixed {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .header-area.fixed {
    top: 46px;
  }
}

/* 非首页内容区（文章 / 页面 / 404） */
.ed-single {
  background: #f7f7fd;
}
.ed-single__item {
  background: #fff;
  border-radius: 12px;
  padding: 30px 35px;
  margin-bottom: 25px;
  box-shadow: 0 6px 24px rgba(20, 50, 120, 0.06);
}
.ed-single__title {
  font-size: 26px;
  font-weight: 600;
  color: #132339;
  margin-bottom: 12px;
}
.ed-single__title a {
  color: inherit;
}
.ed-single__meta {
  font-size: 13px;
  color: #8a93a2;
  margin-bottom: 15px;
}
.ed-single__content p {
  font-size: 16px;
  line-height: 30px;
  color: #565c64;
}
.ed-single__pager {
  text-align: center;
  margin-top: 20px;
}
.ed-single__pager .page-numbers {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 4px;
  border-radius: 20px;
  background: #fff;
  color: #4a90e2;
}
.ed-single__pager .page-numbers.current {
  background: #4a90e2;
  color: #fff;
}

/* ================= 首页「最新文章」区块（后台发布的文章） ================= */
.ed-news {
  background: #fbfafd;
  padding: 70px 0 45px;
}

.ed-news .section_title_wrapper p {
  text-align: center;
}

.ed-news__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #ece9f8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.ed-news__card:hover {
  border-color: #cfc8f5;
  box-shadow: 0 14px 34px rgba(94, 79, 245, .12);
  transform: translateY(-4px);
}

.ed-news__thumb {
  position: relative;
  display: block;
  padding-top: 62%;
  background: #f2f1fa;
  overflow: hidden;
}

.ed-news__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.ed-news__card:hover .ed-news__thumb img {
  transform: scale(1.05);
}

.ed-news__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 24px;
}

.ed-news__title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: #132339;
  margin: 0 0 8px;
}

.ed-news__title a {
  color: inherit;
}

.ed-news__card:hover .ed-news__title a {
  color: #5e4ff5;
}

.ed-news__meta {
  font-size: 13px;
  color: #9d97b8;
  margin-bottom: 10px;
}

.ed-news__excerpt {
  flex: 1;
  font-size: 14px;
  line-height: 26px;
  color: #6a6a80;
  margin: 0 0 16px;
}

.ed-news__more {
  align-self: flex-start;
  font-size: 14px;
  color: #5e4ff5;
  border-bottom: 1px solid transparent;
}

.ed-news__more:hover {
  border-bottom-color: #5e4ff5;
}

/* 首屏装饰形状容器：绝对定位，不参与 flex 布局，避免挤压内容区 */
.slider_2_shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.slider_2 > .container {
  position: relative;
  z-index: 2;
}

/* 文章详情页 */
.ed-single__thumb {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}

.ed-single__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* 正文图片自适应，避免后台插入的大图撑破版心 */
.ed-single__content img,
.ed-post__content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .ed-news {
    padding: 50px 0 30px;
  }
}
