/* 卡密生成器样式 */

/* 基础样式 */
body {
    padding: 20px !important;
    margin: 0 !important;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif !important;
}

.header {
    margin: -20px -20px 1rem !important;
    width: calc(100% + 40px) !important;
    padding: 1rem 0 !important;
    background: #1f4977 !important;
    color: white !important;
}

.header-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 0.5rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

.header-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.header-info {
    flex: 1 !important;
}

.announcement {
    max-width: 1200px !important;
    margin: 0 auto 1rem !important;
    width: 100% !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

.announcement-content {
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
}

.announcement-icon {
    margin-right: 0.75rem !important;
    font-size: 1.25rem !important;
}

.announcement-text {
    color: #495057 !important;
    font-size: 0.9rem !important;
}

.container1 {
    max-width: 1200px !important;
    margin: 0 auto !important;
    background: white !important;
    border-radius: 0 !important;

    overflow: hidden !important;
    min-height: 0vh !important;
}


.footer-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 0.5rem !important;
    box-sizing: border-box !important;
}

/* 卡密生成器样式 */
.kami-container {
    background: white;
    border-radius: 0;
    padding: 1.5rem;
}

.kami-content {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.kami-config {
    flex: 1;
    min-width: 300px;
}

.kami-result {
    flex: 1;
    min-width: 300px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.config-section {
    margin-bottom: 1.5rem;
}

.config-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.char-options {
    margin-bottom: 1rem;
}

.char-options label {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0;
}

.config-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.config-note {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-count {
    color: #6c757d;
}

.result-content {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 1rem;
    min-height: 520px;
    max-height: 515px;
    overflow-y: auto;
    background: #f8f9fa;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-sizing: border-box;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: nowrap;
    width: 100%;
}

.btn {
    flex: 1;
    min-width: 80px;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.btn-generate {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.btn-generate:hover {
    background: #45a049;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
    transform: translateY(-1px);
}

.btn-copy {
    background: #2196F3;
    color: white;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.btn-copy:hover {
    background: #0b7dda;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
    transform: translateY(-1px);
}

.btn-remove-duplicates {
    background: #FF9800;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.btn-remove-duplicates:hover {
    background: #e68a00;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
    transform: translateY(-1px);
}

.btn-save {
    background: #9C27B0;
    color: white;
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.3);
}

.btn-save:hover {
    background: #7B1FA2;
    box-shadow: 0 4px 8px rgba(156, 39, 176, 0.4);
    transform: translateY(-1px);
}

.btn-clear {
    background: #f44336;
    color: white;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
}

.btn-clear:hover {
    background: #d32f2f;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.4);
    transform: translateY(-1px);
}

.btn {
    transition: all 0.2s ease;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #336699;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .kami-content {
        flex-direction: column;
    }
    
    .kami-config,
    .kami-result {
        flex: none;
        width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 响应式下拉菜单 */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: transparent;
    }
    
    .dropdown-menu li a {
        padding: 0.5rem 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}