/* ============================================================
 * 首页样式（原 index.php 内联 <style> 外提）
 * 命名规范：语义化 kebab-case；旧类名（.sdtjdm/.ysdm/.zxdm/.domainText）
 * 仍被 comm.css 深色段与其他页面（domain/reg.php）引用，故深色选择器同步双写。
 * ============================================================ */

.page-wrap {
    max-width: 1180px;
}

.section-pad {
    padding: 10px;
    text-align: center;
}

.section-pad .tag-sold,
.section-pad .tag-new {
    display: inline-block;
}

.tag-line p {
    color: #333;
}

.tag-line-sold {
    color: #03A9F4;
    word-break: break-all;
    display: table;
}

.tag-line-new {
    color: #9d7437;
    word-break: break-all;
    display: table;
}

/* 公告/新闻条 */
.site-news {
    background-color: #333;
}

[data-theme="dark"] .site-news {
    background-color: #333;
}

.news li {
    color: #999;
    width: 33%;
    float: left;
    list-style-type: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 2px 4px;
    box-sizing: border-box;
}

.news li a {
    color: #999;
}

/* 域名交易 CTA 按钮 */
.home-cta {
    text-align: center;
}

.cta-trade-btn {
    color: #fff;
    display: inline-block;
    padding: 4px 100px;
    font-size: 16px;
    line-height: 50px;
    border: 0;
    border-radius: 4px;
    background: #ef5b00;
    background-image: linear-gradient(248deg, #ff8c1f, #ff6a00);
    margin-top: 50px;
    transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-trade-btn:hover {
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
    color: #fff;
}

/* 已售/最新标签 */
.tag-sold {
    font-size: 12px;
    line-height: 22px;
    padding: 0 4px;
    white-space: nowrap;
    background: #d1ebff;
    color: #1f96f3;
    margin: 0 2px 2px 0;
    font-style: normal;
    border-radius: 4px;
}

.tag-new {
    font-size: 12px;
    line-height: 22px;
    padding: 0 4px;
    white-space: nowrap;
    background: #fcf8e2;
    color: #9d7437;
    margin: 0 2px 2px 0;
    border-radius: 4px;
}

[data-theme="dark"] .tag-line .tag-sold,
[data-theme="dark"] .tag-line .tag-new {
    background: #2b2b2b;
}

/* 搜索区 */
.search-input {
    width: 100%;
    line-height: 46px;
    height: 46px;
    text-indent: 1em;
    font-size: 14px;
    outline: none;
    background: none;
    color: #000;
    border: 1px solid #BDBDBD;
    box-sizing: border-box;
    border-radius: 4px;
}

.search-input:hover {
    border-color: #2196F3;
}

.site-search {
    max-width: 680px;
    margin: 30px auto;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.site-search .btn {
    height: 36px;
    position: absolute;
    top: 5px;
}

.site-search .buy-domain {
    right: 165px;
}

.site-search .check-domain[data-type="whois"] {
    right: 95px;
}

.site-search .check-domain[data-type="beiancx"] {
    right: 5px;
}

/* 推荐域名卡片 */
.rec-domain-list {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.rec-domain-list li {
    list-style: none;
    float: left;
    min-height: 100px;
    box-sizing: border-box;
    padding: 5px;
}

.rec-domain-list li div {
    width: 100%;
    padding: 10px;
    min-height: 124px;
    box-sizing: border-box;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rec-domain-list li div:hover {
    border-color: #2196f3;
}

.rec-domain-list li div h4 {
    text-align: left;
    width: 100%;
    line-height: 50px;
    color: #000;
    font-size: 24px;
    overflow: hidden;
}

.rec-domain-list li div p {
    text-align: left;
    width: 100%;
    color: #949494;
    font-size: 14px;
    overflow: hidden;
    height: 21px;
    line-height: 21px;
}

.rec-domain-list li div h6 {
    text-align: right;
    width: 100%;
    color: #f00;
    font-size: 16px;
    font-weight: normal;
}

[data-theme="dark"] .rec-domain-list li div {
    border-color: #555;
    background: #1e1e1e;
}

[data-theme="dark"] .rec-domain-list li div h4 {
    color: #ddd;
}

/* 响应式（与 comm.css 旧 .sdtjdm 断点一致） */
@media (min-width: 1100px) {
    .rec-domain-list li {
        width: 20%;
    }
}

@media (max-width: 1100px) {
    .rec-domain-list li {
        width: 25%;
    }
}

@media (max-width: 900px) {
    .rec-domain-list li {
        width: 33.333%;
    }

    .site-search .btn {
        position: unset;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .rec-domain-list li {
        width: 50%;
    }
}
