* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background: #f8f9fa;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, #e17055 0%, #f39c12 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(225,112,85,0.35);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.nav a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.nav a.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.hero {
    background: linear-gradient(135deg, #e17055 0%, #f39c12 100%);
    padding: 40px 0 50px;
    color: #fff;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-text p {
    font-size: 16px;
    opacity: 0.9;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 50px 0;
}

.section-gray {
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 35px;
    color: #2d3436;
}

.converter-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.converter-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3436;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-header h2 {
    margin-bottom: 0;
}

.card-icon {
    flex-shrink: 0;
}

.card-desc {
    text-align: center;
    color: #636e72;
    margin-bottom: 25px;
    font-size: 14px;
}

.main-converter {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.converter-content {
    max-width: 600px;
    margin: 0 auto;
}

.input-area {
    margin-bottom: 20px;
}

.input-area label,
.output-area label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #636e72;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-prefix {
    position: absolute;
    left: 12px;
    font-size: 18px;
    color: #e17055;
    font-weight: 600;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 40px 14px 35px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #e17055;
    box-shadow: 0 0 0 3px rgba(225,112,85,0.15);
}

.btn-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #b2bec3;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.btn-clear:hover {
    color: #636e72;
}

.input-tip {
    font-size: 12px;
    color: #636e72;
    margin-top: 8px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #e17055;
    box-shadow: 0 0 0 3px rgba(225,112,85,0.15);
}

.btn-area {
    text-align: center;
    margin: 25px 0;
}

.btn-area-multi {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background: #e17055;
    color: #fff;
}

.btn:hover {
    background: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225,112,85,0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #e17055 0%, #f39c12 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e17055 100%);
}

.btn-lg {
    padding: 14px 40px;
    font-size: 16px;
}

.btn-success {
    background: #00b894;
    color: #fff;
}

.btn-success:hover {
    background: #00cec9;
    box-shadow: 0 4px 12px rgba(0,184,148,0.4);
}

.btn-secondary {
    background: #dfe6e9;
    color: #636e72;
}

.btn-secondary:hover {
    background: #b2bec3;
}

.output-area {
    margin-top: 20px;
}

.output-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px dashed #e17055;
    border-radius: 8px;
    padding: 20px;
    min-height: 60px;
    font-size: 22px;
    color: #d63031;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    word-break: break-all;
}

.output-area textarea {
    background: #f8f9fa;
}

.output-area .btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.currency-table {
    overflow-x: auto;
}

.currency-table table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-collapse: collapse;
}

.currency-table th,
.currency-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #dfe6e9;
}

.currency-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d3436;
}

.currency-table tr:hover {
    background: #f8f9fa;
}

.symbol-copy {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    color: #e17055;
    border-radius: 6px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.symbol-copy:hover {
    background: linear-gradient(135deg, #e17055 0%, #f39c12 100%);
    color: #fff;
    transform: scale(1.05);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.guide-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #e17055;
}

.guide-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3436;
    padding-bottom: 10px;
    border-bottom: 2px solid #e17055;
}

.guide-card ol,
.guide-card ul {
    padding-left: 20px;
    color: #636e72;
}

.guide-card li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.guide-example {
    margin-top: 12px;
    padding: 10px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 6px;
    font-size: 13px;
    color: #d63031;
}

.unit-table table,
.number-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.unit-table th,
.unit-table td,
.number-table th,
.number-table td {
    padding: 8px 6px;
    text-align: center;
    border: 1px solid #dfe6e9;
}

.unit-table th,
.number-table th {
    background: linear-gradient(135deg, #e17055 0%, #f39c12 100%);
    color: #fff;
    font-weight: 500;
}

.unit-table td,
.number-table td {
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #e17055;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3436;
}

.faq-item p {
    color: #636e72;
    line-height: 1.8;
    font-size: 14px;
}

.features {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 25px 15px;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid #dfe6e9;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(225,112,85,0.2);
    border-color: #e17055;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3436;
}

.feature-item p {
    font-size: 12px;
    color: #636e72;
}

.footer {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: rgba(255,255,255,0.85);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

.footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #f39c12;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(225,112,85,0.95);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.example-item {
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #dfe6e9;
    transition: all 0.3s;
}

.example-item:hover {
    border-color: #e17055;
    box-shadow: 0 4px 15px rgba(225,112,85,0.2);
}

.example-num {
    color: #e17055;
    font-weight: 600;
    font-size: 16px;
}

.example-arrow {
    color: #b2bec3;
}

.example-result {
    color: #d63031;
    font-weight: 500;
}

.date-inputs,
.unit-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.date-inputs input[type="date"],
.date-inputs input[type="number"],
.unit-inputs input[type="number"],
.unit-inputs select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

.date-inputs input:focus,
.unit-inputs input:focus,
.unit-inputs select:focus {
    outline: none;
    border-color: #e17055;
    box-shadow: 0 0 0 3px rgba(225,112,85,0.15);
    background: #fff;
}

.unit-inputs select {
    cursor: pointer;
    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='%23e17055' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-color: #fafafa;
    padding-right: 40px;
}

.unit-inputs select:focus {
    background-color: #fff;
}

.date-result {
    margin-top: 20px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.result-item {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #f8b739;
}

.result-num {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #d63031;
    margin-bottom: 6px;
}

.result-label {
    color: #636e72;
    font-size: 13px;
}

.result-single {
    text-align: center;
    padding: 35px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 10px;
    border: 1px solid #f8b739;
}

.result-date {
    font-size: 36px;
    font-weight: 700;
    color: #d63031;
    margin-bottom: 10px;
}

.result-week {
    color: #e17055;
    font-size: 18px;
    font-weight: 500;
}

.error {
    color: #d63031;
    text-align: center;
    padding: 20px;
}

.unit-result {
    margin-top: 20px;
}

.unit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.unit-item {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    padding: 14px 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #f8b739;
}

.unit-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #d63031;
    margin-bottom: 4px;
    word-break: break-all;
}

.unit-name {
    color: #636e72;
    font-size: 12px;
}

.word-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-item {
    background: linear-gradient(135deg, #e17055 0%, #f39c12 100%);
    padding: 18px 12px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(225,112,85,0.35);
}

.stat-num {
    display: block;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.base-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.base-input-item {
    margin-bottom: 10px;
}

.base-input-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #636e72;
    font-size: 14px;
}

.base-input-item input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-size: 18px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    transition: all 0.3s;
    background: #fafafa;
}

.base-input-item input:focus {
    outline: none;
    border-color: #e17055;
    box-shadow: 0 0 0 3px rgba(225,112,85,0.15);
    background: #fff;
}

.base-input-item input::placeholder {
    color: #b2bec3;
    font-size: 14px;
}

.base-table-wrapper {
    overflow-x: auto;
}

.base-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
    font-family: 'Consolas', 'Monaco', monospace;
}

.base-table th,
.base-table td {
    padding: 12px 20px;
    text-align: center;
    border: 1px solid #dfe6e9;
}

.base-table th {
    background: linear-gradient(135deg, #e17055 0%, #f39c12 100%);
    color: #fff;
    font-weight: 500;
}

.base-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.base-table tbody tr:hover {
    background: #ffeaa7;
}

@media (max-width: 992px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-image img {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .header {
        position: sticky;
        top: 0;
    }
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 12px 15px;
        gap: 10px;
    }
    .logo img {
        height: 32px;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .nav a {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 4px;
    }
    .hero {
        padding: 25px 0 35px;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .hero-text h1,
    .hero-text h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .hero-text p {
        font-size: 14px;
        line-height: 1.5;
    }
    .hero-image img {
        width: 100%;
        max-width: 320px;
    }
    .section {
        padding: 30px 0;
    }
    .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    .converter-card {
        padding: 18px;
        border-radius: 10px;
    }
    .converter-card h2 {
        font-size: 18px;
    }
    .card-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }
    .card-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .card-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .main-converter {
        margin-top: -25px;
    }
    .input-area label,
    .output-area label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    .input-wrapper input {
        padding: 12px 35px 12px 32px;
        font-size: 16px;
    }
    .currency-prefix {
        font-size: 16px;
        left: 10px;
    }
    .input-tip {
        font-size: 11px;
    }
    textarea {
        padding: 10px;
        font-size: 14px;
    }
    .btn-area {
        margin: 20px 0;
    }
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    .btn-lg {
        padding: 12px 30px;
        font-size: 15px;
        width: 100%;
    }
    .btn-area-multi {
        gap: 8px;
    }
    .btn-area-multi .btn {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1 1 auto;
        min-width: calc(33% - 8px);
    }
    .output-box {
        font-size: 16px;
        padding: 15px;
        min-height: 50px;
    }
    .output-area .btn {
        max-width: 100%;
    }
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .guide-card {
        padding: 18px;
    }
    .guide-card h3 {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    .guide-card li {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.6;
    }
    .guide-example {
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .feature-item {
        padding: 18px 10px;
    }
    .feature-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    .feature-item h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .feature-item p {
        font-size: 11px;
    }
    .faq-list {
        max-width: 100%;
    }
    .faq-item {
        padding: 18px;
        margin-bottom: 12px;
    }
    .faq-item h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .faq-item p {
        font-size: 13px;
        line-height: 1.7;
    }
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .example-item {
        padding: 12px 15px;
        font-size: 14px;
    }
    .currency-table th,
    .currency-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    .symbol-copy {
        padding: 5px 12px;
        font-size: 16px;
    }
    .unit-table table,
    .number-table table {
        font-size: 12px;
    }
    .unit-table th,
    .unit-table td,
    .number-table th,
    .number-table td {
        padding: 6px 4px;
    }
    .footer {
        padding: 25px 0;
    }
    .footer p {
        font-size: 12px;
    }
    .toast {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .date-inputs,
    .unit-inputs,
    .base-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .date-inputs input[type="date"],
    .date-inputs input[type="number"],
    .unit-inputs input[type="number"],
    .unit-inputs select {
        padding: 12px 14px;
        font-size: 15px;
    }
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .result-item {
        padding: 15px 10px;
    }
    .result-num {
        font-size: 22px;
        margin-bottom: 4px;
    }
    .result-label {
        font-size: 12px;
    }
    .result-single {
        padding: 25px 15px;
    }
    .result-date {
        font-size: 26px;
    }
    .result-week {
        font-size: 15px;
    }
    .unit-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .unit-item {
        padding: 12px 6px;
    }
    .unit-value {
        font-size: 13px;
        margin-bottom: 2px;
    }
    .unit-name {
        font-size: 11px;
    }
    .word-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 15px 10px;
    }
    .stat-item {
        padding: 12px 6px;
    }
    .stat-num {
        font-size: 20px;
        margin-bottom: 2px;
    }
    .stat-label {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .base-input-item label {
        font-size: 13px;
    }
    .base-input-item input {
        padding: 12px 14px;
        font-size: 16px;
    }
    .base-input-item input::placeholder {
        font-size: 13px;
    }
    .base-table th,
    .base-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .header .container {
        padding: 10px 12px;
    }
    .logo img {
        height: 28px;
    }
    .nav a {
        padding: 5px 8px;
        font-size: 11px;
    }
    .hero {
        padding: 20px 0 30px;
    }
    .hero-text h1,
    .hero-text h2 {
        font-size: 20px;
    }
    .hero-text p {
        font-size: 13px;
    }
    .section {
        padding: 25px 0;
    }
    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .converter-card {
        padding: 15px;
    }
    .converter-card h2 {
        font-size: 16px;
    }
    .card-icon {
        width: 45px;
        height: 45px;
    }
    .btn-lg {
        padding: 11px 25px;
        font-size: 14px;
    }
    .btn-area-multi .btn {
        min-width: calc(50% - 8px);
    }
    .output-box {
        font-size: 15px;
        padding: 12px;
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .feature-item {
        padding: 15px 8px;
    }
    .feature-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }
    .feature-item h3 {
        font-size: 12px;
    }
    .feature-item p {
        font-size: 10px;
    }
    .word-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px 8px;
    }
    .stat-item {
        padding: 14px 8px;
    }
    .stat-num {
        font-size: 22px;
    }
    .stat-label {
        font-size: 11px;
    }
    .unit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .result-num,
    .stat-num {
        font-size: 20px;
    }
    .base-table {
        font-size: 11px;
    }
    .base-table th,
    .base-table td {
        padding: 6px 4px;
    }
    .base-inputs {
        gap: 12px;
    }
    .base-input-item {
        margin-bottom: 5px;
    }
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

input, select, textarea, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    .feature-item:hover {
        transform: none;
        box-shadow: none;
    }
    .btn:active {
        opacity: 0.8;
    }
    .symbol-copy:active {
        background: linear-gradient(135deg, #e17055 0%, #f39c12 100%);
        color: #fff;
    }
}

@supports (-webkit-touch-callout: none) {
    .input-wrapper input,
    .date-inputs input,
    .unit-inputs input,
    .unit-inputs select,
    .base-input-item input,
    textarea {
        font-size: 16px;
    }
}

.converter-content {
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 768px) {
    .unit-table,
    .number-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .base-table-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}
