/* 基本样式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    transition: background 0.5s ease; /* 渐变过渡效果 */
}

/* 默认暗色模式样式 */
body.dark-mode {
    background: linear-gradient(to bottom, #1d1d1d, #000000);
    color: #ffffff;
}

body.dark-mode .mdui-toolbar {
    background: rgba(0, 0, 0, 0.8) !important; /* 使用半透明背景以配合渐变效果 */
    transition: background 0.5s ease; /* 渐变过渡效果 */
}

body.dark-mode .card, 
body.dark-mode .weather {
    background: #000000;
    transition: background 0.5s ease; /* 渐变过渡效果 */
}

body.dark-mode .content,
body.dark-mode .weather-content {
    background: #1e1e1e;
    transition: background 0.5s ease; /* 渐变过渡效果 */
}

body.dark-mode .title {
    color: #ffffff;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 10px;
}

body.dark-mode .content {
    background: #1e1e1e;
    border-radius: 15px;
    padding: 20px;
    font-size: 200%;
    color: #ffffff;
    line-height: 1.6;
    transition: background 0.5s ease, transform 0.4s ease; /* 渐变和变换过渡效果 */
}

body.dark-mode .weather h2 {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
}

body.dark-mode .weather-content {
    background: #1e1e1e;
    border-radius: 15px;
    padding: 20px;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
    transition: background 0.5s ease, transform 0.4s ease; /* 渐变和变换过渡效果 */
}

/* 输入框样式 */
body.dark-mode .input {
    background: #323232;
    color: #fff;
    width: 50px;
    border-radius: 7px;
    transition: background 0.5s ease; /* 渐变过渡效果 */
}

/* 亮色模式样式 */
body.light-mode {
    background: linear-gradient(to bottom, #ececec, #ffffff);
    color: #000000;
}

body.light-mode .mdui-toolbar {
    background: #f5f5f5 !important;
    transition: background 0.5s ease; /* 渐变过渡效果 */
}

body.light-mode .card, 
body.light-mode .weather {
    background: #ffffff;
    transition: background 0.5s ease; /* 渐变过渡效果 */
}

body.light-mode .content,
body.light-mode .weather-content {
    background: #f0f0f0;
    transition: background 0.5s ease; /* 渐变过渡效果 */
}

body.light-mode .title {
    color: #000000;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 10px;
}

body.light-mode .content {
    background: #e8e8e8;
    border-radius: 15px;
    padding: 20px;
    font-size: 200%;
    color: #000000;
    line-height: 1.6;
    transition: background 0.5s ease, transform 0.4s ease; /* 渐变和变换过渡效果 */
}

body.light-mode .weather h2 {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
}

body.light-mode .weather-content {
    background: #ececec;
    border-radius: 15px;
    padding: 20px;
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    text-align: center;
    transition: background 0.5s ease, transform 0.4s ease; /* 渐变和变换过渡效果 */
}

/* 输入框样式 */
body.light-mode .input {
    background: #ececec;
    color: #000000;
    width: 50px;
    border-radius: 7px;
    transition: background 0.5s ease; /* 渐变过渡效果 */
}

/* 切换模式按钮样式 */
body.dark-mode .toolbar-button {
    color: #ffffff;
}

body.light-mode .toolbar-button {
    color: #000000;
}

/* 工具栏样式 */
.mdui-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.5s ease; /* 渐变过渡效果 */
}

.toolbar-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80%;
}

.toolbar-logo {
    height: 90%;
    max-width: 500px;
}

.toolbar-button {
    margin-left: auto;
}

/* 容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    padding: 40px;
    align-content: center;
    padding-top: 100px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 卡片样式 */
.card {
    background: #000000;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 40px;
    transition: background 0.5s ease, transform 0.4s ease; /* 渐变和变换过渡效果 */
}

.card:hover {
    transform: scale(1.05);
}

/* 内容样式 */
.content:hover {
    transform: scale(1.15);
}

/* 按钮样式 */
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button {
    background-color: #0077ff;
    border: none;
    color: white;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.9s ease, transform 0.4s ease;
}

.button:hover {
    background-color: #0f3696;
    transform: scale(1.25);
}

/* 天气组件样式 */
.weather {
    background: #000000;
    width: 77%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 40px;
    transition: background 0.5s ease, transform 0.4s ease; /* 渐变和变换过渡效果 */
}

.weather:hover {
    transform: scale(1.01);
}

.weather-content:hover {
    transform: scale(1.007);
}

/* 倒计时输入框样式 */
.countdown-input {
    width: 35px;
    padding: 5px;
    border: 1px solid #000000;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.countdown-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px #007bff;
}