/*
Theme Name: HKCA Classic
Author: HKCA team
Description: HKCA Classic theme.
Version: 1.0
Requires at least: 5.3
Tested up to: 6.8
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hkca
*/

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, "Century Gothic", CenturyGothic, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background-color: #f5f5f5;
}
    

/* 导航栏样式 */
.navbar {
    background: #0653a2;
}

.navbar .navbar-brand, .navbar .nav-link {
    color: #fff;
}

.navbar-nav .nav-link.show {
    color: #7ce8ff;
}

.navbar .dropdown-item {
    color: #1a1a1a;
}

.navbar .nav-link:hover, .navbar .dropdown-item:hover {
    color: #00d4ff;
}

.navbar-toggler-icon {
    filter: invert(1);
}



/* 按钮样式 */
.btn-login {
    background: #baf3ff;
    color: #000000;
    font-weight: 600;
}

.btn-login:hover {
    background: #7ce8ff;
    color: #003f4d;
}

.btn-primary {
    background: #7ce8ff;
    color: #000000;
    border: 0;
}

a {
    text-decoration: none !important;
    colour: #0A2540 !important;
}

.text-muted {
    --bs-text-opacity: 1;
    color: #1e1e1e  !important;
}

.text-info {
     color: #18505c; !important;
}    

.btn-primary:hover {
    background: #00b8e6;
    box-shadow: 0 5px 20px rgba(0,212,255,.4);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: #7ce8ff;
    color: #fff;
    background: #1a3a52;
}

.btn-outline-light:hover {
    background: #7ce8ff;
    border-color: #7ce8ff;
    color: #000000;
}

/* 语言切换样式 */
#language-switcher {
    background-color: #1e3a5f;
    color: #fff;
    border: 1px solid #7ce8ff;
    padding: .45rem .5rem;
    border-radius: .25rem;
    font-size: .9rem;
}

/* 头部悬浮下沉margin-top6.5rem */
.mt-6 {
  margin-top: 4.5rem !important;
}

/* 第一屏样式 - 首页hero */
section#home.hero,
.hero.margin-top {
    background-color: #e8f4f8;
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

section#home.hero.margin-top,
.hero.margin-top {
    margin-top: 4.5rem;
}

section#home.hero h1,
.hero.margin-top h1 {
    font-size: 3rem;
    color: #1a3a52;
}

section#home.hero p,
.hero.margin-top p {
    color: #555;
}

section#home.hero .cta-buttons,
.hero.margin-top .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* 轮播图样式 */
.carousel-indicators [data-bs-target] {
    background-color: rgba(255,255,255,.5);
}

.carousel-indicators .active {
    background-color: #7ce8ff;
}

#heroCarousel {
    z-index: auto;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.resource-card h5 {
    font-weight: bold;
}



.resource-card-row {
  display: flex;
  flex-wrap: wrap;
}

.resource-card-row > div {
  display: flex;
  /* flex-direction: column; */
}

.resource-card {
  flex: 1;          
  display: flex;
  flex-direction: column;
  height: 95%; 
}

.text-slogan {
    text-align: left;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    width: 60%;
    padding: 20px 0 0 0;
    line-height: 1.5;
}

.carousel-fade .carousel-item {
    transition: opacity .9s ease-in-out;
}

.carousel-control-prev, .carousel-control-next {
    width: 4rem;
    height: 4rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 4;
}

.carousel-control-prev {
    left: 1%;
}

.carousel-control-next {
    right: 1%;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* 首页 section样式 */
.page-section {
    padding: 5rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero section样式 */
section.hero:not(#home),
main.hero {
    padding: 3rem 0;
    background-color: #e8f4f8;
    position: relative;
    display: block;
    height: auto;
    overflow: visible;
}

section.hero:not(#home) h1,
main.hero h1 {
    font-size: 1.8rem;
    color: #1a3a52;
}

section.hero:not(#home) p,
main.hero p {
    color: #000;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* FAQ section样式 */
.faq-section {
    margin-bottom: 3rem;
}

/* CPS section样式 */
.cps-main-section {
    margin-bottom: 0;
}

/* 首页 section标题样式 */

h1.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #0a2540;
    font-weight: 700;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #0a2540;
    font-weight: 500;
}

.h2, h2 {
        font-size: 1.6rem !important;
}

.h3, h3 {
        font-size: 1.4rem !important;
 }
 
h3.case {
        font-weight: 600;
        font:#ffffff !important;
}

h2.section-desr {
    max-width: 1000px;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #000;
    text-align: center !important;
    margin-right: auto !important;
    margin-left: auto !important;
    line-height: 2.5rem;
}

/* Digital Certificates section标题样式 */
.section-title.d-flex {
    font-size: 1.8rem;
    color: #0a2540;
    font-weight: 600;
    border-bottom: 2px solid #7ce8ff;
    margin-bottom: 1rem;
    text-align: left;
}

.section-title.d-flex h2,
.section-title.d-flex .h3 {
    font-size: 1.8rem;
    color: #0a2540;
    font-weight: 600;
    margin: 0;
}

.section-card {
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.section-card h2 {
    color: #1a3a52;
    font-size: 1.8rem;
    font-weight: bold;
}

.section-card .h4 {
    color: #1a3a52;
}

.section-card p {
    color: #444;
}

/* 关于我们样式 */
#about {
    background: #f8f9fa;
}

.about-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

.about-card h3 {
    color: #0a2540;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.about-desc {
    max-width: 800px;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #000;
}

/* 证书卡片样式 */
.cert-card {
    background: #0653a2;
    color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
    transition: transform .5s;
}

.cert-card:hover::before {
    transform: scale(1.2);
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,212,255,.3);
}

.cert-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.cert-card p, .cert-card ul {
    position: relative;
    z-index: 1;
}

.cert-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.cert-card li {
    padding: .5rem 0 .5rem 1.5rem;
    position: relative;
}

.cert-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7ce8ff;
    font-weight: bold;
}

/* 列表样式 */
.cert-list .cert-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cert-list .cert-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.cert-list-arrow {
    font-size: 28px;
    color: #00bcd4;
    font-weight: bold;
}

.cert-item {
    border: 1px solid #e3e6ea;
    border-radius: 0.75rem;
    padding: 1.25rem;
    background-color: #f9f9f9;
}

/* 首页工具下载样式 */
#tools {
    background: #f8f9fa;
}

.tool-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

.tool-card h5 {
    font-weight: bold;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 资源中心样式 */
.resource-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-left: 4px solid #7ce8ff;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    transition: all 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
    border-left-color: #0a2540;
}

.resource-card h5 {
    font-weight: bold;
}

/* 案例卡片样式 */
.case-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

.case-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0a2540 0%, #7ce8ff 100%);
}

.case-content {
    padding: 2rem;
}

.case-content h5 {
    color: #0a2540;
    margin-bottom: 1rem;
    font-weight: bold;
}

.case-study-logo {
    background: #0653a2;
    border-radius: .5rem .5rem 0 0;
    color: #ffffff;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    font-weight: 600 !important;
    height: 100px;
}

/* 常见问题样式 */
#faq {
    background: #f8f9fa;
}

.faq-card {
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.faq-card h2 {
    color: #1a3a52;
}

.faq-card .faq-parent-title-text {
    display: inline-block;
    color: #ffffff;
    background-color: #0653a2;
    padding: .15rem .5rem;
    border-radius: .25rem;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #0a2540;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-container {
    max-width: 900px;
}

.accordion-button {
    color: #1a3a52 !important;
    font-weight: 600;
}

/* 404错误样式 */
.error-card {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border: none;
}

.error-card h1, .error-card h2 {
    color: #1a3a52;
}

.error-card p {
    color: #555;
}

.home-button {
    width: 22rem;
    background-color: #00bcd4;
    color: white;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s;
    margin: 0 auto;
}

.home-button:hover {
    background-color: #00acc1;
    color: white;
}

/* 关于我们列表样式 */
.objectives-list {
    list-style: none;
    padding-left: 0;
}

.objectives-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 1rem;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.9;
}

.objectives-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #00bcd4;
    font-weight: bold;
    font-size: 1.2rem;
}

/* cps样式 */
.page-title {
    font-size: 1.8rem;
    color: #0a2540;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.notice-box {
    max-width: 900px;
    margin: 2rem auto 0;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-left: 5px solid #ff9800;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 3px 15px rgba(255, 152, 0, 0.15);
}

.notice-box h3 {
    color: #e65100;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
}

.notice-box .display-6 {
    font-size: 1.8rem;
}

.notice-box p {
    margin-bottom: 0;
    color: #3e221a;
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}

.intro-section {
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 100%);
    color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    margin-bottom: 3rem;
}

.intro-section h2 {
    color: #7ce8ff;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* cps-dcert section样式 */
.content-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

section.content-section {
    margin-bottom: 1.5rem;
}

.section-title-cps {
    font-size: 1.8rem;
    color: #0a2540;
    font-weight: 600;
    padding-bottom: .75rem;
    border-bottom: 2px solid #7ce8ff;
    margin-bottom: 1.5rem;
}

.cps-list-item {
    background: #fff;
    padding: 1.8rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: all .3s;
    border-left: 4px solid #7ce8ff;
}

.cps-list-item:hover {
    box-shadow: 0 4px 15px rgba(0,212,255,.15);
    border-left-color: #0a2540;
    transform: translateX(5px);
}

.cps-list-title {
    font-size: 1.3rem;
    color: #0a2540;
    font-weight: 600;
    margin-bottom: .5rem;
}

.cps-list-description {
    font-size: .95rem;
    color: #3a3939;
}

.cps-list-link {
    color: #004a5a;
    font-weight: 600;
    text-decoration: none;
}

.cps-list-link:hover {
    color: #fff;
    background: #7ce8ff;
    border-radius: 4px;
    padding: .5rem 1rem;
}

.cps-list-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.back-button {
    color: #7ce8ff;
    font-weight: 600;
    transition: all 0.3s;
}

.back-button:hover {
    color: #0a2540;
    transform: translateX(-5px);
}

.back-button::before {
    content: '←';
    margin-right: 0.5rem;
    transition: transform 0.3s;
}

.back-button:hover::before {
    transform: translateX(-5px);
}

/* cps-dcert样式 */
.document-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #7ce8ff;
    border-radius: 4px;
    transition: all .3s;
}

.document-item:hover {
    background: #f0f7fa;
    border-left-color: #0a2540;
    transform: translateX(5px);
}

.document-title {
    font-size: 1.1rem;
    color: #0a2540;
    font-weight: 600;
    margin-bottom: .5rem;
}

.document-info {
    font-size: .9rem;
    color: #363636;
    margin-bottom: .75rem;
}

.document-link {
    display: inline-flex;
    align-items: center;
    color: #033742;
    text-decoration: none;
    font-weight: 600;
}

.document-link:hover {
    color: #0a2540;
}

.document-link::before {
    content: '📄';
    margin-right: .5rem;
}

.document-badge {
    display: inline-block;
    background: #7ce8ff;
    color: #fff;
    font-size: .75rem;
    padding: .25rem .75rem;
    border-radius: 12px;
    margin-left: .5rem;
    font-weight: 600;
}

.webtrust-item {
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #7ce8ff;
    border-radius: 4px;
    transition: all .3s;
}

.webtrust-item:hover {
    background: #f0f7fa;
    border-left-color: #0a2540;
}

.webtrust-title {
    font-size: 1rem;
    color: #0a2540;
    font-weight: 600;
    margin-bottom: .5rem;
}

.webtrust-link {
    display: inline-flex;
    align-items: center;
    color: #7ce8ff;
    text-decoration: none;
    font-weight: 600;
}

.webtrust-link:hover {
    color: #0a2540;
}

.webtrust-link::before {
    content: '�';
    margin-right: .5rem;
}

.webtrust-date {
    font-size: .85rem;
    color: #666;
    margin-top: .25rem;
}

.note-section {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.note-section p {
    color: #856404;
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
}

.text-decoration-none {
    color: #18505c;
}

.text-decoration-none:hover {
    color: #0a2540;
}

/* 储存库样式 */
.fontColor {
    color: #0a2540;
}

.download-action {
    padding: 0.5rem 1rem;
    background-color: #e3f2fd;
    color: #0277bd;
    transition: all 0.2s;
}

.crl-btn {
    padding: 0.5rem 1rem;
    background-color: #ffebee;
    color: #c62828;
    transition: all 0.2s;
}

/* 工具与下载样式 */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #005763;
    color: white;
    font-weight: 500;
}

.download-link:hover {
    background-color: #00acc1;
    border-color: #00acc1;
    color: white;
}

.download-link-sm {
    display: inline-block;
    color: #00353c;
    text-decoration: none;
    font-weight: 700;
    margin-right: 1rem;
    transition: opacity 0.3s;
}

.download-link-sm:hover {
    opacity: 0.7;
}

.note-box {
    background: #ebfaff;
    border: 1px solid #d0e8f0;
    color: #333;
}

.note-box a {
    color: #00272c;
    font-weight: 700;
}

/* 底部样式 */
footer {
    background: #0a2540;
    color: #fff;
    padding: 3rem 0 1rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-section h6 {
    color: #7ce8ff;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    display: block;
    margin-bottom: .5rem;
    transition: color .3s;
}

.footer-section a:hover {
    color: #7ce8ff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* 其它样式 */
.page-description {
    max-width: 900px;
}

.error-main {
    min-height: calc(100vh - 200px);
}

/* 部分特定响应式 */
@media (max-width: 768px) {
    .hero .cta-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .intro-section {
        padding: 1.5rem;
    }
    
    .home-button {
        width: 100%;
    }
    
      
}