/* ZYDUS在线工具箱样式 */
#zydus-tools-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 工具导航 */
.tools-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
}

.tool-tab {
    padding: 10px 20px;
    border: none;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.tool-tab:hover {
    background: #e8e8e8;
}

.tool-tab.active {
    background: #007AFF;
    color: #fff;
}

/* 工具面板 */
.tool-panel {
    display: none;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tool-panel.active {
    display: block;
}

.tool-panel h3 {
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #007AFF;
    color: #333;
}

.tool-panel h4 {
    margin: 0 0 12px 0;
    color: #555;
    font-size: 15px;
}

/* 计算器 */
.calculator {
    max-width: 320px;
}

.calc-display {
    width: 100%;
    height: 60px;
    font-size: 28px;
    text-align: right;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fafafa;
    box-sizing: border-box;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calc-buttons button {
    height: 56px;
    font-size: 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #f0f0f0;
    transition: background 0.15s;
}

.calc-buttons button:hover {
    background: #e0e0e0;
}

.calc-buttons button.op {
    background: #ff9500;
    color: #fff;
}

.calc-buttons button.op:hover {
    background: #e08600;
}

.calc-buttons button.eq {
    background: #007AFF;
    color: #fff;
}

.calc-buttons button.eq:hover {
    background: #0066d6;
}

.calc-buttons button.fn {
    background: #a0a0a0;
    color: #fff;
}

/* 单位换算 */
.unit-converter {
    max-width: 400px;
}

.unit-converter select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
}

.unit-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.unit-row input, .unit-row select {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.unit-row input:focus, .unit-row select:focus {
    border-color: #007AFF;
    outline: none;
}

.unit-arrow {
    text-align: center;
    font-size: 24px;
    color: #007AFF;
    margin: 8px 0;
}

/* 日期计算 */
.date-calc {
    display: grid;
    gap: 32px;
}

@media (min-width: 600px) {
    .date-calc {
        grid-template-columns: 1fr 1fr;
    }
}

.date-section {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.date-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.date-row label {
    min-width: 80px;
    color: #555;
}

.date-row input {
    flex: 1;
    padding: 10px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
}

.result-box {
    margin-top: 16px;
    padding: 16px;
    background: #e8f4ff;
    border-radius: 6px;
    color: #007AFF;
    font-weight: 500;
    min-height: 20px;
}

/* 字数统计 */
.text-counter textarea {
    width: 100%;
    height: 200px;
    padding: 16px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.text-counter textarea:focus {
    border-color: #007AFF;
    outline: none;
}

.text-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.stat-item {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #007AFF;
}

/* 密码生成 */
.password-gen {
    max-width: 400px;
}

.pwd-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.pwd-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pwd-options input[type="number"] {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pwd-result {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.pwd-result input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    font-family: monospace;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
}

.pwd-strength {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.pwd-strength.weak { background: #ffebee; color: #c62828; }
.pwd-strength.medium { background: #fff3e0; color: #ef6c00; }
.pwd-strength.strong { background: #e8f5e9; color: #2e7d32; }

/* 人民币大写 */
.rmb-converter {
    max-width: 400px;
}

.rmb-input, .rmb-output {
    margin-bottom: 16px;
}

.rmb-converter label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.rmb-converter input {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.rmb-converter input:focus {
    border-color: #007AFF;
    outline: none;
}

#rmb-output {
    background: #fafafa;
    color: #007AFF;
    font-weight: 500;
}

/* 通用按钮 */
.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: #007AFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0066d6;
}

.btn-copy {
    padding: 12px 20px;
    font-size: 14px;
    color: #007AFF;
    background: #fff;
    border: 2px solid #007AFF;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: #007AFF;
    color: #fff;
}

/* 响应式 */
@media (max-width: 600px) {
    .tools-nav {
        flex-direction: column;
    }
    
    .tool-tab {
        width: 100%;
        text-align: center;
    }
    
    .calc-buttons button {
        height: 48px;
        font-size: 18px;
    }
    
    .date-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
