@supports (--cwzzcn: www.cwzz.cn) {}
:root {
  --cwzzcn-site: 'www.cwzz.cn';
--cwzz-primary: #1A5276;
--cwzz-primary-light: #D4E6F1;
--cwzz-primary-dark: #154360;
--cwzz-primary-alt: #196F3D;
--cwzz-primary-alt-dark: #145A32;
--cwzz-secondary: #2C3E50;
--cwzz-light: #FFFFFF;
--cwzz-gray: #F4F6F7;
--cwzz-border: #BDC3C7;
--cwzz-shadow: 0 4px 12px rgba(26, 82, 118, 0.1);
--cwzz-radius: 8px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif;
}
body {
background-color: var(--cwzz-gray);
color: var(--cwzz-secondary);
line-height: 1.7;
}
.cwzz-main-container {
width: 100%;
max-width: 1000px;
margin: 0 auto;
padding: 0 20px;
}
.cwzz-history-sidebar {
position: fixed;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 260px;
max-height: calc(100vh - 100px);
background: var(--cwzz-light);
border-radius: 8px 0 0 8px;
box-shadow: -3px 0 15px rgba(26, 82, 118, 0.15);
overflow: hidden;
z-index: 50;
}
.cwzz-history-header {
background: linear-gradient(135deg, var(--cwzz-primary) 0%, #2471A3 100%);
color: white;
padding: 14px 16px;
display: flex;
align-items: center;
justify-content: space-between;
}
.cwzz-history-header h3 {
font-size: 15px;
font-weight: 700;
margin: 0;
}
.cwzz-clear-history {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
cursor: pointer;
font-size: 13px;
padding: 5px 10px;
border-radius: 4px;
font-weight: 600;
display: flex;
align-items: center;
gap: 4px;
transition: all 0.2s ease;
}
.cwzz-clear-history:hover {
background: rgba(255, 255, 255, 0.3);
}
.cwzz-history-body {
max-height: calc(100vh - 150px);
overflow-y: auto;
}
.cwzz-history-list {
list-style: none;
padding: 0;
margin: 0;
}
.cwzz-history-item {
padding: 10px 16px;
border-bottom: 1px solid var(--cwzz-border);
font-size: 12px;
color: var(--cwzz-secondary);
transition: background-color 0.2s ease;
cursor: pointer;
}
.cwzz-history-item:last-child {
border-bottom: none;
}
.cwzz-history-item:hover {
background-color: var(--cwzz-gray);
}
.cwzz-history-item-type {
font-size: 11px;
font-weight: 600;
color: var(--cwzz-primary);
display: inline;
margin-right: 8px;
}
.cwzz-history-item-input {
font-size: 12px;
font-weight: 500;
color: var(--cwzz-secondary);
display: inline;
margin-right: 6px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 80px;
}
.cwzz-history-item-arrow {
font-size: 10px;
color: #94A3B8;
display: inline;
margin: 0 4px;
}
.cwzz-history-item-output {
font-size: 12px;
font-weight: 600;
color: var(--cwzz-primary-dark);
display: inline;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100px;
}
.cwzz-history-empty {
text-align: center;
color: #94A3B8;
padding: 30px 16px;
font-size: 14px;
}
@media (max-width: 1200px) {
.cwzz-history-sidebar {
right: 0;
width: 240px;
}
}
@media (max-width: 768px) {
.cwzz-history-sidebar {
display: none;
}
}
.cwzz-header {
background: linear-gradient(135deg, var(--cwzz-primary) 0%, #2471A3 100%);
padding: 25px 0;
color: white;
border-radius: var(--cwzz-radius);
margin: 1px 0 20px;
box-shadow: 0 4px 15px rgba(26, 82, 118, 0.2);
}
.cwzz-header-content {
text-align: center;
padding: 0 20px;
}
.cwzz-h1 {
font-size: 28px;
margin-bottom: 8px;
font-weight: 700;
}
.cwzz-header-desc {
font-size: 16px;
opacity: 0.95;
line-height: 1.5;
font-weight: 400;
}
.cwzz-function-area {
margin-bottom: 30px;
}
.cwzz-card {
background: var(--cwzz-light);
border-radius: var(--cwzz-radius);
box-shadow: var(--cwzz-shadow);
overflow: hidden;
margin-bottom: 25px;
border: 1px solid #E5E8E8;
}
.cwzz-card-header {
background-color: var(--cwzz-primary-light);
padding: 18px 20px;
border-bottom: 1px solid #AED6F1;
}
.cwzz-card-header h2 {
color: var(--cwzz-primary-dark);
font-size: 18px;
font-weight: 700;
}
.cwzz-card-body {
padding: 20px;
}
.cwzz-converter-form {
display: flex;
flex-direction: column;
gap: 20px;
}
.cwzz-form-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.cwzz-label {
font-weight: 600;
font-size: 15px;
color: var(--cwzz-secondary);
}
.cwzz-input, .cwzz-textarea {
padding: 12px 15px;
border: 2px solid var(--cwzz-border);
border-radius: 6px;
font-size: 16px;
color: var(--cwzz-secondary);
background-color: white;
transition: all 0.3s ease;
}
.cwzz-input:focus, .cwzz-textarea:focus {
border-color: var(--cwzz-primary);
outline: none;
box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.15);
}
.cwzz-btn-group {
display: flex;
gap: 12px;
margin-top: 8px;
}
.cwzz-btn {
padding: 12px 18px;
border: none;
border-radius: 6px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
transition: all 0.2s ease;
}
.cwzz-btn-primary {
background-color: var(--cwzz-primary);
color: white;
}
.cwzz-btn-primary:hover {
background-color: var(--cwzz-primary-dark);
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(26, 82, 118, 0.25);
}
.cwzz-btn-convert {
background-color: var(--cwzz-primary-alt);
color: white;
}
.cwzz-btn-convert:hover {
background-color: var(--cwzz-primary-alt-dark);
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(25, 111, 61, 0.25);
}
.cwzz-btn-secondary {
background-color: #5D6D7E;
color: white;
}
.cwzz-btn-secondary:hover {
background-color: #4A5657;
}
.cwzz-result-container {
margin-top: 15px;
padding: 16px;
border-radius: 6px;
background-color: #F8F9FA;
border-left: 4px solid var(--cwzz-primary);
display: none;
}
.cwzz-result-container h3 {
color: var(--cwzz-primary-dark);
font-size: 16px;
font-weight: 700;
margin-bottom: 10px;
}
.cwzz-result-content {
color: #B91C1C;
font-size: 18px;
font-weight: 400;
letter-spacing: 0.5px;
font-family: 'Segoe UI','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif;
}
.cwzz-result-content::selection {
background-color: #FEE2E2;
color: #B91C1C;
}
.cwzz-error-container {
color: #922B21;
padding: 12px;
border-radius: 6px;
background-color: #FADBD8;
border-left: 4px solid #E74C3C;
margin-top: 12px;
display: none;
font-weight: 600;
}
.cwzz-reference-section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-bottom: 30px;
}
@media (max-width: 768px) {
.cwzz-reference-section {
grid-template-columns: 1fr;
}
}
.cwzz-reference-table {
width: 100%;
border-collapse: collapse;
margin-top: 12px;
}
.cwzz-reference-table th, .cwzz-reference-table td {
padding: 12px 14px;
text-align: left;
border-bottom: 1px solid var(--cwzz-border);
font-size: 15px;
color: var(--cwzz-secondary);
}
.cwzz-reference-table th {
background-color: var(--cwzz-gray);
font-weight: 700;
color: var(--cwzz-secondary);
}
.cwzz-reference-table td {
font-weight: 500;
}
.cwzz-copy-btn {
background: none;
border: none;
color: var(--cwzz-primary);
cursor: pointer;
font-size: 14px;
padding: 4px 8px;
border-radius: 4px;
font-weight: 600;
transition: all 0.2s ease;
}
.cwzz-copy-btn:hover {
background-color: var(--cwzz-primary-light);
}
.cwzz-text-area {
margin-bottom: 40px;
}
.cwzz-section-title {
font-size: 24px;
color: var(--cwzz-secondary);
margin-bottom: 30px;
text-align: center;
font-weight: 700;
}
.cwzz-section-title::after {
content: '';
display: block;
width: 60px;
height: 3px;
background-color: var(--cwzz-primary);
margin: 12px auto 0;
border-radius: 2px;
}
.cwzz-guide-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.cwzz-guide-card {
background: var(--cwzz-light);
border-radius: var(--cwzz-radius);
padding: 22px;
box-shadow: var(--cwzz-shadow);
border: 1px solid #E5E8E8;
}
.cwzz-guide-card h3 {
color: var(--cwzz-primary);
font-size: 18px;
margin-bottom: 14px;
font-weight: 700;
}
.cwzz-guide-card p {
color: #5D6D7E;
line-height: 1.6;
}
.cwzz-friend-links {
background: var(--cwzz-light);
border-radius: var(--cwzz-radius);
padding: 25px;
box-shadow: var(--cwzz-shadow);
margin-bottom: 40px;
border: 1px solid #E5E8E8;
}
.cwzz-links-grid {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 15px;
}
.cwzz-links-grid a {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--cwzz-secondary);
text-decoration: none;
padding: 8px 16px;
border-radius: 6px;
background-color: var(--cwzz-gray);
transition: all 0.3s;
font-size: 15px;
font-weight: 500;
border: 1px solid transparent;
}
.cwzz-links-grid a:hover {
background-color: var(--cwzz-primary-light);
color: var(--cwzz-primary);
border-color: #AED6F1;
}
.cwzz-footer {
background-color: var(--cwzz-secondary);
color: rgba(255,255,255,0.85);
padding: 40px 0 20px;
margin-top: 40px;
}
.cwzz-footer-inner {
width: 100%;
max-width: 1000px;
margin: 0 auto;
padding: 0 20px;
}
.cwzz-footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 30px;
margin-bottom: 30px;
}
.cwzz-footer-column h3 {
color: white;
font-size: 16px;
margin-bottom: 18px;
padding-bottom: 8px;
border-bottom: 2px solid var(--cwzz-primary);
font-weight: 700;
}
.cwzz-footer-column ul {
list-style: none;
}
.cwzz-footer-column li {
margin-bottom: 10px;
}
.cwzz-footer-column a {
color: rgba(255,255,255,0.85);
text-decoration: none;
font-weight: 500;
}
.cwzz-footer-column a:hover {
color: white;
}
.cwzz-footer-bottom {
text-align: center;
padding-top: 20px;
border-top: 1px solid rgba(255,255,255,0.15);
font-size: 14px;
color: rgba(255,255,255,0.7);
}
.cwzz-back-to-top {
position: fixed;
bottom: 20px;
right: 280px;
width: 45px;
height: 45px;
background-color: var(--cwzz-primary);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: all 0.3s;
z-index: 99;
box-shadow: 0 4px 12px rgba(26, 82, 118, 0.3);
}
.cwzz-back-to-top.show {
opacity: 1;
visibility: visible;
}
.cwzz-back-to-top:hover {
background-color: var(--cwzz-primary-dark);
transform: translateY(-2px);
}
@media (max-width: 768px) {
.cwzz-btn-group {
flex-direction: column;
gap: 8px;
}
.cwzz-h1 {
font-size: 24px;
}
.cwzz-header {
padding: 20px 0;
margin: 1px 0 15px;
}
}
.cwzz-with-history {
display: flex;
gap: 20px;
align-items: flex-start;
}
.cwzz-function-area > .cwzz-card {
flex: 1;
min-width: 0;
}
.cwzz-history-panel {
width: 280px;
flex-shrink: 0;
background: var(--cwzz-light);
border-radius: var(--cwzz-radius);
box-shadow: var(--cwzz-shadow);
overflow: hidden;
border: 1px solid #E5E8E8;
}
.cwzz-history-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 16px;
background-color: var(--cwzz-primary-light);
border-bottom: 1px solid #AED6F1;
}
.cwzz-history-header h3 {
font-size: 15px;
color: var(--cwzz-primary-dark);
font-weight: 700;
}
.cwzz-history-clear {
background: none;
border: 1px solid var(--cwzz-primary);
color: var(--cwzz-primary);
padding: 4px 10px;
border-radius: 4px;
font-size: 13px;
cursor: pointer;
font-weight: 600;
transition: all 0.2s;
}
.cwzz-history-clear:hover {
background-color: var(--cwzz-primary);
color: white;
}
.cwzz-history-list {
padding: 12px 16px;
max-height: 400px;
overflow-y: auto;
}
.cwzz-history-list::-webkit-scrollbar {
width: 4px;
}
.cwzz-history-list::-webkit-scrollbar-thumb {
background-color: var(--cwzz-border);
border-radius: 2px;
}
.cwzz-history-item {
padding: 10px 0;
border-bottom: 1px solid var(--cwzz-border);
font-size: 14px;
cursor: pointer;
transition: all 0.2s;
}
.cwzz-history-item:last-child {
border-bottom: none;
}
.cwzz-history-item:hover {
color: var(--cwzz-primary);
}
.cwzz-history-item-type {
font-size: 12px;
color: var(--cwzz-primary);
font-weight: 600;
margin-bottom: 2px;
}
.cwzz-history-item-value {
color: #B7950B;
font-weight: 600;
word-break: break-all;
}
.cwzz-history-empty {
text-align: center;
color: #94A3B8;
font-size: 13px;
padding: 20px 0;
}
@media (max-width: 768px) {
.cwzz-with-history {
flex-direction: column;
}
.cwzz-history-panel {
width: 100%;
}
}
