.shopagg-login-box {
    display: block;
    max-width: 330px;
    margin: 100px auto;
    text-align: center;
    background-color: antiquewhite;
    padding: 30px 20px;
    border-radius: 20px;
}

.shopagg-header-title {
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.shopagg-goback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffd803;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shopagg-title-text {
    font-size: 24px;
    font-weight: 600;
    color: #2c2c2c;
}

#shopagg h1 {
    font-size: 28px;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

#shopagg h2 {
    font-size: 22px;
    margin: 40px 0 20px;
}

.shopagg-cycle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shopagg-cycle .checked {
    background-color: #ffc901;
    border: 4px solid #ff7d32;
}

.shopagg-cycle label {
    width: 32%;
    background-color: #eee;
    text-align: center;
    padding: 20px;
    margin: 0;
    border-radius: 12px;
    border: 4px solid #c5c5c5;
}

.shopagg-cycle .name {
    font-size: 20px;
    font-weight: 700;
}

.shopagg-cycle .unit-price {
    font-size: 28px;
}

.shopagg-cycle .price {
    margin: 0;
    line-height: 22px;
}

.shopagg-cycle .price span {
    font-size: 22px;
    color: #f60;
}

.shopagg-cycle .cut-price {
    background-color: #ff0000;
    border-radius: 10px;
    color: #fff;
    display: block;
    height: 24px;
    line-height: 24px;
    position: relative;
    margin-top: 14px;
}

.shopagg-cycle .original-price {
    text-decoration: line-through;
    font-size: 14px;
    color: gray;
}

.shopagg-cycle label p {
    margin-bottom: 12px;
}

.shopagg-cycle input[type="radio"] {
    display: block;
    height: 10px;
    width: 10px;
    zoom: 2;
    position: absolute;
}

input[type="radio"]:checked+label {
    font-weight: bold;
    color: blue;
}

.shopagg-orders-list p {
    padding: 0;
    margin: 0;
}

#register-input {
    display: flex;
}

.shopagg-steps {
    --normal-color: #666;
    --active-color: #06e;
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 40px 0;
    counter-reset: order;
}

/* 步骤项 */
.shopagg-steps>li {
    flex: auto;
    display: inline-flex;
    align-items: center;
    counter-increment: order;
    color: var(--active-color);
    flex-wrap: wrap;
    justify-content: center;
}

.shopagg-steps>li:last-child {
    flex: none;
}

/* 步骤编号（带圈数字） */
.shopagg-steps>li::before {
    content: counter(order);
    flex-shrink: 0;
    width: 1.4em;
    line-height: 1.4em;
    margin-right: .5em;
    text-align: center;
    border-radius: 50%;
    border: 1px solid;
}

/* 步骤项引导线 */
.shopagg-steps>li:not(:last-child)::after {
    content: '';
    flex: 1;
    margin: 0 1em;
    border-bottom: 1px solid;
    opacity: .6;
}

/* 步骤状态 */
.shopagg-steps>.active {
    color: var(--active-color);
}

.shopagg-steps>.active::before {
    color: #fff;
    background: var(--active-color);
    border-color: var(--active-color);
}

.shopagg-steps>.active::after,
.shopagg-steps>.active~li {
    color: var(--normal-color);
}

.shopagg-domain-item>.info {
    border-top: 1px solid rgb(217, 217, 217);

    -webkit-box-align: center;
    justify-content: space-between;
    -webkit-box-pack: justify;
    display: flex;
    align-items: center;
    justify-items: center;
    padding: 20px 0;
    flex-flow: wrap;
}

.shopagg-domain-item>p {
    font-size: 14px;
    color: darkgray;
}

.shopagg-domain-item .info .ct-button {
    font-size: 14px;
    line-height: 14px;
    min-height: 14px;
    padding: 10px 20px;
}

.shopagg-domain-item .domain {
    font-size: 24px;
}


.shopagg-domain-item .price {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 689.98px) {
    .shopagg-domain-item .price {
        justify-content: space-between;
        width: 100%;
    }
}

.shopagg-domain-item .price .renewal {
    font-size: 15px;
    color: #03124266;
}

.shopagg-domain-item .price .register {
    font-size: 20px;
    color: #000;
}


.shopagg-card-box {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.shopagg-card-item {
    width: 210px;
    background-color: antiquewhite;
    padding: 40px 10px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
}

.shopagg-card-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.shopagg-card-box .Plus {
    margin-top: 0;
    width: 230px;
}

.shopagg-divider {
    height: 24px;
    width: 1px;
    background: #000;
    display: block !important;
}

.shopagg-buy-form select,
.shopagg-buy-form input[type="text"],
.shopagg-buy-form input[type="email"] {
    width: 50%;
}

.shopagg-notice {
    background-color: antiquewhite;
    padding: 20px;
    border-radius: 15px;
}
.shopagg-notice p{
    margin-bottom: 0 !important;
}

.shopagg-download-box {
    padding: 2rem;
    text-align: center;
}

#countdown {
    color: #1677ff;
    font-size: 1.2em;
    margin: 1rem 0;
}

.shopagg-hosting-details {
    font-size: large;
}

.shopagg-hosting-details p {
    margin-bottom: 10px;
}

.shopagg-hosting-details .ct-button {
    min-height: 10px;
}

.success {
    color: #008000;
}

.error {
    color: #ff0000;
}

.shopagg-cycle input[type="radio"]:checked~.shopagg-cycle-label {
    background-color: #06e;
}

.shopagg-records-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* iOS 平滑滚动 */
}

.shopagg-records-table td {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 可选：斑马纹效果 */
.shopagg-records-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 下拉菜单容器 */
.shopagg-dropdown {
    position: relative;
    display: inline-block;
}

/* 下拉内容（默认隐藏） */
.shopagg-dropdown-content {
    display: none;
    position: absolute;
    background: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* 下拉菜单选项样式 */
.shopagg-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* 悬停效果 */
.shopagg-dropdown-content a:hover {
    background: #f1f1f1;
}

/* 鼠标悬停时显示下拉菜单 */
.shopagg-dropdown:hover .shopagg-dropdown-content {
    display: block;
}

.shopagg-add-record-box {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    margin: 40px 0;
    border-radius: 12px;
    gap: 20px;
    border: 1px solid #E5E5E5;
}

.shopagg-add-record-box .left,
.shopagg-add-record-box .right {
    width: 50%;
}


.shopagg-add-record-box .left>div {
    margin: 1em 0;
}

.shopagg-add-record-box .right {
    flex: 1;
    padding: 16px;
    border: 1px solid #E5E5E5;
    overflow-y: auto;
    width: 50%;
}

.shopagg-add-record-box .wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.shopagg-notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
}

.shopagg-notice a {
    color: rgb(3, 3, 197);
}

.notice-success {
    background-color: #f0fff0;
    border-left: 4px solid #46b450;
    color: #2c3e50;
    
}

.notice-error {
    background-color: #fff0f0;
    border-left: 4px solid #dc3232;
    color: #2c3e50;
}


@media (max-width: 999.98px) {

    .shopagg-buy-form select,
    .shopagg-buy-form input[type="text"] {
        width: 100%;
    }
}


#deploy-messages {
    background-color: black;
    color: yellow;
    padding: 20px;
    border-radius: 10px;
    display: none;
}

.shopagg-hidden {
    display: none;
}

#deploy-messages p {
    margin: 0;
    line-height: 2em;
}



@media (max-width: 689.98px) {
    #shopagg {
        width: 100%;
    }

    .shopagg-card-item {
        width: 100% !important;
        margin-top: 0;
    }

    .shopagg-cycle label {
        width: 48%;
    }

    .shopagg-card-box {
        flex-wrap: wrap;
    }

    .shopagg-add-record-box .left,
    .shopagg-add-record-box .right {
        width: 100%;
    }
}

.shopagg-frontend-wrapper{
    width: 100%;
    background-color: #eaeaea;
    padding-bottom: 50px;
}

.shopagg-content{
    max-width: 1280px;
    margin: 0 auto;
    width: 90vw;
}
.shopagg-content h1,.shopagg-content h2,.shopagg-content h3,.shopagg-content h4,.shopagg-content h5,.shopagg-content h6{
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.shopagg-content h1{
    font-size: 24px;
   
}
.shopagg-content h2{
    font-size: 20px;
}
.shopagg-content h3{
    font-size: 18px;
}
.shopagg-content h4{
    font-size: 16px;
}
.shopagg-content h5{
    font-size: 14px;
}
.shopagg-content h6{
    font-size: 12px;
}

.shopagg-content p{
    line-height: 1.5;
    margin-bottom: 10px;
}
.shopagg-card{ 
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    padding: 40px;

}
.shopagg-navbar{
    padding: 10px 0;
    background-image: linear-gradient(-225deg, #FFE29F 0%, #FFA99F 48%, #FF719A 100%) !important;
}
.shopagg-navbar-item{
    background-color: #f60;
    padding: 4px 12px;
    border-radius: 10px;
    color: #fff;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.shopagg-navbar-item:hover {
    background-color: #dc3232;
}

.shopagg-navbar {
    margin-bottom: 30px;
}

.shopagg-navbar .shopagg-content {
    display: flex;
    gap: 20px;
}

/* ============================================
   前台页面通用样式
   ============================================ */

/* 域名管理页面样式 */
.domain-manage-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.domain-manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.domain-manage-header h1 {
    margin: 0;
    font-size: 28px;
    color: #333;
}

.domain-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 通用按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.btn-secondary:hover {
    background: #dcdcde;
}

.btn .icon {
    font-size: 16px;
}

.btn .icon.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-link {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.btn-link:hover {
    color: #005a87;
}

.text-danger {
    color: #dc3232;
}

.separator {
    margin: 0 8px;
    color: #ccc;
}

/* DNS 记录区域 */
.dns-records-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dns-records-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

.table-responsive {
    overflow-x: auto;
}

.shopagg-dns-records-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.shopagg-dns-records-table th,
.shopagg-dns-records-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.shopagg-dns-records-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.shopagg-dns-records-table tbody tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

.record-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.record-type-a { background: #e3f2fd; color: #1976d2; }
.record-type-cname { background: #f3e5f5; color: #7b1fa2; }
.record-type-mx { background: #fff3e0; color: #e65100; }
.record-type-txt { background: #e8f5e9; color: #388e3c; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.empty-description {
    color: #6c757d;
    margin: 0;
}

/* 模态框样式 - Micromodal 兼容 */
.shopagg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.shopagg-modal.is-open {
    display: flex;
}

.shopagg-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.shopagg-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    width: 600px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1;
}

.shopagg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #ddd;
}

.shopagg-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.shopagg-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.shopagg-modal-close:hover {
    color: #000;
}

.shopagg-modal-body {
    padding: 25px;
}

.shopagg-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #ddd;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group .required {
    color: #dc3232;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.input-with-suffix {
    display: flex;
    align-items: center;
}

.input-with-suffix input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-suffix {
    padding: 10px 15px;
    background: #f0f0f1;
    border: 1px solid #ddd;
    border-left: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    color: #666;
    font-size: 14px;
}

.form-description {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.transfer-code-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    font-size: 20px;
    font-family: 'Courier New', monospace;
    text-align: center;
    font-weight: 600;
    color: #0073aa;
    border: 2px solid #0073aa;
    margin: 15px 0;
    word-break: break-all;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.modal-open {
    overflow: hidden;
}

/* 备份列表样式 */
.shopagg-backup-list {
    margin: 0;
    padding: 0;
}

.shopagg-backup-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.shopagg-backup-item:last-child {
    margin-bottom: 0;
}

.shopagg-backup-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.shopagg-backup-filename {
    font-size: 16px;
    color: #333;
    word-break: break-all;
}

.shopagg-backup-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shopagg-backup-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.shopagg-backup-label {
    font-weight: 600;
    color: #666;
    min-width: 100px;
}

.shopagg-backup-value {
    color: #333;
    text-align: right;
    flex: 1;
}

@media screen and (max-width: 782px) {
    .shopagg-backup-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .shopagg-backup-item-header .shopagg-backup-download-btn {
        width: 100%;
    }
    
    .shopagg-backup-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .shopagg-backup-value {
        text-align: left;
    }
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .domain-manage-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .domain-quick-actions {
        width: 100%;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .shopagg-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .shopagg-dns-records-table {
        font-size: 13px;
    }
    
    .shopagg-dns-records-table th,
    .shopagg-dns-records-table td {
        padding: 8px;
    }
}

/* 部署页面加载动画 */
.loading {
    color: #409EFF;
    font-family: 'Courier New', Courier, monospace;
}

.loading::after {
    content: '';
    animation: dot-flash 20s infinite step-start;
}

@keyframes dot-flash {
    0%, 100% { content: ''; }
    10% { content: '█░░░░░░░░░░░░░░░░░'; }
    20% { content: '██░░░░░░░░░░░░░░░░'; }
    30% { content: '████░░░░░░░░░░░░░░'; }
    40% { content: '█████░░░░░░░░░░░░░'; }
    50% { content: '██████░░░░░░░░░░░░'; }
    60% { content: '████████░░░░░░░░░░'; }
    70% { content: '██████████░░░░░░░░'; }
    80% { content: '████████████░░░░░░'; }
    90% { content: '███████████████░░░'; }
    100% { content: '██████████████████'; }
}

/* ============================================
   列表页面样式
   ============================================ */

/* 空状态样式 */
.shopagg-empty-state {
    text-align: center;
}

.shopagg-empty-state img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.shopagg-empty-state-title {
    font-size: 32px;
    margin: 20px 0;
}

.shopagg-empty-state-subtitle {
    font-size: 24px;
    margin: 20px 0;
}

/* 列表容器 */
.shopagg-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 列表项卡片 */
.shopagg-list-item {
    display: flex;
    flex-direction: column;
    background-color: antiquewhite;
    flex-wrap: wrap;
    border-radius: 8px;
    overflow: hidden;
}

/* 列表项头部 */
.shopagg-list-item-header {
    background-color: #6a6a6a;
    padding: 4px 10px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shopagg-list-item-header-title {
    font-size: 18px;
    font-weight: bold;
}

/* 列表项内容 */
.shopagg-list-item-content {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.shopagg-list-item-info {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.shopagg-list-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 主机列表特定样式 */
.shopagg-hosting-item {
    padding: 20px;
}

.shopagg-hosting-item-header {
    font-size: 16px;
    margin-bottom: 10px;
}

.shopagg-status-badge {
    text-align: center;
    display: inline-block;
    padding: 0 6px;
    border-radius: 4px;
}

.shopagg-hosting-item-info {
    padding: 0;
    margin: 0;
    list-style: none;
}

.shopagg-domain-link {
    font-size: 18px;
    color: crimson;
    text-decoration: none;
}

.shopagg-domain-link:hover {
    text-decoration: underline;
}

/* 域名列表特定样式 */
.shopagg-domain-status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.shopagg-domain-status-normal {
    background-color: #008500;
    color: #ffffff;
}

.shopagg-domain-status-expiring {
    background-color: #ffaa00;
    color: #000;
}

.shopagg-domain-status-expired {
    background-color: #ff4444;
    color: #fff;
}

.shopagg-domain-expire-text-expired {
    color: #ff4444;
}

.shopagg-domain-expire-text-expiring {
    color: #ffaa00;
}

.shopagg-domain-expire-text-normal {
    color: #008500;
}

/* 订单列表特定样式 */
.shopagg-order-item-header {
    padding: 4px 10px;
}

.shopagg-order-item-content {
    padding: 10px;
}

.shopagg-order-status-paid {
    color: greenyellow;
}

.shopagg-order-status-unpaid {
    color: hotpink;
}

/* 响应式设计 - 列表页面 */
@media (max-width: 768px) {
    .shopagg-empty-state-title {
        font-size: 24px;
    }
    
    .shopagg-empty-state-subtitle {
        font-size: 20px;
    }
    
    .shopagg-empty-state img {
        max-width: 100%;
    }
    
    .shopagg-list-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .shopagg-list-item-content {
        flex-direction: column;
    }
    
    .shopagg-list-item-actions {
        width: 100%;
    }
    
    .shopagg-hosting-item-header {
        font-size: 14px;
    }
    
    .shopagg-domain-link {
        font-size: 16px;
    }
}

/* ============================================
   表单页面样式
   ============================================ */

/* 搜索表单 */
.shopagg-search-form {
    display: flex;
    margin: 20px auto;
    max-width: 500px;
    gap: 1rem;
}

.shopagg-search-form input[type="text"] {
    flex: 1;
}

.shopagg-search-form input[type="submit"],
.shopagg-search-form .ct-button {
    width: 200px;
    flex-shrink: 0;
}

/* 域名选择表单 */
.shopagg-domain-select-form {
    display: flex;
    margin: 60px auto;
    max-width: 600px;
    gap: 1rem;
}

.shopagg-domain-select-form select {
    flex: 1;
}

.shopagg-domain-select-form .ct-button {
    width: 200px;
    flex-shrink: 0;
}

.shopagg-option-disabled {
    background-color: aliceblue;
    color: rebeccapurple;
}

/* 验证错误信息 */
.shopagg-validation-error {
    margin: 100px 0;
}

/* 域名标题 */
.shopagg-domain-title {
    font-size: 18px;
    font-weight: bold;
    color: coral;
}

/* 表单间距 */
.shopagg-form-section {
    margin: 30px 0;
}

.shopagg-form-submit {
    margin-top: 20px;
}

.shopagg-form-submit input[type="submit"] {
    width: 100%;
}

/* 部署页面样式 */
.shopagg-deploy-center {
    display: flex;
    justify-content: center;
    height: 300px;
    align-items: center;
}

.shopagg-deploy-center .ct-button {
    width: 200px;
}

.shopagg-deploy-button-large {
    width: 300px;
}

/* DNS记录表格（外部域名绑定） */
.shopagg-dns-table {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
}

.shopagg-dns-table thead tr {
    background-color: #f5f5f5;
}

.shopagg-dns-table th,
.shopagg-dns-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.shopagg-dns-table th {
    font-weight: 600;
}

.shopagg-dns-table td:first-child,
.shopagg-dns-table td:nth-child(2) {
    text-align: center;
}

.shopagg-dns-table td:last-child {
    font-family: monospace;
}

/* 提示信息框 */
.notice-info {
    background-color: #f9f9f9;
    border-left: 4px solid #409EFF;
}


/* 链接对齐 */
.shopagg-link-right {
    text-align: end;
    margin: 100px 0 0 0;
    padding: 0;
}

.shopagg-link-center {
    text-align: center;
    margin-top: 30px;
}

/* 按钮图标间距 */
.shopagg-button-icon {
    padding-left: 4px;
}

/* ============================================
   错误页面样式
   ============================================ */
.shopagg-error-container {
    max-width: 600px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.shopagg-error-icon {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1;
}

.shopagg-error-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.shopagg-error-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 4px;
}

.shopagg-error-actions {
    margin-top: 30px;
}

.shopagg-error-actions .ct-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.shopagg-error-actions .ct-button:hover {
    background-color: #005a87;
}

.shopagg-error-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #999;
}

.shopagg-error-footer a {
    color: #0073aa;
    text-decoration: none;
}

.shopagg-error-footer a:hover {
    text-decoration: underline;
}

.shopagg-error-separator {
    margin: 0 10px;
}

.shopagg-card-title{
    margin: 0 0 40px !important;
}

/* ============================================
   响应式设计 - 统一媒体查询断点
   ============================================
   手机: max-width: 767px
   平板: 768px - 1023px
   桌面: min-width: 1024px
   ============================================ */

/* 手机端 (max-width: 767px) */
@media (max-width: 767px) {
    /* 导航栏响应式 */
    .shopagg-navbar{
        margin-bottom: 0;
    }
    .shopagg-navbar .shopagg-content {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }
    
    .shopagg-navbar-item {
        flex: 1;
        min-width: calc(50% - 5px);
        font-size: 14px;
        padding: 6px 8px;
    }
    .shopagg-content{
        width: 100vw;
    }

    /* 卡片内容 */
    .shopagg-card {
        padding: 15px;
        border-radius: 0;
    }

    .shopagg-card-title{
        margin: 20px 0 40px !important;
    }

 
    
    /* 域名项 */
    .shopagg-domain-item .price {
        justify-content: space-between;
        width: 100%;
    }

    .shopagg-search-form > #domain{
        line-height: 50px;
    }
    
    /* 表单 */
    .shopagg-buy-form select,
    .shopagg-buy-form input[type="text"],
    .shopagg-buy-form input[type="email"] {
        width: 100%;
    }
    
    .shopagg-search-form {
        flex-direction: column;
        margin: 20px 10px;
    }
    
    .shopagg-search-form input[type="submit"],
    .shopagg-search-form .ct-button {
        margin-left: 0;
        width: 100%;
    }
    
    .shopagg-domain-select-form {
        flex-direction: column;
        margin: 30px 10px;
    }
    
    .shopagg-domain-select-form .ct-button {
        margin-left: 0;
        width: 100%;
    }
    
    /* 卡片盒子 */
    .shopagg-card-item {
        width: 100% !important;
        margin-top: 0;
    }
    
    .shopagg-card-box {
        flex-wrap: wrap;
    }
    
    .shopagg-cycle label {
        width: 48%;
    }
    
    .shopagg-add-record-box .left,
    .shopagg-add-record-box .right {
        width: 100%;
    }
    
    /* 域名管理页面 */
    .domain-manage-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .domain-quick-actions {
        width: 100%;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .shopagg-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .shopagg-dns-records-table {
        font-size: 13px;
    }
    
    .shopagg-dns-records-table th,
    .shopagg-dns-records-table td {
        padding: 8px;
    }
    
    /* 列表页面 */
    .shopagg-empty-state-title {
        font-size: 24px;
    }
    
    .shopagg-empty-state-subtitle {
        font-size: 20px;
    }
    
    .shopagg-empty-state img {
        max-width: 100%;
    }
    
    .shopagg-list-item-header {
        display: flex;
        justify-content: space-between;
        flex-flow: nowrap;
    }
    
    .shopagg-list-item-content {
        flex-direction: column;
    }
    
    .shopagg-list-item-actions {
        width: 100%;
    }
    
    .shopagg-hosting-item-header {
        font-size: 14px;
    }
    
    .shopagg-domain-link {
        font-size: 16px;
    }
    
    /* 表单页面 */
    .shopagg-dns-table {
        font-size: 14px;
    }
    
    .shopagg-dns-table th,
    .shopagg-dns-table td {
        padding: 8px;
    }
    
    .shopagg-deploy-center {
        height: 200px;
    }
    
    .shopagg-deploy-button-large {
        width: 100%;
        max-width: 300px;
    }
    
    /* 错误页面 */
    .shopagg-error-container {
        margin: 40px 10px;
        padding: 30px 20px;
    }
    
    .shopagg-error-icon {
        font-size: 48px;
    }
    
    .shopagg-error-title {
        font-size: 20px;
    }
    
    .shopagg-error-message {
        font-size: 14px;
        padding: 15px;
    }
    
    /* 通用 */
    #shopagg {
        width: 100%;
    }
}

/* 平板端 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .shopagg-navbar .shopagg-content {
        gap: 15px;
        padding: 10px 20px;
    }
    
    .shopagg-navbar-item {
        min-width: 140px;
        font-size: 15px;
    }
    
    .shopagg-card {
        padding: 20px;
    }
    
    .shopagg-error-container {
        margin: 60px 20px;
        padding: 35px 30px;
    }
}

/* ========================================
   用户登录/注册表单样式
   ======================================== */

.shopagg-auth-box {
    max-width: 450px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 36px 32px;
}

.shopagg-auth-box.shopagg-auth-combined {
    max-width: 520px;
}

.shopagg-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.shopagg-auth-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.shopagg-auth-header p {
    color: #666;
    margin-top: 8px;
    font-size: 14px;
}

/* 标签切换 */
.shopagg-auth-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.shopagg-auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.shopagg-auth-tab:hover {
    color: #374151;
}

.shopagg-auth-tab.active {
    color: #2563eb;
}

.shopagg-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
}

/* 面板 */
.shopagg-auth-panel {
    display: none;
}

.shopagg-auth-panel.active {
    display: block;
}

/* 消息提示 */
.shopagg-auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.shopagg-auth-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.shopagg-auth-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* 表单样式 */
.shopagg-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.shopagg-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shopagg-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.shopagg-form-group label .optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}

.shopagg-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.shopagg-input-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.shopagg-input-wrap input {
    width: 100% !important;
    padding: 12px 12px 12px 42px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    background: #fff !important;
}

.shopagg-input-wrap input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.shopagg-input-wrap input::placeholder {
    color: #9ca3af;
}

.shopagg-input-wrap input[readonly] {
    background-color: #f0f9ff;
    cursor: not-allowed;
}

/* 密码显示切换按钮 */
.shopagg-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.shopagg-toggle-password:hover {
    color: #6b7280;
}

/* 两列布局 */
.shopagg-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 行内布局 */
.shopagg-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 复选框 */
.shopagg-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
}

.shopagg-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

/* 链接 */
.shopagg-forgot-link {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

.shopagg-forgot-link:hover {
    text-decoration: underline;
}

/* 按钮 */
.shopagg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.shopagg-btn-primary {
    background: #2563eb;
    color: #fff;
}

.shopagg-btn-primary:hover {
    background: #1d4ed8;
}

.shopagg-btn-primary:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.shopagg-btn-block {
    width: 100%;
}

.shopagg-btn .btn-loading {
    display: flex;
    align-items: center;
}

/* 底部链接 */
.shopagg-auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.shopagg-auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.shopagg-auth-footer a:hover {
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 520px) {
    .shopagg-auth-box {
        margin: 20px 16px;
        padding: 24px 20px;
    }
    
    .shopagg-form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .shopagg-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
}