/* 基础设置与黄金比例变量 */
:root {
    --golden-ratio: 1.618;
    --primary-color: #d4af37; /* 金色 */
    --secondary-color: #2c3e50; /* 深蓝 */
    --accent-color: #8e44ad; /* 紫色 */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --mainContentC-width: calc(100% / var(--golden-ratio));
    --sidebar-width: calc(100% - var(--mainContentC-width));
    --header-height: 50px; /* 菜单栏高度设置为50px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部菜单栏 - 固定高度50px */
header {
    background: linear-gradient(135deg, #3369E8, #2B5BCB);
    color: white;
    padding: 0 5%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.logo:hover i {
    transform: rotate(15deg);
}

.logo span {
    color: var(--primary-color);
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    height: 100%;
}

nav li {
    display: flex;
    align-items: center;
    height: 100%;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

/* 优化图标和文字的间距 */
nav a i {
    margin-right: 10px;
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    transition: transform 0.3s ease;
}

nav a:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
}

nav a:hover {
    color: var(--primary-color);
    background: rgba(255,255,255,0.05);
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}

/* 主内容区 - 三栏布局 */
.MidMainContainerC {
    display: flex;
    flex: 1;
    /*max-width: 1920px;*/
    margin: 1rem auto 7rem;
    width: 99%;
    height: 100%;
    gap: 2.5rem;
}

#WheelTimesId{
 	color: red;	
}

.LeftSidebarC {
	position: relative;
    width: calc(100% - var(--mainContentC-width)) / 2);
    min-width: 200px;
    align-self: flex-start;    
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.LeftSidebarC h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    font-size: 1.3rem;
}

.LeftSidebarC h3 i {
    margin-right: 12px;
    color: var(--primary-color);
}

.LeftSidebarC ul {
    list-style: none;
}

.LeftSidebarC li {
    padding: 0.9rem 0;
    border-bottom: 1px solid #eee;
    transition: padding-left 0.3s ease;
}

.LeftSidebarC li:hover {
    padding-left: 8px;
}

.LeftSidebarC li:last-child {
    border-bottom: none;
}

.LeftSidebarC a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.LeftSidebarC a i {
    margin-right: 15px;
    color: var(--primary-color);
    width: 20px;
    font-size: 1.1rem;
}

.LeftSidebarC a:hover {
    color: var(--accent-color);
}


/* 主要内容区 - 使用黄金比例宽度 */
.mainContentC {
    width: var(--mainContentC-width);
    display: flex;
	flex-direction: column;     /* 上下排列 */
	align-items: center;        /* 水平居中 */
    /*display: flex;
  	justify-content: center; /* 水平居中 */
    /*
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    */
}

/* 轮盘标题及标题编辑器  */
.TitleModuleC {
	position: relative;
	/*
	border: 1px solid #ccc;
	border-radius: 2px;
	background-color: #f9f9f9;
	*/
	padding: 0px 5px 0px 5px;
	width:100%;
	max-width: 500px;
	min-height: 20px;	
	text-align: center;
}

.TitleModuleC input,
.TitleModuleC textarea {
	width: 100%;
	margin-top: 8px;
	padding: 8px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-align: center; /* 输入内容居中 */
}

.TitleModuleC h1,
.TitleModuleC p {
	margin: 8px 0;
}

.edit-icon {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 18px;
	color: #007bff;
	cursor: pointer;
}

.edit-icon:hover {
	color: #0056b3;
}
    
/* 轮盘与指针 */
.WheelContainerC {
	position: relative;
	width: 80vmin;
	height: 80vmin;
	max-width: 770px;
	max-height: 750px;
}
.WheelC {
  	width: 100%;
  	height: 100%;
  	display: block;
}
.WheelPointerC {
	position: absolute;
	top: 50%;
	left: calc(100% + 10px);
	width: 0;
	max-width: 30px;
	height: 0;
	max-height: 18px;
	border-left: 0;
	border-right: 4vw solid white;
	border-top: 2vw solid transparent;
	border-bottom: 2vw solid transparent;
	transform: translate(-100%, -50%) rotate(0deg);
	filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.6));
	cursor: pointer;
	transition: filter 0.3s;
	z-index: 10;
	pointer-events: auto;
}
.WheelPointerC:hover {
	filter: drop-shadow(2px 2px 10px rgba(125, 125, 125, 0.8));
}

.GlobalTipsDialogC {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 999;
}
.GlobalTipsDialogBoxC {
	background-color: white;
	color: black;
	padding: 30px 50px;
	border-radius: 16px;
	font-size: 28px;
	font-weight: bold;
	text-align: center;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
	position: relative;
	max-width: 90vw;
	word-wrap: break-word;
}
.GlobalTipsDialogCloseBtC {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 26px;
	color: #999;
	cursor: pointer;
	transition: color 0.3s ease;
	font-weight: bold;
	user-select: none;
}
.GlobalTipsDialogCloseBtC:hover {
	color: #333;
}

/* 侧边栏使用黄金比例宽度 */
.RightSidebarC {
	position: relative;
    width: calc(100% - var(--mainContentC-width)) / 2);
    align-self: flex-start;
    min-width: 370px;
    /*
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    */
}

.RightSidebarC h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    font-size: 1.3rem;
}

.RightSidebarC h3 i {
    margin-right: 12px;
    color: var(--primary-color);
}

.RightSidebarC ul {
    list-style: none;
}

.RightSidebarC li {
    padding: 0.9rem 0;
    border-bottom: 1px solid #eee;
    transition: padding-left 0.3s ease;
}

.RightSidebarC li:hover {
    padding-left: 8px;
}

.RightSidebarC li:last-child {
    border-bottom: none;
}

.RightSidebarC a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.RightSidebarC a i {
    margin-right: 15px;
    color: var(--primary-color);
    width: 20px;
    font-size: 1.1rem;
}

.RightSidebarC a:hover {
    color: var(--accent-color);
}

/* 配置与结果 */
.RightSidebarContainerC {
	position: relative;  /* 或 relative，根据你的具体布局需求 */
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	background: white;
	/*
	max-width: 460px;     
	min-width: 320px;
	min-height: 300px;
	*/
}

.toggle-visibility {
	position: absolute;
	top: 5px;
	right: 5px;
	font-size: 14px;
	/*background: #fff;*/
	padding: 4px 4px;
	/*border: 1px solid #ccc;
	border-radius: 5px;*/
	z-index: 10;
	
	display: flex;
  	align-items: center;       /* 强制垂直居中对齐 */
  	gap: 4px;                  /* 增加 input 和文字的间距 */
}

.wrapper {
	position: relative;
	top:4px;
	width: 100%;
	background: #fff;
	/*
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	*/
	overflow: hidden;
}

.tabs {
	display: flex;
	border-bottom: 1px solid #ddd;
}

.tab {
	flex: 1;
	padding: 10px 0;
	text-align: center;
	background: #eee;
	cursor: pointer;
	max-width: 100px;
}

.tab.active {
	background: #fff;
	font-weight: bold;
	border-bottom: 2px solid #007bff;
}

.content {
  	padding: 20px;
}

.hidden {
  	display: none;
}

.config-mode {
  	margin-bottom: 15px;
}

.block {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	align-items: center;
	padding: 8px;
	border: 1px solid #ddd;
	background: #fafafa;
	border-radius: 5px;
	cursor: grab;
}

.block input {
  	padding: 4px;
}

.block.dragging {
  	opacity: 0.5;
}

.controls button {
	background: none;
	border: none;
	cursor: pointer;
	color: #333;
	font-size: 16px;
}

.controls button:hover {
  	color: #007bff;
}

.AddSectorBlockC, .ExportJsonC, .ImportJsonC {
  	margin-top: 10px;
  	margin-right: 10px;
  	padding: 5px 8px;
}

.JsonAreaC {
  	margin-top: 10px;
}

/*上传扇形图片*/
.SectorImgBoxC {
	width: 30px;
	height: 30px;
	border: 2px dashed #ccc;
	border-radius: 4px;
	background-color: #fff;
	overflow: hidden;
	position: relative;
	
	/* 关键：用于内容居中 */
	display: inline-flex;
	justify-content: center;
	align-items: center;
	vertical-align: top;
}

.SectorImgBoxC i {
	font-size: 48px;
	color: #aaa;
}

.SectorImgBoxC img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.EditableBoxC {
	width: 100%;
	min-height: 120px;
	padding: 12px 5px; /* 上下12px，左右5px */
	border: 1px solid #ccc;
	border-radius: 5px;
	background: #fff;
	white-space: pre-wrap;
	outline: none;
	font-size: 16px;        /* 字体大小加大 */
	line-height: 1.8;       /* 行距加宽 */
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.EditableBoxC:focus {
	border-color: #007bff;
	box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.WidgetBlockC {	
	position: relative;
	top:4px;
	width: 100%;
	background: #fff;
	margin-bottom: 5px;
}

.ConfigBtC {
	position:relative;
	left:0px;
	bottom:5px;
	background-color: #007bff;         /* 白底，融入背景 */
  	color: white;                    
  	border: 1px solid #ccc;            /* 淡灰色边框 */
  	padding: 5px 8px;
  	font-size: 14px;
  	border-radius: 6px;                /* 圆角按钮 */
  	cursor: pointer;
  	transition: background-color 0.3s ease;
}

.ConfigBtC:hover {
	background-color: #0056b3;         /* 鼠标悬停浅灰 */
  	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); /* 微光 */
}


.ConfirmBtC {
	position:relative;
	left:20px;
	bottom:5px;
	background-color: #007bff;         /* 白底，融入背景 */
  	color: white;                    
  	border: 1px solid #ccc;            /* 淡灰色边框 */
  	padding: 5px 8px;
  	font-size: 14px;
  	border-radius: 6px;                /* 圆角按钮 */
  	cursor: pointer;
  	transition: background-color 0.3s ease;
}

.ConfirmBtC:hover {
	background-color: #0056b3;         /* 鼠标悬停浅灰 */
  	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); /* 微光 */
}

.HiddenFileInputC {
	display: none;
}
   
.SectorConfigIconC {
	color: #333;
	cursor: pointer;
	transition: color 0.2s;
}
.SectorConfigIconC:hover {
	color: #007bff;
}
       	
/*====底部区域 - 两栏布局==== */
footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    color: white;
    padding: 3.5rem 5% 2.5rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #e6c158, var(--primary-color));
}

.footer-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3.5rem;
}

/* 底部左侧瀑布流布局 - 修复溢出问题 */
.masonry {
    width: calc(100% / var(--golden-ratio));
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 20px;
    gap: 1.5rem;
}

.masonry a{
	text-decoration:none;
    color:inherit;
    cursor:pointer;
}

.masonry-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* 修复溢出问题 */
    overflow: hidden; /* 防止内容溢出容器 */
    display: flex;
    flex-direction: column;
}

/* 增加行跨度以提供更多空间*/ 
.masonry-item:nth-child(3n) {
    grid-row: span 8; 
}

.masonry-item:nth-child(3n+1) {
    grid-row: span 6; 
}

.masonry-item:nth-child(3n+2) {
    grid-row: span 8; 
}


.masonry-item:hover {
    transform: translateY(-8px);
    background: rgba(212, 175, 55, 0.25);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.masonry-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.masonry-item h4 i {
    margin-right: 10px;
}

.masonry-item p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    /* 确保文本正确换行 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* 允许文本自动扩展 */
    flex-grow: 1;
    margin-bottom: 0;
}

/* 底部右侧固定信息 */
.footer-info {
    width: calc(100% - (100% / var(--golden-ratio)));
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.4s ease;
}

.footer-info:hover {
    transform: translateY(-5px);
}

.footer-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-info h3 i {
    margin-right: 15px;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 18px;
    font-size: 1.3rem;
    min-width: 28px;
    margin-top: 4px;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.25);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.CopyrightC {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.CopyrightC a{
	text-decoration:none;
    color:inherit;
    cursor:pointer;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .MidMainContainerC {
        gap: 1.8rem;
    }
    
    nav a {
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    .MidMainContainerC {
        flex-direction: column;
        gap: 2rem;
    }
    
    .LeftSidebarC, .RightSidebarC, .mainContentC {
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .masonry, .footer-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 1.5rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.5rem;
        margin-right: 8px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav a {
        font-size: 0.95rem;
        padding: 0 0.9rem;
    }
    
    nav a i {
        margin-right: 8px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    nav a {
        padding: 0 0.7rem;
    }
    
    nav a span {
        font-size: 0.85rem;
    }
    
    nav a i {
        margin-right: 6px;
        font-size: 0.95rem;
    }
    
    .mainContentC {
        padding: 1.8rem;
    }
    
    /* 移动设备上减少瀑布流行跨度 */
    .masonry-item:nth-child(3n),
    .masonry-item:nth-child(3n+1),
    .masonry-item:nth-child(3n+2) {
        grid-row: span 5;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }
    
    nav a span {
        display: none;
    }
    
    nav a i {
        margin-right: 0;
        font-size: 1.1rem;
    }
    
    .LeftSidebarC, .RightSidebarC{
        padding: 1.5rem;
    }
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    z-index: 1000;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.user-dropdown-content a {
    color: var(--dark-color);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f1f1;
}

.user-dropdown-content a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

.user-dropdown-content a:last-child {
    border-bottom: none;
}

.user-dropdown-content a i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

.user-info {
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info i {
    font-size: 1.8rem;
    margin-right: 12px;
    color: var(--secondary-color);
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.user-email {
    font-size: 0.85rem;
    opacity: 0.9;
}
