/* 主CSS文件 */

/* 详情页样式 */
.domain-name {
    font-size: 36px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.domain-price {
    font-size: 28px;
    color: #d9534f;
    font-weight: bold;
    margin-bottom: 20px;
}

.domain-info {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.domain-info dl {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.domain-info dl:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.domain-info dt {
    width: 100px;
    color: #666;
}

.domain-info dd {
    flex: 1;
    color: #333;
}

.btn-contact {
    display: inline-block;
    padding: 12px 30px;
    background: #a31616;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-contact:hover {
    background: #8a1313;
    color: white;
    text-decoration: none;
}

/* 分类页样式 */
.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination .active {
    background: #a31616;
    color: white;
    border-color: #a31616;
}

.pagination .disabled {
    color: #999;
    cursor: not-allowed;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: "Microsoft YaHei","Helvetica Neue", Helvetica, Arial, sans-serif; 
    overflow-x: hidden;
    width: 100%;
    background-color: #f5f5f5;
    color: #333;
}
.navbar-inverse { background: #1F221F; border: none; height: 50px; }
.navbar-brand { 
    font-size: 22px;
    font-weight: bold; 
    line-height: 30px;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0;
}
.nav > li > a:hover { background: #a31616; }
.nav > li.active > a { background: #a31616; }
.navbar-nav > li > a { padding: 15px 20px; line-height: 20px; }
.panel-primary .panel-heading { background: #a31616; border-color: #a31616; padding: 12px 15px; }
.panel-primary .panel-title { color: white; font-weight: bold; font-size: 16px; }
.panel-title i { font-weight: normal; font-size: 13px; margin-left: 10px; }
.panel-title i a { color: white; text-decoration: none; }
.panel-title i a:hover { text-decoration: underline; }
.footer { background: #1F221F; color: #999; height: 65px; display: flex; align-items: center; justify-content: center; margin-top: 30px; width: 100%; }
.footer-container { width: 100%; text-align: center; padding: 0 15px; }
.footer a { color: #999; }
.footer a:hover { color: #a31616; }
.ys { color: #999; }
.max { min-height: 500px; }

.new-badge {
    background-color: #d9534f;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 8px;
    display: inline-block;
}

.aabb-domain-table {
    width: 100%;
    border-collapse: collapse;
}

.aabb-domain-table th{
    padding: 12px 10px;
    text-align: left;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
}

.aabb-domain-table td{
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.aabb-domain-table th:nth-child(1),
.aabb-domain-table td:nth-child(1){
    width: 60px;
    text-align: center;
}

.aabb-domain-table th:nth-child(2){
    text-align: left;
}

.aabb-domain-table td:nth-child(2){
    text-align: left;
}

.aabb-domain-table td:nth-child(2) a{
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.aabb-domain-table td:nth-child(2) a:hover{
    color: #a31616;
}

.aabb-domain-table th:nth-child(3){
    width: 100px;
}

.aabb-domain-table td:nth-child(3){
    width: 100px;
    color: #d9534f;
    font-weight: bold;
}

.aabb-domain-table th:nth-child(4){
    width: 150px;
}

.aabb-domain-table td:nth-child(4){
    width: 150px;
}

.aabb-table-actions{
    padding: 12px 10px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: right;
    display: none;
}

.btn-add-all, .btn-clear-cart{
    padding: 6px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

.btn-add-all{
    background: #a31616;
    color: white;
}

.btn-clear-cart{
    background: #6c757d;
    color: white;
}

.btn-row-add{
    background: #a31616;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.link-remove{
    background: #a31616;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.link-remove:hover{
    background: #8a1313;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px){
    html, body{
        background-color: #f5f5f5 !important;
    }
    
    .jumbotron.subhead{
        display: none !important;
    }
    
    .navbar-inverse{
        height: 50px !important;
        background: #1F221F !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }
    
    .navbar-brand{
        color: #ffffff !important;
        font-size: 18px !important;
        padding: 10px 0 !important;
    }
    
    .nav-category > li > a{
        color: #ffffff !important;
    }
    
    .navbar-fixed-top + #main-container{
        margin-top: 50px !important;
    }
    
    #main-container{
        padding: 10px 5px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #f5f5f5 !important;
    }
    
    #main-container > .container{
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .row{
        margin: 0 !important;
        width: 100%;
    }
    
    .col-xs-12{
        padding: 0 !important;
        width: 100%;
    }
    
    .panel-primary{
        margin: 0 0 10px 0 !important;
        border-radius: 8px !important;
        border: none !important;
        background: #ffffff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
    
    .panel-primary .panel-heading{
        background: #ffffff !important;
        border-bottom: 1px solid #eee !important;
        padding: 10px 12px !important;
    }
    
    .panel-primary .panel-title{
        color: #333 !important;
        font-size: 15px !important;
    }
    
    .panel-primary .panel-body{
        padding: 12px !important;
        background: #ffffff !important;
    }
    
    .category-panel{
        margin: 0 0 10px 0 !important;
        border-radius: 0 !important;
        border: none !important;
        background: #ffffff !important;
        box-shadow: none !important;
        overflow: visible !important;
    }
    
    .category-panel .panel-heading{
        background: #ffffff !important;
        border-bottom: none !important;
        padding: 10px 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .category-panel .panel-title{
        color: #333 !important;
        font-size: 15px !important;
        font-weight: bold !important;
    }
    
    .category-panel .panel-heading a{
        color: white !important;
        font-size: 13px !important;
        text-decoration: none !important;
    }
    
    .category-panel .panel-body{
        padding: 0 !important;
        background: #ffffff !important;
    }
    
    .footer{ 
        height: auto; 
        min-height: 55px; 
        margin-top: 15px; 
        padding: 15px 0; 
        font-size: 12px; 
    }
    
    .navbar-scroll-wrapper{
        display: flex !important;
    }
    
    .nav-category{
        margin-left: 10px !important;
    }
    
    .nav-category > li{
        flex-shrink: 0 !important;
    }
    
    .nav-category > li > a{
        padding: 15px 10px !important;
        white-space: nowrap !important;
    }
    
    .nav-category > li > a:hover, 
    .nav-category > li.active > a{ 
        background: #a31616 !important;
        color: #ffffff !important;
    }
}

@media (max-width: 480px){
    .aabb-domain-table{
        min-width: 380px;
    }
    
    .aabb-domain-table th{
        font-size: 9px;
        padding: 5px 2px;
    }
    
    .aabb-domain-table td{
        font-size: 9px;
        padding: 5px 2px;
    }
    
    .aabb-domain-table th:nth-child(1),
    .aabb-domain-table td:nth-child(1){
        width: 30px;
        min-width: 30px;
    }
    
    .aabb-domain-table th:nth-child(2),
    .aabb-domain-table td:nth-child(2){
        min-width: 100px;
    }
    
    .aabb-domain-table th:nth-child(3),
    .aabb-domain-table td:nth-child(3){
        width: 60px;
        min-width: 60px;
    }
    
    .aabb-domain-table th:nth-child(4),
    .aabb-domain-table td:nth-child(4){
        width: 85px;
        min-width: 85px;
    }
    
    .aabb-domain-table td:nth-child(2) a{
        font-size: 9px;
    }
    
    .aabb-domain-table .btn-row-add{
        padding: 2px 4px;
        font-size: 8px;
    }
    
    .aabb-domain-table .link-remove{
        font-size: 8px;
        margin-right: 3px;
    }
    
    .btn-add-all, .btn-clear-cart{
        padding: 3px 6px;
        font-size: 9px;
    }
}

.contact-panel{ margin-bottom: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.contact-panel .panel-body{ padding: 15px; background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%); }
.contact-panel .table td{ padding: 8px; border: none; }
.contact-panel .table td:first-child{ width: 60px; color: #666; }
.contact-panel .table td:last-child a{ color: #a31616; }
.contact-panel .table td:last-child a:hover{ color: #8a1313; }
.category-list{ margin-bottom: 20px; }
.category-panel{ border-radius: 0; box-shadow: none; }
.category-panel .panel-heading{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-panel .panel-title{
    margin: 0;
}

.nav-category{ 
    display: flex; 
    align-items: center; 
    margin: 0; 
    padding: 0; 
    list-style: none;
    margin-left: 20px;
}
.nav-category > li > a{ 
    color: white; 
    text-decoration: none; 
    display: block; 
    padding: 15px 15px; 
    line-height: 20px;
    font-size: 15px;
}
.nav-category > li > a:hover, 
.nav-category > li.active > a{ background: #a31616; }

.navbar-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    flex-wrap: nowrap;
}
.navbar-left{
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    min-width: 0;
}
.navbar-right{
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}
.navbar-scroll-wrapper{
    display: flex;
    align-items: center;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.navbar-scroll-wrapper::-webkit-scrollbar{
    display: none;
}
.site-title-wrapper{
    display: flex;
    align-items: center;
    height: 100%;
}

.banner-contact{ 
    height: 150px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}
.banner-contact-list{ 
    margin: 0; 
    padding: 0; 
    list-style: none; 
}
.banner-contact-item{ 
    display: flex; 
    align-items: center; 
    margin-bottom: 10px; 
    color: rgba(255, 255, 255, 0.95); 
    font-size: 14px; 
    line-height: 1.4;
}
.banner-contact-label{ 
    width: 50px; 
    color: rgba(255, 255, 255, 0.8); 
    font-size: 14px;
    flex-shrink: 0;
}
.banner-contact-value{ 
    flex: 1; 
    color: white; 
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}
.banner-contact-value:hover{ 
    color: #ffd4d4; 
    text-decoration: none;
}
.banner-contact-value a{ 
    color: white; 
    text-decoration: none;
}
.banner-contact-value a:hover{ 
    color: #ffd4d4; 
    text-decoration: underline;
}

.suffix-checkbox-group{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.suffix-checkbox-item{
    display: flex;
    align-items: center;
    margin-right: 15px;
    white-space: nowrap;
}
.suffix-checkbox-item input[type="checkbox"]{
    margin-right: 4px;
    vertical-align: middle;
}
.suffix-checkbox-item label{
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    vertical-align: middle;
}
.search-row{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: flex-start;
}
.search-label{
    min-width: 60px;
    margin-right: 10px;
    line-height: 34px;
    color: #555;
    font-weight: normal;
}
.search-field{
    flex: 1;
    min-width: 200px;
}

@media (min-width: 768px) {
    .search-label{
        min-width: auto;
        margin-right: 8px;
    }
    .search-row{
        margin-bottom: 10px;
    }
    .search-row:last-child{
        margin-bottom: 0;
    }
    .col-sm-3.col-xs-12,
    .col-sm-4.col-xs-12,
    .col-sm-6.col-xs-12,
    .col-sm-2.col-xs-12{
        margin-bottom: 0 !important;
    }
    .panel-body.search-panel-body{
        padding: 15px !important;
    }
    .desktop-search-row{
        display: flex !important;
    }
    .mobile-search-row{
        display: none !important;
    }
}

@media (max-width: 767px) {
    .desktop-search-row{
        display: none !important;
    }
    .mobile-search-row{
        display: block !important;
    }
}

.cart-panel{
    position: fixed;
    top: 50%;
    right: -400px;
    width: 380px;
    height: 60vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    transform: translateY(-50%);
    border-radius: 8px 0 0 8px;
}
.cart-panel.active{
    right: 0;
}
.cart-header{
    padding: 15px 20px;
    background-color: #a31616;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header span{
    font-size: 16px;
    font-weight: bold;
}
.cart-close-btn{
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}
.cart-body{
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}
.cart-empty{
    text-align: center;
    color: #999;
    padding: 30px 0;
}
.cart-table{
    width: 100%;
    border-collapse: collapse;
    display: none;
}
.cart-table.active{
    display: table;
}
.cart-table th{
    text-align: left;
    padding: 8px;
    border-bottom: 2px solid #eee;
    color: #333;
    font-size: 13px;
}
.cart-table td{
    padding: 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.cart-footer{
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}
.cart-actions{
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.cart-btn{
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}
.cart-btn-primary{
    background-color: #a31616;
    color: white;
}
.cart-btn-primary:hover{
    background-color: #8a1313;
}
.cart-btn-secondary{
    background-color: #e0e0e0;
    color: #333;
}
.cart-btn-secondary:hover{
    background-color: #d0d0d0;
}
.cart-summary{
    text-align: right;
    font-size: 14px;
    color: #333;
}
.cart-summary span{
    color: #d9534f;
    font-weight: bold;
    font-size: 18px;
}
.cart-item-remove{
    color: #999;
    cursor: pointer;
    padding: 0 5px;
}
.cart-item-remove:hover{
    color: #d9534f;
}

.right-service-panel{
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background-color: #a31616;
    border-radius: 4px 0 0 4px;
    overflow: hidden;
    pointer-events: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}
.service-btn{
    width: 40px;
    padding: 12px 5px;
    color: #fff;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    line-height: 1.4;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    background: transparent;
    word-break: break-word;
}
.service-btn:hover{
    background: rgba(255,255,255,0.1);
}

.modal{
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content{
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    text-align: center;
    border-radius: 8px;
    position: relative;
}
.close{
    position: absolute;
    right: 10px;
    top: 5px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover{
    color: #333;
}