/* Markdown Notices */
.notices.yellow {
    border-left: 10px solid #935b0c;
    background: #31220b;
    color: #eea034;
}

.notices.red {
    border-left: 10px solid #89211e;
    background: #2e0b0b;
    color: #db5a56;
}

.notices.blue {
    border-left: 10px solid #1b6e86;
    background: #13222a;
    color: #4bb9da;
}

.notices.green {
    border-left: 10px solid #347834;
    background: #192c13;
    color: #7ac57a;
}
/* --- */

/* Shortcode UI */

.accordion-wrapper {
    margin: 30px 0;
    text-align: left; }
    .accordion-wrapper label {
      color: #ccc;
      background: #272727;
      border: 1px solid #000; 
      border-bottom: 1px solid transparent; }
      .accordion-wrapper label:hover {
        background: #2d2d2d;
        color: #fff; }
    .accordion-wrapper article {
      background: rgba(39, 39, 39, 0.5);
      border: 1px solid #000; }
  .accordion-wrapper input:checked + label {
    border-bottom: 1px solid #000; }
  .accordion-wrapper > div:last-child label, .accordion-wrapper > div:last-child input:checked ~ article {
    border-bottom: 1px solid #000; }


.tab {
    border-bottom: .05rem solid rgba(39, 39, 39, 0.5); }

.tabs-wrapper {
    display: block; }
    .tabs-wrapper.ui-theme-lite .tabs-nav li.current a {
        border-bottom: 1px solid #3085ee; }
    .tabs-wrapper.ui-theme-lite .tabs-nav li:hover {
        background: rgba(39, 39, 39, 0.5); }
    .tabs-wrapper.ui-theme-lite.bottom-right .tabs-nav li.current a, .tabs-wrapper.ui-theme-lite.bottom-left .tabs-nav li.current a {
        border-top: 1px solid #909090; }
    .tabs-wrapper.ui-theme-lite.bottom-right .tab, .tabs-wrapper.ui-theme-lite.bottom-left .tab {
        border-bottom: 1px solid #e9e9e9; }
    .tabs-wrapper.ui-theme-lite .tab {
        border-top: 1px solid #000;
        background-color: rgba(39, 39, 39, 0.5); 
        padding: 0.4rem; }


.browser-frame {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid #272727; }
  .browser-frame .btoolbar {
    height: 40px;
    background: #272727;
    color: #bbb;
    border-bottom: 1px solid #272727; }
  .browser-frame .btoolbar-button {
    background: #bbb; }
  .browser-frame .btoolbar-address {
    background: rgba(39, 39, 39, 0.5);
    border: 1px solid #bbb; }

.cd-image-container {
    position: relative; }
    .cd-image-label {
    color: #ccc; }
    .cd-handle {
    color: #ccc;
    background: #3085ee; }
    .cd-handle.draggable {
    background-color: #1e6bc9; }

.polaroid-wrapper .polaroid {
  background: #272727;
  border: 1px solid #272727; }

.polaroid-wrapper .polaroid-img {
  background: #272727; }













/* ======================= 基础样式（原始 DarkQuark 自定义部分） ======================= */

html, body {
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

#header {
    border-bottom: none;
    background: rgb(0 0 0 / 0%);
    height: 3rem;
}
#header .navbar-section {
    height: 3rem;
}
#header .logo img, 
#header .logo svg {
    height: 18px;
    display: inherit;
}
#header .logo svg path {
    fill: #fff;
}

#footer {
    background: none !important;
    font-size: .7rem;
}

.header-transparent #header:not(.scrolled) {
    background: rgb(0 0 0 / 0%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

.custom-banner {
    text-align: center;
    margin: 40px 0;
}
.custom-banner .banner-image {
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px; /* 可选 */
}

.telegram-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #0088cc; /* Telegram 蓝色 */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
.telegram-button:hover {
    color: #fff;
    background-color: #006699; /* 深一点的蓝色 */
    text-decoration: none;
}
.telegram-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    fill: #fff;
}

a:visited {
    color: #fefefe;
}
a {
    transition: filter 0.3s ease;
}
a:hover {
    text-decoration: none;
    filter: brightness(1.2) saturate(1.3);
}

/* 首页菜单样式 */
.home-menu {
    text-align: center;
    margin: 40px 0;
}
.home-menu ul {
    list-style: none;
    padding: 0;
}
.home-menu li {
    margin: 10px 0; /* 竖向间距 */
}
.home-menu a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
    display: inline-block;
    padding: 10px 20px;
}
.home-menu a:hover {
    color: #00FF3F;
}

.navbar-section.logo {
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    max-width: 100%;
    margin-top: 16px;
    color: #f9f9f9;
}

/* 产品网格（桌面默认 4 列） */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
    font-size: 0.8rem;
}
.product-item {
    padding: 3px;
    text-align: center;
    transition: box-shadow .3s;
}
.product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.product-link img {
    width: 100%;
    height: 320px;
    max-height: 320px;       
    object-fit: cover;
    background: #f0f0f0;
}
.product-item p {
    margin: 4px 0;
    color: #eee;
}
.product-buttons {
    margin-top: 12px;
}
.product-buttons .btn {
    font-size: 0.7rem;
    display: inline-block;
    margin: 4px;
    padding: 8px 16px;
    background: #00327d;
    color: #fff;
    border: none;
    cursor: pointer;
}
.product-buttons .btn:hover {
    background: #2980b9;
}

/* 遮罩层 & 弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.825);
    z-index: 1000;
}
.modal-dialog {
    font-size: 0.7rem;
    display: none;
    position: fixed;
    z-index: 1001;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    background: #04221c;
    border-radius: 6px;
    max-width: 90%;
    width: 640px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.modal-close {
    position: absolute;
    right: 12px; top: 8px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-dialog h2 {
    margin: 0 0 16px;
    font-size: 1.4rem;
}
.modal-body a,
.modal-body p {
    display: block;
    margin: 8px 0;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
}
.modal-body a {
    font-size: 0.7rem;
    background: #3498db;
    color: #fff;
}
.modal-body a:hover {
    background: #2980b9;
}
.modal-body p {
    font-size: 0.7rem;
    background: transparent;
    color: #fafafa;
}

/* ======================= 响应式：iPad 3 列 & 手机 2 列 ======================= */

/* Tablet (iPad) 竖屏及横屏等中型设备：3 列 */
@media (max-width: 1024px) and (min-width: 769px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin: 30px 0;
    }
}

/* 手机 （≤768px）一行 2 列 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin: 20px 0;
    }
    .product-buttons .btn {
        padding: 6px 12px;
    }
    /* Modal 自适应 */
    .modal-dialog {
        width: 90%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 16px;
    }
    /* Header / Logo 微调 */
    #header {
        height: 2.5rem;
    }
    #header .navbar-section {
        height: 2.5rem;
    }
    #header .logo img,
    #header .logo svg {
        height: 16px;
    }
    /* Banner 微调 */
    .custom-banner {
        margin: 24px 0;
    }
}

/* 移动端禁用 hover 效果 */
@media (hover: none) {
    a:hover {
        filter: none;
    }
}
