/* layout.css */
/* 主要内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
}

/* 时钟区域 */
.clock-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 60px); /* 占据除导航栏外的整个视窗高度 */
    padding: 2rem 1rem;
}

/* 内容介绍区域 */
.content-section {
    background: var(--page-bg);
    padding: 4rem 1rem;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.intro-block {
    margin-bottom: 3rem;
    text-align: left;
}

.intro-block h1,
.intro-block h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--page-text);
}

.intro-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--page-text-secondary);
    margin-bottom: 1rem;
}

.intro-block ul {
    margin-left: 0;
    padding-left: 0;
    color: var(--page-text-secondary);
    list-style-position: inside;
}

.intro-block li {
    padding-left: 1.2em;
    text-indent: -1.2em;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* FAQ 样式 */
.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--page-text);
}

.faq-item p {
    color: var(--page-text-secondary);
    margin-bottom: 0;
}

/* 脚注样式 */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--page-border);
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--page-text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--page-text);
    text-decoration: none;
}

.footer-copyright {
    color: var(--page-text-secondary);
    font-size: 0.9rem;
}

/* 脚注底部布局 - 版权信息和社交图标在同一行 */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem; /* 版权信息和图标之间的距离 */
    flex-wrap: wrap; /* 移动端自动换行 */
}

/* 社交媒体图标样式 */
.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 脚注语言切换器样式 */
.footer-language-switcher {
    margin-left: 1rem;
}

.language-dropdown {
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--page-text-secondary);
    padding: 4px 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-dropdown:hover {
    color: var(--page-text-primary);
}

.language-dropdown:focus {
    outline: none;
    color: var(--page-text-primary);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent; /* 移除固定背景色，使用透明背景 */
    color: var(--page-text-secondary); /* 使用主题变量 */
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--page-text-secondary); /* 悬停时使用主题变量 */
    color: var(--page-bg); /* 悬停时图标变为背景色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 移动端响应式 */
@media (max-width: 600px) {
    .footer-bottom {
        gap: 1.5rem;
        flex-direction: column; /* 移动端垂直排列 */
    }
    
    .footer-social {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-language-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .social-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* 全屏模式下隐藏内容介绍和脚注 */
:fullscreen .content-section,
:fullscreen .footer {
    display: none;
}

:-webkit-full-screen .content-section,
:-webkit-full-screen .footer {
    display: none;
}

:-moz-full-screen .content-section,
:-moz-full-screen .footer {
    display: none;
}

:-ms-fullscreen .content-section,
:-ms-fullscreen .footer {
    display: none;
}

/* 全屏模式下时钟区域调整 */
:fullscreen .clock-section {
    min-height: 100vh;
    padding: 0;
}

:-webkit-full-screen .clock-section {
    min-height: 100vh;
    padding: 0;
}

:-moz-full-screen .clock-section {
    min-height: 100vh;
    padding: 0;
}

:-ms-fullscreen .clock-section {
    min-height: 100vh;
    padding: 0;
}

:fullscreen body {
    padding-top: 0;
}

:-webkit-full-screen body {
    padding-top: 0;
}

:-moz-full-screen body {
    padding-top: 0;
}

:-ms-fullscreen body {
    padding-top: 0;
} 




/* home-themes.css */
/* 默认主题变量 */
:root {
    --page-bg: #000000;
    --page-text: #ffffff;
    --page-text-secondary: #cccccc;
    --page-border: #333333;
    --nav-bg: rgba(0, 0, 0, 0.95);
    --footer-bg: #111111;
}

/* 经典模版 - 黑底白字 */
[data-page-theme="classic"] {
    --page-bg: #000000;
    --page-text: #ffffff;
    --page-text-secondary: #cccccc;
    --page-border: #333333;
    --nav-bg: rgba(0, 0, 0, 0.95);
    --footer-bg: #111111;
}

/* 暗色模版 - 深灰底浅色字 */
[data-page-theme="dark"] {
    --page-bg: #151515;
    --page-text: #F2F2F2;
    --page-text-secondary: #CCCCCC;
    --page-border: #444444;
    --nav-bg: rgba(21, 21, 21, 0.95);
    --footer-bg: #1A1A1A;
}

/* 浅色模版 - 白底深色字 */
[data-page-theme="light"] {
    --page-bg: #ffffff;
    --page-text: #111111;
    --page-text-secondary: #666666;
    --page-border: #e0e0e0;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f8f8f8;
}

/* 数字显示模版 - 纯黑底白字 */
[data-page-theme="digital"] {
    --page-bg: #000000;
    --page-text: #ffffff;
    --page-text-secondary: #cccccc;
    --page-border: #333333;
    --nav-bg: rgba(0, 0, 0, 0.95);
    --footer-bg: #000000;
}

/* 数字显示模版-琥珀色 - 黑底琥珀色字 */
[data-page-theme="digital-amber"] {
    --page-bg: #000000;
    --page-text: #E58F2E;
    --page-text-secondary: #B8711F;
    --page-border: #444444;
    --nav-bg: rgba(0, 0, 0, 0.95);
    --footer-bg: #000000;
}

/* 数字显示模版-橙色 - 橙底深灰字 */
[data-page-theme="digital-orange"] {
    --page-bg: #FB7C00;
    --page-text: #222222;
    --page-text-secondary: #444444;
    --page-border: #999999;
    --nav-bg: rgba(251, 124, 0, 0.95);
    --footer-bg: #FB7C00;
}

/* 数字显示模版-蓝色 - 黑底蓝色字 */
[data-page-theme="digital-blue"] {
    --page-bg: #000000;
    --page-text: #66B8F0;
    --page-text-secondary: #4A8BC2;
    --page-border: #444444;
    --nav-bg: rgba(0, 0, 0, 0.95);
    --footer-bg: #000000;
}

/* 数字显示模版-红色 - 黑底红色字 */
[data-page-theme="digital-red"] {
    --page-bg: #000000;
    --page-text: #D54D39;
    --page-text-secondary: #B43E2C;
    --page-border: #444444;
    --nav-bg: rgba(0, 0, 0, 0.95);
    --footer-bg: #000000;
}

/* 应用到页面元素 */
body {
    background-color: var(--page-bg);
    color: var(--page-text);
    transition: all 0.3s ease;
}

.navbar {
    background: var(--nav-bg);
}

.footer {
    background: var(--footer-bg);
}

.content-section {
    background: var(--page-bg);
}

.text-secondary {
    color: var(--page-text-secondary);
}

/* 链接在暗色主题下的特殊处理 */
.footer-links a {
    color: var(--page-text-secondary);
}

.footer-links a:hover {
    color: var(--page-text);
}



/* clock-templates.css */
/* DSEG7字体在common.css中已定义 */

/* 时钟容器基础样式 */
.clock-container {
    background: transparent;
    color: var(--clock-text);
    font-family: var(--clock-font);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 数字时间显示 */
.digital-time {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: var(--clock-weight);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
    width: 100%;
    /* 使用负边距补偿字母间距的末尾空白 */
    margin-right: -0.1em;
}

/* 日期显示 */
.digital-date {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.05em;
    text-align: center;
    width: 100%;
    /* 使用负边距补偿字母间距的末尾空白 */
    margin-right: -0.05em;
}

/* 经典模版 - 黑底白字 */
[data-clock-template="classic"] .clock-container {
    --clock-text: #ffffff;
    --clock-font: 'Courier New', 'Monaco', monospace;
    --clock-weight: 600;
}

/* 纯黑模版 - 纯黑底纯白字 */
[data-clock-template="pure-dark"] .clock-container {
    --clock-text: #FFFFFF;
    --clock-font: 'Helvetica', Arial, sans-serif;
    --clock-weight: 500;
}

/* 暗色模版 - 深灰底浅色字 */
[data-clock-template="dark"] .clock-container {
    --clock-text: #F2F2F2;
    --clock-font: 'Helvetica', Arial, sans-serif;
    --clock-weight: 500;
}

/* 浅色模版 - 白底深色字 */
[data-clock-template="light"] .clock-container {
    --clock-text: #111111;
    --clock-font: 'Helvetica', Arial, sans-serif;
    --clock-weight: 500;
}

/* 数字显示模版 - 纯黑底白色数码字体 */
[data-clock-template="digital"] .clock-container {
    --clock-text: #ffffff;
    --clock-font: 'DSEG7', 'Courier New', monospace;
    --clock-weight: bold;
}

/* 数字显示模版-琥珀色 - 黑底琥珀色数码字体 */
[data-clock-template="digital-amber"] .clock-container {
    --clock-text: #E58F2E;
    --clock-font: 'DSEG7', 'Courier New', monospace;
    --clock-weight: bold;
}

/* 数字显示模版-橙色 - 橙底深灰数码字体 */
[data-clock-template="digital-orange"] .clock-container {
    --clock-text: #222222;
    --clock-font: 'DSEG7', 'Courier New', monospace;
    --clock-weight: bold;
}

/* 数字显示模版-蓝色 - 黑底蓝色数码字体 */
[data-clock-template="digital-blue"] .clock-container {
    --clock-text: #66B8F0;
    --clock-font: 'DSEG7', 'Courier New', monospace;
    --clock-weight: bold;
}

/* 数字显示模版-红色 - 黑底红色数码字体 */
[data-clock-template="digital-red"] .clock-container {
    --clock-text: #D54D39;
    --clock-font: 'DSEG7', 'Courier New', monospace;
    --clock-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .clock-container {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
    
    .digital-time {
        font-size: clamp(2rem, 15vw, 4rem);
        /* 移动端字体渲染优化 */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    .digital-date {
        font-size: clamp(0.8rem, 4vw, 1.2rem);
    }
    
    /* 移动端数字模板字体强化 */
    [data-clock-template="digital"] .digital-time,
    [data-clock-template="digital-amber"] .digital-time,
    [data-clock-template="digital-orange"] .digital-time,
    [data-clock-template="digital-blue"] .digital-time,
    [data-clock-template="digital-red"] .digital-time {
        font-family: 'DSEG7', 'Courier New', monospace !important;
        font-weight: bold !important;
        font-style: italic !important;
    }
    
    /* 移动端classic模版字体强化 */
    [data-clock-template="classic"] .digital-time {
        font-family: 'Courier New', 'Monaco', monospace !important;
        font-weight: 600 !important;
        font-style: normal !important;
    }
    
    /* 移动端dark和light模版字体强化 */
    [data-clock-template="pure-dark"] .digital-time,
    [data-clock-template="dark"] .digital-time,
    [data-clock-template="light"] .digital-time {
        font-family: 'Helvetica', Arial, sans-serif !important;
        font-weight: 500 !important;
        font-style: normal !important;
    }
}

@media (max-width: 480px) {
    .clock-container {
        padding: 1.5rem 1rem;
    }
}

/* 全屏模式下的时钟样式 */
:fullscreen .clock-container {
    background: transparent;
    max-width: none;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

:-webkit-full-screen .clock-container {
    background: transparent;
    max-width: none;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

:-moz-full-screen .clock-container {
    background: transparent;
    max-width: none;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

:-ms-fullscreen .clock-container {
    background: transparent;
    max-width: none;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 全屏模式下的字体大小 */
:fullscreen .digital-time {
    font-size: clamp(4rem, 20vw, 12rem);
}

:fullscreen .digital-date {
    font-size: clamp(1.5rem, 5vw, 3rem);
}

:-webkit-full-screen .digital-time {
    font-size: clamp(4rem, 20vw, 12rem);
}

:-webkit-full-screen .digital-date {
    font-size: clamp(1.5rem, 5vw, 3rem);
}

:-moz-full-screen .digital-time {
    font-size: clamp(4rem, 20vw, 12rem);
}

:-moz-full-screen .digital-date {
    font-size: clamp(1.5rem, 5vw, 3rem);
}

:-ms-fullscreen .digital-time {
    font-size: clamp(4rem, 20vw, 12rem);
}

:-ms-fullscreen .digital-date {
    font-size: clamp(1.5rem, 5vw, 3rem);
} 