/* 响应式基础设置 */
@media (max-width: 991.98px) {
    .hide-sm {
        display: none;
    }
}

.center-image {
    display: none;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
    max-width: 400px;
}

@media (max-width: 767px) {
    .center-image {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 0;
        box-shadow: none;
    }
}

.translated-paragraph {
    font-size: 18px;
}

/* 顶部按钮容器 */
.top-buttons-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-switcher {
    position: relative;
}

.wallpaper-switcher {
    position: relative;
}

.bgcolor-switcher {
    position: relative;
}

.lang-btn-icon, .wallpaper-btn-icon, .bgcolor-btn-icon {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #495057;
    font-size: 18px;
}

.lang-btn-icon:hover, .wallpaper-btn-icon:hover, .bgcolor-btn-icon:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lang-btn-icon.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.wallpaper-btn-icon.loading, .bgcolor-btn-icon.loading {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    animation: rotate 1s linear infinite;
}

.lang-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    display: none;
    z-index: 101;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.lang-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lang-option:hover {
    background-color: #f8f9fa;
}

.lang-option.active {
    background-color: #007bff;
    color: white;
}

.lang-check {
    display: none !important;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 背景设置 */
html, body {
    overflow-x: hidden;
    position: relative;
    height: 100%;
    transition: background 0.5s ease;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: opacity 0.8s ease;
    opacity: 1;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.gradient-bg.active {
    opacity: 1;
}

/* 模态框基础样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    margin: 20px auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px 16px 0 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.close-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s;
    display: flex;
        align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ff4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.modal-body h4 {
    color: #007bff;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
}

.modal-body p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 8px;
    color: #555;
}

/* 域名列表样式 */
.domain-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background-color: rgba(248, 249, 250, 0.5);
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.domain-name {
    font-weight: bold;
    color: #333;
}

.domain-status {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.status-available {
    background-color: rgba(212, 237, 218, 0.7);
    color: #155724;
}

.status-registered {
    background-color: rgba(248, 215, 218, 0.7);
    color: #721c24;
}

.status-developing {
    background-color: rgba(255, 243, 205, 0.7);
    color: #856404;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 联系方式样式 */
.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-item:nth-child(2) .contact-icon {
    background: linear-gradient(135deg, #09bb07 0%, #09bb07 100%);
}

.contact-item:nth-child(3) .contact-icon {
    background: linear-gradient(135deg, #ea4335 0%, #fbbc05 100%);
}

.contact-info {
    flex: 1;
}

.contact-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
}

.contact-info p {
    margin: 0 0 10px 0;
    color: #555;
}

.contact-link {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.contact-link:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #0056b3;
    text-decoration: none;
}

/* 微信二维码模态框特殊样式 */
#wechatQRModal .modal-content {
    max-width: 350px !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .contact-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 15px auto;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .contact-info {
        width: 100%;
    }
}
/* ==================== 语言选择器样式 ==================== */

/* 国旗图标样式 */
.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 语言文本样式 */
.lang-text {
    font-size: 12px;
    line-height: 1.2;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* 当前语言的国旗图标（按钮上） */
.current-lang-flag {
    width: 18px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 语言选择器样式优化 */
.lang-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    max-width: 160px;
    display: none;
    z-index: 101;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.lang-option {
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    min-height: 32px;
}

.lang-option:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.lang-option.active {
    background-color: rgba(0, 123, 255, 0.2);
    color: #007bff;
    font-weight: 500;
}

/* 语言选择器按钮图标 */
.lang-btn-icon {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.lang-btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-btn-icon img {
    width: 18px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .lang-dropdown {
        min-width: 130px;
        max-width: 150px;
    }
    
    .lang-option {
        padding: 5px 8px;
        min-height: 30px;
    }
    
    .flag-icon {
        width: 18px;
        height: 13px;
        margin-right: 6px;
    }
    
    .lang-text {
        font-size: 11px;
    }
    
    .lang-btn-icon {
        width: 32px;
        height: 32px;
    }
    
    .lang-btn-icon img {
        width: 16px;
        height: 12px;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .lang-dropdown {
        min-width: 120px;
        max-width: 140px;
    }
    
    .lang-option {
        padding: 4px 6px;
        min-height: 28px;
    }
    
    .flag-icon {
        width: 16px;
        height: 12px;
        margin-right: 5px;
    }
    
    .lang-text {
        font-size: 10px;
    }
}