/**
 * ArmxMod for Typecho 短代码插件版
 * @package ProShortcode
 * @author VirCloud,LLC.
 * @version 1.0.1
 * @link https://vircloud.net
 */

/* --- 面板 --- */
.ec-panel {
  padding: 15px 15px 15px 45px;
  margin: 15px 0;
  border-radius: 4px;
  border-left: 5px solid #ddd;
  background: #f8f8f8;
  color: #555;
  position: relative;
}
.ec-panel:before {
  position: absolute;
  left: 15px;
  top: 15px;
  font-weight: bold;
  font-size: 18px;
}

.ec-task {
  border-left-color: #3498db;
  background: #eaf6ff;
}
.ec-task:before {
  content: "📝";
  color: #3498db;
}

.ec-warning {
  border-left-color: #f39c12;
  background: #fffdf0;
}
.ec-warning:before {
  content: "⚠️";
  color: #f39c12;
}

.ec-noway {
  border-left-color: #e74c3c;
  background: #fdedec;
}
.ec-noway:before {
  content: "⛔";
  color: #e74c3c;
}

.ec-buy {
  border-left-color: #2ecc71;
  background: #e8f8f0;
}
.ec-buy:before {
  content: "🛒";
  color: #2ecc71;
}

.ec-down {
  border-left-color: #9b59b6;
  background: #fbf5fd;
}
.ec-down:before {
  content: "⬇️";
  color: #9b59b6;
}

/* --- 按钮 --- */
.ec-btn {
  display: inline-block;
  padding: 8px 20px;
  color: #fff !important;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
  margin: 5px 5px 5px 0;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.ec-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ec-btntext:before {
  content: "📝 ";
}
.ec-btndown:before {
  content: "↓ ";
}
.ec-btnsearch:before {
  content: "🔍 ";
}
.ec-btnheart:before {
  content: "♥ ";
}
.ec-btnaudio:before {
  content: "♫ ";
}
.ec-btnvideo:before {
  content: "🎬 ";
}
.ec-btnnext:before {
  content: "→ ";
}
.ec-btnbox:before {
  content: "📦 ";
}
.ec-btnlink:before {
  content: "🔗 ";
}

.ec-btntext {
  background: #95a5a6;
}
.ec-btnbox {
  background: #f39c12;
}
.ec-btnsearch {
  background: #e74c3c;
}
.ec-btnlink {
  background: #2ecc71;
}
.ec-btndown {
  background: #3498db;
}
.ec-btnnext {
  background: #34495e;
}
.ec-btnif {
  background: #9b59b6;
}
.ec-btnheart {
  background: #e91e63;
}
.ec-btnaudio {
  background: #673ab7;
}
.ec-btnvideo {
  background: #00bcd4;
}
.ec-btn-donate {
  display: inline-block;
  background: #f44336;
  color: #fff !important;
  padding: 10px 30px;
  border-radius: 30px;
  text-decoration: none;
  margin: 20px auto;
  display: table;
  cursor: pointer;
}

/* 图标基础样式 */
.ec-icon-download:before {
  content: "\2193";
  font-style: normal;
  margin-right: 5px;
}
.ec-icon-search:before {
  content: "\1F50D";
  font-style: normal;
  margin-right: 5px;
}
.ec-icon-heart:before {
  content: "\2764";
  font-style: normal;
  margin-right: 5px;
}
.ec-icon-audio:before {
  content: "\1F50A";
  font-style: normal;
  margin-right: 5px;
}
.ec-icon-video:before {
  content: "\1F3AC";
  font-style: normal;
  margin-right: 5px;
}
.ec-icon-right:before {
  content: "\2192";
  font-style: normal;
  margin-right: 5px;
}
.ec-icon-lock:before {
  content: "\1F512";
  font-style: normal;
  margin-right: 5px;
}

/* --- 友链 --- */
.ec-friends {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}
.ec-friend-item {
  flex: 1 0 200px;
  background: #fff;
  border: 1px solid #eee;
  margin: 10px;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: 0.2s;
  display: block;
}
.ec-friend-item:hover {
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.ec-friend-name {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}
.ec-friend-desc {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- 多媒体 --- */
.ec-audio-box,
.ec-video-box {
  background: #f1f3f4;
  padding: 10px;
  border-radius: 4px;
  margin: 15px 0;
  text-align: center;
}
.ec-audio-info {
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}
.ec-video-desc {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* --- 视频弹窗卡片 --- */
.ec-fanv-card {
  width: 100%;
  margin: 15px 0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.ec-fanv-thumb {
  display: block;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
}
.ec-fanv-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
}
.ec-fanv-play:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 19px;
  border-left: 15px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.ec-fanv-title {
  padding: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

/* --- 网页引用卡片 --- */
.ec-link-card {
  margin: 15px 0;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.ec-link-wrap {
  display: flex;
  text-decoration: none !important;
  color: #444;
}
.ec-link-img {
  width: 140px;
  min-height: 100px;
  background-size: cover;
  background-position: center;
  background-color: #f9f9f9;
}
.ec-link-info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.ec-link-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ec-link-desc {
  font-size: 12px;
  color: #999;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.ec-link-card.loading .ec-link-title {
  background: #f0f0f0;
  color: #999;
  width: 60%;
  border-radius: 2px;
}

/* --- 微信吸粉锁 --- */
.ec-wx-lock {
  display: flex;
  border: 1px dashed #fa5a5a;
  background: #fffbfb;
  padding: 20px;
  border-radius: 6px;
  align-items: center;
  margin: 20px 0;
}
.ec-wx-qr {
  width: 100px;
  height: 100px;
  margin-right: 20px;
  object-fit: cover;
}
.ec-wx-title {
  color: #e74c3c;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 5px;
}
.ec-wx-form {
  margin-top: 10px;
}
.ec-wx-form input {
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 3px;
  outline: none;
  margin-right: 5px;
}
.ec-wx-form button {
  padding: 6px 15px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 10px;
}
.ec-wx-content {
  padding: 15px;
  border: 1px solid #2ecc71;
  border-radius: 4px;
  background: #f0fdf4;
}

/* --- 回复可见锁 --- */
.ec-hide-lock {
  background: #fff5f5;
  color: #c0392b;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  border: 1px dashed #e74c3c;
  margin: 15px 0;
}
.ec-hide-content {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 4px;
  background: #f9f9f9;
}

/* --- 脚注 --- */
.footnote-ref {
  position: relative;
  display: inline-block;
  cursor: pointer;
  vertical-align: super;
  line-height: 1;
  font-size: 12px;
  z-index: 10;
}
.footnote-ref:before {
  content: "?";
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background: #3498db;
  color: #fff;
  font-weight: bold;
  margin: 0 2px;
}
.ec-tooltip-box {
  display: none;
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  white-space: normal;
  width: 250px;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
}
.footnote-ref.active .ec-tooltip-box {
  display: block;
  animation: ec-fade-in 0.2s ease;
}
.ec-tooltip-box:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}
.footnote-ref:hover .ec-tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@keyframes ec-fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* --- 分页 --- */
.ec-pagination {
  text-align: center;
  margin: 30px 0;
}
.ec-pagination a {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 4px;
  border: 1px solid #eee;
  border-radius: 4px;
  text-decoration: none;
  color: #555;
  background: #fff;
}
.ec-pagination a.active,
.ec-pagination a:hover {
  background: #3498db;
  color: #fff;
  border-color: #3498db;
}

/* --- 黑幕 --- */
.ec-heimu {
  background: #444;
  color: #444;
  border-radius: 2px;
  padding: 0 4px;
  transition: color 0.3s;
}
.ec-heimu:hover {
  color: #fff;
}

/* --- 段落--- */
.ec-toggle {
  margin: 10px 0;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}
.ec-toggle-title {
  background: #f9f9f9;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}
.ec-toggle-content {
  padding: 15px;
  background: #fff;
}
.ec-tabs {
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.ec-tabs-header {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  display: flex;
  border-bottom: 1px solid #ddd;
}
.ec-tab-nav {
  padding: 10px 20px;
  cursor: pointer;
  border-right: 1px solid #ddd;
  background: #f5f5f5;
}
.ec-tab-nav.active {
  background: #fff;
  color: #2ecc71;
  font-weight: bold;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}
.ec-tab-pane {
  display: none;
  padding: 20px;
}
.ec-tab-pane.active {
  display: block;
}
