/* 经纬度度分秒转换工具样式 */

/* 标签页样式 */
.tab-container {
    margin-bottom: 30px;
}

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #2563eb;
    background-color: #f8f9fa;
}

.tab-button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background-color: #f8fafc;
}

.tab-content-item {
    display: none;
}

.tab-content-item.active {
    display: block;
}

/* 表单样式 */
.form-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
}

.form-input::placeholder {
    color: #999;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* 输入组样式 */
.input-group {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.input-group .form-input {
    flex: 1;
    border-radius: 6px 0 0 6px;
}

.input-group-text {
    padding: 10px 12px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
}

.input-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* 按钮样式 */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.copy-btn {
    padding: 10px 14px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: none;
}

.copy-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.copy-btn.copied {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* 结果容器 */
.result-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #2563eb;
    display: none;
}

.result-container.show {
    display: block;
}

.result-container h5 {
    margin: 0 0 15px 0;
    color: #2563eb;
    font-size: 16px;
}

.result-box .form-group:last-child {
    margin-bottom: 0;
}

/* 文本域 */
textarea.form-input {
    min-height: 150px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

/* 选择框 */
select.form-input {
    cursor: pointer;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* 说明卡片 */
.format-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.format-card h5 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.format-item h6 {
    color: #2563eb;
    margin: 0 0 10px 0;
    font-size: 15px;
}

.format-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.format-item code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: #d63384;
    font-family: 'Courier New', monospace;
}

/* 折叠面板 */
.faq-container {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.faq-container h5 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.accordion-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header h6 {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: #666;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 20px;
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tab-button {
        padding: 10px 16px;
        font-size: 14px;
        flex: 1;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .format-grid {
        grid-template-columns: 1fr;
    }
}
