﻿.tool-page {
    padding-bottom: 80px;
}
.tool-container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}
.tool-hero {
    padding: 60px 0 20px;
}
.tool-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.08);
}
.tool-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}
.tool-lead {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.82;
}
.privacy-note {
    display: inline-block;
    margin-bottom: 28px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
    font-size: 14px;
}
.heic-app {
    margin: 24px 0 60px;
}
.drop-zone {
    padding: 56px 24px;
    text-align: center;
    border: 2px dashed rgba(139, 92, 246, 0.45);
    border-radius: 18px;
    background: rgba(139, 92, 246, 0.05);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.drop-zone.drag-active {
    border-color: #a78bfa;
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-2px);
}
.drop-icon {
    font-size: 42px;
    margin-bottom: 12px;
}
.drop-zone h2 {
    margin: 0 0 8px;
    font-size: 24px;
}
.drop-zone p {
    margin: 0 0 18px;
    opacity: 0.7;
}
.drop-hint {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    font-size: 13px;
}
.file-button,
.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.file-button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}
.file-button,
.primary-button {
    background: #7c3aed;
    color: #fff;
}
.secondary-button {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    color: #ddd6fe;
}
.ghost-button {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: inherit;
}
.primary-button:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}
.status {
    min-height: 24px;
    margin: 18px 0;
    font-size: 14px;
}
.status-success {
    color: #86efac;
}
.status-error {
    color: #fca5a5;
}
.status-working {
    color: #c4b5fd;
}
.workspace {
    margin-top: 24px;
}
.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.preview-card,
.settings-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}
.preview-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 14px;
}
.preview-heading span:last-child {
    opacity: 0.55;
    font-weight: 500;
}
.preview-frame {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        linear-gradient(45deg, rgba(255,255,255,0.025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.025) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.025) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.025) 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}
.preview-frame img {
    display: block;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 8px;
}
.settings-card {
    margin-top: 18px;
    padding: 20px;
}
.setting-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}
.setting-row label {
    font-weight: 700;
}
.setting-row p {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.62;
}
#quality-value {
    min-width: 48px;
    text-align: right;
    font-weight: 700;
    color: #c4b5fd;
}
#quality {
    width: 100%;
    margin: 20px 0;
}
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.content-section {
    max-width: 850px;
    margin: 0 auto 42px;
}
.content-section h2 {
    margin-bottom: 14px;
}
.content-section p,
.content-section li {
    line-height: 1.8;
}
.content-section ol {
    padding-left: 22px;
}
.content-section details {
    margin: 10px 0;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}
.content-section summary {
    cursor: pointer;
    font-weight: 700;
}
.content-section details p {
    margin-bottom: 0;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.related-grid a {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.025);
}
@media (max-width: 700px) {
    .tool-hero {
        padding-top: 36px;
    }
    .preview-grid {
        grid-template-columns: 1fr;
    }
    .drop-zone {
        padding: 42px 18px;
    }
    .action-row > * {
        width: 100%;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}
.seo-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.68;
}
.seo-breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.seo-breadcrumb a:hover {
    text-decoration: underline;
}
.seo-breadcrumb span[aria-hidden="true"] {
    opacity: 0.45;
}
/* Vamriko Watermark-compatible HEIC layout */
.heic-panel {
    width: 100%;
}
.seo-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.68;
}
.seo-breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.seo-breadcrumb a:hover {
    text-decoration: underline;
}
.seo-breadcrumb span[aria-hidden="true"] {
    opacity: 0.45;
}
@media (max-width: 700px) {
    .seo-breadcrumb {
        font-size: 12px;
        gap: 6px;
    }
}
