/* ============================================================
   MINTCOM Common CSS
   Shared by all pages
   Version: V1.0
============================================================ */


/* ============================================================
   01. Theme Variables
============================================================ */

:root {
    --primary-red: #8B0000;
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --machine-grey: #7a7d80;
    --white: #ffffff;
    --border-color: #e0e0e0;
	--muted: #666;
	--border: #e6e6e6;
}


/* ============================================================
   02. Reset
============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    color: var(--dark-grey);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}


/* ============================================================
   03. Container
============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ============================================================
   04. Header
============================================================ */

.top-bar {
    background-color: var(--dark-grey);
    color: var(--white);
    font-size: 0.8rem;
    padding: 5px 0;
    text-align: right;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo span {
    color: var(--dark-grey);
    font-weight: 300;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav a {
    padding: 8px 14px;
    border-radius: 4px;
    transition: color 0.3s, background-color 0.3s;
}

nav a:hover {
    color: var(--primary-red);
    background-color: #f5e8e8;
}

nav ul .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 8px 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    border-radius: 4px;
    z-index: 100;
}

nav ul li:hover > .dropdown {
    display: block;
}

nav ul .dropdown li {
    position: relative;
}

nav ul .dropdown .dropdown {
    left: 100%;
    top: 0;
}

nav ul .dropdown li:hover > .dropdown {
    display: block;
}

nav ul .dropdown a {
    display: block;
    padding: 8px 16px;
    white-space: nowrap;
    border-radius: 0;
}

nav ul .dropdown a:hover {
    background-color: #f5e8e8;
}

.btn-quote {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
}

.btn-quote:hover {
    background-color: #600000;
}


/* ============================================================
   05. Footer
============================================================ */

footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-red);
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.85rem;
}


/* ============================================================
   06. Buttons
============================================================ */

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #600000;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-grey);
}


/* ============================================================
   07. Titles
============================================================ */

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    color: var(--dark-grey);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
}

/* ============================================================
   Language Switch (EN / ZH / DE)
============================================================ */
.top-bar .container:has(.lang-switch) {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.lang-switch button {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 2px 5px;
    opacity: 0.45;
    transition: opacity 0.2s, border-color 0.2s;
}
.lang-switch button:hover {
    opacity: 0.8;
}
.lang-switch button img {
    width: 24px;
    height: auto;
    display: block;
}
.lang-switch button.active {
    opacity: 1;
    border-color: rgba(255,255,255,0.7);
}
/* 三语显示规则：默认英文可见 */
body:not(.lang-zh):not(.lang-de) [data-lang="zh"],
body:not(.lang-zh):not(.lang-de) [data-lang="de"] {
    display: none !important;
}
body.lang-zh [data-lang="en"],
body.lang-zh [data-lang="de"] {
    display: none !important;
}
body.lang-de [data-lang="en"],
body.lang-de [data-lang="zh"] {
    display: none !important;
}

@media (max-width: 768px) {
    nav ul .dropdown .dropdown {
        display: none !important;
    }
}

/* ===== Top-bar social icons (site-wide, migrated from index.html inline style) ===== */
.top-social { display: inline-flex; align-items: center; gap: 8px; margin-right: 16px; flex-shrink: 0; }
.top-social a { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; text-decoration: none; transition: transform 0.2s, opacity 0.2s; }
.top-social a:hover { transform: translateY(-1px); opacity: 0.92; }
.top-social svg { width: 12px; height: 12px; fill: currentColor; }
.ts-fb { background: #1877F2; }
.ts-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.ts-yt { background: #FF0000; }
.ts-wa { background: #25D366; }
.ts-em { background: #EA4335; }
@media (max-width: 768px) {
    .top-social { gap: 6px; margin-right: 8px; }
    .top-social a { width: 18px; height: 18px; }
    .top-social svg { width: 10px; height: 10px; }
}


/* ===== Breadcrumb (site-wide) ===== */
.breadcrumb { background: #f5f5f5; border-bottom: 1px solid #e5e5e5; padding: 10px 0; font-size: 13px; }
.breadcrumb .container { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: #0056b3; text-decoration: none; }
.breadcrumb a:hover { color: #003d80; text-decoration: underline; }
.breadcrumb .crumb-sep { color: #999; margin: 0 2px; }
.breadcrumb .crumb-current { color: #666; }
