:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #475569;
    --secondary-light: #64748b;
    --success: #16a34a;
    --warning: #ea580c;
    --danger: #dc2626;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #94a3b8;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --red: #ff0000;
    --green: #4dff77;
    --blue: #4da6ff;
    --orange: #ff8000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft JhengHei", "微軟正黑體", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    max-width: 1248px;
    margin: 0 auto;
    padding: 1rem;
}

.container {
    background-color: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* 頂部標題區 */
.header-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.header-card img {
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-card h1 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.header-card .subtitle {
    color: var(--secondary-light);
    font-size: 1rem;
    font-weight: 400;
}

/* 警告訊息 */
.warning {
    background-color: #fff3e0;
    border-left: 4px solid var(--warning);
    padding: 0.875rem;
    margin-bottom: 1.5rem;
    border-radius: 0 0.375rem 0.375rem 0;
}

.warning p {
    margin: 0;
    text-align: center;
    font-size: 0.9375rem;
}

.highlight-red {
　margin: 0;
    color: var(--danger);
    font-weight: 500;
}

.highlight-green {
　margin: 0;
    color: var(--green);
    font-weight: 500;
}

.highlight-blue {
　margin: 0;
    color: var(--blue);
    font-weight: 500;
}

/* 標籤頁導航 */
.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* 標籤頁內容 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 連結卡片 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.0rem;
}

.link-card {
    background: var(--light-gray);
    padding: 1.05rem;
    border-radius: 0.5rem;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.link-card h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--medium-gray);
}

.link-card a {
    color: var(--secondary);
    text-decoration: none;
    display: block;
    padding: 0.625rem 0.75rem;
    margin: 0.5rem 0;
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.link-card a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-dark);
}

/* 表格樣式 */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 0.875rem 1rem;
    border: 1px solid var(--medium-gray);
    text-align: left;
}

th {
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--secondary);
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.5);
}

tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* 帳號資訊樣式 */
.account-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.show-password {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.show-password:hover {
    background-color: var(--primary-dark);
}

.password-field {
    font-family: monospace;
    background-color: rgba(220, 38, 38, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.password-field.hidden {
    display: none;
}

/* 搜尋框 */
.search-box {
    display: flex;
    margin-bottom: 1rem;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--medium-gray);
    border-radius: 0.375rem 0 0 0.375rem;
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.search-btn {
    padding: 0 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

/* 快速連結區 */
.quick-links-section {
    margin-bottom: 1.5rem;
}

.quick-links-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--medium-gray);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.quick-links-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.875rem 1rem;
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

/* 快速連結顏色分類 */
.quick-links-grid a[href*="siemens.com/tw"] {
    background-color: #e0f2fe; /* 淺藍 */
    border-color: #38bdf8; /* 藍 */
}
.quick-links-grid a[href*="industry.siemens.com"] {
    background-color: #dcfce7; /* 淺綠 */
    border-color: #22c55e; /* 綠 */
}
.quick-links-grid a[href*="mybuilding.siemens.com"] {
    background-color: #ffedd5; /* 淺橙 */
    border-color: #fb923c; /* 橙 */
}
.quick-links-grid a[href*="hit.sbt.siemens.com"] {
    background-color: #f0f9ff; /* 淺藍 */
    border-color: #7dd3fc; /* 淺藍 */
}
.quick-links-grid a[href*="sid.siemens.com"] {
    background-color: #ecfccb; /* 淺黃綠 */
    border-color: #bef264; /* 黃綠 */
}

/* SharePoint 連結統一顏色 */
.quick-links-grid a[href*="sharepoint.com"] {
    background-color: #f3e8ff; /* 淺紫 */
    border-color: #a855f7; /* 紫 */
}

.quick-links-grid a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 懸停效果統一 */
.quick-links-grid a:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.quick-links-grid a[href*="siemens.com/tw"]:hover {
    background-color: #2563eb; /* 西門子藍 */
}
.quick-links-grid a[href*="industry.siemens.com"]:hover {
    background-color: #16a34a; /* 支援綠 */
}
.quick-links-grid a[href*="mybuilding.siemens.com"]:hover {
    background-color: #ea580c; /* 文件橙 */
}
.quick-links-grid a[href*="hit.sbt.siemens.com"]:hover {
    background-color: #0284c7; /* HIT藍 */
}
.quick-links-grid a[href*="sid.siemens.com"]:hover {
    background-color: #65a30d; /* SID綠 */
}
.quick-links-grid a[href*="sharepoint.com"]:hover {
    background-color: #7e22ce; /* SharePoint紫 */
}

/* 良好特質區 */
#qualities .qualities-section {
    padding: 1.5rem;
}

#qualities h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.qualities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.quality-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.quality-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quality-card h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.quality-card p {
    font-size: 0.9375rem;
    color: var(--secondary);
    margin: 0;
}

/* 頁腳 */
.footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--medium-gray);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.privacy-link {
    margin-top: 0.5rem;
}

.privacy-link a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-link a:hover {
    text-decoration: underline;
}

/* 模態框 */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 1.5rem;
    border-radius: 0.5rem;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--secondary-light);
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover {
    color: var(--danger);
}

.modal h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-body {
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .header-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .links-grid, .qualities-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.625rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .account-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        width: 100%;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
}

.responsive-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.responsive-images img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .responsive-images {
        gap: 15px;
    }
}

/* 表格基本樣式 */
.patch-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9em;
    min-width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.patch-table thead tr {
    background-color: #f8f9fa;
    text-align: left;
    font-weight: bold;
}

.patch-table th,
.patch-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.patch-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.patch-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.patch-table tbody tr:last-of-type {
    border-bottom: 2px solid #f8f9fa;
}

.patch-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* 響應式設計 */
@media screen and (max-width: 600px) {
    .patch-table {
        font-size: 0.8em;
    }
    
    .patch-table th,
    .patch-table td {
        padding: 8px 10px;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}

	.dividerR {
	    height: 3px;
	    background: linear-gradient(to right, transparent, #ff0000, transparent);  /* 紅色系 */
	    margin: 3px 0;            
	}      	                
	.dividerG {
	    height: 3px;
	    background: linear-gradient(to right, transparent, #4dff77, transparent);  /* 綠色系 */
	    margin: 3px 0;            
	}
	.dividerB {
	    height: 3px;
	    background: linear-gradient(to right, transparent, #4da6ff, transparent);  /* 藍色系 */
	    margin: 3px 0;            
	}
	.dividerO {
	    height: 3px;
	    background: linear-gradient(to right, transparent, #ff8000, transparent);  /* 橙色系 */
	    margin: 3px 0;            
	}   
	
#random-text {
    text-align: center;
    color: var(--primary-dark);
    margin-right: 10px; /* 可選：增加右邊距 */
}	