.tcdh-container {
max-width: 500px;
margin: 20px auto;
padding: 20px;
background: #ffffff;
border: 1px solid #e1e1e1;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.tcdh-title {
margin: 0 0 20px 0;
text-align: center;
color: #0073aa;
font-size: 24px;
font-weight: 600;
}
.tcdh-mode-switch {
text-align: center;
margin-bottom: 30px;
}
.tcdh-mode-button {
padding: 10px 20px;
background: #f8f9fa;
color: #495057;
border: 2px solid #dee2e6;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
}
.tcdh-mode-button:hover {
background: #e9ecef;
border-color: #0073aa;
color: #0073aa;
}
.tcdh-mode-button.active {
background: #0073aa;
color: white;
border-color: #0073aa;
}
.tcdh-mode-time {
background: #0073aa;
color: white;
border-color: #0073aa;
}
.tcdh-mode-decimal {
background: #28a745;
color: white;
border-color: #28a745;
}
.tcdh-input-group {
display: flex;
gap: 10px;
margin-bottom: 15px;
align-items: center;
}
.tcdh-input {
flex: 1;
padding: 12px 15px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 16px;
transition: border-color 0.3s ease;
background: #fafafa;
}
.tcdh-input:focus {
outline: none;
border-color: #0073aa;
background: #ffffff;
box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}
.tcdh-button {
padding: 12px 20px;
background: #0073aa;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background-color 0.3s ease;
white-space: nowrap;
}
.tcdh-button:hover {
background: #005a87;
}
.tcdh-button:active {
transform: translateY(1px);
}
.tcdh-result {
padding: 15px;
margin: 15px 0;
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 6px;
font-size: 18px;
font-weight: 600;
text-align: center;
min-height: 20px;
color: #495057;
}
.tcdh-result.has-result {
background: #d4edda;
border-color: #c3e6cb;
color: #155724;
}
.tcdh-result.error {
background: #f8d7da;
border-color: #f5c6cb;
color: #721c24;
}
.tcdh-help {
margin-top: 20px;
padding-top: 15px;
border-top: 1px solid #e1e1e1;
}
.tcdh-help p {
margin: 0 0 10px 0;
font-weight: 600;
color: #495057;
font-size: 14px;
}
.tcdh-help ul {
margin: 0;
padding-left: 20px;
list-style-type: disc;
}
.tcdh-help li {
margin-bottom: 5px;
color: #6c757d;
font-size: 13px;
line-height: 1.4;
} @media (max-width: 600px) {
.tcdh-container {
margin: 10px;
padding: 15px;
}
.tcdh-input-group {
flex-direction: column;
gap: 10px;
}
.tcdh-input,
.tcdh-button {
width: 100%;
}
.tcdh-button {
order: 2;
}
.tcdh-input {
order: 1;
}
} @media (prefers-color-scheme: dark) {
.tcdh-container {
background: #2d3748;
border-color: #4a5568;
color: #e2e8f0;
}
.tcdh-title {
color: #63b3ed;
}
.tcdh-mode-button {
background: #4a5568;
color: #e2e8f0;
border-color: #718096;
}
.tcdh-mode-button:hover {
background: #718096;
border-color: #63b3ed;
color: #63b3ed;
}
.tcdh-mode-time {
background: #3182ce;
color: white;
border-color: #3182ce;
}
.tcdh-mode-decimal {
background: #38a169;
color: white;
border-color: #38a169;
}
.tcdh-input {
background: #4a5568;
border-color: #718096;
color: #e2e8f0;
}
.tcdh-input:focus {
border-color: #63b3ed;
background: #2d3748;
}
.tcdh-result {
background: #4a5568;
border-color: #718096;
color: #e2e8f0;
}
.tcdh-result.has-result {
background: #22543d;
border-color: #38a169;
color: #9ae6b4;
}
.tcdh-result.error {
background: #742a2a;
border-color: #e53e3e;
color: #feb2b2;
}
.tcdh-help {
border-color: #4a5568;
}
.tcdh-help p {
color: #e2e8f0;
}
.tcdh-help li {
color: #a0aec0;
}
} .tcdh-input.loading {
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%230073aa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 11-6.219-8.56"/></svg>');
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 20px;
padding-right: 40px;
} @keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.tcdh-result.has-result,
.tcdh-result.error {
animation: fadeIn 0.3s ease-out;
}