/* 基础样式 */
:root {
    --logo-size-desktop: 200px;
    --logo-size-mobile: 150px;
    --font-size-desktop: 2rem;
    --font-size-mobile: 1.5rem;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f4e5c9 url('paper-texture.png');
    font-family: "SimSun", "宋体", serif;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    gap: 2rem;
    max-width: 1080px;  /* 设置最大宽度 */
    margin: 0 auto;     /* 居中容器 */
}

.logo {
    margin-bottom: 2rem;
    width: var(--logo-size-desktop);
    height: var(--logo-size-desktop);
    padding: 1.5rem;
    /* border: 2px solid #8b4513; */
    border-radius: 50%;
    /* background-color: rgba(255, 255, 255, 0.7); */
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid #8b4513;
    border-radius: 50%;
    opacity: 0.6;
}

.logo img {
    width: calc(var(--logo-size-desktop) - 20px);
    height: calc(var(--logo-size-desktop) - 20px);
    object-fit: cover;
    border-radius: 50%;
}

.text-content {
    position: relative;
    padding: 2rem 4rem;
    height: 700px;
    display: flex;
    justify-content: center;
    width: 100%;      /* 确保使用完整宽度 */
}

.text-content p {
    font-size: 1.5rem;    /* 缩小字体从 2rem 到 1.5rem */
    color: #4a2810;
    letter-spacing: 0.15em;  /* 稍微减小字间距 */
    line-height: 1.6;       /* 适当减小行高 */
    margin: 0;
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-align: start;
}

.text-content::before,
.text-content::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('ornament.png'); /* 可以添加古典花纹装饰 */
    background-size: contain;
    background-repeat: no-repeat;
}

.text-content::before {
    top: 0;
    left: 0;
    transform: rotate(-45deg);
}

.text-content::after {
    bottom: 0;
    right: 0;
    transform: rotate(135deg);
}

/* 手机端适配 */
@media screen and (max-width: 1080px) {
    .container {
        padding: 1rem;
        width: 100%;
    }

    .logo {
        width: var(--logo-size-mobile);
        height: var(--logo-size-mobile);
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .logo img {
        width: calc(var(--logo-size-mobile) - 20px);
        height: calc(var(--logo-size-mobile) - 20px);
    }
}

/* 超小屏幕适配 */
@media screen and (max-width: 320px) {
    :root {
        --logo-size-mobile: 120px;
    }

    .container {
        padding: 0.8rem;
    }
}

/* 横屏模式适配 */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .container {
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .text-content {
        height: 700px;
    }
} 