/**
 * 域名查询注册页面样式
 * 匹配 JustNews 主题设计，使用主题CSS变量，移动自适应
 */

/* ==================== 页面主体布局 ==================== */
.west-domain-page .entry-content {
    padding: 0;
}

.west-domain-wrap {
    max-width: 1200px;
}

.west-domain-page .entry-head {
    text-align: center;
    margin-bottom: 24px;
}

.west-domain-page .entry-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--theme-color, #1a73e8);
}

/* ==================== API配置提示 ==================== */
.west-domain-alert {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: var(--theme-border-radius-m, 8px);
    margin-bottom: 24px;
    gap: 12px;
}

.west-domain-alert-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #8d6e00;
}

.west-alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background: #ffc107;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.west-alert-body strong {
    display: block;
    margin-bottom: 4px;
}

.west-alert-body code {
    background: rgba(0,0,0,.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    margin: 0 2px;
}

/* ==================== 域名搜索区域 ==================== */
.west-domain-search-section {
    background: var(--theme-el-bg-color, #fff);
    border-radius: var(--theme-border-radius-l, 12px);
    padding: 40px 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.west-domain-search-box {
    max-width: 800px;
    margin: 0 auto;
}

.west-domain-search-input-wrap {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.west-domain-input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: var(--theme-border-radius-m, 8px);
    overflow: hidden;
    transition: border-color .2s;
    background: #fff;
}

.west-domain-input-group:focus-within {
    border-color: var(--theme-color, #1a73e8);
}

.west-domain-input-icon {
    display: flex;
    align-items: center;
    padding-left: 16px;
    color: #999;
    flex-shrink: 0;
}

.west-domain-input-icon svg {
    width: 20px;
    height: 20px;
}

.west-domain-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 8px 14px 10px;
    font-size: 16px;
    background: transparent;
    color: #333;
    min-width: 0;
}

.west-domain-input::placeholder {
    color: #bbb;
}

.west-domain-suffix-display {
    padding: 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-color, #1a73e8);
    background: #f5f7fa;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.west-domain-search-btn {
    flex-shrink: 0;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: var(--theme-border-radius-m, 8px) !important;
    height: auto !important;
    line-height: 1 !important;
}

/* ==================== 后缀选择 ==================== */
.west-domain-suffix-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.west-domain-suffix-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.west-suffix-tag {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.west-suffix-tag input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.west-suffix-tag span {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    background: #fff;
    transition: all .2s;
}

.west-suffix-tag:hover span {
    border-color: var(--theme-color, #1a73e8);
    color: var(--theme-color, #1a73e8);
}

.west-suffix-tag.active span {
    background: var(--theme-color, #1a73e8);
    border-color: var(--theme-color, #1a73e8);
    color: #fff;
}

.west-domain-suffix-select {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    background: #fff;
    cursor: pointer;
    outline: none;
}

/* ==================== 加载状态 ==================== */
.west-domain-loading {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

.west-domain-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--theme-color, #1a73e8);
    border-radius: 50%;
    animation: west-spin .8s linear infinite;
    margin-bottom: 12px;
}

@keyframes west-spin {
    to { transform: rotate(360deg); }
}

.west-domain-loading-text {
    display: block;
    font-size: 14px;
}

/* ==================== 查询结果 ==================== */
.west-domain-results {
    background: var(--theme-el-bg-color, #fff);
    border-radius: var(--theme-border-radius-l, 12px);
    padding: 24px 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.west-domain-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.west-domain-results-head h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.west-domain-results-count {
    font-size: 14px;
    color: #999;
}

.west-domain-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.west-domain-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 1px solid #eee;
    border-radius: var(--theme-border-radius-m, 8px);
    transition: box-shadow .2s;
}

.west-domain-result-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.west-domain-result-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.west-domain-result-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

.west-domain-result-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.west-domain-result-status.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.west-domain-result-status.unavailable {
    background: #ffebee;
    color: #c62828;
}

.west-domain-result-status.premium {
    background: #fff3e0;
    color: #e65100;
}

.west-domain-result-action {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.west-domain-result-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-color, #1a73e8);
    white-space: nowrap;
}

.west-domain-result-price small {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.west-domain-register-btn,
.west-domain-select-btn {
    padding: 8px 24px !important;
    font-size: 14px !important;
    border-radius: var(--theme-border-radius-s, 6px) !important;
    height: auto !important;
    line-height: 1 !important;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s;
}

.west-domain-register-btn:disabled,
.west-domain-select-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ==================== 页面分区（CSS计数器自动编号） ==================== */
.west-sections {
    counter-reset: section;
}
.west-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}
.west-section-head {
    display: flex;
    align-items: flex-end !important;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #eee;
}
.west-section:not(.west-section-hidden) .west-section-num::before {
    counter-increment: section;
    content: counter(section);
}
.west-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--theme-color, #0066ff);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
    line-height: 1;
}
.west-section-head h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    height: 28px;
    display: flex;
    align-items: flex-end;
}

/* ==================== 全宽覆盖 ==================== */
body.west-fullwidth-page .site-main,
body.west-fullwidth-page .main,
body.west-fullwidth-page #main,
body.west-fullwidth-page .content-area,
body.west-fullwidth-page .entry-content,
body.west-fullwidth-page .entry-main,
body.west-fullwidth-page .hentry,
body.west-fullwidth-page .post,
body.west-fullwidth-page .main-wide,
body.west-fullwidth-page .main-full,
body.west-fullwidth-page .west-domain-wrap,
body.west-fullwidth-page .west-fullwidth-wrap {
    width: 100% !important;
    max-width: 1200px !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.west-fullwidth-page .widget-area,
body.west-fullwidth-page #sidebar,
body.west-fullwidth-page .sidebar,
body.west-fullwidth-page .aside,
body.west-fullwidth-page .sidebar-wrap {
    display: none !important;
}
body.west-fullwidth-page .container,
body.west-fullwidth-page .wrap,
body.west-fullwidth-page .wrap.container,
body.west-fullwidth-page .wrap.container.west-domain-wrap,
body.west-fullwidth-page .wrap.container.west-fullwidth-wrap {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}
body.west-fullwidth-page .main.main-full,
body.west-fullwidth-page .main.main-wide,
body.west-fullwidth-page .main.west-domain-wrap {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ==================== 配置选择 ==================== */
.west-config-group {
    margin-bottom: 20px;
}
.west-config-row {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}
.west-config-row:last-child {
    border-bottom: none;
}
.west-config-label {
    width: 110px;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding-top: 8px;
}
.west-config-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}
.west-config-opt {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    background: #fafafa;
    font-size: 14px;
}
.west-config-opt input[type="radio"] {
    display: none;
}
.west-config-opt:hover {
    border-color: var(--theme-color, #0066ff);
}
.west-config-opt.active {
    border-color: var(--theme-color, #0066ff);
    background: rgba(0,102,255,0.08);
    color: var(--theme-color, #0066ff);
    font-weight: 600;
}
/* 置灰不可选状态 */
.west-config-opt.west-config-locked {
    opacity: .4;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #e8e8e8;
    color: #bbb;
    pointer-events: none;
}
.west-config-opt.west-config-locked input {
    pointer-events: none;
}
.west-config-price {
    margin-left: 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-color, #1a73e8);
}
.west-config-opt.active .west-config-price {
    color: var(--theme-color, #1a73e8);
}
.west-config-price-unit {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-left: 2px;
}
.west-config-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #eee;
}
.west-build-confirm-btn {
    padding: 12px 40px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    height: auto !important;
    line-height: 1 !important;
}
.west-build-confirm-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.west-config-tip {
    color: #999;
    font-size: 13px;
}

/* ==================== 弹窗价格明细 ==================== */
.west-modal-info-row.west-modal-info-total {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 6px;
}
.west-modal-info-value.west-modal-price-detail {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666 !important;
    line-height: 1.8;
}

/* ==================== 上传需求 ==================== */
.west-upload-desc-text {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
    line-height: 1.6;
}
.west-upload-form {
    margin-bottom: 20px;
}
.west-upload-row {
    margin-bottom: 20px;
}
.west-upload-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.west-requirement-input {
    width: 100% !important;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}
.west-requirement-input:focus {
    outline: none;
    border-color: var(--theme-color, #0066ff);
    box-shadow: 0 0 0 2px rgba(0,102,255,0.1);
}
.west-upload-optional {
    color: #999;
    font-size: 13px;
    font-weight: 400;
}
.west-upload-required {
    color: #c62828;
    font-size: 13px;
    font-weight: 400;
}
.west-upload-area {
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
}
.west-upload-btn-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.west-upload-file {
    display: none !important;
}
.west-upload-btn {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid var(--theme-color, #0066ff);
    color: var(--theme-color, #0066ff);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}
.west-upload-btn:hover {
    background: var(--theme-color, #0066ff);
    color: #fff;
}
.west-upload-hint {
    font-size: 13px;
    color: #999;
}
.west-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.west-upload-item {
    position: relative;
    width: 80px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    text-align: center;
    padding: 4px;
}
.west-upload-item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.west-upload-item .west-upload-name {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.west-upload-item .west-upload-status {
    display: block;
    font-size: 11px;
    color: #999;
}
.west-upload-item.west-upload-uploading .west-upload-status { color: #0066ff; }
.west-upload-item.west-upload-error .west-upload-status { color: #c62828; }
.west-upload-remove {
    position: absolute;
    top: 2px;
    right: 4px;
    cursor: pointer;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}
.west-upload-remove:hover {
    background: rgba(198,40,40,0.85);
}

/* ==================== 协议 ==================== */
.west-agreement {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
}
.west-agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}
.west-agreement a {
    color: var(--theme-color, #0066ff);
    text-decoration: none;
}
.west-agreement a:hover {
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .west-section {
        padding: 16px;
    }
    .west-config-row {
        flex-direction: column;
    }
    .west-config-label {
        width: 100%;
        padding: 0 0 8px 0;
    }
    .west-config-opt {
        flex: 1;
        justify-content: center;
    }
    .west-config-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==================== 空状态 ==================== */
.west-domain-empty {
    text-align: center;
    padding: 60px 0;
    color: #ccc;
}

.west-domain-empty-icon svg {
    width: 64px;
    height: 64px;
    opacity: .3;
}

.west-domain-empty p {
    margin-top: 16px;
    font-size: 15px;
    color: #999;
}

/* ==================== 登录提示 ==================== */
.west-domain-login-tip {
    background: linear-gradient(135deg, var(--theme-color, #1a73e8), var(--theme-hover, #1557b0));
    border-radius: var(--theme-border-radius-l, 12px);
    padding: 32px;
    margin-bottom: 32px;
    color: #fff;
}

.west-domain-login-tip-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.west-login-tip-icon svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.west-login-tip-text p {
    margin: 0 0 12px;
    font-size: 16px;
}

.west-login-tip-btns {
    display: flex;
    gap: 12px;
}

.west-login-tip-btns .wpcom-btn {
    padding: 8px 24px !important;
    border-radius: var(--theme-border-radius-s, 6px) !important;
    font-size: 14px !important;
}

.west-login-btn {
    background: #fff !important;
    color: var(--theme-color, #1a73e8) !important;
    border: none;
}

.west-register-btn {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.6) !important;
}

/* ==================== 余额显示 ==================== */
.west-domain-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--theme-el-bg-color, #fff);
    border-radius: var(--theme-border-radius-m, 8px);
    margin-bottom: 24px;
    font-size: 15px;
}

.west-balance-label {
    color: #666;
}

.west-balance-value {
    font-weight: 700;
    color: var(--theme-color, #1a73e8);
    font-size: 18px;
}

/* ==================== 常见问题手风琴 ==================== */
.west-faq-section {
    margin-top: 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}
.west-faq-section-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #eee;
}
.west-faq-section-head h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}
.west-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.west-faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    transition: border-color .2s;
}

.west-faq-item:hover {
    border-color: #d0d0d0;
}

.west-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #fff;
    transition: background .2s;
    user-select: none;
}

.west-faq-question:hover {
    background: #f5f7fa;
}

.west-faq-q-text {
    flex: 1;
}

.west-faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 12px;
    color: #999;
    font-size: 20px;
    line-height: 1;
    transition: transform .2s;
}

.west-faq-icon::before {
    content: '+';
}

.west-faq-item.west-faq-open .west-faq-icon::before {
    content: '−';
}

.west-faq-answer {
    display: none;
    padding: 4px 20px 14px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5 !important;
    border-top: 1px dashed #eee;
    background: #fafafa;
}

.west-faq-item.west-faq-open .west-faq-answer {
    display: block;
}

.west-faq-answer p,
body.west-fullwidth-page .west-faq-answer p,
.west-domain-page .west-faq-answer p {
    margin: 0 0 2px !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

.west-faq-answer p:last-child {
    margin-bottom: 0 !important;
}

/* ==================== 注册确认弹窗 ==================== */
.west-domain-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.west-domain-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
}

.west-domain-modal-box {
    position: relative;
    background: #fff;
    border-radius: var(--theme-border-radius-l, 12px);
    width: 90%;
    max-width: 460px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: west-modal-in .25s ease;
}

@keyframes west-modal-in {
    from { transform: scale(.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.west-domain-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.west-domain-modal-head h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.west-domain-modal-close {
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color .2s;
    padding: 4px;
}

.west-domain-modal-close:hover {
    color: #333;
}

.west-domain-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.west-domain-modal-info {
    background: #f5f7fa;
    border-radius: var(--theme-border-radius-m, 8px);
    padding: 20px;
    margin-bottom: 16px;
}

.west-modal-info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.west-modal-info-row:last-child {
    margin-bottom: 0;
}

.west-modal-info-label {
    width: 80px;
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
    padding-top: 2px;
}

.west-modal-info-value {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

.west-modal-price {
    color: var(--theme-color, #1a73e8);
    font-size: 20px !important;
}

.west-modal-year-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: var(--theme-border-radius-s, 6px);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    background: #fff;
}

.west-domain-modal-tips {
    font-size: 13px;
    color: #999;
    line-height: 1.8;
}

.west-domain-modal-tips p {
    margin: 0;
}

.west-domain-modal-foot {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    justify-content: flex-end;
}

.west-domain-modal-foot .wpcom-btn {
    padding: 10px 28px !important;
    font-size: 14px !important;
    border-radius: var(--theme-border-radius-s, 6px) !important;
    height: auto !important;
    line-height: 1 !important;
}

.west-modal-cancel {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #e0e0e0 !important;
}

/* ==================== 消息提示 ==================== */
.west-domain-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--theme-border-radius-m, 8px);
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    animation: west-toast-in .3s ease;
    max-width: 90%;
}

@keyframes west-toast-in {
    from { transform: translate(-50%, -20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.west-domain-toast.success {
    background: #2e7d32;
    color: #fff;
}

.west-domain-toast.error {
    background: #c62828;
    color: #fff;
}

.west-domain-toast.info {
    background: #333;
    color: #fff;
}

.west-toast-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==================== 支付方式选择 ==================== */
.west-domain-pay-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e8e8e8;
}

.west-domain-pay-section .west-modal-info-label {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.west-pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.west-pay-method {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border: 2px solid #e8e8e8;
    border-radius: var(--theme-border-radius-s, 6px);
    cursor: pointer;
    transition: all .2s;
    background: #fff;
    user-select: none;
}

.west-pay-method:hover {
    border-color: var(--theme-color, #2c7be5);
}

.west-pay-method.active {
    border-color: var(--theme-color, #2c7be5);
    background: rgba(44, 123, 229, 0.05);
}

.west-pay-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    object-fit: contain;
}

.west-pay-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.west-pay-loading,
.west-pay-empty {
    width: 100%;
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 8px 0;
}

/* ==================== 订单成功弹窗 ==================== */
.west-order-success {
    text-align: center;
    padding: 12px 0;
}

.west-order-success-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
}

.west-order-success h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
}

.west-order-success-info {
    background: #f5f7fa;
    border-radius: var(--theme-border-radius-m, 8px);
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.west-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
}

.west-order-row + .west-order-row {
    border-top: 1px dashed #e0e0e0;
}

.west-order-row span {
    color: #666;
}

.west-order-row strong {
    color: #333;
    font-weight: 600;
}

.west-order-success-tip {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
    margin: 0 0 20px;
}

.west-order-success-btn-wrap {
    text-align: center;
}

.west-order-close-btn {
    padding: 10px 40px !important;
    font-size: 15px !important;
    border-radius: var(--theme-border-radius-s, 6px) !important;
    height: auto !important;
    line-height: 1 !important;
}

/* ==================== 响应式 - 平板 ==================== */
@media (max-width: 992px) {
    .west-domain-search-section {
        padding: 32px 24px;
    }

    .west-domain-results {
        padding: 20px 24px;
    }
}

/* ==================== 响应式 - 手机 ==================== */
@media (max-width: 768px) {
    .west-domain-page .entry-title {
        font-size: 22px;
    }

    .west-domain-search-section {
        padding: 24px 16px;
        border-radius: var(--theme-border-radius-m, 8px);
    }

    .west-domain-search-input-wrap {
        flex-direction: column;
        gap: 12px;
    }

    .west-domain-input-group {
        border-radius: var(--theme-border-radius-m, 8px);
    }

    .west-domain-search-btn {
        width: 100%;
        padding: 12px 24px !important;
    }

    .west-domain-input {
        font-size: 15px;
        padding: 12px 8px 12px 8px;
    }

    .west-domain-suffix-display {
        font-size: 15px;
        padding: 0 12px;
    }

    .west-domain-suffix-group {
        flex-direction: column;
        align-items: stretch;
    }

    .west-domain-suffix-tags {
        justify-content: flex-start;
    }

    .west-suffix-tag span {
        padding: 5px 12px;
        font-size: 13px;
    }

    .west-domain-suffix-select {
        width: 100%;
    }

    .west-domain-results {
        padding: 16px;
        border-radius: var(--theme-border-radius-m, 8px);
    }

    .west-domain-results-head h3 {
        font-size: 16px;
    }

    .west-domain-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .west-domain-result-info {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .west-domain-result-name {
        font-size: 16px;
    }

    .west-domain-result-action {
        width: 100%;
        justify-content: space-between;
    }

    .west-domain-register-btn {
        width: 100%;
        text-align: center;
    }

    .west-domain-login-tip {
        padding: 24px 20px;
        border-radius: var(--theme-border-radius-m, 8px);
    }

    .west-domain-login-tip-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .west-login-tip-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .west-domain-modal-box {
        width: 95%;
    }

    .west-domain-modal-head,
    .west-domain-modal-body,
    .west-domain-modal-foot {
        padding: 16px 20px;
    }

    .west-modal-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .west-modal-info-label {
        width: auto;
    }

    .west-domain-modal-foot {
        flex-direction: column-reverse;
    }

    .west-domain-modal-foot .wpcom-btn {
        width: 100%;
    }

    .west-domain-toast {
        top: 60px;
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* ==================== 响应式 - 小屏手机 ==================== */
@media (max-width: 480px) {
    .west-domain-search-section {
        padding: 20px 12px;
    }

    .west-domain-result-name {
        font-size: 15px;
        word-break: break-all;
    }

    .west-suffix-tag span {
        padding: 4px 10px;
        font-size: 12px;
    }

    .west-domain-input {
        font-size: 14px;
    }
}

/* 暗黑模式适配 */
.style-for-dark .west-domain-input-group,
.style-for-dark .west-suffix-tag span,
.style-for-dark .west-domain-suffix-select,
.style-for-dark .west-modal-year-select {
    background: var(--theme-el-bg-color, #2a2a2a);
    border-color: #444;
    color: #ddd;
}

.style-for-dark .west-domain-input {
    color: #ddd;
}

.style-for-dark .west-domain-input::placeholder {
    color: #777;
}

.style-for-dark .west-domain-suffix-display {
    background: rgba(255,255,255,.05);
}

.style-for-dark .west-domain-result-item {
    border-color: #444;
}

.style-for-dark .west-domain-modal-info {
    background: rgba(255,255,255,.05);
}

.style-for-dark .west-modal-cancel {
    background: rgba(255,255,255,.05) !important;
    color: #ddd !important;
    border-color: #444 !important;
}

/* ==================== 订单详情页：建站进度 ==================== */
.west-order-progress-wrap {
    margin-top: 24px;
}
.west-progress-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* 进度条 */
.west-progress-bar {
    position: relative;
    padding: 30px 0 10px;
    margin-bottom: 24px;
}
.west-progress-line {
    position: absolute;
    top: 48px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    z-index: 1;
}
.west-progress-line-fill {
    height: 100%;
    background: var(--theme-color, #0066ff);
    border-radius: 2px;
    transition: width .4s ease;
}
.west-progress-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.west-progress-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.west-node-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all .3s;
    line-height: 1;
}
.west-node-label {
    font-size: 13px;
    color: #999;
    text-align: center;
    white-space: nowrap;
}
.west-progress-node.west-node-done .west-node-circle {
    background: var(--theme-color, #0066ff);
    border-color: var(--theme-color, #0066ff);
    color: #fff;
}
.west-progress-node.west-node-done .west-node-label {
    color: #333;
    font-weight: 500;
}

/* 补充修改建议按钮节点 */
.west-node-feedback .west-feedback-btn {
    cursor: pointer;
    border: 2px solid var(--theme-color, #0066ff);
    color: var(--theme-color, #0066ff);
    background: #fff;
    font-size: 18px;
}
.west-node-feedback .west-feedback-btn:hover {
    background: var(--theme-color, #0066ff);
    color: #fff;
}
.west-node-feedback .west-feedback-btn:disabled {
    cursor: not-allowed;
    opacity: .4;
    border-color: #e0e0e0;
    color: #999;
    background: #fff;
}

/* 进度下方信息 */
.west-progress-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f5f7fa;
    border-radius: 8px;
    margin-bottom: 12px;
}
.west-progress-info-label {
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}
.west-progress-info-value {
    font-size: 14px;
    color: #333;
}
.west-code-download {
    color: var(--theme-color, #0066ff) !important;
    font-weight: 600;
    text-decoration: none;
}
.west-code-download:hover {
    text-decoration: underline;
}
.west-code-pending {
    color: #999;
    font-size: 13px;
}

/* 已提交的修改建议 */
.west-progress-feedback {
    padding: 14px 16px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    margin-top: 12px;
}
.west-feedback-label {
    font-size: 14px;
    font-weight: 600;
    color: #8d6e00;
    margin-bottom: 8px;
}
.west-feedback-text {
    font-size: 14px;
    color: #666;
    white-space: pre-wrap;
    line-height: 1.6;
    margin-bottom: 10px;
}
.west-feedback-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.west-feedback-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* ==================== 修改建议弹窗 ==================== */
.west-feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.west-feedback-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
}
.west-feedback-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: west-modal-in .25s ease;
}
.west-feedback-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}
.west-feedback-modal-head h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.west-feedback-modal-close {
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px;
}
.west-feedback-modal-close:hover {
    color: #333;
}
.west-feedback-modal-body {
    padding: 24px;
    overflow-y: auto;
}
.west-feedback-form-row {
    margin-bottom: 20px;
}
.west-feedback-form-row:last-child {
    margin-bottom: 0;
}
.west-feedback-form-row label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.west-feedback-form-row textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}
.west-feedback-form-row textarea:focus {
    outline: none;
    border-color: var(--theme-color, #0066ff);
    box-shadow: 0 0 0 2px rgba(0,102,255,0.1);
}
.west-feedback-upload-area {
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
}
.west-feedback-modal-foot {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    justify-content: flex-end;
}
.west-feedback-modal-foot .wpcom-btn {
    padding: 10px 28px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    height: auto !important;
    line-height: 1 !important;
}
