/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff; /* Brighter background */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    margin-bottom: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #3498db;
    margin: 3px 0;
    transition: 0.3s;
}

h2 {
    color: #3498db;
    margin-bottom: 20px;
}

h3 {
    color: #555;
    margin-bottom: 15px;
}

/* Tab导航样式 */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
}

.tab-button {
    padding: 12px 20px;
    background-color: #c8d3dc;
    color: #2c3e50;
    border: 1px solid #a8b8c4;
    border-bottom: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
}

.tab-button:hover {
    background-color: #adbdcc;
}

.tab-button.active {
    background-color: #3498db;
    color: white;
}

/* Tab内容样式 */
.tab-content {
    background-color: white;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 工具区块样式 */
.tool-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fafafa;
}

/* 输入框和按钮样式 */
input[type="datetime-local"] {
    cursor: pointer;
}

input[type="text"],
input[type="file"],
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.buttons {
    margin: 15px 0;
}

/* 结果显示区域 */
#ip-info-result,
#time-conversion-result,
#utc-conversion-result,
#hex-decimal-result,
#blockchain-result,
#image-base64-output {
    margin-top: 15px;
    padding: 15px;
    background-color: #e8f4fc;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
        border-radius: 5px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .tool-section {
        padding: 15px;
    }
    
    button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* iPhone-sized screens (hamburger menu) */
@media (max-width: 480px) {
    .menu-toggle {
        display: flex;
    }
    
    .tabs {
        display: none;
        flex-direction: column;
    }
    
    .tabs.active {
        display: flex;
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
        border-radius: 5px;
        margin-bottom: 5px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    input[type="text"],
    input[type="file"],
    textarea,
    button {
        font-size: 14px;
    }
}
