/* 電腦版內頁新版型（沿用 home-modern.css 的色彩與字型變數） */

/* ===== 兩欄版面：左側欄 + 內容區 ===== */
.modern-inner .site-content-row {
    display: table-row;
}

.modern-inner .site-sidebar {
    display: table-cell;
    width: 264px !important;
    padding: 0 24px 36px 0;
    vertical-align: top;
}

.modern-inner .site-main {
    display: table-cell;
    width: auto !important;
    padding: 0 0 36px !important;
    vertical-align: top;
}

/* ===== 側欄卡片（Mode/left.php、Mode/vip_left.php） ===== */
.modern-inner .side-nav {
    display: flex;
    width: 240px;
    flex-direction: column;
    gap: 16px;
}

.modern-inner .side-card {
    display: block;
    padding: 14px 14px 12px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: #fff;
    box-shadow: 0 6px 18px rgba(29, 57, 88, 0.06);
}

.modern-inner .side-card-head {
    display: flex;
    margin: 0 0 10px;
    padding: 0 0 10px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf1f5;
}

.modern-inner .side-card-head h2 {
    display: inline-flex;
    margin: 0;
    align-items: center;
    gap: 8px;
    color: var(--home-text);
    font-family: var(--home-font-round);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
}

.modern-inner .side-card-head h2 .lucide {
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 50%;
    background: var(--home-sky);
    color: var(--home-primary);
}

.modern-inner .side-card-more {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
}

.modern-inner .side-card-more .lucide {
    width: 15px;
    height: 15px;
}

.modern-inner .side-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 最新消息 */
.modern-inner #left_notice li {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.modern-inner #left_notice li a {
    display: flex;
    min-height: 36px;
    padding: 7px 8px;
    align-items: center;
    border-radius: 8px;
    background: none;
    color: var(--home-text) !important;
    font-size: 14px !important;
}

.modern-inner #left_notice li a:hover {
    background: #eef6fc;
    color: var(--home-primary) !important;
    text-decoration: none;
}

.modern-inner #left_notice li a.left-news-link {
    color: #c2410c !important;
    font-weight: 600;
}

/* 會員中心：登入／註冊按鈕 */
.modern-inner #left_vip {
    display: flex;
    gap: 8px;
}

.modern-inner #left_vip li {
    float: none;
    flex: 1 1 0;
    padding: 0;
}

.modern-inner #left_vip li a {
    display: flex;
    min-height: 40px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--home-primary);
    border-radius: 999px;
    background: #fff;
    color: var(--home-primary) !important;
    font-size: 14px;
    font-weight: 600;
}

.modern-inner #left_vip li:first-child a {
    background: var(--home-primary);
    color: #fff !important;
}

.modern-inner #left_vip li a:hover {
    background: var(--home-primary-dark);
    border-color: var(--home-primary-dark);
    color: #fff !important;
    text-decoration: none;
}

.modern-inner #left_vip li a font {
    color: inherit !important;
}

/* 列表一覽 */
.modern-inner #left_list {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.modern-inner #left_list li {
    margin: 0;
    padding: 0;
    border: 0;
    letter-spacing: 0;
    line-height: 1.5;
}

.modern-inner #left_list li.left_list_h1 {
    display: flex;
    margin: 12px 0 4px;
    padding: 0 4px;
    align-items: center;
    gap: 6px;
    color: var(--home-primary-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.modern-inner #left_list li.left_list_h1:first-child {
    margin-top: 0;
}

.modern-inner #left_list li.left_list_h1 .lucide {
    width: 16px;
    height: 16px;
    color: var(--home-primary);
}

.modern-inner #left_list li a {
    display: flex;
    min-height: 34px;
    padding: 6px 10px 6px 26px;
    align-items: center;
    border-radius: 8px;
    background: none;
    color: var(--home-text);
    text-decoration: none;
}

.modern-inner #left_list li a:hover {
    background: #eef6fc;
    color: var(--home-primary);
    text-decoration: none;
}

.modern-inner #left_list li a[aria-current="page"] {
    background: var(--home-sky);
    color: var(--home-primary-dark);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--home-primary);
}

.modern-inner #left_list li.side-list-inline {
    display: flex;
    flex-wrap: wrap;
}

.modern-inner #left_list li.side-list-inline a {
    flex: 1 1 auto;
}

.modern-inner #left_list li a.side-list-alert {
    color: #c62828;
    font-weight: 700;
}

/* 會員中心狀態 */
.modern-inner .side-vip-status {
    display: grid;
    margin: 0;
    gap: 8px;
}

.modern-inner .side-vip-status > div {
    display: flex;
    padding: 8px 10px;
    align-items: baseline;
    gap: 10px;
    border-radius: 10px;
    background: #f5f8fb;
    font-size: 14px;
}

.modern-inner .side-vip-status dt {
    flex: 0 0 auto;
    color: var(--home-muted);
    font-weight: 500;
}

.modern-inner .side-vip-status dd {
    margin: 0;
    color: var(--home-text);
    font-weight: 600;
}

.modern-inner .side-vip-money {
    color: #c2410c;
    font-size: 16px;
}

.modern-inner #left_notice,
.modern-inner #left_list,
.modern-inner #left_vip {
    margin: 0;
    padding: 0;
}

/* ===== 內頁共用元件 ===== */
.modern-inner .inner-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: var(--home-text);
    font-size: 15px;
}

.modern-inner .inner-card {
    padding: 22px 24px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: #fff;
    box-shadow: 0 6px 18px rgba(29, 57, 88, 0.06);
}

/* 麵包屑 */
.modern-inner .inner-breadcrumb ol {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    color: var(--home-muted);
    font-size: 14px;
}

.modern-inner .inner-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.modern-inner .inner-breadcrumb li + li::before {
    content: "";
    width: 7px;
    height: 7px;
    margin: 0 6px 0 2px;
    border-top: 1.6px solid #9aa6b5;
    border-right: 1.6px solid #9aa6b5;
    transform: rotate(45deg);
}

.modern-inner .inner-breadcrumb a {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 5px;
    color: var(--home-muted);
}

.modern-inner .inner-breadcrumb a:hover {
    color: var(--home-primary);
}

.modern-inner .inner-breadcrumb a[aria-current="page"] {
    color: var(--home-text);
    font-weight: 600;
}

.modern-inner .inner-breadcrumb .lucide {
    width: 16px;
    height: 16px;
}

/* 標題 */
.modern-inner .inner-title {
    display: flex;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--home-text);
    font-family: var(--home-font-round);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.35;
}

.modern-inner .inner-subtitle {
    margin: 6px 0 0;
    color: var(--home-muted);
    font-size: 14px;
}

.modern-inner .inner-subtitle strong {
    color: var(--home-primary-dark);
    font-size: 16px;
}

.modern-inner .inner-section-title {
    display: flex;
    margin: 0 0 18px;
    align-items: center;
    gap: 10px;
    color: var(--home-text);
    font-family: var(--home-font-round);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
}

.modern-inner .inner-section-title .lucide {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 50%;
    background: var(--home-sun);
    color: #9a6a00;
}

/* 按鈕 */
.modern-inner .inner-btn {
    display: inline-flex;
    min-height: 42px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--home-border);
    border-radius: 999px;
    background: #fff;
    color: var(--home-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.modern-inner .inner-btn .lucide {
    width: 18px;
    height: 18px;
}

.modern-inner .inner-btn:hover {
    border-color: #a9cce4;
    background: #eef6fc;
    color: var(--home-primary-dark);
    text-decoration: none;
}

.modern-inner .inner-btn-primary {
    border-color: var(--home-action);
    background: var(--home-action);
    color: #2c2810 !important;
}

.modern-inner .inner-btn-primary:hover {
    border-color: var(--home-action-hover);
    background: var(--home-action-hover);
    color: #2c2810 !important;
}

/* 表單欄位 */
.modern-inner .inner-select,
.modern-inner .inner-input {
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background-color: #fff;
    color: var(--home-text);
    font-size: 15px;
}

.modern-inner .inner-select:focus,
.modern-inner .inner-input:focus {
    border-color: var(--home-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(13, 124, 215, 0.16);
}

/* 提醒橫幅 */
.modern-inner .inner-alert {
    display: flex;
    margin-top: 18px;
    padding: 12px 16px;
    align-items: center;
    gap: 12px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff7ed;
    color: #7c2d12 !important;
    font-size: 15px;
}

.modern-inner .inner-alert:hover {
    border-color: #fdba74;
    background: #ffedd5;
    text-decoration: none;
}

.modern-inner .inner-alert strong {
    color: #c2410c;
}

.modern-inner .inner-alert .lucide {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: #ea580c;
}

.modern-inner .inner-alert span {
    flex: 1 1 auto;
}

.modern-inner .inner-alert .inner-alert-arrow {
    width: 18px;
    height: 18px;
}

.modern-inner .inner-empty {
    display: flex;
    margin: 0;
    padding: 40px 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--home-muted);
    font-size: 16px;
}

.modern-inner .inner-empty .lucide {
    width: 36px;
    height: 36px;
    color: #9aa6b5;
}

/* 分頁 */
.modern-inner .inner-pagination {
    display: flex;
    margin-top: 22px;
    justify-content: center;
}

.modern-inner .inner-pager .pagination {
    display: flex;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.modern-inner .inner-pager .pagination > li {
    display: block;
}

.modern-inner .inner-pager .pagination > li > a,
.modern-inner .inner-pager .pagination > li > span {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    float: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--home-border);
    border-radius: 10px !important;
    background: #fff;
    color: var(--home-text);
    font-size: 15px;
}

.modern-inner .inner-pager .pagination > li > a:hover {
    border-color: #a9cce4;
    background: #eef6fc;
    color: var(--home-primary-dark);
}

.modern-inner .inner-pager .pagination > .active > a,
.modern-inner .inner-pager .pagination > .active > a:hover {
    border-color: var(--home-primary);
    background: var(--home-primary);
    color: #fff;
}

.modern-inner .inner-pager .pagination > .disabled > a {
    color: #b7c0cc;
    pointer-events: none;
}

.modern-inner .inner-pager .inner-select {
    height: 40px;
    margin-left: 6px;
}

.modern-inner .inner-admin-bar {
    padding: 14px 20px;
    font-size: 14px;
}

/* ===== 刊登列表（regpet/yan_regpet_bbs.php） ===== */
.modern-inner .listing-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.modern-inner .listing-filter-tag {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--home-sky);
    color: var(--home-primary-dark);
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.modern-inner .listing-promo img {
    display: block;
    max-width: 100%;
    margin-top: 14px;
    border-radius: 12px;
}

.modern-inner .listing-search {
    display: flex;
    margin: 18px 0 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.modern-inner .listing-search-label {
    color: var(--home-muted);
    font-size: 15px;
    font-weight: 600;
}

.modern-inner .listing-type-button {
    display: inline-flex;
    height: 42px;
    padding: 0 16px;
    align-items: center;
    gap: 6px;
    border: 1px solid #f6c77a;
    border-radius: 10px;
    background: #fffbeb;
    color: #7a4b00;
    font-size: 15px;
    font-weight: 600;
}

.modern-inner .listing-type-button:hover,
.modern-inner .listing-type-button:focus {
    border-color: var(--home-action);
    background: #fff3c4;
    color: #5c3900;
}

.modern-inner .listing-type-button .lucide {
    width: 17px;
    height: 17px;
}

.modern-inner .listing-search .inner-input {
    width: 220px;
}

.modern-inner .listing-hot {
    display: flex;
    margin-top: 14px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.modern-inner .listing-hot-label {
    display: inline-flex;
    margin-right: 4px;
    align-items: center;
    gap: 4px;
    color: var(--home-muted);
    font-size: 14px;
    font-weight: 600;
}

.modern-inner .listing-hot-label .lucide {
    width: 16px;
    height: 16px;
    color: #ea580c;
}

.modern-inner .listing-hot-chip {
    display: inline-flex;
    min-height: 32px;
    padding: 0 12px;
    align-items: center;
    border: 1px solid #d6e6f5;
    border-radius: 999px;
    background: #f5faff;
    color: var(--home-primary-dark);
    font-size: 14px;
}

.modern-inner .listing-hot-chip:hover {
    border-color: var(--home-primary);
    background: var(--home-sky);
}

/* 排序列 */
.modern-inner .listing-toolbar {
    display: flex;
    padding: 6px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.modern-inner .listing-sort {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.modern-inner .listing-sort > li {
    position: relative;
}

.modern-inner .listing-sort > li > a {
    display: inline-flex;
    height: 44px;
    padding: 0 14px;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    color: var(--home-text);
    font-size: 15px;
    font-weight: 500;
}

.modern-inner .listing-sort > li > a .lucide {
    width: 17px;
    height: 17px;
}

.modern-inner .listing-sort > li > a:hover {
    background: #eef6fc;
    color: var(--home-primary-dark);
}

.modern-inner .listing-sort > li.active > a {
    background: var(--home-sky);
    color: var(--home-primary-dark);
    font-weight: 700;
}

.modern-inner .listing-sort .dropdown-menu {
    min-width: 150px;
    padding: 6px;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    box-shadow: var(--home-shadow);
}

.modern-inner .listing-sort .dropdown-menu > li > a {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--home-text);
    font-size: 15px;
}

.modern-inner .listing-sort .dropdown-menu > li > a:hover {
    background: #eef6fc;
    color: var(--home-primary-dark);
}

.modern-inner .listing-count {
    color: var(--home-muted);
    font-size: 14px;
}

.modern-inner .listing-count b {
    color: var(--home-text);
}

/* 卡片格線 */
.modern-inner .listing-grid-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.modern-inner .listing-card > a.listing-card-media {
    position: relative;
    display: block;
    height: auto;
}

.modern-inner .listing-card img {
    height: 200px;
    background: #f3f6f9;
}

.modern-inner .listing-card .listing-type {
    min-height: 24px;
    align-items: center;
}

.modern-inner .listing-card .listing-type:hover {
    background: #fff1a6;
    color: #3d3500;
}

.modern-inner .listing-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--home-text);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.modern-inner .listing-card h3 a:hover {
    color: var(--home-primary);
}

.modern-inner .listing-card .listing-meta input {
    margin: 0 6px 0 0;
}

.modern-inner .inner-btn-blue {
    border-color: var(--home-primary);
    background: var(--home-primary);
    color: #fff !important;
}

.modern-inner .inner-btn-blue:hover {
    border-color: var(--home-primary-dark);
    background: var(--home-primary-dark);
    color: #fff !important;
}

/* ===== 討論區列表（Main/Board/board.php） ===== */
.modern-inner .board-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.modern-inner .board-readonly {
    display: inline-flex;
    min-height: 42px;
    padding: 0 16px;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #f1f4f8;
    color: var(--home-muted);
    font-weight: 600;
}

.modern-inner .board-readonly .lucide {
    width: 17px;
    height: 17px;
}

.modern-inner .board-notes {
    display: flex;
    margin-top: 18px;
    padding: 14px 16px;
    gap: 12px;
    border-radius: 12px;
    background: #f5f9fd;
    color: var(--home-text);
    font-size: 15px;
    line-height: 1.75;
}

.modern-inner .board-notes > .lucide {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 4px;
    color: var(--home-primary);
}

.modern-inner .board-notes font[size] {
    font-size: inherit;
}

.modern-inner .board-list {
    padding: 8px 24px 22px;
}

.modern-inner .topic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.modern-inner .topic-table th {
    padding: 14px 10px 12px;
    border-bottom: 1px solid var(--home-border);
    color: var(--home-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.modern-inner .topic-table th.topic-stats,
.modern-inner .topic-table th.topic-last {
    text-align: right;
}

.modern-inner .topic-row td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
    vertical-align: middle;
}

.modern-inner .topic-row:hover td {
    background: #f7fbff;
}

.modern-inner .topic-row-top td {
    background: #f2f8fe;
}

.modern-inner .topic-row-focus td,
.modern-inner .topic-row-highlight td {
    background: #fffbeb;
}

.modern-inner .topic-icon {
    width: 44px;
    text-align: center;
}

.modern-inner .topic-icon .lucide {
    width: 20px;
    height: 20px;
    color: #8fa3b8;
    vertical-align: middle;
}

.modern-inner .topic-row-top .topic-icon .lucide {
    color: var(--home-primary);
}

.modern-inner .topic-row-focus .topic-icon .lucide {
    color: #d97706;
}

.modern-inner .topic-icon [data-lucide="circle-check"],
.modern-inner .topic-icon svg.lucide-circle-check {
    color: var(--home-success);
}

.modern-inner .topic-title {
    line-height: 1.55;
    word-break: break-word;
}

.modern-inner .topic-title > a {
    color: var(--home-text);
    font-weight: 500;
}

.modern-inner .topic-title > a:hover {
    color: var(--home-primary);
}

.modern-inner .topic-row-top .topic-title > a {
    font-weight: 700;
}

.modern-inner .topic-pages {
    display: inline-flex;
    margin-left: 8px;
    gap: 4px;
    vertical-align: middle;
}

.modern-inner .topic-pages a {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--home-border);
    border-radius: 6px;
    color: var(--home-muted);
    font-size: 12px;
}

.modern-inner .topic-pages a:hover {
    border-color: var(--home-primary);
    color: var(--home-primary);
}

.modern-inner .topic-like {
    display: inline-flex;
    margin-left: 10px;
    align-items: center;
    gap: 3px;
    color: #e11d48;
    font-size: 13px;
    font-weight: 600;
    vertical-align: middle;
}

.modern-inner .topic-like .lucide {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.modern-inner .topic-stats,
.modern-inner .topic-last {
    width: 130px;
    color: var(--home-muted);
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

.modern-inner .topic-stats span,
.modern-inner .topic-last span {
    display: block;
    line-height: 1.5;
}

.modern-inner .topic-count {
    color: var(--home-text);
    font-weight: 600;
}

.modern-inner .topic-author {
    color: var(--home-muted);
}

.modern-inner .topic-empty {
    padding: 40px 0 !important;
    color: var(--home-muted);
    text-align: center;
}

.modern-inner .topic-admin {
    padding: 12px 10px;
    background: #f5f9fd;
    font-size: 14px;
}

.modern-inner .board-copyright {
    display: flex;
    margin: 20px 0 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--home-muted);
    font-size: 13px;
}

.modern-inner .board-copyright .lucide {
    width: 15px;
    height: 15px;
}

.modern-inner .inner-pager .lucide {
    width: 18px;
    height: 18px;
}

.modern-inner .inner-btn-sm {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
}

.modern-inner .inner-btn-sm .lucide {
    width: 16px;
    height: 16px;
}

.modern-inner .inner-btn-danger {
    border-color: #fecaca;
    color: #b91c1c !important;
}

.modern-inner .inner-btn-danger:hover {
    border-color: #f87171;
    background: #fef2f2;
}

.modern-inner .inner-btn-success {
    border-color: #a7dcc3;
    background: #ecfdf5;
    color: #0f6b47 !important;
}

.modern-inner .inner-btn-success:hover {
    border-color: var(--home-success);
    background: #d1fae5;
}

/* ===== 文章頁（Main/Board/view.php） ===== */
.modern-inner .topic-title-text {
    display: block;
    font-size: 24px;
    word-break: break-word;
}

.modern-inner .topic-title-text font {
    font-family: inherit;
}

.modern-inner .topic-toolbar {
    display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.modern-inner .topic-toolbar-actions {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 10px;
}

.modern-inner .topic-toolbar .inner-pager .pagination > li > a {
    min-width: 36px;
    height: 36px;
}

.modern-inner .post-card {
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: #fff;
    box-shadow: 0 6px 18px rgba(29, 57, 88, 0.06);
}

.modern-inner .post-head {
    display: flex;
    padding: 18px 22px;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid #edf1f5;
    background: #fafcfe;
}

.modern-inner .post-avatar {
    flex: 0 0 auto;
}

.modern-inner .post-avatar img {
    display: block;
    width: 64px !important;
    height: 64px !important;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--home-border);
}

.modern-inner .post-meta {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
}

.modern-inner .post-author-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.modern-inner .post-author,
.modern-inner .post-author a {
    margin-right: 4px;
    color: var(--home-text);
    font-size: 16px;
    font-weight: 700;
}

.modern-inner .post-author a:hover {
    color: var(--home-primary);
}

.modern-inner .vip_member_style {
    display: inline-flex;
    min-height: 24px;
    margin: 0;
    padding: 0 9px;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.modern-inner .vip_member_admin {
    background: #ffe4e6;
    color: #be123c;
}

.modern-inner .vip_member_guest {
    color: #94a3b8;
}

.modern-inner .post-best {
    background: #dcfce7;
    color: #166534;
}

.modern-inner .post-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: var(--home-muted);
    font-size: 13px;
}

.modern-inner .post-sub span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.modern-inner .post-sub .lucide {
    width: 15px;
    height: 15px;
}

.modern-inner .post-floor {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--home-sky);
    color: var(--home-primary-dark);
    font-weight: 700;
}

.modern-inner .post-link a {
    color: var(--home-muted);
}

.modern-inner .post-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: 50%;
}

.modern-inner .post-like {
    display: inline-flex;
    align-items: center;
}

.modern-inner .post-like-btn .lucide {
    color: #e11d48;
}

.modern-inner .post-like-count {
    display: inline-flex;
    min-width: 30px;
    height: 26px;
    margin-left: -6px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffe4e6;
    color: #be123c !important;
    font-size: 13px;
    font-weight: 700;
}

.modern-inner .post-body {
    min-height: 120px;
    padding: 22px 26px 26px;
    color: var(--home-text);
    font-size: 16px;
    line-height: 1.85;
    word-break: break-word;
}

.modern-inner .post-body img {
    max-width: 100% !important;
    height: auto;
    border-radius: 10px;
}

.modern-inner .post-body iframe {
    max-width: 100%;
    border-radius: 10px;
}

.modern-inner .post-notice {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 15px;
}

.modern-inner .post-muted {
    color: #94a3b8;
}

.modern-inner .post-zoom {
    display: inline-flex;
    margin: 6px 0 0;
    padding: 2px 10px;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--home-muted);
    font-size: 13px;
}

.modern-inner .post-admin {
    padding: 12px 22px;
    border-top: 1px solid #edf1f5;
    background: #f5f9fd;
    font-size: 14px;
}

.modern-inner .post-share {
    display: flex;
    padding: 14px 22px;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #edf1f5;
}

.modern-inner .post-share-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--home-muted);
    font-size: 14px;
    font-weight: 600;
}

.modern-inner .post-share-label .lucide {
    width: 16px;
    height: 16px;
}

.modern-inner .topic-noreply {
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--home-muted);
}

.modern-inner .inner-section-link {
    margin-left: auto;
    color: var(--home-primary-dark);
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.modern-inner .inner-alert-success {
    border-color: #a7dcc3;
    background: #ecfdf5;
    color: #14532d !important;
}

.modern-inner .inner-alert-success .lucide {
    color: var(--home-success);
}

.modern-inner .inner-alert-success strong {
    color: #0f6b47;
}

.modern-inner .inner-alert-link {
    flex: 0 0 auto;
    color: #0f6b47;
    font-weight: 600;
}

.modern-inner .inner-page > .inner-alert {
    margin-top: 0;
}

/* ===== 寵物詳情（regpet/view.php、regpet/view_shop.php） ===== */
.modern-inner .pet-summary {
    display: grid;
    grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
    gap: 28px;
}

.modern-inner .pet-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-inner .pet-photo-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f6f9;
}

.modern-inner .pet-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    object-fit: cover;
}

.modern-inner .pet-photo-empty {
    object-fit: contain;
    background: #f3f6f9;
}

.modern-inner .pet-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    padding: 5px 10px;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.72);
    color: #fff;
    font-size: 12px;
}

.modern-inner .pet-zoom .lucide {
    width: 14px;
    height: 14px;
}

.modern-inner .pet-gallery-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modern-inner .pet-gallery-links:empty {
    display: none;
}

.modern-inner .pet-chip {
    display: inline-flex;
    min-height: 32px;
    padding: 0 12px;
    align-items: center;
    gap: 5px;
    border: 1px solid #d6e6f5;
    border-radius: 999px;
    background: #f5faff;
    color: var(--home-primary-dark);
    font-size: 13px;
    font-weight: 600;
}

.modern-inner .pet-chip .lucide {
    width: 15px;
    height: 15px;
}

.modern-inner .pet-qr {
    width: 96px;
    height: 96px;
    padding: 6px;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: #fff;
}

.modern-inner .pet-title {
    display: block;
    font-size: 24px;
    word-break: break-word;
}

.modern-inner .pet-price {
    margin: 10px 0 16px;
    color: #c2410c;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.modern-inner .pet-facts {
    display: grid;
    margin: 0 0 18px;
}

.modern-inner .pet-facts > div {
    display: grid;
    padding: 9px 0;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px dashed #e3e8ee;
    font-size: 15px;
    line-height: 1.6;
}

.modern-inner .pet-facts dt {
    color: var(--home-muted);
    font-weight: 500;
}

.modern-inner .pet-facts dd {
    display: flex;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--home-text);
    word-break: break-all;
}

.modern-inner .pet-facts dd img {
    vertical-align: middle;
}

.modern-inner .pet-id {
    color: var(--home-muted);
    font-size: 13px;
}

.modern-inner .pet-muted {
    color: #94a3b8;
    font-size: 14px;
}

.modern-inner .pet-online {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--home-success);
    font-weight: 600;
}

.modern-inner .vip_member_vip {
    background: #fef3c7;
    color: #92400e;
}

.modern-inner .vip_member_legal {
    background: #e0f2fe;
    color: #075985;
}

.modern-inner .pet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modern-inner .pet-share {
    margin-top: 16px;
    padding: 14px 0 0;
}

.modern-inner .pet-notice {
    display: flex;
    margin: 0;
    align-items: center;
    gap: 10px;
    border: 1px solid #fed7aa;
}

.modern-inner .pet-notice .lucide {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.modern-inner .pet-memo {
    overflow: hidden;
    color: var(--home-text);
    font-size: 16px;
    line-height: 1.85;
    word-break: break-word;
}

.modern-inner .pet-memo img {
    max-width: 100% !important;
    height: auto;
    border-radius: 10px;
}

.modern-inner .pet-memo iframe {
    max-width: 100%;
}

.modern-inner .pet-reviews {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 10px;
    list-style: none;
}

.modern-inner .pet-reviews li {
    display: flex;
    padding: 12px 14px;
    align-items: flex-start;
    gap: 10px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
}

.modern-inner .pet-review-tag {
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.modern-inner .pet-review-good {
    background: #dcfce7;
    color: #166534;
}

.modern-inner .pet-review-bad {
    background: #fee2e2;
    color: #991b1b;
}

.modern-inner .pet-review-text {
    flex: 1 1 auto;
}

.modern-inner .pet-review-date {
    flex: 0 0 auto;
    color: var(--home-muted);
    font-size: 13px;
}

/* ===== 寵物百科（Main/wiki/*） ===== */
.modern-inner .wiki-jump {
    display: flex;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.modern-inner .wiki-grid {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}

.modern-inner .wiki-card a {
    display: flex;
    height: 100%;
    padding: 12px 10px 14px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: #fff;
    color: var(--home-text);
    text-align: center;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.modern-inner .wiki-card a:hover {
    transform: translateY(-3px);
    border-color: #a9cce4;
    box-shadow: 0 12px 24px rgba(31, 72, 109, 0.12);
}

.modern-inner .wiki-card img {
    width: 100%;
    max-width: 140px;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 6px;
    object-fit: contain;
}

.modern-inner .wiki-card-name {
    font-size: 16px;
    font-weight: 700;
}

.modern-inner .wiki-card-en {
    color: var(--home-muted);
    font-size: 12px;
}

.modern-inner .wiki-summary {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.modern-inner .wiki-photo {
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--home-sky);
}

.modern-inner .wiki-traits {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 40px;
    list-style: none;
}

.modern-inner .wiki-traits li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.modern-inner .wiki-trait-name {
    color: var(--home-muted);
}

.modern-inner .wiki-trait-bar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #edf1f5;
    -webkit-appearance: none;
    appearance: none;
}

.modern-inner .wiki-trait-bar::-webkit-progress-bar {
    border-radius: 999px;
    background: #edf1f5;
}

.modern-inner .wiki-trait-bar::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #7cc3f5, var(--home-primary));
}

.modern-inner .wiki-trait-bar::-moz-progress-bar {
    border-radius: 999px;
    background: var(--home-primary);
}

.modern-inner .wiki-trait-score {
    color: var(--home-text);
    font-weight: 700;
    text-align: right;
}

.modern-inner .wiki-subtitle {
    margin: 22px 0 8px;
    color: var(--home-text);
    font-size: 17px;
    font-weight: 700;
}

.modern-inner .wiki-back {
    text-align: center;
}

/* ===== 舊模板通用外觀（Mode/Mode.php 包上 .legacy-card） ===== */
.modern-inner .legacy-card {
    padding: 24px 28px;
    overflow-x: auto;
    color: var(--home-text);
    font-size: 15px;
    line-height: 1.7;
}

.modern-inner .legacy-card table[width="690"],
.modern-inner .legacy-card table[width="700"],
.modern-inner .legacy-card table[width="720"],
.modern-inner .legacy-card table[width="730"],
.modern-inner .legacy-card table[width="740"],
.modern-inner .legacy-card table[width="742"],
.modern-inner .legacy-card table[width="744"],
.modern-inner .legacy-card table[width="750"],
.modern-inner .legacy-card table[width="754"],
.modern-inner .legacy-card td[width="690"],
.modern-inner .legacy-card td[width="742"],
.modern-inner .legacy-card td[width="744"],
.modern-inner .legacy-card td[width="754"] {
    width: 100% !important;
}

.modern-inner .legacy-card [style*="width:754px"],
.modern-inner .legacy-card [style*="width:744px"],
.modern-inner .legacy-card [style*="width: 754px"] {
    width: auto !important;
}

.modern-inner .legacy-card img {
    max-width: 100%;
    height: auto;
}

/* 舊版麵包屑（pt_bg.png 背景列）改為新版樣式 */
.modern-inner .legacy-card div[style*="pt_bg.png"],
.modern-inner .legacy-card td[background*="pt_bg.png"] {
    height: auto !important;
    margin: 0 0 18px !important;
    padding: 0 0 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    background: none !important;
    color: var(--home-muted);
    font-size: 14px;
}

.modern-inner .legacy-card img[src*="pt_item.png"] {
    display: none;
}

.modern-inner .legacy-card img[src*="pt_home.png"] {
    width: 18px;
    height: auto;
    margin: 0 2px 0 0;
    vertical-align: -3px;
    opacity: 0.6;
}

.modern-inner .legacy-card .Nav_txt {
    display: inline-flex;
    padding: 0;
    align-items: center;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.5;
    vertical-align: middle;
}

.modern-inner .legacy-card .Nav_txt::before {
    content: "";
    width: 7px;
    height: 7px;
    margin: 0 10px 0 6px;
    border-top: 1.6px solid #9aa6b5;
    border-right: 1.6px solid #9aa6b5;
    transform: rotate(45deg);
}

.modern-inner .legacy-card .Nav_txt a {
    color: var(--home-text);
    font-weight: 600;
}

/* Bootstrap 元件換成品牌色與圓角 */
.modern-inner .legacy-card .btn {
    border-radius: 999px;
    font-weight: 600;
}

.modern-inner .legacy-card .btn-primary {
    border-color: var(--home-primary);
    background: var(--home-primary);
}

.modern-inner .legacy-card .btn-primary:hover {
    border-color: var(--home-primary-dark);
    background: var(--home-primary-dark);
}

.modern-inner .legacy-card .form-control,
.modern-inner .legacy-card input[type="text"],
.modern-inner .legacy-card input[type="password"],
.modern-inner .legacy-card input[type="email"],
.modern-inner .legacy-card input[type="search"],
.modern-inner .legacy-card input[type="tel"],
.modern-inner .legacy-card select,
.modern-inner .legacy-card textarea {
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background-color: #fff;
    font-size: 15px;
}

.modern-inner .legacy-card .form-control:focus,
.modern-inner .legacy-card input:focus,
.modern-inner .legacy-card select:focus,
.modern-inner .legacy-card textarea:focus {
    border-color: var(--home-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(13, 124, 215, 0.16);
}

.modern-inner .legacy-card .panel {
    overflow: hidden;
    border-color: var(--home-border);
    border-radius: 14px;
    box-shadow: none;
}

.modern-inner .legacy-card .panel-heading {
    border-color: #edf1f5;
    background: #f5f9fd;
    color: var(--home-text);
    font-weight: 700;
}

.modern-inner .legacy-card .alert {
    border-radius: 12px;
}

.modern-inner .legacy-card .table > thead > tr > th,
.modern-inner .legacy-card .table > tbody > tr > td {
    border-color: #edf1f5;
}

/* ===== 登入／註冊（Main/vip/viplogin.php、vipadd.php） ===== */
.modern-inner .auth-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 36px;
}

.modern-inner .auth-card-wide {
    max-width: 760px;
}

.modern-inner .auth-head {
    display: flex;
    margin-bottom: 22px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modern-inner .auth-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home-sky);
    color: var(--home-primary);
}

.modern-inner .auth-icon .lucide {
    width: 28px;
    height: 28px;
}

.modern-inner .auth-social {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.modern-inner .auth-social .inner-btn {
    min-height: 46px;
}

.modern-inner .auth-btn-facebook {
    border-color: #1877f2;
    background: #1877f2;
    color: #fff !important;
}

.modern-inner .auth-btn-facebook:hover {
    border-color: #1462c9;
    background: #1462c9;
}

.modern-inner .auth-btn-google .fa-google {
    color: #ea4335;
}

.modern-inner .auth-divider {
    display: flex;
    margin: 22px 0;
    align-items: center;
    gap: 12px;
    color: var(--home-muted);
    font-size: 13px;
}

.modern-inner .auth-divider::before,
.modern-inner .auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--home-border);
}

.modern-inner .auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modern-inner .auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modern-inner .auth-field label {
    display: inline-flex;
    margin: 0;
    align-items: center;
    gap: 8px;
    color: var(--home-text);
    font-size: 15px;
    font-weight: 600;
}

.modern-inner .auth-field .inner-input {
    width: 100%;
    height: 46px;
}

.modern-inner .auth-inline {
    display: flex;
    gap: 10px;
}

.modern-inner .auth-inline .inner-input {
    flex: 1 1 auto;
}

.modern-inner .auth-inline .inner-btn {
    min-height: 46px;
}

.modern-inner .auth-grid {
    display: grid;
    margin-top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.modern-inner .auth-lowercase {
    text-transform: lowercase;
}

.modern-inner .auth-help {
    align-self: flex-end;
    font-size: 14px;
}

.modern-inner .auth-hint {
    color: var(--home-muted);
    font-size: 13px;
    font-weight: 400;
}

.modern-inner .auth-hint img,
.modern-inner .show_vaild img {
    vertical-align: -2px;
}

.modern-inner .auth-field label.error,
.modern-inner .auth-field label.valid {
    color: #b91c1c;
    font-size: 13px;
    font-weight: 500;
}

.modern-inner .auth-check {
    display: flex;
    margin: 0;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}

.modern-inner .auth-check input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.modern-inner .auth-submit {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
}

.modern-inner .auth-switch {
    margin: 0;
    color: var(--home-muted);
    font-size: 15px;
    text-align: center;
}

.modern-inner .auth-switch a {
    font-weight: 700;
}

.modern-inner .auth-secure {
    display: flex;
    margin: 0;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    background: #f5f9fd;
    color: var(--home-muted);
    font-size: 13px;
    text-align: center;
}

.modern-inner .auth-secure .lucide {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--home-success);
}

.modern-inner .auth-step {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.modern-inner .auth-step-panel {
    padding-top: 16px;
    border-top: 1px dashed var(--home-border);
}

.modern-inner .auth-rules-title {
    display: flex;
    margin: 0 0 10px;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.modern-inner .auth-rules {
    margin: 0 0 10px;
    padding: 14px 18px 14px 36px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    line-height: 1.9;
}

.modern-inner .auth-rules strong {
    color: #b91c1c;
}

.modern-inner #info_form2 .auth-submit {
    margin-top: 10px;
}

/* ===== 說明頁（Main/law/*） ===== */
.modern-inner .legal-doc .inner-title {
    margin-bottom: 20px;
}

.modern-inner .legal-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home-sky);
    color: var(--home-primary);
}

.modern-inner .legal-icon .lucide {
    width: 22px;
    height: 22px;
}

.modern-inner .legal-section + .legal-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #edf1f5;
}

.modern-inner .legal-body {
    max-width: 920px;
    color: var(--home-text);
    font-size: 16px;
    line-height: 1.95;
}

.modern-inner .about-intro {
    margin-top: 14px;
}

.modern-inner .about-slider {
    padding: 0;
    overflow: hidden;
}

.modern-inner .about-slider .flexslider {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.modern-inner .about-slider .flex-control-nav {
    bottom: 12px;
    z-index: 2;
}

.modern-inner .about-slider img {
    display: block;
    width: 100%;
}

.modern-inner .about-timeline {
    position: relative;
    display: grid;
    margin: 0;
    padding: 0 0 0 18px;
    gap: 12px;
    list-style: none;
    border-left: 2px solid var(--home-sky);
}

.modern-inner .about-timeline li {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 15px;
    line-height: 1.7;
}

.modern-inner .about-timeline li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: -24px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--home-primary);
    box-shadow: 0 0 0 2px var(--home-sky);
}

.modern-inner .about-year {
    flex: 0 0 auto;
    padding: 1px 10px;
    border-radius: 999px;
    background: var(--home-sun);
    color: #7a4b00;
    font-size: 13px;
    font-weight: 700;
}

.modern-inner .about-tail {
    margin: 18px 0 0;
    color: var(--home-primary-dark);
    font-weight: 600;
    text-align: center;
}

/* ===== 安心賣家介紹（Main/buysafe/buysafe.php） ===== */
.modern-inner .buysafe-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 44%);
    align-items: center;
    gap: 28px;
    background: linear-gradient(135deg, #f2f9ff 0%, #ffffff 60%);
}

.modern-inner .buysafe-hero-text p {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.8;
}

.modern-inner .buysafe-badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 12px;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
}

.modern-inner .buysafe-badge .lucide {
    width: 16px;
    height: 16px;
}

.modern-inner .buysafe-checks {
    display: grid;
    margin: 16px 0 20px;
    padding: 0;
    gap: 8px;
    list-style: none;
}

.modern-inner .buysafe-checks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.modern-inner .buysafe-checks .lucide {
    width: 20px;
    height: 20px;
    color: var(--home-success);
}

.modern-inner .buysafe-hero-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.modern-inner .buysafe-lead {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.8;
}

.modern-inner .buysafe-promise {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
}

.modern-inner .buysafe-promise li {
    display: flex;
    padding: 16px;
    gap: 14px;
    border: 1px solid #edf1f5;
    border-radius: 14px;
    background: #fafcfe;
}

.modern-inner .buysafe-promise-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home-sky);
    color: var(--home-primary);
}

.modern-inner .buysafe-promise h4 {
    margin: 2px 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.modern-inner .buysafe-promise p {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.75;
}

.modern-inner .buysafe-warn {
    color: #c2410c;
}

.modern-inner .buysafe-note {
    display: block;
    margin-top: 6px;
    color: var(--home-muted);
    font-size: 13px;
}

.modern-inner .buysafe-steps {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    counter-reset: none;
}

.modern-inner .buysafe-steps li {
    position: relative;
    display: flex;
    padding: 18px 14px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
    background: #f5f9fd;
    text-align: center;
}

.modern-inner .buysafe-steps li:nth-child(2) { background: #f3f0ff; }
.modern-inner .buysafe-steps li:nth-child(3) { background: #ecfdf5; }
.modern-inner .buysafe-steps li:nth-child(4) { background: #fffbeb; }
.modern-inner .buysafe-steps li:nth-child(5) { background: #fff1f2; }

.modern-inner .buysafe-steps li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -12px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #9aa6b5;
    border-right: 2px solid #9aa6b5;
    transform: translateY(-50%) rotate(45deg);
}

.modern-inner .buysafe-step-no {
    color: var(--home-primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.modern-inner .buysafe-steps .lucide {
    width: 32px;
    height: 32px;
    color: var(--home-primary);
}

.modern-inner .buysafe-steps strong {
    font-size: 16px;
}

.modern-inner .buysafe-steps span:last-child {
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.6;
}

.modern-inner .buysafe-list {
    display: grid;
    margin: 0 0 16px;
    padding-left: 24px;
    gap: 10px;
    font-size: 15px;
    line-height: 1.8;
}

.modern-inner .buysafe-list ol {
    display: grid;
    margin: 8px 0;
    padding-left: 22px;
    gap: 6px;
}

.modern-inner .buysafe-join {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
}

.modern-inner .buysafe-list,
.modern-inner .auth-rules {
    list-style: decimal;
}

.modern-inner .buysafe-list > li,
.modern-inner .auth-rules > li {
    display: list-item;
}

.modern-inner .buysafe-list ol[type="A"] {
    list-style: upper-alpha;
}

.modern-inner .buysafe-list ol.buysafe-sublist {
    list-style: lower-roman;
}

/* ===== 寵物店家資訊（Main/PetShop/petshop.php） ===== */
.modern-inner .shop-tabs {
    display: flex;
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.modern-inner .listing-hot-chip.is-active {
    border-color: var(--home-primary);
    background: var(--home-primary);
    color: #fff;
}

.modern-inner .shop-table td {
    font-size: 15px;
}

.modern-inner .shop-tel,
.modern-inner .shop-city {
    white-space: nowrap;
}

.modern-inner .shop-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.modern-inner .shop-pager a,
.modern-inner .shop-pager span {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: #fff;
    color: var(--home-text);
    font-size: 15px;
}

.modern-inner .shop-pager a:hover {
    border-color: #a9cce4;
    background: #eef6fc;
}

.modern-inner .shop-pager .is-current {
    border-color: var(--home-primary);
    background: var(--home-primary);
    color: #fff;
}

.modern-inner .water-note {
    margin: -8px 0 14px;
}

.modern-inner .popover {
    border-radius: 12px;
    font-family: "Noto Sans TC", sans-serif;
}

/* ===== 交換連結（Main/link/link.php） ===== */
.modern-inner .link-intro p {
    margin: 10px 0 0;
}

.modern-inner .link-codes {
    display: grid;
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.modern-inner .link-code {
    display: flex;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 14px;
    background: #f8fafc;
}

.modern-inner .link-code-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.modern-inner .link-textarea {
    width: 100%;
    height: auto;
    padding: 10px 12px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    resize: vertical;
}

.modern-inner .link-warn {
    margin-top: 18px;
}

.modern-inner .link-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
}

.modern-inner .link-req {
    color: #c2410c;
}

.modern-inner .link-question {
    color: var(--home-primary-dark);
    font-weight: 700;
}

.modern-inner .link-check {
    max-width: 200px;
}

.modern-inner .link-group {
    margin: 18px 0 10px;
    color: var(--home-primary-dark);
    font-size: 15px;
    font-weight: 700;
}

.modern-inner .link-group:first-of-type {
    margin-top: 0;
}

.modern-inner .link-list {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.modern-inner .link-list li {
    display: inline-flex;
    min-height: 32px;
    padding: 0 12px;
    align-items: center;
    border: 1px solid #edf1f5;
    border-radius: 999px;
    background: #fafcfe;
    color: var(--home-muted);
    font-size: 14px;
}

/* ===== 廣告刊登／合作提案（Main/adv_apply/adv_apply.php） ===== */
.modern-inner .adv-step {
    margin-top: 26px;
}

.modern-inner .adv-preview {
    display: flex;
    padding: 18px;
    justify-content: center;
    gap: 16px;
    border-radius: 14px;
    background: #f5f9fd;
}

.modern-inner .adv-preview img {
    height: 297px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(29, 57, 88, 0.1);
}

.modern-inner .adv-caption {
    display: flex;
    margin: 12px 0 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--home-primary-dark);
    font-weight: 600;
}

.modern-inner .adv-caption .lucide {
    width: 18px;
    height: 18px;
}

.modern-inner .adv-note {
    margin: -8px 0 14px;
}

.modern-inner .adv-prices {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
}

.modern-inner .adv-prices li {
    display: flex;
    padding: 18px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    text-align: center;
}

.modern-inner .adv-prices li:nth-child(3) {
    border-color: var(--home-action);
    background: #fffbeb;
}

.modern-inner .adv-days {
    color: var(--home-muted);
    font-weight: 600;
}

.modern-inner .adv-prices strong {
    color: #c2410c;
    font-size: 24px;
}

.modern-inner .adv-prices span:last-child {
    color: var(--home-muted);
    font-size: 13px;
}

.modern-inner .adv-rules {
    list-style: upper-alpha;
}

.modern-inner .adv-warn {
    margin: 0 0 18px;
}

.modern-inner .adv-captcha {
    height: 46px;
    border-radius: 10px;
    cursor: pointer;
}

.modern-inner .adv-textarea {
    width: 100%;
    height: auto;
    min-height: 240px;
    padding: 12px;
}

.modern-inner .adv-submit {
    max-width: 320px;
    align-self: center;
}

.modern-inner .topic-deleted {
    color: #94a3b8;
}

.modern-inner .topic-row-top .topic-title > a {
    color: var(--home-primary-dark);
}

.modern-inner .topic-row {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 15px;
}

.modern-inner .topic-row .topic-stats,
.modern-inner .topic-row .topic-last {
    font-size: 14px;
}
