/**
 * Theme Name: Module Vecoton Child
 * Description: Vecoton.com 定制子主题
 * Version: 1.0
 * Author: WPCOM
 * Template: module
 * Requires at least: 6.4.0
 * Requires PHP: 7.4
 */

@import url("../module/css/style.css");

:root{
    --navbar-action-height: 40px;
}

.vec-btns-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.vec-btn {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    border-radius: 100px;
    transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.vec-btn:hover,
.vec-btn:focus,
.vec-btn:active {
    border-color: transparent;
}
.vec-btn:hover:before,
.vec-btn:hover:after,
.vec-btn:focus:before,
.vec-btn:focus:after {
    display: none !important;
    content: none !important;
}
.vec-btn-deco {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    flex-shrink: 0;
    margin-right: 10px;
    transition: all .3s linear;
}
.vec-btn-deco:after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-sizing: content-box;
    transition: all .3s linear;
}

.vec-btn:hover .vec-btn-deco{
    width: 30px;
    margin-right: 12px;
    transition: all .3s linear;
}
.vec-btn:hover .vec-btn-deco:after{
    right: -4px;
    border: 2px solid var(--vec-btn-hover-bg);
    box-shadow: 0 0 0 2px currentColor;
    transition: all .3s linear;
}
.vec-btn-fill {
    background: var(--vec-btn-bg, var(--theme-color));
    color: var(--vec-btn-color, #fff);
}
.vec-btn-fill:hover,
.vec-btn-fill:focus {
    background: var(--vec-btn-hover-bg, var(--theme-hover, var(--theme-color)));
    color: var(--vec-btn-color, #fff); /* hover 文字色不变 */
}
.vec-btn-outline {
    background: transparent;
    border-color: var(--vec-btn-color, currentColor);
    color: var(--vec-btn-color, currentColor);
}
.vec-btn-outline:hover,
.vec-btn-outline:focus {
    background: var(--vec-btn-color, #fff);
    border-color: var(--vec-btn-color, #fff);
    color: var(--vec-btn-bg, transparent);
}
.vec-btn-outline:hover .vec-btn-deco:after{
    border: 2px solid var(--vec-btn-color);
}

/* 尺寸（模块全局，含移动端） */
a.vec-btn {
    padding: 10px 24px;
    font-size: 14px;
}
a.vec-btn-xs { padding: 5px 14px; font-size: 12px; }
a.vec-btn-sm { padding: 7px 18px; font-size: 13px; }
a.vec-btn-lg { padding: 13px 32px; font-size: 16px; }
a.vec-btn-xl { padding: 16px 40px; font-size: 18px; }
@media (max-width: 767px) {
    a.vec-btn-m-xs { padding: 5px 14px; font-size: 12px; }
    a.vec-btn-m-sm { padding: 7px 18px; font-size: 13px; }
    a.vec-btn-m-lg { padding: 13px 32px; font-size: 16px; }
    a.vec-btn-m-xl { padding: 16px 40px; font-size: 18px; }
}

.header .vec-lang {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}
.header .vec-lang ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.header .vec-lang li {
    margin: 0;
    border: 0;
    padding: 0;
    line-height: 1;
}
.header .vec-lang a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: var(--theme-border-radius-s, 3px);
    color: var(--theme-gray-color, #666);
}
.header .vec-lang a:hover,
.header .vec-lang .current-lang a {
    color: var(--theme-color);
    background: hsla(var(--theme-color-hsl, 216, 80%, 52%), .08);
}
.header .vec-lang .lang-flag {
    width: 32px;
    height: auto;
}
.header .vec-lang-dropdown { position: relative; }
.header .vec-lang-sw {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.header .vec-lang-dropdown > .vec-lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
}
.header .vec-lang-dropdown > .vec-lang-toggle .lang-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.header .vec-lang-dropdown .lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 999;
    min-width: 180px;
    padding: 12px;
    font-size: 16px;
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: var(--theme-border-radius-m, 4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}
.header .vec-lang-mask { display: none; position: fixed; inset: 0; z-index: 998; cursor: default; }
.header .vec-lang-sw:checked ~ .vec-lang-mask { display: block; }
.header .vec-lang-sw:checked ~ .lang-list { display: flex; }
.header .vec-lang-dropdown .lang-list a { padding: 8px 10px; }
body.menu-white .header .navbar-action{
    color: #fafafa;
}
.header .navbar-action{
    --vec-btn-bg: var(--theme-color);
    --vec-btn-hover-bg: var(--theme-hover);
}
.header .navbar-action .vec-btn-outline{
    --vec-btn-color: var(--theme-black-color);
}
body.menu-white .header .navbar-action .vec-btn-outline{
    --vec-btn-color: #fafafa;
}
body.abs .header:not(.fixed) .navbar-action{
    --vec-btn-bg: var(--menu-hover, var(--theme-color));
    --vec-btn-hover-bg: var(--menu-hover, var(--theme-hover));
}

.header .navbar-action .vec-btn {
    padding: 9px 20px;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .header .navbar-action .vec-btn { display: none; }
}


.modules-container.vec-flush-right {
    width: calc((100% + var(--theme-container-width, 1200px)) / 2);
    margin-left: calc((100% - var(--theme-container-width, 1200px)) / 2);
    margin-right: 0;
}
.modules-container.vec-flush-right div[class*="col-md-"]:last-of-type .modules-image{
    margin-right: -15px;
}
.modules-container.vec-flush-left div[class*="col-md-"]:first-of-type .modules-image{
    margin-left: -15px;
}
.modules-container.vec-flush-left {
    width: calc((100% + var(--theme-container-width, 1200px)) / 2);
    margin-left: 0;
    margin-right: auto;
}
.modules-container.vec-flush-both {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
@media (max-width: 991px) {
    .modules-container.vec-flush-right,
    .modules-container.vec-flush-left,
    .modules-container.vec-flush-both {
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }
}

.vec-banner-card > .container-inner {
    overflow: visible;
}

.vec-title {
    position: relative;
    color: var(--vec-title-color, var(--theme-color));
}
.vec-title-deco {
    position: absolute;
    height: 1px;
    top: 50%;
    left: -1953px;
    width: 1920px;
    height: 1px;
    background: currentColor;
}
.vec-title-deco:after {
    content: "";
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px currentColor;
    background: currentColor;
}
.vec-title-el {
    margin: 0;
    flex: 1;
    min-width: 0;
}
@media (max-width: 767px) {
    .vec-title-deco { flex-basis: 60px; }
}

.footer{
    padding-top: 40px;
    background: none;
}
.vec-footer {
    --vec-ft-bg: var(--footer-bg-color, #222);
    --vec-ft-text: hsla(var(--footer-color-hsl, 0, 0%, 98%), .82);
    --vec-ft-title: hsla(var(--footer-color-hsl, 0, 0%, 98%), .95);
    position: relative;
    z-index: 0;
    padding: 40px 0 0;
    background: none;
    font-size: 14px;
    color: var(--vec-ft-text);
}
.vec-footer:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: var(--vec-ft-bg);
}

.vec-footer a:not(.vec-btn) { color: var(--vec-ft-text); }
.vec-footer a:not(.vec-btn):hover { color: var(--vec-ft-hover, #fff); }
.vec-footer .container { position: relative; }

.footer .footer-widget{
    margin: 0;
    gap: 40px;
}
.footer .widget{
    width: calc((90% - 40px * 4) / 5);
    padding: 0;
    margin: 0;
}
.footer .widget:last-child{
    margin-left: auto;
    width: 20%;
}
.footer .widget-title{
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.1em;
}
.footer .widget :is(ol,ul) li{
    line-height: 1.4;
    padding: 8px 0;
}
.vec-ft-info {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    padding: 0 0 40px;
    border-bottom: 1px solid hsla(0, 0%, 100%, .1);
}
.vec-ft-info > [class*=vec-ft-info-] { width: 20%; }
.vec-ft-info-logo { flex-grow: 1; flex-shrink: 0; }
.vec-ft-info-logo img { max-width: 100%; height: auto; width: auto; }
.vec-ft-info-block p { margin: 0; line-height: 1.4; }
.vec-ft-info-title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: var(--vec-ft-title-weight, 600);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--vec-ft-title);
}
.vec-ft-sns {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.vec-footer .vec-ft-sns a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    background: var(--vec-ft-text, #fff);
    color: var(--vec-ft-bg, #222);
    transition: all .1s ease;
}
.vec-footer .vec-ft-sns a:hover {
    background: var(--vec-ft-bg, #222);
    color: var(--vec-ft-text, #fff);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .4);
    transition: all .1s ease;
}
.vec-ft-sns .wpcom-icon {
    font-size: 20px;
    color: inherit;
}
.vec-ft-sns img{
    width: 20px;
    height: 20px;
    object-fit: contain;
}
@media (max-width: 767px) {
    .vec-ft-info-logo { flex-basis: 100%; }
    .vec-ft-info {gap: 24px; padding-bottom: 32px; }
    .vec-ft-info > [class*=vec-ft-info-] { width: 100%; }
}