/* ===== IMG Tools - Main Stylesheet ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.15rem;
}

.logo-icon {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== Language Selector ===== */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--gray-700);
    transition: all var(--transition);
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    z-index: 200;
}

.lang-dropdown.active {
    display: block;
}

.lang-dropdown__item {
    display: block;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--gray-700);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition);
}

.lang-dropdown__item:hover {
    background: var(--gray-50);
}

.lang-dropdown__item--active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
}

/* ===== User Auth Modal ===== */
.user-auth-modal {
    max-width: 420px;
    padding: 32px;
}

.user-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
}

.user-auth-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}

.user-auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.user-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.user-auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-auth-form .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.user-auth-form .form-input {
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

.user-auth-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap .form-input {
    width: 100%;
    padding-right: 44px;
}

.pwd-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px 8px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.pwd-toggle:hover {
    opacity: 1;
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    min-height: 20px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
}

/* ===== Pages ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #F5F3FF 100%);
    padding: 60px 0 48px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Tools Grid ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 40px 0 60px;
}

.tool-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tool-card__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.tool-card__icon svg {
    width: 20px;
    height: 20px;
}

.tool-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.tool-card__desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.tool-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Tool Page ===== */
.tool-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.tool-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.btn-back {
    margin-bottom: 16px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.btn-back:hover {
    text-decoration: underline;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-50);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover:not(:disabled) {
    background: #DC2626;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* ===== Upload Zone ===== */
.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 20px;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-zone__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    color: var(--gray-400);
}

.upload-zone__text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.upload-zone__hint {
    font-size: 0.85rem;
    color: var(--gray-400);
}

/* ===== Tool Upload Zone ===== */
.tool-upload-zone {
    margin-bottom: 20px;
}

.tool-upload-dz {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
}

.tool-upload-dz:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.tool-upload-dz svg {
    color: var(--gray-400);
    transition: color var(--transition);
}

.tool-upload-dz:hover svg {
    color: var(--primary);
}

.tool-upload-dz.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
    border-style: solid;
}

/* ===== Compress Upload Zone ===== */
.compress-upload-zone {
    margin-bottom: 20px;
}
.compress-upload-dz {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--gray-50);
}
.compress-upload-dz:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    border-style: solid;
}
.compress-upload-dz svg {
    color: var(--gray-400);
}
.compress-upload-dz:hover svg {
    color: var(--primary);
}
.compress-upload-dz.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
    border-style: solid;
}

.reupload-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* ===== Preview ===== */
.preview-area {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.preview-box {
    flex: 1;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

.preview-box__label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 8px;
    font-weight: 600;
}

.preview-box img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 4px;
}

/* ===== Circular Progress ===== */
.circular-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.circular-progress svg {
    animation: spin-progress 1.5s linear infinite;
}

@keyframes spin-progress {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== User Profile Modal ===== */
.user-profile-modal {
    max-width: 400px;
    width: 90%;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-info-item {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-info-label {
    font-size: 11px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

/* ===== Crop Handles ===== */
#cropBox {
    cursor: move;
}

.crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4F46E5;
    border: 2px solid #fff;
    border-radius: 3px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.crop-handle--nw { top: -6px; left: -6px; cursor: nw-resize; }
.crop-handle--n  { top: -6px; left: 50%; margin-left: -6px; cursor: n-resize; }
.crop-handle--ne { top: -6px; right: -6px; cursor: ne-resize; }
.crop-handle--e  { top: 50%; margin-top: -6px; right: -6px; cursor: e-resize; }
.crop-handle--se { bottom: -6px; right: -6px; cursor: se-resize; }
.crop-handle--s  { bottom: -6px; left: 50%; margin-left: -6px; cursor: s-resize; }
.crop-handle--sw { bottom: -6px; left: -6px; cursor: sw-resize; }
.crop-handle--w  { top: 50%; margin-top: -6px; left: -6px; cursor: w-resize; }

/* ===== Controls ===== */
.control-group {
    margin-bottom: 16px;
}

.control-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.control-group input[type="range"] {
    width: 100%;
}

.control-group input[type="text"],
.control-group input[type="number"],
.control-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===== Footer ===== */
.footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 24px 0;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
}

.modal-close:hover {
    color: var(--gray-700);
}

/* ============================================================
   定价方案
   ============================================================ */
.pricing-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0 40px;
    text-align: center;
}

.pricing-section__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.pricing-section__subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 32px;
}

/* --- 月/年切换 --- */
.pricing-section__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}

.pricing-section__toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    transition: color 0.2s;
    cursor: pointer;
}

.pricing-section__toggle-label--active { color: var(--gray-900); }

.pricing-section__discount {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: #EEF2FF;
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-section__switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.pricing-section__switch input { opacity: 0; width: 0; height: 0; }

.pricing-section__slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    border-radius: 28px;
    transition: 0.3s;
}

.pricing-section__slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.pricing-section__switch input:checked + .pricing-section__slider { background: var(--primary); }
.pricing-section__switch input:checked + .pricing-section__slider::before { transform: translateX(24px); }

/* --- 定价卡片网格 --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px 28px 28px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-card--popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.04);
}

.pricing-card--popular:hover { transform: scale(1.04) translateY(-4px); }

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card__header { margin-bottom: 24px; }

.pricing-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.pricing-card__price { margin-bottom: 8px; }

.pricing-card__currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    vertical-align: top;
}

.pricing-card__amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.pricing-card__period {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.pricing-card__desc {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.pricing-card__features {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}

.pricing-card__feature {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-bottom: 1px solid #f5f5f5;
}

.pricing-card__feature:last-child { border-bottom: none; }

.pricing-card__feature--disabled {
    color: #b2bec3;
}

.pricing-card__check {
    margin-right: 8px;
    font-weight: 700;
    color: var(--success);
}

.pricing-card__feature--disabled .pricing-card__check {
    color: #b2bec3;
}

/* ============================================================
   支付弹窗
   ============================================================ */
.pay-modal {
    max-width: 440px;
    text-align: center;
    padding: 36px 32px;
}

.pay-modal__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pay-modal__plan {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.pay-modal__amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
}

.pay-modal__methods {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.pay-modal__method {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.pay-modal__method input { display: none; }

.pay-modal__method-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
}

.pay-modal__method--active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pay-modal__qrcode {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.pay-modal__qrcode-placeholder {
    width: 180px;
    height: 180px;
    background: #f5f7fa;
    border: 2px dashed #ddd;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #b2bec3;
    font-size: 0.85rem;
}

.pay-modal__qrcode-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.pay-modal__note {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.pay-modal__confirm {
    margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); }
    .main-nav.open { display: flex; }
    .mobile-menu-btn { display: flex; }
    .preview-area { flex-direction: column; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card--popular { transform: none; }
    .pricing-card--popular:hover { transform: translateY(-4px); }
    .footer-inner { flex-direction: column; gap: 8px; }
}

/* ===== Footer Links ===== */
.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

/* ===== About Page ===== */
.about-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0 40px;
    text-align: center;
}

.about-section__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.about-section__subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.about-card:hover {
    box-shadow: var(--shadow-md);
}

.about-card__icon {
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.about-contact {
    font-size: 0.95rem;
    color: var(--gray-500);
}

/* ===== Link Button ===== */
.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
    padding: 0;
}

.link-btn:hover {
    color: var(--primary-dark);
}

/* ===== Contact Modal ===== */
.contact-modal {
    max-width: 500px;
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-input {
    resize: vertical;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .tools-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 40px; }
}

/* ===== WeChat-style Chat Window ===== */
.wechat-chat-window {
    width: 420px;
    max-width: 95vw;
    height: 560px;
    max-height: 85vh;
    background: #ededed;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.wechat-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ededed;
    border-bottom: 1px solid #d9d9d9;
    flex-shrink: 0;
}
.wechat-chat-back {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 4px;
    border-radius: 4px;
    display: flex;
}
.wechat-chat-back:hover { background: rgba(0,0,0,0.06); }
.wechat-chat-title {
    font-size: 17px;
    font-weight: 600;
    color: #191919;
}
.wechat-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    background: #ededed;
    display: flex;
    flex-direction: column;
}
.wechat-chat-body::-webkit-scrollbar { width: 4px; }
.wechat-chat-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }
.wechat-chat-inputbar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 14px;
    background: #f7f7f7;
    border-top: 1px solid #d9d9d9;
    flex-shrink: 0;
}
.wechat-chat-textarea {
    flex: 1;
    border: none;
    outline: none;
    background: white;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 15px;
    resize: none;
    line-height: 1.5;
    max-height: 100px;
    font-family: inherit;
}
.wechat-chat-send {
    background: #07c160;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}
.wechat-chat-send:hover { background: #06ad56; }
.wechat-chat-send:disabled { background: #b7e6cc; cursor: not-allowed; }
.wechat-chat-tail { height: 8px; flex-shrink: 0; }

/* Time divider */
.wechat-time-divider {
    text-align: center;
    font-size: 12px;
    color: #b2b2b2;
    margin: 10px 0 14px;
}

/* Message row */
.wechat-msg-row {
    display: flex;
    margin-bottom: 14px;
    align-items: flex-start;
}
.wechat-msg-self {
    flex-direction: row-reverse;
}
.wechat-msg-other {
    flex-direction: row;
}

/* Avatar */
.wechat-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.wechat-avatar-self {
    background: #07c160;
    color: white;
    margin-left: 8px;
}
.wechat-avatar-other {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
    margin-right: 8px;
}

/* Bubble */
.wechat-msg-content {
    max-width: 70%;
    min-width: 0;
}
.wechat-msg-bubble {
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
    position: relative;
}
.wechat-bubble-self {
    background: #95ec69;
    color: #000;
}
.wechat-bubble-self::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 8px;
    width: 0;
    height: 0;
    border-left: 6px solid #95ec69;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}
.wechat-bubble-other {
    background: white;
    color: #000;
}
.wechat-bubble-other::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 0;
    height: 0;
    border-right: 6px solid white;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}
.wechat-bubble-subject {
    font-size: 12px;
    color: rgba(0,0,0,0.45);
    margin-bottom: 4px;
    font-weight: 500;
}

/* Empty state */
.wechat-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.wechat-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
